/* ==========================================================================
   Gabe Albrecht, Real Estate Transitions Advisory
   Shared stylesheet. Every page on the site uses this file.
   Design system reference lives in the Drive folder.
   ========================================================================== */

/* --- Fonts. Metric compatible substitutes for the letterhead's Cambria
       and Calibri, so the site and the printed letter read as one document. */

@font-face {
  font-family: "Caladea";
  src: url("fonts/caladea-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caladea";
  src: url("fonts/caladea-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caladea";
  src: url("fonts/caladea-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("fonts/carlito-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* --- Tokens ------------------------------------------------------------ */

:root {
  /* Brand. Sampled from the approved V1 Bronze-Teal letterhead. */
  --slate:  #45474A;   /* body text, header bar.  9.32:1 on white, AAA */
  --bronze: #8A561B;   /* rules and accents.      6.13:1 on white, AA  */
  --teal:   #0F808A;   /* tagline, links, buttons. 4.69:1 on white, AA */

  /* Derived neutrals. */
  --paper:      #FFFFFF;
  --paper-warm: #F7F5F2;  /* panel fill, warm so it sits with bronze */
  --hairline:   #DCD8D2;
  --slate-soft: #6B6E72;  /* 5.14:1 on white. Secondary text only.   */
  --slate-deep: #2F3134;  /* footer bar */

  /* Type */
  --serif: "Caladea", Cambria, Georgia, "Times New Roman", serif;
  --sans:  "Carlito", Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Measure and rhythm */
  --measure: 34rem;      /* about 66 characters at the body size */
  --gutter:  1.5rem;
  --rule:    3px;
}

/* --- Reset, light ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 1.1875rem;      /* 19px. Floor is 18px, audience skews 55 to 75 */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Layout ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: var(--measure); }

/* --- Masthead. Mirrors the letterhead: slate bar, bronze rule, teal
       tagline on white. Do not put teal on slate, the contrast fails. --- */

.masthead {
  background: var(--slate);
  border-bottom: var(--rule) solid var(--bronze);
}

/* Vertical only. The padding shorthand here would override .wrap's gutter
   and put the name against the screen edge on a phone. */
.masthead__inner {
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
}

.masthead__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.045em;
  color: #FFFFFF;
}

.tagline-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.tagline {
  margin: 0;
  padding: 0.9rem 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --- Sections ---------------------------------------------------------- */

.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.section:last-of-type { border-bottom: 0; }

.section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.22;
  letter-spacing: -0.005em;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 5.2vw, 2.15rem);
  max-width: 22ch;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 4.2vw, 1.6rem);
  max-width: 26ch;
}

h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
}

p { margin: 0 0 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.3125rem; line-height: 1.55; }

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover, a:focus-visible { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
}

/* --- Intro block with the photograph ----------------------------------- */

/* The photograph is first in the DOM so that on a phone the face arrives
   before the argument does. On desktop the grid moves it to the right
   column and the reading order goes back to text first.
   Add class "has-portrait" to .intro only when a real photograph is in
   place, so a missing photo never leaves a hole. */

.intro { display: grid; gap: 1.75rem; }

.intro__figure { margin: 0; }

@media (min-width: 44rem) {
  .intro.has-portrait {
    grid-template-columns: 1fr 13.5rem;
    align-items: start;
    gap: 2.75rem;
  }
  .intro.has-portrait .intro__figure { grid-column: 2; grid-row: 1; }
  .intro.has-portrait .intro__body   { grid-column: 1; grid-row: 1; }
}

.portrait {
  border-top: var(--rule) solid var(--bronze);
  width: 100%;
  max-width: 9.5rem;
  background: var(--paper-warm);
}

@media (min-width: 44rem) {
  .portrait { max-width: 13.5rem; }
}

.portrait__caption {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--slate-soft);
  max-width: 13.5rem;
}

/* --- The "what I won't do" block. Bronze left rule, no fill, so it reads
       as a marginal note in a legal document rather than a callout box. -- */

.stance {
  margin: 2rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: var(--rule) solid var(--bronze);
  max-width: var(--measure);
}

.stance h3 { margin-top: 0; }

/* --- Panel. Used for the checklist slot, which is where the capture form
       will sit once the consent path is decided. Keep this markup stable. */

.panel {
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  border-top: var(--rule) solid var(--teal);
  padding: 1.75rem var(--gutter) 1.85rem;
  max-width: 38rem;
}

.panel h2 { margin-top: 0; }

/* Teal on the warm panel fill measures 4.31:1, which is under AA, so a bare
   teal link must never sit on .panel. The action is a filled button instead:
   white on teal is 4.69:1 and passes. This is also the exact shape the
   capture form's submit control will take, so the slot reads as reserved. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.6rem 1.4rem;
  background: var(--teal);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--teal);
}

.btn:hover, .btn:focus-visible {
  background: #0B6B74;
  border-color: #0B6B74;
  text-decoration: none;
}

.panel__note {
  margin: 1.15rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--slate-soft);
}

/* --- Contact ----------------------------------------------------------- */

.contact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.1875rem;
}

.contact-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  align-items: baseline;
}

.contact-list li:last-child { border-bottom: 1px solid var(--hairline); }

.contact-list .label {
  flex: 0 0 7.5rem;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.contact-list a { min-height: 44px; display: inline-flex; align-items: center; }

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--slate-deep);
  border-top: var(--rule) solid var(--bronze);
  color: #E9E7E4;
  padding: 2.5rem 0 3rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.site-footer p { max-width: 40rem; }

.site-footer a { color: #9BD4DA; }   /* teal lifted for contrast on slate */

.site-footer__identity {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.site-footer__tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B9BCC0;
  margin-bottom: 1.5rem;
}

.site-footer__license {
  margin-bottom: 0.35rem;
  color: #FFFFFF;
}

/* Own lines, and each link is a 44px tap target. Inline in a paragraph they
   measured 18px tall, which is not a target anyone hits on a phone. */
.site-footer__contact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Carried over from the letterhead, where the logo sits inline in the footer
   at 1.13 inches. Knockout white so it reads on the slate bar. */

.site-footer__logo {
  width: 12.5rem;
  height: auto;
  margin: 1.4rem 0 1.9rem;
}

.site-footer__disclosure {
  color: #C6C9CC;
  padding-top: 1.25rem;
  border-top: 1px solid #4A4D51;
}

/* --- Print. Some of this audience will print the page. ----------------- */

@media print {
  body { font-size: 11.5pt; color: #000; }
  .masthead { background: none; border-bottom: 2pt solid var(--bronze); }
  .masthead__name { color: #000; }
  .site-footer { background: none; color: #000; border-top: 2pt solid var(--bronze); }
  .site-footer a, .site-footer__identity,
  .site-footer__license, .site-footer__disclosure { color: #000; }
  .panel { background: none; }
  a { color: #000; }
  .section { page-break-inside: avoid; border-bottom: 0; }
}
