/* The Oberdorfer Team — Brand Book No. 01. Generated by tools/build.py from src/00-head.html and src/10-book.css. */

/* Layout: an architecture quarterly on New England stock. Cover and chapter openers are full-bleed colored stock; reading pages are plaster with a 12-column grid and a running folio. */
:root {
  color-scheme: light;
  /* stocks */
  --green: #28382D;      /* shutter green: cover + chapter openers */
  --plaster: #E8E7E3;    /* reading pages */
  --oak: #B98D5A;        /* second stock */
  --brick: #9B3A29;      /* spot ink on plaster; primary action */
  /* inks */
  --slate: #2A3136;      /* body ink on plaster */
  --ink-deep: #1C2124;   /* ink on oak */
  --stone: #5E6660;      /* secondary ink on plaster */
  --clay: #E0937A;       /* brick's tint, numerals on green */
  --lichen: #A9B5AC;     /* secondary ink on green */
  --rule: rgba(42, 49, 54, .22);
  --rule-on-green: rgba(232, 231, 227, .38);

  --serif: 'Inria Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;

  /* the comp frame: 2528 x 1696 */
  --u: calc(100vw / 2528);
}
html { background: var(--plaster); }
body { margin: 0; background: var(--plaster); color: var(--slate); font-family: var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--brick); color: var(--plaster); }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.cover :focus-visible { outline-color: var(--clay); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cover (comp A) ---------- */
.cover-frame { position: relative; }
.masthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.wordmark { margin: 0; font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .4464em; line-height: 1; color: var(--green); white-space: nowrap; }
.wordmark-aff { display: block; font-family: var(--sans); font-stretch: 82%; font-weight: 400; letter-spacing: .01em; text-transform: none; color: var(--green); line-height: 1; }
.issue-line { margin: 0; font-family: var(--sans); font-stretch: 82%; font-weight: 400; color: var(--green); line-height: 1; white-space: nowrap; }
.cover { background: var(--green); color: var(--plaster); }
.cover h1 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.012em; line-height: .86; color: var(--plaster); }
.standfirst { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.24; letter-spacing: -.006em; color: var(--plaster); }
.open-book { display: inline-flex; align-items: center; justify-content: center; background: var(--brick); color: #F7F5F1; text-decoration: none; font-family: var(--sans); font-stretch: 88%; font-weight: 400; line-height: 1; transition: background-color .25s cubic-bezier(.2,.7,.2,1); }
.open-book:hover { background: #87301F; }
.cover-fig { margin: 0; }
.cover-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-fig figcaption, .fig-cap { font-family: var(--sans); font-stretch: 82%; font-weight: 400; line-height: 1.2; color: var(--plaster); }
.contents-index { font-family: var(--sans); font-stretch: 82%; font-weight: 400; }
.contents-index ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 0; }
.contents-index a { text-decoration: none; color: var(--plaster); white-space: nowrap; }
.contents-index a:hover { text-decoration: underline; }
.contents-index .n { color: var(--clay); font-variant-numeric: tabular-nums; margin-right: .3em; }
.index-rule { border: 0; margin: 0; height: 1px; background: var(--rule-on-green); }

/* Desktop: the cover is the measured comp frame, scaled to the viewport width. */
@media (min-width: 1100px) {
  .cover-frame { width: 100%; height: calc(1696 * var(--u)); overflow: hidden; }
  .cover-frame > *, .cover > * { position: absolute; }
  .masthead { display: contents; }
  .wordmark, .issue-line { position: absolute; }
  .cover-fig picture { display: block; width: 100%; height: 100%; }
  .wordmark { left: 3.44%; top: 2.59%; font-size: calc(56 * var(--u)); letter-spacing: .38em; }
  .wordmark-aff { position: absolute; left: 0; top: calc(64 * var(--u)); font-size: calc(35 * var(--u)); }
  .issue-line { right: 3.25%; top: 4.13%; font-size: calc(34 * var(--u)); }
  .cover { left: 3.56%; top: 10.73%; width: 92.88%; height: 85.67%; }
  .cover h1 { left: calc((6.33% - 3.56%) / .9288); top: calc((28.3% - 10.73%) / .8567); font-size: calc(232 * var(--u)); }
  .standfirst { left: calc((6.33% - 3.56%) / .9288); top: calc((58.67% - 10.73%) / .8567); width: calc(34 / 92.88 * 100%); font-size: calc(35 * var(--u)); }
  .open-book { left: calc((6.33% - 3.56%) / .9288); top: calc((67.10% - 10.73%) / .8567); width: calc(10.76 / 92.88 * 100%); height: calc(5.31 / 85.67 * 100%); font-size: calc(30 * var(--u)); }
  .cover-fig { left: calc((57.36% - 3.56%) / .9288); top: calc((14.21% - 10.73%) / .8567); width: calc(36.79 / 92.88 * 100%); height: calc(68.99 / 85.67 * 100%); }
  .cover-fig figcaption { position: absolute; left: 0; top: calc(100% + 13 * var(--u)); font-size: calc(26 * var(--u)); white-space: nowrap; }
  .index-rule { left: 0; width: 100%; top: calc((89.74% - 10.73%) / .8567 + 4 * var(--u)); height: max(1px, calc(3 * var(--u))); background: rgba(232, 231, 227, .62); }
  .contents-index { left: calc((6.33% - 3.56%) / .9288); top: calc((91.98% - 10.73%) / .8567); width: calc(87.62 / 92.88 * 100%); font-size: calc(34 * var(--u)); }
}

/* Tablet and phone: the cover becomes a stacked issue cover. */
@media (max-width: 1099.98px) {
  .cover-frame { padding: 20px 16px 0; }
  .masthead { padding-bottom: 18px; }
  .wordmark { font-size: clamp(15px, 3.1vw, 30px); letter-spacing: .32em; }
  .wordmark-aff { font-size: clamp(13px, 1.9vw, 17px); margin-top: .55em; }
  .issue-line { font-size: 13px; text-align: right; white-space: normal; max-width: 15em; line-height: 1.3; }
  .cover { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 36px 24px 26px; }
  .cover h1 { font-size: clamp(64px, 17vw, 150px); }
  .standfirst { font-size: clamp(18px, 2.6vw, 24px); max-width: 30ch; }
  .open-book { justify-self: start; padding: 15px 22px; font-size: 17px; min-height: 48px; box-sizing: border-box; }
  .cover-fig { aspect-ratio: 4 / 5; max-height: 72vh; }
  .cover-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--lichen); }
  .cover-fig { display: grid; grid-template-rows: 1fr auto; aspect-ratio: auto; }
  .cover-fig img { aspect-ratio: 4 / 5; max-height: 72vh; }
  .contents-index ol { flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; font-size: 15px; }
  .contents-index a { display: inline-block; padding: 6px 0; }
}
@media (max-width: 560px) {
  .masthead { flex-direction: column; gap: 10px; }
  .issue-line { text-align: left; max-width: none; }
  .wordmark { letter-spacing: .26em; font-size: 15px; }
}

/* ---------- Book system ---------- */
:root {
  --gutter: clamp(16px, 3.56vw, 90px);
  --gap: clamp(16px, 2vw, 32px);
  --paper: #F2F1EE;      /* input fills, inset panels on plaster */
  --plaster-2: #DCDAD3;  /* recessed plaster */

  --fs-display: clamp(46px, 6.4vw, 96px);
  --fs-h2: clamp(32px, 3.4vw, 52px);
  --fs-h3: clamp(23px, 1.9vw, 30px);
  --fs-lead: clamp(20px, 1.55vw, 25px);
  --fs-body: clamp(17px, 1.12vw, 19px);
  --fs-small: 15px;
  --fs-meta: 13px;
  --fs-price: clamp(24px, 2vw, 34px);

  --ease-settle: cubic-bezier(.2, .7, .2, 1);
  --dur-quick: 160ms;
  --dur-base: 320ms;
  --dur-reveal: 900ms;
}
img { height: auto; }
.wrap { padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.meta { font-family: var(--sans); font-stretch: 82%; font-size: var(--fs-meta); letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.cap { font-family: var(--sans); font-stretch: 82%; font-size: 13px; line-height: 1.4; color: var(--stone); }
.cap b { font-weight: 600; color: var(--slate); }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.prose { font-size: var(--fs-body); line-height: 1.62; max-width: 64ch; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.42; max-width: 40ch; margin: 0; }
h2, h3, h4 { text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 700; font-size: var(--fs-h3); line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.005em; }
.h4 { font-family: var(--sans); font-stretch: 88%; font-weight: 600; font-size: 16px; line-height: 1.3; margin: 0 0 .5em; }
.note { font-family: var(--sans); font-stretch: 88%; font-size: 14px; line-height: 1.5; color: var(--stone); }
.sample-tag { display: inline-block; font-family: var(--sans); font-stretch: 82%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px 2px; border: 1px solid currentColor; line-height: 1.3; }
code, .code { font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace; font-size: .86em; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--plaster); }
::-webkit-scrollbar-thumb { background: #9DA39E; border: 3px solid var(--plaster); }
html { scrollbar-color: #9DA39E var(--plaster); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 56px; }

/* Running folio */
.folio { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--plaster); border-bottom: 1px solid var(--rule); }
.folio-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-family: var(--sans); font-stretch: 82%; font-size: 13px; letter-spacing: .03em; color: var(--slate); }
.folio a { text-decoration: none; }
.folio a:hover { text-decoration: underline; }
.folio-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folio-title b { font-family: var(--serif); font-weight: 400; letter-spacing: .24em; text-transform: uppercase; font-size: 12px; }
.folio-now { display: flex; align-items: baseline; gap: .5em; white-space: nowrap; }
.folio-now .n { color: var(--brick); font-variant-numeric: tabular-nums; }
.folio-now [data-folio-title] { display: inline-block; transition: opacity var(--dur-base) var(--ease-settle), transform var(--dur-base) var(--ease-settle); }
.folio-now.swap [data-folio-title] { opacity: 0; transform: translateY(6px); }
@media (max-width: 560px) { .folio-title .long { display: none; } }

/* Contents spread (comp B) */
.spread { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100vh, 66.7vw); }
.spread-photo { position: relative; margin: 0; background: var(--green); }
.spread-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.spread-photo figcaption { position: absolute; left: var(--gutter); bottom: 20px; right: 20px; color: var(--plaster); font-family: var(--sans); font-stretch: 82%; font-size: 13px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.spread-page { position: relative; padding: clamp(28px, 3.2vw, 60px) var(--gutter) clamp(28px, 3vw, 56px) clamp(24px, 3.2vw, 64px); display: flex; flex-direction: column; }
.spread-page .meta { color: var(--stone); }
.spread-page h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(48px, 6.1vw, 132px); line-height: .92; letter-spacing: -.012em; margin: clamp(28px, 3vw, 52px) 0 clamp(28px, 4vw, 72px); color: var(--slate); }
.toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 2.4vw, 44px); }
.toc li { border-top: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 2.4em 1fr; gap: 0 .2em; padding: 14px 0 16px; text-decoration: none; color: var(--slate); }
.toc .n { font-family: var(--sans); font-size: clamp(18px, 1.5vw, 26px); color: var(--brick); font-variant-numeric: tabular-nums; line-height: 1.15; }
.toc .t { font-family: var(--sans); font-stretch: 92%; font-size: clamp(18px, 1.5vw, 26px); line-height: 1.15; }
.toc .d { grid-column: 2; font-family: var(--serif); font-size: 15px; line-height: 1.4; color: var(--stone); margin-top: 4px; }
.toc a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.spread-stamp { margin-top: auto; align-self: flex-end; background: var(--green); color: var(--plaster); padding: clamp(18px, 2vw, 34px) clamp(20px, 2.2vw, 40px); font-family: var(--sans); font-stretch: 88%; font-size: clamp(14px, 1vw, 17px); line-height: 1.45; max-width: 23em; }
.spread-stamp b { font-weight: 500; }
@media (max-width: 900px) {
  .spread { grid-template-columns: 1fr; min-height: 0; }
  .spread-photo { aspect-ratio: 4 / 5; max-height: 80vh; }
  .spread-page { padding: 32px var(--gutter) 40px; }
  .spread-stamp { margin-top: 36px; align-self: stretch; max-width: none; }
}
@media (max-width: 560px) { .toc { grid-template-columns: 1fr; } }

/* Chapter openers: colored stock */
.opener { background: var(--green); color: var(--plaster); position: relative; overflow: hidden; }
.opener--oak { background: var(--oak); color: var(--ink-deep); }
.opener-in { padding-block: clamp(56px, 7vw, 132px); align-items: end; row-gap: 32px; }
.opener-no { grid-column: 1 / span 12; font-family: var(--serif); font-weight: 300; font-size: clamp(110px, 15vw, 280px); line-height: .78; letter-spacing: -.04em; color: var(--clay); margin: 0 0 -.06em; font-variant-numeric: lining-nums; }
.opener--oak .opener-no { color: var(--ink-deep); opacity: .9; }
.opener-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: var(--fs-display); line-height: .94; letter-spacing: -.012em; }
.opener-deck { margin: 0; font-size: var(--fs-lead); line-height: 1.42; max-width: 34ch; }
.opener .cap { color: var(--lichen); }
.opener--oak .cap { color: #3F2A16; }
.opener-fig { margin: 0; }
.opener-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* split: text left, photo bleeding off the right edge */
.opener--split .opener-in { grid-template-rows: auto auto 1fr; }
.opener--split .opener-text { grid-column: 1 / span 6; display: grid; gap: 26px; align-content: end; }
.opener--split .opener-fig { grid-column: 8 / span 5; margin-right: calc(var(--gutter) * -1); align-self: stretch; min-height: clamp(360px, 40vw, 720px); display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.opener--split .opener-fig figcaption { padding-right: var(--gutter); }
/* band: type only */
.opener--band .opener-in { align-items: end; }
.opener--band .opener-no { grid-column: 1 / span 5; margin: 0; }
.opener--band .opener-text { grid-column: 6 / span 7; display: grid; gap: 22px; }
/* full: photograph with a pasted stock card */
.opener--full { background: var(--oak); }
.opener--full .opener-fig { position: relative; height: clamp(420px, 56vw, 980px); }
.opener--full .opener-card { position: relative; z-index: 1; margin: calc(clamp(120px, 14vw, 260px) * -1) 0 0 var(--gutter); width: min(720px, 62vw); background: var(--oak); color: var(--ink-deep); padding: clamp(28px, 3vw, 56px); display: grid; gap: 20px; }
.opener--full .opener-card .opener-no { font-size: clamp(90px, 9vw, 170px); }
.opener--full .opener-after { padding: 18px var(--gutter) clamp(40px, 4vw, 72px); }
@media (max-width: 900px) {
  .opener--split .opener-text, .opener--split .opener-fig, .opener--band .opener-no, .opener--band .opener-text { grid-column: 1 / -1; }
  .opener--split .opener-fig { margin-right: calc(var(--gutter) * -1); min-height: 0; }
  .opener--split .opener-fig img { aspect-ratio: 4 / 5; height: auto; max-height: 78vh; }
  .opener--full .opener-card { margin: -64px var(--gutter) 0; width: auto; }
}

/* Reading pages */
.page { padding-top: clamp(56px, 6vw, 112px); padding-bottom: clamp(56px, 6vw, 112px); }
.page + .page { padding-top: 0; }
.sub { padding-top: 48px; padding-top: clamp(36px, 4vw, 72px); padding-bottom: clamp(36px, 4vw, 72px); border-top: 1px solid var(--rule); }
.sub:first-child { border-top: 0; padding-top: 0; }
.sub-head { grid-column: 1 / span 4; }
.sub-body { grid-column: 5 / span 8; min-width: 0; }
.sub-wide { grid-column: 1 / -1; min-width: 0; }
.sub-head h3 { position: sticky; top: 64px; }
@media (max-width: 900px) {
  .sub-head, .sub-body { grid-column: 1 / -1; }
  .sub-head h3 { position: static; }
}

.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 58px); line-height: 1.08; letter-spacing: -.01em; margin: 0; max-width: 22ch; text-wrap: balance; }
.statement em { font-style: italic; color: var(--brick); }
.pull { grid-column: 1 / -1; margin: 0; }

.rows { margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px var(--gap); padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row dt { font-family: var(--sans); font-stretch: 88%; font-weight: 600; font-size: 16px; line-height: 1.35; }
.row dd { margin: 0; font-size: var(--fs-body); line-height: 1.55; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cols2 { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--slate); padding-top: 16px; }
.pillar p { margin: 0; font-size: var(--fs-body); line-height: 1.55; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-stretch: 92%; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 600; font-stretch: 82%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); padding: 0 16px 10px 0; border-bottom: 1px solid var(--slate); }
.table td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table td.serif { font-family: var(--serif); font-size: 17px; }

/* Voice */
.pairs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--slate); }
.pairs > div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); font-size: var(--fs-body); line-height: 1.45; }
.pairs > div:nth-child(odd) { padding-right: var(--gap); }
.pairs .head { font-family: var(--sans); font-stretch: 82%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); padding-block: 12px; }
.pairs .no { color: var(--stone); text-decoration: line-through; text-decoration-color: rgba(155, 58, 41, .55); text-decoration-thickness: 1px; }
.rewrite { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rewrite figure { margin: 0; padding: 22px 24px 24px; }
.rewrite .before { background: var(--plaster-2); }
.rewrite .after { background: var(--paper); border-top: 3px solid var(--green); }
.rewrite blockquote { margin: 10px 0 0; font-size: var(--fs-body); line-height: 1.55; }
.rewrite .before blockquote { color: #3B4247; }
@media (max-width: 640px) { .rewrite, .pairs { grid-template-columns: 1fr; } .pairs > div:nth-child(odd) { padding-right: 0; } }
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.ladder li { display: grid; grid-template-columns: 2.2em 1fr; gap: 6px 14px; padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.ladder li::before { counter-increment: l; content: counter(l); font-family: var(--sans); font-size: 15px; color: var(--brick); font-variant-numeric: tabular-nums; padding-top: .35em; }
.ladder .lv { font-family: var(--sans); font-stretch: 82%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); display: block; margin-bottom: 4px; }
.ladder .lx { font-size: var(--fs-body); line-height: 1.4; }
.ladder li:nth-child(1) .lx { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 2.6vw, 44px); line-height: 1; }
.ladder li:nth-child(2) .lx { font-size: clamp(21px, 1.6vw, 26px); }
.words { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.words li { font-family: var(--sans); font-stretch: 88%; font-size: 15px; padding: 6px 10px 5px; background: var(--plaster-2); }
.words li s { text-decoration-color: var(--brick); }

/* Identity */
.lockup-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.stage { position: relative; min-height: 260px; display: grid; place-items: center; padding: 48px 28px 52px; }
.stage .cap { position: absolute; left: 16px; bottom: 12px; right: 16px; }
.stage--plaster { background: var(--paper); }
.stage--green { background: var(--green); color: var(--plaster); }
.stage--green .cap { color: var(--lichen); }
.stage--oak { background: var(--oak); color: var(--ink-deep); }
.stage--oak .cap { color: #3F2A16; }
.stage--photo { background: #222 center / cover no-repeat; }
.stage--wide { grid-column: 1 / -1; min-height: 320px; }
.wm { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .38em; line-height: 1; white-space: nowrap; margin-right: -.38em; }
.wm-lg { font-size: clamp(22px, 3.2vw, 58px); }
.wm-md { font-size: clamp(16px, 1.8vw, 28px); }
.wm-sm { font-size: 15px; }
.aff { display: block; font-family: var(--sans); font-stretch: 82%; letter-spacing: .01em; text-transform: none; font-size: .6em; margin-top: .62em; }
.lock-inline { display: flex; align-items: baseline; gap: .9em; flex-wrap: wrap; justify-content: center; }
.lock-inline .aff { display: inline; margin: 0; font-size: .62em; }
.lock-stacked { text-align: center; }
.lock-stacked .wm { display: block; }
.lock-stacked .wm + .wm { margin-top: .32em; }
.lock-stacked .aff { margin-top: 1em; }
.avatar { width: 112px; height: 112px; background: var(--green); color: var(--plaster); display: grid; place-items: center; font-family: var(--serif); font-size: 76px; line-height: 1; padding-bottom: 6px; box-sizing: border-box; }
.space-demo { position: relative; padding: 40px; outline: 1px dashed rgba(155, 58, 41, .7); outline-offset: 0; }
.space-demo::before, .space-demo::after { content: 'x'; position: absolute; font-family: var(--sans); font-size: 12px; color: var(--brick); }
.space-demo::before { left: 14px; top: 50%; transform: translateY(-50%); }
.space-demo::after { right: 14px; top: 50%; transform: translateY(-50%); }
.misuse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.misuse figure { margin: 0; }
.misuse .tile { background: var(--paper); height: 150px; display: grid; place-items: center; position: relative; overflow: hidden; }
.misuse .tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(155, 58, 41, .8) 50%, transparent calc(50% + 1px)); pointer-events: none; }
.misuse figcaption { margin-top: 10px; }
@media (max-width: 900px) { .misuse { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lockup-stage { grid-template-columns: 1fr; } }

/* Typography */
.specimen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.face { background: var(--paper); padding: 28px; padding: clamp(22px, 2.4vw, 40px); display: grid; gap: 14px; align-content: start; }
.face .big { font-size: clamp(64px, 7vw, 132px); line-height: .9; margin: 0; }
.face--serif .big { font-family: var(--serif); font-weight: 700; }
.face--sans .big { font-family: var(--sans); font-weight: 500; font-stretch: 100%; letter-spacing: -.01em; }
.face .glyphs { margin: 0; font-size: 22px; line-height: 1.3; word-break: break-all; }
.face--serif .glyphs { font-family: var(--serif); }
.face--sans .glyphs { font-family: var(--sans); }
.widths { display: grid; gap: 4px; margin: 0; }
.widths span { font-family: var(--sans); font-size: 28px; line-height: 1.1; }
.widths small { font-family: var(--sans); font-stretch: 82%; font-size: 12px; color: var(--stone); letter-spacing: .05em; margin-left: .6em; }
@media (max-width: 900px) { .specimen { grid-template-columns: 1fr; } }
.scale { border-top: 1px solid var(--slate); }
.scale-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap); padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.scale-row .spec { font-family: var(--sans); font-stretch: 88%; font-size: 13px; line-height: 1.45; color: var(--stone); }
.scale-row .spec b { display: block; font-weight: 600; color: var(--slate); font-size: 14px; margin-bottom: 2px; }
.scale-row .ex { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .scale-row { grid-template-columns: 1fr; } }
.t-display { font-family: var(--serif); font-weight: 700; font-size: clamp(56px, 6.4vw, 96px); line-height: .94; letter-spacing: -.012em; }
.t-h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 3.6vw, 60px); line-height: 1.02; letter-spacing: -.01em; }
.t-h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.1; }
.t-h3 { font-family: var(--sans); font-stretch: 92%; font-weight: 600; font-size: 22px; line-height: 1.25; }
.t-body { font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.t-meta { font-family: var(--sans); font-stretch: 82%; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.t-cap { font-family: var(--sans); font-stretch: 82%; font-size: 13px; line-height: 1.4; color: var(--stone); }
.t-price { font-family: var(--sans); font-stretch: 116%; font-weight: 500; font-size: var(--fs-price); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; line-height: 1; }
.t-data { font-family: var(--sans); font-stretch: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }

/* Color */
.stocks { display: grid; grid-template-columns: 5fr 4fr 3fr; grid-template-rows: auto auto; gap: 6px; }
.stock { position: relative; min-height: 240px; padding: 22px 22px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.stock h4 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.2vw, 36px); line-height: 1; }
.stock p { margin: 0; font-family: var(--sans); font-stretch: 92%; font-size: 14px; line-height: 1.45; max-width: 30ch; }
.stock .hex { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy { font: inherit; font-stretch: 82%; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: inherit; background: transparent; border: 1px solid currentColor; padding: 6px 9px 5px; cursor: pointer; min-height: 32px; transition: background-color var(--dur-quick) var(--ease-settle); }
.copy:hover { background: rgba(255, 255, 255, .12); }
.stock--green { background: var(--green); color: var(--plaster); grid-row: span 2; min-height: 500px; }
.stock--plaster { background: var(--plaster); color: var(--slate); outline: 1px solid var(--rule); outline-offset: -1px; grid-row: span 2; }
.stock--oak { background: var(--oak); color: var(--ink-deep); }
.stock--brick { background: var(--brick); color: var(--plaster); }
.inks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ink { padding: 16px 16px 14px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; font-family: var(--sans); font-stretch: 92%; font-size: 14px; line-height: 1.35; }
.ink b { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.ratio { display: flex; height: 64px; margin-top: 20px; }
.ratio > span { display: flex; align-items: flex-end; padding: 8px 10px; font-family: var(--sans); font-stretch: 82%; font-size: 12px; letter-spacing: .04em; min-width: 0; overflow: hidden; white-space: nowrap; }
@media (max-width: 900px) { .stocks { grid-template-columns: 1fr 1fr; } .stock--green, .stock--plaster { grid-row: auto; min-height: 260px; } .inks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stocks { grid-template-columns: 1fr; } }
.swatch-dot { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; outline: 1px solid rgba(0,0,0,.15); outline-offset: -1px; }
.pass { color: #2D5A3A; font-weight: 600; }
.fail { color: var(--brick); font-weight: 600; }

/* Photography */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery img { display: block; width: 100%; height: auto; object-fit: cover; }
.g-a { grid-column: 1 / span 7; } .g-a img { aspect-ratio: 3 / 2; }
.g-b { grid-column: 9 / span 4; margin-top: clamp(40px, 8vw, 160px) !important; } .g-b img { aspect-ratio: 4 / 5; object-position: 40% 50%; }
.g-c { grid-column: 2 / span 4; } .g-c img { aspect-ratio: 1 / 1; object-position: 30% 50%; }
.g-d { grid-column: 7 / span 6; margin-top: clamp(24px, 4vw, 80px) !important; } .g-d img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .g-a, .g-b, .g-c, .g-d { grid-column: 1 / -1; margin-top: 0 !important; } }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.dodont ul { margin: 0; padding: 0; list-style: none; }
.dodont li { padding: 12px 0 13px; border-top: 1px solid var(--rule); font-size: var(--fs-body); line-height: 1.45; }
.dodont h4 { margin: 0 0 8px; }
@media (max-width: 640px) { .dodont { grid-template-columns: 1fr; } }

/* Layout schematics */
.schem { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.schem figure { margin: 0; }
.board { background: var(--paper); aspect-ratio: 3 / 4; padding: 12px; display: grid; gap: 6px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, 1fr); }
.board i { display: block; background: var(--plaster-2); }
.board i.g { background: var(--green); }
.board i.o { background: var(--oak); }
.board i.b { background: var(--brick); }
.board i.ph { background: repeating-linear-gradient(135deg, #C9C6BD 0 2px, #D5D3CB 2px 9px); }
.board i.t { background: transparent; border-top: 2px solid var(--slate); }
@media (max-width: 900px) { .schem { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .schem { grid-template-columns: 1fr; } }
.movements { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gap); }
.movements li { break-inside: avoid; display: grid; grid-template-columns: 2.4em 1fr; gap: 2px 10px; padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.movements .n { font-family: var(--sans); color: var(--brick); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: .2em; }
.movements b { font-family: var(--serif); font-size: 20px; font-weight: 700; display: block; margin-bottom: 3px; }
.movements span { font-size: 16px; line-height: 1.5; }
@media (max-width: 640px) { .movements { columns: 1; } }

/* Interface: controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px; font-family: var(--sans); font-stretch: 88%; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: var(--brick); color: var(--plaster); transition: background-color var(--dur-quick) var(--ease-settle), color var(--dur-quick) var(--ease-settle), border-color var(--dur-quick) var(--ease-settle); }
.btn:hover { background: #87301F; }
.btn--line { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--line:hover { background: var(--slate); color: var(--plaster); }
.btn--plaster { background: var(--plaster); color: var(--green); }
.btn--plaster:hover { background: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--plaster-2); color: #4F5551; border-color: transparent; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.panel { padding: 28px; padding: clamp(22px, 2.4vw, 40px); }
.panel--green { background: var(--green); color: var(--plaster); }
.panel--paper { background: var(--paper); }
.panel--oak { background: var(--oak); color: var(--ink-deep); }
.textlink { color: var(--brick); text-decoration: underline; text-underline-offset: .2em; }
.panel--green .textlink { color: var(--clay); }

.field { display: grid; gap: 7px; }
.field label, .field .label { font-family: var(--sans); font-stretch: 88%; font-weight: 600; font-size: 14px; }
.field .hint { font-family: var(--sans); font-stretch: 88%; font-size: 13px; color: var(--stone); }
.input, select.input, textarea.input { font: inherit; font-family: var(--sans); font-stretch: 100%; font-size: 16px; color: var(--slate); background: var(--paper); border: 1px solid #7A807C; border-radius: 0; min-height: 48px; padding: 11px 13px; width: 100%; box-sizing: border-box; transition: border-color var(--dur-quick) var(--ease-settle); }
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: #6D736F; }
.input:hover { border-color: var(--slate); }
.input:focus { outline: 2px solid var(--brick); outline-offset: 1px; border-color: var(--slate); }
.field.error .input { border-color: var(--brick); box-shadow: inset 3px 0 0 var(--brick); }
.field .err { font-family: var(--sans); font-stretch: 88%; font-size: 13px; color: var(--brick); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--gap); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.disclose { font-family: var(--sans); font-stretch: 88%; font-size: 13px; line-height: 1.5; color: var(--stone); margin: 0; }
.confirm { display: none; border-top: 3px solid var(--green); background: var(--paper); padding: 18px 20px; font-size: 17px; line-height: 1.5; }
.confirm.show { display: block; }

/* Property presentation */
.prop-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.prop-feature .ph { grid-column: 1 / span 8; position: relative; margin: 0; }
.prop-feature .ph img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 65%; }
.prop-feature .info { grid-column: 9 / span 4; display: grid; gap: 16px; padding-bottom: 6px; }
.addr { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.3vw, 40px); line-height: 1.04; margin: 0; letter-spacing: -.005em; }
.town { font-family: var(--sans); font-stretch: 82%; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--stone); }
.facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 15px; font-variant-numeric: tabular-nums; }
.facts li + li::before { content: ''; display: inline-block; width: 1px; height: .9em; background: #7A807C; margin: 0 .7em; vertical-align: -1px; }
.character { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; margin: 0; }
.tag { position: absolute; left: 0; top: 18px; background: var(--plaster); color: var(--slate); font-family: var(--sans); font-stretch: 88%; font-size: 13px; font-weight: 600; padding: 8px 12px 7px; }
.tag b { color: var(--brick); font-weight: 600; }
.save { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 10px; background: rgba(28, 33, 36, .62); color: var(--plaster); border: 0; font-family: var(--sans); font-stretch: 88%; font-size: 14px; cursor: pointer; transition: background-color var(--dur-quick) var(--ease-settle); }
.save:hover { background: rgba(28, 33, 36, .82); }
.save svg { width: 18px; height: 18px; }
.save svg path { fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill var(--dur-quick) var(--ease-settle); }
.save[aria-pressed="true"] { background: var(--plaster); color: var(--brick); }
.save[aria-pressed="true"] svg path { fill: currentColor; }
.attr { font-family: var(--sans); font-stretch: 88%; font-size: 12.5px; line-height: 1.45; color: var(--stone); border-top: 1px solid var(--rule); padding-top: 10px; margin: 0; }
@media (max-width: 900px) { .prop-feature .ph, .prop-feature .info { grid-column: 1 / -1; } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px) var(--gap); }
.card { display: grid; gap: 10px; align-content: start; position: relative; }
.card .ph { position: relative; margin: 0 0 4px; }
.card .ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .addr { font-size: 22px; }
.card .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card a.cover-link { position: absolute; inset: 0; z-index: 1; }
.card .save { z-index: 2; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.results { border-top: 1px solid var(--slate); }
.result { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.result img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.result .addr { font-size: 20px; }
.result .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.result .save { position: static; background: transparent; color: var(--slate); border: 1px solid #7A807C; }
.result .save[aria-pressed="true"] { color: var(--brick); border-color: var(--brick); background: transparent; }
@media (max-width: 640px) { .result { grid-template-columns: 112px minmax(0, 1fr); } .result img { width: 112px; } .result .right { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; } }

.detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.detail-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 6px; height: clamp(320px, 38vw, 620px); }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery .main { grid-row: span 2; }
.detail-gallery .more { position: relative; }
.detail-gallery .more span { position: absolute; right: 10px; bottom: 10px; background: var(--plaster); font-family: var(--sans); font-stretch: 88%; font-size: 13px; font-weight: 600; padding: 7px 10px 6px; }
.detail-main { grid-column: 1 / span 8; min-width: 0; }
.detail-side { grid-column: 9 / span 4; }
.detail-side .panel { position: sticky; top: 64px; display: grid; gap: 14px; }
.fact-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--slate); margin: 22px 0 28px; }
.fact-table div { padding: 12px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.fact-table dt { font-family: var(--sans); font-stretch: 82%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.fact-table dd { margin: 4px 0 0; font-family: var(--sans); font-stretch: 108%; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.map { position: relative; aspect-ratio: 16 / 9; background: #D9D7CF; overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pinlabel { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -130%); background: var(--slate); color: var(--plaster); font-family: var(--sans); font-stretch: 100%; font-size: 13px; font-weight: 600; padding: 6px 9px 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.map .pinlabel::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--slate); }
@media (max-width: 900px) { .detail-main, .detail-side { grid-column: 1 / -1; } .fact-table { grid-template-columns: 1fr 1fr; } .detail-gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } .detail-gallery .main { grid-row: auto; aspect-ratio: 4 / 3; } .detail-gallery .more:not(:first-of-type) { display: none; } }

/* Phone mocks */
.phones { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); justify-content: center; }
.phone-fig { margin: 0; display: grid; gap: 12px; justify-items: center; }
.phone { width: 276px; height: 580px; border: 10px solid var(--ink-deep); border-radius: 38px; background: var(--plaster); position: relative; overflow: hidden; font-family: var(--sans); box-sizing: content-box; }
.phone .bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; font-size: 11px; font-stretch: 82%; }
.phone .bar .wm { font-size: 11px; letter-spacing: .28em; }
.phone .p-img { height: 236px; background: center / cover no-repeat; }
.phone .p-body { padding: 14px; display: grid; gap: 6px; }
.phone .p-addr { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.05; }
.phone .p-price { font-stretch: 116%; font-weight: 500; font-size: 22px; font-variant-numeric: tabular-nums; }
.phone .p-facts { font-size: 12px; color: var(--stone); font-variant-numeric: tabular-nums; }
.phone .p-sticky { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 18px; background: var(--plaster); border-top: 1px solid var(--rule); }
.phone .p-sticky span { display: grid; place-items: center; min-height: 44px; font-size: 13px; font-stretch: 88%; font-weight: 600; }
.phone .p-sticky .a { background: var(--brick); color: var(--plaster); }
.phone .p-sticky .b { border: 1px solid var(--slate); }
.phone .scrim { position: absolute; inset: 0; background: rgba(28, 33, 36, .45); }
.phone .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--plaster); padding: 10px 16px 18px; display: grid; gap: 12px; }
.phone .grab { width: 40px; height: 4px; background: #7A807C; justify-self: center; border-radius: 2px; }
.phone .sheet h5 { margin: 0; font-family: var(--serif); font-size: 20px; }
.phone .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phone .chips span { font-size: 12px; font-stretch: 88%; padding: 8px 10px 7px; border: 1px solid #7A807C; }
.phone .chips span.on { background: var(--green); color: var(--plaster); border-color: var(--green); }
.phone .range { height: 3px; background: var(--plaster-2); position: relative; margin: 8px 4px; }
.phone .range::before { content: ''; position: absolute; left: 22%; right: 30%; top: 0; bottom: 0; background: var(--green); }
.phone .range i { position: absolute; top: 50%; width: 18px; height: 18px; background: var(--plaster); border: 2px solid var(--green); transform: translate(-50%, -50%); border-radius: 50%; }
.phone .sheet .go { display: grid; place-items: center; min-height: 44px; background: var(--brick); color: var(--plaster); font-size: 13px; font-weight: 600; font-stretch: 88%; }
.phone .maplist { display: grid; grid-template-rows: 260px 1fr; height: 100%; }
.phone .maplist .m { position: relative; background: #D9D7CF; }
.phone .maplist .m svg { width: 100%; height: 100%; display: block; }
.phone .toggle { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; background: var(--plaster); border: 1px solid var(--slate); font-size: 12px; font-stretch: 88%; font-weight: 600; }
.phone .toggle span { padding: 8px 14px 7px; }
.phone .toggle .on { background: var(--slate); color: var(--plaster); }
.phone .mini { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.phone .mini i { display: block; height: 56px; background: center / cover no-repeat; }
.phone .mini b { font-family: var(--serif); font-size: 15px; display: block; }
.phone .mini .pr { font-stretch: 112%; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 13px; }

/* Journeys */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--slate); }
.journey li { padding: 18px var(--gap) 22px 0; border-right: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.journey li:last-child { border-right: 0; }
.journey li + li { padding-left: 16px; }
.journey .step { font-family: var(--sans); font-size: 14px; color: var(--brick); font-variant-numeric: tabular-nums; }
.journey h4 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 1.8vw, 30px); line-height: 1; }
.journey p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.journey .we { font-family: var(--sans); font-stretch: 88%; font-size: 13.5px; line-height: 1.45; color: var(--stone); }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } .journey li:nth-child(3) { border-right: 0; } .journey li:nth-child(4) { padding-left: 0; } .journey li:nth-child(n+4) { border-top: 1px solid var(--rule); } }
@media (max-width: 640px) { .journey { grid-template-columns: 1fr; } .journey li { border-right: 0; padding-left: 0 !important; border-top: 1px solid var(--rule); } }
.valuation { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.valuation h4 { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3vw, 52px); line-height: 1; }
.valuation .vform { display: grid; gap: 12px; }
.valuation .vform .input { background: #F4EFE7; border-color: #6B5233; }
@media (max-width: 900px) { .valuation { grid-template-columns: 1fr; } }

/* Community + Field Notes */
.community { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.community .c-hero { grid-column: 1 / -1; position: relative; margin: 0; }
.community .c-hero img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; display: block; }
.community .c-title { grid-column: 1 / span 5; }
.community .c-title h4 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 4.4vw, 76px); line-height: .95; }
.community .c-intro { grid-column: 6 / span 7; }
.slots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--slate); }
.slots div { padding: 14px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.slots b { display: block; font-family: var(--sans); font-stretch: 88%; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.slots span { font-size: 15px; line-height: 1.45; color: var(--stone); }
@media (max-width: 900px) { .community .c-title, .community .c-intro { grid-column: 1 / -1; } .slots { grid-template-columns: 1fr 1fr; } .community .c-hero img { aspect-ratio: 3 / 2; } }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.note-card { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--slate); padding-top: 14px; }
.note-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.note-card h5 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.15; }
.note-card p { margin: 0; font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; } }

/* Motion */
.motion-demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.motion-demo figure { margin: 0; overflow: hidden; }
.motion-demo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.curve { width: 100%; max-width: 360px; height: auto; display: block; }
@media (max-width: 900px) { .motion-demo { grid-template-columns: 1fr; } }

/* Reveal: visible at rest; armed only for content still below the fold once the reader scrolls */
[data-reveal] { --reveal: inset(0 0 0 0); clip-path: var(--reveal); }
[data-reveal].armed { --reveal: inset(0 100% 0 0); }
[data-reveal].armed.in { --reveal: inset(0 0 0 0); transition: clip-path var(--dur-reveal) var(--ease-settle); }
[data-reveal] img { transition: transform 1400ms var(--ease-settle); }
[data-reveal].armed img { transform: scale(1.05); }
[data-reveal].armed.in img { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal].armed { --reveal: inset(0 0 0 0); } [data-reveal] img { transform: none !important; transition: none; } }

/* Affiliation */
.aff-rule { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.ratio-diagram { background: var(--paper); padding: 40px 28px; display: grid; gap: 18px; justify-items: start; }
.ratio-diagram .wm { font-size: clamp(20px, 2.4vw, 40px); }
.ratio-diagram .aff { font-size: calc(clamp(20px, 2.4vw, 40px) * .6); margin-top: .5em; }
.dim { font-family: var(--sans); font-stretch: 82%; font-size: 12px; color: var(--brick); letter-spacing: .04em; }
.patterns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 52px) var(--gap); }
.pattern { display: grid; gap: 12px; align-content: start; }
.pattern .demo { background: var(--paper); padding: 18px 20px; }
.nav-demo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav-demo .links { display: flex; gap: 18px; font-family: var(--sans); font-stretch: 88%; font-size: 14px; flex-wrap: wrap; }
.foot-demo { background: var(--green) !important; color: var(--plaster); display: grid; gap: 14px; }
.foot-demo p { margin: 0; font-family: var(--sans); font-stretch: 88%; font-size: 13px; line-height: 1.55; color: #D2D6D0; }
.bio-demo { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.headshot { width: 96px; aspect-ratio: 4 / 5; background: repeating-linear-gradient(135deg, #C9C6BD 0 2px, #D5D3CB 2px 9px); display: grid; place-items: end start; padding: 6px; box-sizing: border-box; font-family: var(--sans); font-stretch: 82%; font-size: 11px; color: #3A403C; line-height: 1.2; }
.bio-demo h5 { margin: 0; font-family: var(--serif); font-size: 22px; }
.bio-demo p { margin: 4px 0 0; font-family: var(--sans); font-stretch: 88%; font-size: 13.5px; line-height: 1.5; color: var(--stone); }
@media (max-width: 900px) { .aff-rule, .patterns { grid-template-columns: 1fr; } }
.model { background: var(--paper); padding: clamp(16px, 2vw, 32px); overflow-x: auto; }
.model svg { display: block; min-width: 760px; width: 100%; height: auto; }
.payload { background: var(--ink-deep); color: #E3E6E2; padding: 22px 24px; overflow-x: auto; margin: 0; font-size: 14px; line-height: 1.6; }
.payload .k { color: #E0937A; }
.payload .s { color: #BFD0C2; }

/* Colophon */
.colophon { background: var(--green); color: var(--plaster); padding-block: clamp(56px, 7vw, 128px) 40px; }
.colophon .wm { font-size: clamp(18px, 2.6vw, 44px); }
.colophon .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 88px); border-top: 1px solid var(--rule-on-green); padding-top: 22px; }
.colophon p { margin: 0; font-family: var(--sans); font-stretch: 88%; font-size: 14px; line-height: 1.6; color: #D2D6D0; }
.colophon h4 { margin: 0 0 8px; font-family: var(--sans); font-stretch: 82%; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--lichen); font-weight: 500; }
.colophon a { color: var(--plaster); }
.colophon .legal { margin-top: 48px; font-size: 12.5px; color: var(--lichen); }
@media (max-width: 900px) { .colophon .cols { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--slate); color: var(--plaster); font-family: var(--sans); font-stretch: 88%; font-size: 14px; padding: 10px 14px 9px; pointer-events: none; transition: opacity var(--dur-base) var(--ease-settle), transform var(--dur-base) var(--ease-settle); z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spread-folio { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.note-card .meta { order: 3; }
.opener-text .opener-no { grid-column: auto; }
.lock-stacked .wm { margin-right: 0; }
.wm-lg { font-size: clamp(13px, 3.2vw, 58px); }
.wm-md { font-size: clamp(12px, 3.3vw, 28px); }
@media (max-width: 640px) { .stage { padding: 40px 16px 52px; min-height: 200px; } .lock-inline { gap: .5em; } }
.opener-card .opener-no { grid-column: auto; }
.aff-rule > *, .sub-wide > *, .cols2 > *, .cols3 > * { min-width: 0; }
.ratio-diagram .wm { font-size: clamp(14px, 1.9vw, 34px); }
.ratio-diagram .aff { font-size: calc(clamp(14px, 1.9vw, 34px) * .6); }
.opener--split .opener-fig { min-height: 0; align-self: end; }
.opener--split .opener-fig img { aspect-ratio: 4 / 5; height: auto; max-height: 78vh; }
.space-demo .wm { font-size: clamp(12px, 1.35vw, 22px); }
.opener--full .opener-no { color: var(--ink-deep); opacity: .9; }
.opener--full .cap { color: #3F2A16; }
.detail-gallery { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.detail-gallery > * { min-height: 0; min-width: 0; }
.detail-gallery .more img { height: 100%; }
@media (max-width: 900px) { .detail-gallery { grid-template-rows: auto; } .detail-gallery .more { aspect-ratio: 4 / 3; } }

/* text on brick: a warmer, lighter plaster for crisper contrast */
.btn, .open-book, .stock--brick, .phone .p-sticky .a, .phone .sheet .go, .tag-brick { color: #F7F5F1; }
.btn--line, .btn--plaster { color: var(--slate); }
.btn--plaster { color: var(--green); }
.btn[disabled] { color: #4F5551; }
.aff { font-size: max(12px, .6em); }
.lock-inline .aff { font-size: max(12px, .62em); }
.ratio-diagram .aff { font-size: max(12px, calc(clamp(14px, 1.9vw, 34px) * .6)); }
.misuse .tile { font-size: 11px; }

/* --- finish-review fixes --- */
/* Contents spread: DOM order 01–12, two columns split by one hairline */
.toc { grid-auto-flow: column; grid-template-rows: repeat(6, auto); background: linear-gradient(var(--rule), var(--rule)) 50% 0 / 1px 100% no-repeat; }
.toc li { border-top: 0; }
.toc a { padding: 12px 0 14px; }
@media (max-width: 560px) { .toc { grid-auto-flow: row; grid-template-rows: none; background: none; } .toc li { border-top: 1px solid var(--rule); } }
.spread-photo figcaption { left: 0; right: auto; bottom: 0; background: var(--green); color: var(--plaster); text-shadow: none; padding: 10px var(--gutter) 11px; max-width: calc(100% - 2 * var(--gutter)); }
.spread-tab { position: absolute; z-index: 1; left: 0; top: 0; margin: 0; background: var(--green); color: var(--plaster); padding: 18px var(--gutter) 16px; display: grid; gap: 6px; }
.spread-tab .wm { font-size: clamp(12px, 1.05vw, 17px); }
.spread-tab .aff { margin: 0; font-size: max(12px, .6em); color: var(--lichen); }
/* Band openers: a panoramic photograph strip under the title */
.opener-strip { grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1) 0; display: grid; gap: 10px; }
.opener-strip img { display: block; width: 100%; aspect-ratio: 32 / 9; object-fit: cover; height: auto; }
.opener-strip figcaption { padding-inline: var(--gutter); }
@media (max-width: 900px) { .opener-strip img { aspect-ratio: 16 / 9; } }
/* Paper stock: a real paper grain blended into every stock surface */
body, .cover, .opener, .colophon, .stock--green, .stock--oak, .panel--green, .panel--oak, .spread-stamp, .spread-tab, .spread-photo figcaption { background-image: url('../img/grain.jpg'); background-size: 400px 400px; background-blend-mode: soft-light; }
body { background-color: var(--plaster); }
.cover { background-color: var(--green); }
.opener { background-color: var(--green); }
.opener--oak, .opener--full { background-color: var(--oak); }
.colophon { background-color: var(--green); }
/* dark stocks take the grain at half strength to stay at the comp's printed-board amplitude */
.cover, .opener, .colophon, .stock--green, .stock--oak, .panel--green, .panel--oak, .spread-stamp, .spread-tab, .spread-photo figcaption { background-image: url('../img/grain-soft.jpg'); }
.panel--oak :focus-visible, .opener--oak :focus-visible, .stage--oak :focus-visible, .stock--oak :focus-visible { outline-color: var(--ink-deep); }
.panel--oak .input:focus { outline-color: var(--ink-deep); }
