/* drrensilva.com — Dr. Ren Silva, US front
   Separate clone of the PT home, not an i18n layer. The only shared asset is the
   design system: every value below mirrors WEBDESIGN/brand/tokens.json. No hex,
   spacing value or font name is written outside this block.

   System: one family (Manrope variable 200-800). Hierarchy comes from scale,
   weight and a 1px rule. Amber appears in exactly three places on the page:
   the rule above the quote, the text-link hover and the button fill on hover.

   Shape rule, applied everywhere: interactive shapes are pills (radius-full),
   surfaces that hold content are 12px (radius-md), and rules are 1px. Nothing
   mixes the two.

   Rebuilt on 28/07/2026 (fourth round). What came out and why:
   - the 7-day course chapter and both e-mail forms: the course does not exist and
     the Kit account was never created, so the page was capturing into a dead
     endpoint. The single action is now the Substack letter, which is live.
   - the four-door orientation grid and the standalone app chapter: three of the
     four doors had no live destination, and the page had five sections built on
     the same hairline-cell grid. The fronts chapter replaces both, in the card
     language that the PT home already proved.
   - the CSS book jacket: replaced by the real English cover, rendered from the
     book PDF. A drawn rectangle next to real photography reads as a placeholder.
   - the eyebrow on every section: eleven of them made every chapter open the same
     way. Two survive, the hero and the letter. */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color.surface */
  --surface-base: #F4F4F2;
  --surface-elevated: #FFFFFF;
  --surface-muted: #EAEAE7;
  --surface-inverse: #0B0B0B;
  --surface-navy: #13243c;
  --surface-navy-soft: #162944;

  /* color.text */
  --text-primary: #0B0B0B;
  --text-secondary: #4A4A48;
  --text-muted: #6E6E6B;
  --text-inverse: #F4F4F2;
  --text-inverse-soft: rgba(244, 244, 242, 0.62);
  --text-inverse-faint: rgba(244, 244, 242, 0.52);

  /* color.action */
  --action-primary: #13243c;
  --action-accent: #d4af6b;
  --action-primary-text: #F4F4F2;

  /* color.border */
  --rule: #E0E0DC;
  --rule-inverse: rgba(244, 244, 242, 0.14);
  --rule-inverse-strong: rgba(244, 244, 242, 0.35);
  --rule-card: rgba(244, 244, 242, 0.10);

  /* font */
  --font-base: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --w-extralight: 200;
  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;
  --w-bold: 700;
  --w-extrabold: 800;

  --size-h1: clamp(2.25rem, 4.5vw, 4rem);
  --size-h2: clamp(1.875rem, 3.6vw, 3.25rem);
  --size-numeral: clamp(2.75rem, 5vw, 4.75rem);
  --size-quote: clamp(1.75rem, 3.4vw, 2.875rem);
  --size-eyebrow: 0.75rem;
  --size-body: 1.125rem;
  --size-meta: 0.8125rem;
  --size-link: 0.875rem;

  --tracking-display: -0.025em;
  --tracking-h2: -0.02em;
  --tracking-eyebrow: 0.18em;
  --tracking-meta: 0.06em;

  /* space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;
  --sp-32: 8rem; --sp-40: 10rem;

  /* radius / shadow */
  --radius-none: 0;
  --radius-md: 12px;
  --radius-full: 9999px;
  --shadow-md: 0 6px 20px rgba(11, 11, 11, 0.08);
  --shadow-book: 0 22px 54px rgba(11, 11, 11, 0.22);

  /* layout */
  --container: 1200px;
  --prose: 68ch;
  --gutter: 20px;
  --section-y: 5.5rem;

  /* motion */
  --dur: 180ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 479px) {
  :root { --tracking-eyebrow: 0.12em; }
}

@media (max-width: 560px) {
  .credentials p { letter-spacing: 0.08em; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 8rem; }
}

/* ---------------------------------------------------------------- base */

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

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

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

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: var(--size-body);
  font-weight: var(--w-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is not optional here: every image carries width/height attributes for CLS,
   and without it a constrained max-width squeezes the picture instead of scaling it. The
   photo blocks below override it on purpose, with object-fit doing the cropping. */
img { max-width: 100%; height: auto; display: block; }

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--action-accent); color: var(--text-primary); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: var(--sp-3) var(--sp-5);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

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

.section { padding: var(--section-y) 0; }
.section-light + .section-light { padding-top: 0; }

section[id] { scroll-margin-top: 84px; }

.section-light { background: var(--surface-base); color: var(--text-primary); }
.section-dark { background: var(--surface-inverse); color: var(--text-inverse); }
.section-navy { background: var(--surface-navy); color: var(--text-inverse); }
.section-raised { background: var(--surface-elevated); color: var(--text-primary); }

/* ---------------------------------------------------------------- type */

.eyebrow {
  display: block;
  font-size: var(--size-eyebrow);
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-6);
}
/* The hero is a dark surface without the .section-dark class, so it has to be named here.
   Without it the eyebrow inherits --text-muted and lands at 3.85:1 on #0B0B0B, under the
   4.5:1 floor of regras-pagina.md §5. The same fault is live on the PT home. */
.section-dark .eyebrow,
.section-navy .eyebrow,
.hero .eyebrow { color: var(--text-inverse-faint); }

h1, h2, h3 { margin: 0; }

h1 {
  font-size: var(--size-h1);
  font-weight: var(--w-light);
  letter-spacing: var(--tracking-display);
  line-height: 0.98;
}

.section-title {
  font-size: var(--size-h2);
  font-weight: var(--w-light);
  letter-spacing: var(--tracking-h2);
  line-height: 1.05;
  text-wrap: balance;
}

.lede {
  max-width: var(--prose);
  color: var(--text-secondary);
  margin: var(--sp-6) 0 0;
}
.section-dark .lede,
.section-navy .lede { color: var(--text-inverse-soft); }

.lede + .lede { margin-top: var(--sp-5); }

.section-head { margin-bottom: var(--sp-16); }
.section-head-center { text-align: center; }
.section-head-center .lede { margin-left: auto; margin-right: auto; }

.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- actions */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--sp-8);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: var(--w-bold);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn-outline {
  border-color: var(--rule-inverse-strong);
  color: var(--text-inverse);
  background: transparent;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--action-accent);
  border-color: var(--action-accent);
  color: var(--text-primary);
}

.btn-solid {
  background: var(--action-primary);
  color: var(--action-primary-text);
  border-color: var(--action-primary);
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--action-accent);
  color: var(--text-primary);
  border-color: var(--action-accent);
}

.link {
  display: inline-block;
  font-size: var(--size-link);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link:hover, .link:focus-visible { border-bottom-color: var(--action-accent); }

.section-dark .link,
.section-navy .link {
  color: var(--text-inverse);
  border-bottom-color: var(--rule-inverse-strong);
}

/* ---------------------------------------------------------------- header */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: var(--sp-5) 0;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.62) 0%, rgba(11, 11, 11, 0) 100%);
  transition: opacity var(--dur) var(--ease);
}
.masthead.pinned::before { opacity: 0; }
.masthead-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.wordmark {
  font-size: 0.8125rem;
  font-weight: var(--w-extrabold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-inverse);
}
.masthead-nav { display: none; gap: var(--sp-8); }
.masthead-nav a {
  font-size: var(--size-link);
  font-weight: var(--w-medium);
  text-decoration: none;
  white-space: nowrap;
  color: rgba(244, 244, 242, 0.82);
  transition: color var(--dur) var(--ease);
}
.masthead-nav a:hover { color: var(--text-inverse); }

@media (min-width: 900px) { .masthead-nav { display: flex; } }

.masthead.pinned {
  background: rgba(11, 11, 11, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--rule-inverse);
}

/* ---------------------------------------------------------------- hero */

.hero { background: var(--surface-inverse); color: var(--text-inverse); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-photo {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-inverse) 0%, rgba(11, 11, 11, 0) 26%);
}
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-10) var(--gutter) var(--sp-8);
}
.hero h1 { margin: var(--sp-5) 0 0; max-width: 17ch; }
.hero-sub {
  margin: var(--sp-6) 0 0;
  max-width: 48ch;
  font-size: 1.0625rem;
  color: var(--text-inverse-soft);
  line-height: 1.55;
}
.hero-actions {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6) var(--sp-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--sp-10);
  border-top: 1px solid var(--rule-inverse);
}
.hero-stat { padding: var(--sp-5) var(--sp-4) 0 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--rule-inverse); padding-left: var(--sp-4); }
.hero-stat b {
  display: block;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: var(--w-extralight);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-stat b .unit {
  display: inline;
  font-size: 0.68em;
  font-weight: var(--w-regular);
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  margin: 0;
}
.front-figure b .unit {
  display: inline;
  font-size: 0.5em;
  font-weight: var(--w-regular);
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  margin: 0;
}

.hero-stat > span {
  display: block;
  margin-top: var(--sp-2);
  font-size: 0.6875rem;
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
  color: var(--text-inverse-faint);
  line-height: 1.35;
}

.credentials {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule-inverse);
  background: var(--surface-inverse);
}
.credentials-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--gutter);
}
.credentials p {
  margin: 0;
  font-size: 0.6875rem;
  overflow-wrap: anywhere;
  font-weight: var(--w-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inverse-soft);
  line-height: 1.5;
}

@media (min-width: 900px) {
  /* No max-height on the fold. With a ceiling, a panel taller than the screen spilled
     out of the grid and the photo rode over the identification strip. */
  .hero { display: flex; flex-direction: column; min-height: 100vh; }
  .hero-grid {
    flex: 1 0 auto;
    grid-template-columns: 54fr 46fr;
    min-height: calc(100vh - 84px);
  }
  .hero-photo { order: 0; aspect-ratio: auto; height: 100%; }
  .hero-photo::after {
    background: linear-gradient(to right, var(--surface-inverse) 0%, rgba(11, 11, 11, 0) 22%);
  }
  .hero-panel {
    padding: var(--sp-20) var(--sp-16) var(--sp-12)
             max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  }
  .hero-stats { max-width: 620px; }
  .credentials-inner {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: var(--sp-10);
    padding: var(--sp-5) var(--gutter);
  }
}

/* ---------------------------------------------------------------- fronts (navy)

   Cards on their own surface, navy over navy, with 5/7 and 7/5 rhythm. Four fronts,
   four cells, no filler cell. This is the language the PT home landed on after the
   equal-cell grid was rejected there for looking amateur. */

.fronts-head { max-width: 46ch; }

.fronts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}
.front {
  background: var(--surface-navy-soft);
  border: 1px solid var(--rule-card);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
}
.front h3 {
  font-size: 1.375rem;
  font-weight: var(--w-regular);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.front-text {
  margin: var(--sp-4) 0 0;
  font-size: 0.9375rem;
  color: var(--text-inverse-soft);
  max-width: 48ch;
}
.front-foot {
  margin-top: auto;
  padding-top: var(--sp-10);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
}
.front-figure { display: block; }
.front-figure b {
  display: block;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: var(--w-extralight);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.front-figure > span {
  display: block;
  margin-top: var(--sp-3);
  font-size: 0.6875rem;
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
  color: var(--text-inverse-faint);
  line-height: 1.4;
}
.front-foot .link { flex-shrink: 0; }

@media (min-width: 900px) {
  .fronts { grid-template-columns: repeat(12, 1fr); gap: var(--sp-5); }
  .front { padding: var(--sp-10); min-height: 300px; }
  .front-a { grid-column: span 5; }
  .front-b { grid-column: span 7; }
  .front-c { grid-column: span 7; }
  .front-d { grid-column: span 5; }
}

/* ---------------------------------------------------------------- books */

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}
/* The cover is the real English jacket, rendered from the book PDF. The frame is
   what makes a flat file read as an object: hairline, shadow and a spine edge. */
.book-cover {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-none) var(--radius-md) var(--radius-md) var(--radius-none);
  overflow: hidden;
  box-shadow: var(--shadow-book);
  background: var(--surface-elevated);
}
.book-cover img { width: 100%; height: auto; }
.book-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid var(--rule);
  background: linear-gradient(to right, rgba(11, 11, 11, 0.16) 0, rgba(11, 11, 11, 0) 12px);
}
.book-rating { margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: var(--w-extralight); letter-spacing: -0.03em; line-height: 0.92; font-variant-numeric: tabular-nums; }
.book-rating-label { margin: var(--sp-3) 0 var(--sp-8); font-size: 0.9375rem; color: var(--text-muted); }
.book-title { font-size: 1.75rem; font-weight: var(--w-regular); letter-spacing: -0.015em; }
.book-out { margin-top: var(--sp-8); }

.works { margin-top: var(--sp-20); border-top: 1px solid var(--rule); }
.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3) var(--sp-6);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--rule);
}
.work-num {
  font-size: var(--size-eyebrow);
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-muted);
  padding-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.work-title { font-size: 1.1875rem; font-weight: var(--w-medium); line-height: 1.35; }
.work-role { margin: var(--sp-2) 0 0; font-size: 0.9375rem; color: var(--text-secondary); max-width: 58ch; }
.work-meta {
  margin: var(--sp-3) 0 0;
  font-size: var(--size-meta);
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .book-grid { grid-template-columns: 5fr 7fr; gap: var(--sp-20); }
  .book-cover { max-width: 372px; }
  .work { grid-template-columns: 64px 1fr auto; align-items: baseline; }
  .work-meta { margin: 0; text-align: right; white-space: nowrap; }
}

/* ---------------------------------------------------------------- weekly letter */

.lit-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); align-items: center; }
.lit-photo { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; }
.lit-photo img { width: 100%; height: 100%; object-fit: cover; }
.lit-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: var(--sp-10); }
.lit-figure { background: var(--surface-base); padding: var(--sp-6); }
.lit-figure b { display: block; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: var(--w-extralight); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lit-figure span { display: block; margin-top: var(--sp-3); font-size: 0.6875rem; font-weight: var(--w-medium); letter-spacing: var(--tracking-meta); text-transform: uppercase; color: var(--text-muted); line-height: 1.4; }
.lit-out { margin-top: var(--sp-10); }

@media (min-width: 900px) { .lit-grid { grid-template-columns: 5fr 7fr; gap: var(--sp-20); } }

/* ---------------------------------------------------------------- topics

   Two columns, a rule over each item, and no box. The previous version was six
   stacked rows with a hairline under every one, which is the laziest list layout
   there is and repeated the cell grid used by three other chapters. */

.questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10) var(--sp-16);
}
.question { border-top: 1px solid var(--rule); padding-top: var(--sp-6); }
.question h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: var(--w-regular);
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
.question p { margin: var(--sp-4) 0 0; font-size: 0.9375rem; color: var(--text-secondary); max-width: 52ch; }

@media (min-width: 800px) {
  .questions { grid-template-columns: repeat(2, 1fr); gap: var(--sp-12) var(--sp-16); }
}

/* ---------------------------------------------------------------- channels

   Columns held by a single rule on top, no cell borders. Keeps this chapter from
   repeating the card language of the fronts. */

.channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-10) var(--sp-8);
}
.channel {
  border-top: 1px solid var(--rule-inverse);
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
}
.channel h3 { font-size: 1.3125rem; font-weight: var(--w-regular); letter-spacing: -0.01em; }
.channel p { margin: var(--sp-3) 0 0; font-size: 0.9375rem; color: var(--text-inverse-soft); }
.channel .link { margin-top: auto; padding-top: var(--sp-8); align-self: flex-start; }

@media (min-width: 900px) {
  .channels { grid-template-columns: repeat(4, 1fr); gap: var(--sp-8); }
}

/* ---------------------------------------------------------------- origin */

.origin { text-align: center; padding: var(--sp-24) 0; }
.amber-rule { width: 64px; height: 1px; background: var(--action-accent); margin: 0 auto var(--sp-8); border: 0; }
.quote {
  font-size: var(--size-quote);
  font-weight: var(--w-light);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto;
}
.quote-sign {
  margin: var(--sp-10) 0 0;
  font-size: var(--size-meta);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.quote-source { margin: var(--sp-6) auto 0; font-size: 0.9375rem; color: var(--text-muted); max-width: 54ch; line-height: 1.6; }

@media (min-width: 900px) { .origin { padding: var(--sp-40) 0; } }

/* ---------------------------------------------------------------- about */

.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); }
.about-photo { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.ledger { border-top: 1px solid var(--rule); margin-top: var(--sp-16); }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
}
.ledger-item { font-size: 1.0625rem; }
.ledger-meta { font-size: 0.875rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .ledger-row { grid-template-columns: 1fr auto; gap: var(--sp-8); align-items: baseline; }
  .ledger-meta { text-align: right; }
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 4fr 8fr; gap: var(--sp-20); align-items: start; }
  .about-photo { position: sticky; top: 110px; }
}

/* ---------------------------------------------------------------- close */

.close { text-align: center; padding: var(--sp-24) 0; }
.close h2 {
  font-size: clamp(2.125rem, 4.4vw, 3.75rem);
  font-weight: var(--w-light);
  letter-spacing: var(--tracking-h2);
  line-height: 1.05;
}
.close .lede { margin-left: auto; margin-right: auto; max-width: 54ch; }
.close .btn { margin-top: var(--sp-12); }
.close-motto {
  margin: var(--sp-16) 0 0;
  font-size: var(--size-meta);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-inverse-faint);
}

/* ---------------------------------------------------------------- footer */

.footer { background: var(--surface-inverse); color: var(--text-inverse); }
.directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--rule-inverse);
}
.directory h3 {
  font-size: var(--size-eyebrow);
  font-weight: var(--w-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-inverse-faint);
  margin-bottom: var(--sp-5);
}
.directory ul { list-style: none; margin: 0; padding: 0; }
.directory li + li { margin-top: var(--sp-3); }
.directory a {
  font-size: var(--size-link);
  color: var(--text-inverse-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.directory a:hover, .directory a:focus-visible { color: var(--text-inverse); }

.footer-base {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: var(--sp-12) 0 var(--sp-16);
  border-top: 1px solid var(--rule-inverse);
}
.identity p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: var(--w-medium);
  color: rgba(244, 244, 242, 0.72);
  line-height: 1.7;
}
.legal p { margin: 0; font-size: var(--size-meta); color: var(--text-inverse-faint); line-height: 1.7; }
.legal a { color: inherit; }

@media (min-width: 720px) {
  .directory { grid-template-columns: repeat(3, 1fr); gap: var(--sp-12); }
  .footer-base { grid-template-columns: 1fr auto; align-items: end; }
  .legal { text-align: right; }
}

/* ---------------------------------------------------------------- legal page */

.doc { max-width: 74ch; }
.doc h1 { font-size: var(--size-h2); font-weight: var(--w-light); letter-spacing: var(--tracking-h2); line-height: 1.05; }
.doc h2 {
  margin: var(--sp-16) 0 var(--sp-5);
  font-size: 1.375rem;
  font-weight: var(--w-medium);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.doc h3 {
  margin: var(--sp-10) 0 var(--sp-4);
  font-size: 1.0625rem;
  font-weight: var(--w-bold);
  letter-spacing: 0;
}
.doc p, .doc li { color: var(--text-secondary); }
.doc p + p { margin-top: var(--sp-5); }
.doc ul { margin: var(--sp-5) 0 0; padding-left: var(--sp-6); }
.doc li + li { margin-top: var(--sp-3); }
.doc b { color: var(--text-primary); font-weight: var(--w-bold); }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc-intro { margin-top: var(--sp-6); }
.doc-updated {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-size: var(--size-meta);
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 1; }

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
