/* Temple Town Partners: an almanac on blush paper. Literata for reading, Hanken Grotesk for the working parts. */

:root {
  --paper: #F6F0F0;
  --sheet: #FFFDFD;
  --ink: #3D1F3A;
  --text: #43303F;
  --muted: #6B5466;
  --petal: #D9B8C0;
  --petal-wash: #F2E5E8;
  --hair: #E6D3D8;
  --olive: #6B7A2E;
  --olive-ink: #56631F;
  --wine: #8B3A4F;
  --solid-bg: #3D1F3A;
  --solid-fg: #FFFDFD;
  --focus: #3D1F3A;
  --lift: 0 1px 2px rgba(61, 31, 58, .07), 0 14px 30px -18px rgba(61, 31, 58, .35);
  --st1-bg: #3D1F3A; --st1-fg: #FFFDFD;
  --st2-bg: #D9B8C0; --st2-fg: #3D1F3A;
  --st3-bg: #6B7A2E; --st3-fg: #FFFDFD;
  --st4-bg: repeating-linear-gradient(135deg, #3D1F3A 0 2.5px, #EAD7DC 2.5px 6.5px); --st4-fg: #3D1F3A;
  --st5-bg: #FFFDFD; --st5-fg: #3D1F3A;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1219;
    --sheet: #261A23;
    --ink: #F4E6EC;
    --text: #E7D7DF;
    --muted: #BCA6B4;
    --petal: #8E6878;
    --petal-wash: #33222E;
    --hair: #46313F;
    --olive: #A9B866;
    --olive-ink: #B9C878;
    --wine: #EC9FB2;
    --solid-bg: #E7C9D1;
    --solid-fg: #2A1527;
    --focus: #E7C9D1;
    --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 32px -18px rgba(0, 0, 0, .7);
    --st1-bg: #E7C9D1; --st1-fg: #2A1527;
    --st2-bg: #7A5468; --st2-fg: #FFF6F9;
    --st3-bg: #A9B866; --st3-fg: #1C1219;
    --st4-bg: repeating-linear-gradient(135deg, #E7C9D1 0 2.5px, #4A3344 2.5px 6.5px); --st4-fg: #F4E6EC;
    --st5-bg: #261A23; --st5-fg: #F4E6EC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1C1219;
  --sheet: #261A23;
  --ink: #F4E6EC;
  --text: #E7D7DF;
  --muted: #BCA6B4;
  --petal: #8E6878;
  --petal-wash: #33222E;
  --hair: #46313F;
  --olive: #A9B866;
  --olive-ink: #B9C878;
  --wine: #EC9FB2;
  --solid-bg: #E7C9D1;
  --solid-fg: #2A1527;
  --focus: #E7C9D1;
  --lift: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 32px -18px rgba(0, 0, 0, .7);
  --st1-bg: #E7C9D1; --st1-fg: #2A1527;
  --st2-bg: #7A5468; --st2-fg: #FFF6F9;
  --st3-bg: #A9B866; --st3-fg: #1C1219;
  --st4-bg: repeating-linear-gradient(135deg, #E7C9D1 0 2.5px, #4A3344 2.5px 6.5px); --st4-fg: #F4E6EC;
  --st5-bg: #261A23; --st5-fg: #F4E6EC;
  color-scheme: dark;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--petal); color: #2A1527; }

.skiplink {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--solid-bg); color: var(--solid-fg); font: 600 15px/1 var(--sans);
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skiplink:focus { top: 12px; }

.page-w { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.masthead-row { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: nowrap; }
.mark-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.mark-link svg { width: 34px; height: 24px; flex: none; }
.mark-word { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.menu { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none;
  font: 500 15px/1.2 var(--sans); white-space: nowrap;
}
.menu a:hover { background: var(--petal-wash); color: var(--ink); }
.masthead-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.menu + .masthead-tools { margin-left: 8px; }
.mode-btn, .menu-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--hair); background: var(--sheet);
  color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none;
}
.mode-btn:hover, .menu-btn:hover { border-color: var(--petal); }
.mode-btn svg, .menu-btn svg { width: 20px; height: 20px; }
.mode-btn .glyph-moon { display: block; }
.mode-btn .glyph-sun { display: none; }
:root[data-theme="dark"] .mode-btn .glyph-moon { display: none; }
:root[data-theme="dark"] .mode-btn .glyph-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mode-btn .glyph-moon { display: none; }
  :root:not([data-theme="light"]) .mode-btn .glyph-sun { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-grid; }
  .masthead-tools, .menu + .masthead-tools { margin-left: auto; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--hair); box-shadow: var(--lift);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .menu li:last-child a { border-bottom: 0; }
  .menu a:hover { background: transparent; text-decoration: underline; }
}
@media (max-width: 479px) {
  .masthead-tools .pill { display: none; }
  .mark-word { font-size: 18px; }
}
@media (max-width: 400px) {
  .masthead-row { gap: 8px; }
  .mark-link { gap: 8px; }
  .mark-link svg { width: 30px; height: 22px; }
  .mark-word { font-size: 16.5px; }
  .masthead-tools { gap: 6px; }
  .mode-btn, .menu-btn { width: 40px; height: 40px; }
}

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px;
  font: 600 15px/1.1 var(--sans); letter-spacing: .005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--lift); text-decoration: none; }
.pill:active { transform: translateY(0); box-shadow: none; }
.pill[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.pill-solid { background: var(--solid-bg); color: var(--solid-fg); }
.pill-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill-line:hover { background: var(--sheet); }
.pill-small { min-height: 40px; padding: 9px 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .pill, .pill:hover { transition: none; transform: none; } }

.text-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.text-btn:hover { text-decoration-thickness: 2px; }

/* ---------- opening (hero) ---------- */
.opening { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px); }
.opening-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.opening h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.9rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 350;
  font-variation-settings: 'opsz' 72;
}
.opening-lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); margin: 24px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font: 500 14.5px/1.4 var(--sans); color: var(--muted); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 16px; height: 16px; color: var(--olive); flex: none; }
@media (max-width: 1023px) { .opening-grid { grid-template-columns: 1fr; } }

/* The almanac sheet */
.almanac { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 30px); box-shadow: var(--lift); }
.almanac-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 3px double var(--petal); }
.almanac-title { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.45rem); color: var(--ink); margin: 0; }
.almanac-sub { font: 500 14px/1.3 var(--sans); color: var(--muted); margin: 0; }
.seasons { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.season { padding: 22px 18px 20px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 10px; }
.season:first-child { border-left: 0; padding-left: 0; }
.season:last-child { padding-right: 0; }
.season svg { width: 40px; height: 40px; color: var(--ink); }
.season svg .tint { fill: var(--petal); stroke: none; }
.season-name { font: 500 13.5px/1.2 var(--sans); color: var(--muted); letter-spacing: .02em; margin: 0; }
.season-name strong { display: block; font: 400 clamp(1.35rem, 1.9vw, 1.65rem)/1.1 var(--serif); color: var(--ink); letter-spacing: -.01em; margin-top: 4px; }
.season-line { margin: 0; font-size: 16.5px; line-height: 1.5; }
.almanac-foot { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 12px; font: 500 14px/1.4 var(--sans); color: var(--muted); }
.almanac-foot p { margin: 0; }
@media (max-width: 760px) {
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season { padding: 18px 14px; }
  .season:nth-child(odd) { border-left: 0; padding-left: 0; }
  .season:nth-child(even) { padding-right: 0; }
  .season:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .season { animation: season-in 640ms cubic-bezier(.2, .7, .2, 1) both; }
  .js .season:nth-child(2) { animation-delay: 110ms; }
  .js .season:nth-child(3) { animation-delay: 220ms; }
  .js .season:nth-child(4) { animation-delay: 330ms; }
}
@keyframes season-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- chapters ---------- */
.chapter { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--hair); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.chapter-head h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.08; letter-spacing: -.02em; font-variation-settings: 'opsz' 60; }
.chapter-head p { margin-top: 16px; color: var(--muted); max-width: 30em; }
@media (min-width: 1024px) { .chapter-grid > .chapter-head { position: sticky; top: 100px; } }
.chapter-head.is-wide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 3.6vw, 48px); }
.chapter-head.is-wide p { margin-top: 0; }
@media (max-width: 1023px) {
  .chapter-grid, .chapter-head.is-wide { grid-template-columns: 1fr; }
  .chapter-head.is-wide p { margin-top: 0; }
}

/* ---------- what we buy ---------- */
.holdings { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.holding { padding: 22px 0 26px; border-top: 1px solid var(--petal); display: flex; flex-direction: column; gap: 10px; }
.holding h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.holding p { margin: 0; }
.holding .first-read { font: 500 14.5px/1.45 var(--sans); color: var(--muted); margin-top: auto; padding-top: 6px; }
.holding .first-read b { font-weight: 600; color: var(--ink); }
@media (max-width: 1023px) { .holdings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .holdings { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.ruler-box { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); margin-bottom: 28px; }
.ruler-caption { margin: 0 0 22px; font-size: 1.12rem; color: var(--ink); }
.ruler { position: relative; height: 18px; border-radius: 999px; background: var(--petal-wash); border: 1px solid var(--hair); }
.ruler-band { position: absolute; top: -1px; bottom: -1px; left: 33.333%; width: 33.333%; background: var(--petal); border-radius: 999px; }
.ruler-marks { position: relative; height: 26px; margin-top: 8px; font: 600 14px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.ruler-marks span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.ruler-marks span:first-child { transform: none; }
.ruler-marks span:last-child { transform: translateX(-100%); }
.ruler-marks .is-base { color: var(--ink); }
.ruler-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font: 500 14px/1.4 var(--sans); color: var(--muted); }
.ruler-key span { display: inline-flex; align-items: center; gap: 8px; }
.ruler-key i { display: inline-block; width: 22px; height: 10px; border-radius: 999px; background: var(--petal); }
.ruler-key i.is-range { background: var(--petal-wash); border: 1px solid var(--hair); }

.ledgers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ledger h3 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 3px double var(--petal); }
.ledger ul { list-style: none; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 16.5px; line-height: 1.45; }
.ledger .amt { font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .amt.gain { color: var(--olive-ink); }
.ledger .amt.loss { color: var(--wine); }
.ledger-cta { margin-top: 28px; }
@media (max-width: 760px) { .ledgers { grid-template-columns: 1fr; } }

/* ---------- process: the calendar strip ---------- */
.calendar { list-style: none; display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 4px; }
.day {
  position: relative; aspect-ratio: 1 / 1.35; min-height: 52px; border-radius: 8px;
  border: 1px solid var(--hair); background: var(--sheet);
  display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0 0;
  font: 600 13px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; overflow: hidden;
  transition: opacity 160ms ease, transform 160ms ease;
}
.day-num { display: block; }
.day-fill { display: flex; flex-direction: column; height: 46%; }
.day-fill i { flex: 1; display: block; }
.day-fill .s1 { background: var(--st1-bg); }
.day-fill .s2 { background: var(--st2-bg); }
.day-fill .s3 { background: var(--st3-bg); }
.day-fill .s4 { background: var(--st4-bg); }
.day-fill .s5 { background: var(--st5-bg); box-shadow: inset 0 0 0 2px var(--ink); border-radius: 0 0 7px 7px; }
.day.is-marked { color: var(--ink); border-color: var(--petal); }
.calendar[data-focus] .day { opacity: .32; }
.calendar[data-focus="1"] .day.in-1, .calendar[data-focus="2"] .day.in-2, .calendar[data-focus="3"] .day.in-3,
.calendar[data-focus="4"] .day.in-4, .calendar[data-focus="5"] .day.in-5 { opacity: 1; transform: translateY(-2px); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .day { transition: none; } .calendar[data-focus] .day { transform: none !important; } }
.calendar-scale { display: flex; justify-content: space-between; margin: 10px 0 0; font: 500 14px/1.3 var(--sans); color: var(--muted); }

.stage-key { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.stage { border-radius: 16px; border: 1px solid var(--hair); background: var(--sheet); padding: 6px 6px 16px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.stage.is-on { border-color: var(--ink); box-shadow: var(--lift); }
.stage-btn {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; text-align: left;
  padding: 10px 10px; background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink);
}
.stage-btn:hover { background: var(--petal-wash); }
.swatch { grid-row: span 2; width: 22px; height: 22px; border-radius: 7px; }
.swatch.s1 { background: var(--st1-bg); }
.swatch.s2 { background: var(--st2-bg); }
.swatch.s3 { background: var(--st3-bg); }
.swatch.s4 { background: var(--st4-bg); }
.swatch.s5 { background: var(--st5-bg); box-shadow: inset 0 0 0 2px var(--ink); }
.stage-when { font: 600 13.5px/1.2 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-name { font: 500 1.12rem/1.2 var(--serif); }
.stage p { margin: 6px 10px 0; font-size: 16px; line-height: 1.5; }
.calendar-help { margin-top: 14px; font: 500 14.5px/1.4 var(--sans); color: var(--muted); }

@media (max-width: 1180px) {
  .calendar { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .stage-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .day { aspect-ratio: auto; min-height: 56px; }
  .stage-key { grid-template-columns: 1fr; }
}

/* ---------- private sale + fit ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.leaf { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); }
.leaf h3 { font-size: 1.35rem; margin-bottom: 14px; }
.marks { list-style: none; }
.marks li { position: relative; padding: 11px 0 11px 34px; border-top: 1px solid var(--hair); font-size: 16.5px; line-height: 1.5; }
.marks li:first-child { border-top: 0; }
.marks li svg { position: absolute; left: 0; top: 14px; width: 20px; height: 20px; }
.marks.is-yes svg { color: var(--olive-ink); }
.marks.is-no svg { color: var(--wine); }
.split-leaf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-leaf > div + div { border-left: 1px solid var(--petal); padding-left: clamp(20px, 2.6vw, 32px); }
.split-leaf > div:first-child { padding-right: clamp(20px, 2.6vw, 32px); }
@media (max-width: 760px) {
  .pair, .split-leaf { grid-template-columns: 1fr; }
  .split-leaf > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--petal); padding-top: 20px; margin-top: 12px; }
  .split-leaf > div:first-child { padding-right: 0; }
}

/* ---------- questions: tabs by topic ---------- */
.topic-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.topic-tab {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--hair); background: var(--sheet);
  font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.topic-tab:hover { border-color: var(--petal); }
.topic-tab[aria-selected="true"] { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }
.topic-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 52px); }
.topic-panel + .topic-panel { margin-top: 12px; }
.topic-panel:focus-visible { outline-offset: 8px; }
.topic-heading { grid-column: 1 / -1; font: 600 15px/1.2 var(--sans); color: var(--muted); margin: 18px 0 4px; }
.js .topic-heading { display: none; }
.qa { padding: 20px 0 24px; border-top: 1px solid var(--petal); }
.qa h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 8px; }
.qa p { margin: 0; }
@media (max-width: 760px) { .topic-panel { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1023px) { .enquiry-grid { grid-template-columns: 1fr; } }
.enquiry { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.correspondent { padding: clamp(4px, 1vw, 12px) 0; }
.correspondent-intro { font: 500 14.5px/1.4 var(--sans); color: var(--muted); margin: 0 0 6px; }
.correspondent h3 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); letter-spacing: -.015em; }
.correspondent .role { margin: 4px 0 14px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.particulars { margin: 18px 0 24px; border-top: 3px double var(--petal); }
.particulars div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.particulars dt { font: 600 14.5px/1.5 var(--sans); color: var(--muted); }
.particulars dd { margin: 0; font-size: 16.5px; overflow-wrap: anywhere; }

/* ---------- form parts (shared with the estimate page) ---------- */
.slot { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.slot-label { font: 600 15px/1.35 var(--sans); color: var(--ink); }
.slot-help { display: block; font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.slot-opt { font: 500 13.5px/1 var(--sans); color: var(--muted); margin-left: 6px; }
.slot input[type="text"], .slot input[type="email"], .slot input[type="number"], .slot input[type="url"], .slot select, .slot textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--hair);
  background: var(--paper); color: var(--text); font: 400 16px/1.4 var(--sans); appearance: none; -webkit-appearance: none;
}
.slot select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%238a7084' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.slot textarea { min-height: 96px; resize: vertical; }
.slot input:hover, .slot select:hover, .slot textarea:hover { border-color: var(--petal); }
.slot input:focus-visible, .slot select:focus-visible, .slot textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); border-radius: 12px; }
.slot[aria-invalid="true"] input, .slot[aria-invalid="true"] textarea, .slot[aria-invalid="true"] select { border-color: var(--wine); }
.slot-msg { font: 600 14px/1.4 var(--sans); color: var(--wine); min-height: 0; }
.slot-msg:empty { display: none; }
.slot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
@media (max-width: 560px) { .slot-pair { grid-template-columns: 1fr; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--petal-wash); border-radius: 14px; padding: 16px 18px; margin: 6px 0 18px; font: 400 14.5px/1.55 var(--sans); color: var(--text); }
.notice p { margin: 0 0 12px; }
.tick { display: flex; gap: 12px; align-items: flex-start; font: 600 15px/1.4 var(--sans); color: var(--ink); cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.form-note { font: 500 14.5px/1.45 var(--sans); margin: 14px 0 0; }
.form-note:empty { display: none; }
.form-note.is-good { color: var(--olive-ink); }
.form-note.is-bad { color: var(--wine); }

/* ---------- colophon (footer) ---------- */
.colophon { border-top: 3px double var(--petal); padding: clamp(40px, 5vw, 64px) 0 40px; margin-top: 0; }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 28px clamp(24px, 4vw, 56px); align-items: start; }
.colophon-title { display: flex; align-items: center; gap: 12px; font-style: italic; font-size: 1.35rem; color: var(--ink); margin: 0 0 12px; }
.colophon-title svg { width: 34px; height: 24px; color: var(--ink); }
.colophon p { font-size: 16px; line-height: 1.6; }
.colophon-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font: 500 15.5px/1.3 var(--sans); }
.colophon-small { grid-column: 1 / -1; border-top: 1px solid var(--hair); padding-top: 18px; font: 400 14px/1.5 var(--sans) !important; color: var(--muted); margin: 0; }
.colophon h2 { font: 600 14.5px/1.3 var(--sans); color: var(--muted); margin-bottom: 12px; }
@media (max-width: 860px) { .colophon-grid { grid-template-columns: 1fr; } }

/* ---------- plain pages (privacy, terms, 404) ---------- */
.plain { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.plain-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.plain h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; }
.plain .stamp { font: 500 14.5px/1.4 var(--sans); color: var(--muted); margin-top: 14px; }
.plain .intro { font-size: 1.15rem; color: var(--ink); }
.plain-body { max-width: 44em; }
.plain-body h2 { font-size: 1.45rem; margin: 36px 0 10px; padding-top: 20px; border-top: 1px solid var(--petal); }
.plain-body h2:first-of-type { margin-top: 28px; }
@media (max-width: 900px) { .plain-grid { grid-template-columns: 1fr; } }
.lost { min-height: 56vh; display: grid; align-content: center; }
.lost .cta-row { margin-top: 28px; }
