/* Direction B, chosen 02/11/2026: three colours only.
   linen (page), graphite (text, dark bands), gold (accent: one word, one rule, one arrow at a time).
   Loaded after chrome.css on every page: restyles the shared header, phone menu and footer. */
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-style: normal; font-display: block; }

:root {
  --linen: #F1EBE1; --linen-2: #E8E0D3;
  --ink: #25211D; --ink-70: rgba(37, 33, 29, .7); --ink-55: rgba(37, 33, 29, .55); --ink-12: rgba(37, 33, 29, .12);
  --gold: #A47423;
  --on-ink: #F1EBE1; --on-ink-60: rgba(241, 235, 225, .6); --on-ink-14: rgba(241, 235, 225, .14);
  --sans-b: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif-b: "Instrument Serif", Georgia, serif;
  --ease-b: cubic-bezier(.2, .7, .1, 1);
}

/* page-to-page cross-fade (browsers that support it; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-b) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-b) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* header */
.ch-top { font-family: var(--sans-b); color: var(--ink); background: var(--linen); border-bottom: 1px solid var(--ink-12); min-height: 86px; }
.ch-top.over { background: transparent; border-bottom-color: transparent; color: var(--on-ink); }
.ch-brand { font: italic 400 27px/1 var(--serif-b); letter-spacing: 0; word-spacing: normal; }
.ch-links { font: 500 14.5px/1 var(--sans-b); gap: 32px; }
.ch-links a { opacity: .62; border-bottom-width: 1px; }
.ch-links a[aria-current] { opacity: 1; border-bottom-color: var(--gold); }
.ch-apply { height: auto; padding: 8px 0; border: 0; border-radius: 0; font: 600 14.5px/1 var(--sans-b); position: relative; }
.ch-apply::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform-origin: right; transition: transform .6s var(--ease-b); }
.ch-apply:hover { background: none; color: inherit; }
.ch-apply:hover::after { transform: scaleX(0); }
.ch-apply::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s .15s var(--ease-b); }
.ch-apply:hover::before { transform: scaleX(1); }
.ch-menu { width: 44px; height: 44px; border-width: 1px; }

/* phone menu */
.ch-sheet { background: var(--ink); color: var(--on-ink); font-family: var(--sans-b); }
.ch-sheet nav a { font: italic 400 46px/1.1 var(--serif-b); letter-spacing: 0; color: var(--on-ink); }
.ch-sheet nav a[aria-current] { color: var(--gold); }
.ch-sheet-mail a { color: var(--on-ink-60); }
.ch-menu[aria-expanded="true"] { color: var(--on-ink); }

/* buttons shared by header sheet and footer */
.ch-btn { background: var(--on-ink); color: var(--ink); font: 600 17px/1 var(--sans-b); padding: 20px 30px; border-radius: 2px; box-shadow: none; gap: 14px; }
.ch-btn::after { content: "\2192"; color: var(--gold); transition: transform .5s var(--ease-b); }
.ch-btn:hover::after { transform: translateX(4px); }

/* footer */
.ch-foot { background: var(--ink); color: var(--on-ink); font-family: var(--sans-b); }
.ch-foot .ch-big { font: 500 clamp(34px, 4.2vw, 60px)/1.05 var(--sans-b); letter-spacing: -.035em; word-spacing: normal; }
.ch-foot .ch-big em { font-family: var(--serif-b); font-weight: 400; color: var(--gold); letter-spacing: -.01em; }
.ch-foot .ch-big em a { color: inherit; }
.ch-aloha { font: italic 400 28px var(--serif-b); color: var(--gold); }
.ch-cols { border-top-color: var(--on-ink-14); }
.ch-cols h3 { font: 600 12px var(--sans-b); letter-spacing: .18em; color: var(--gold); }
.ch-cols a { color: var(--on-ink-60); font-size: 15px; transition: color .3s; }
.ch-cols a:hover { color: var(--on-ink); text-decoration: none; }
.ch-mail a { color: var(--on-ink); border-bottom-color: var(--gold); }
.ch-mail a:hover { color: var(--on-ink); border-color: var(--on-ink); }
.ch-legal { color: var(--on-ink-60); }
.ch-foot .ch-note { color: var(--on-ink-60); font-family: var(--sans-b); }

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

/* page transitions: the header stays put, only the page content moves */
.ch-top { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: 0s; }

/* small phones: the email address can wrap instead of pushing the page sideways */
.ch-foot .ch-big, .ch-foot .ch-big em { overflow-wrap: anywhere; }
.ch-btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 400px) { .ch-btn { padding: 18px 20px; font-size: 15.5px; } .ch-foot .ch-big em { white-space: normal; } }

/* footer opens on "Aloha, Dan" alone */
.ch-foot .ch-aloha { margin-top: 0; font-size: clamp(34px, 3.4vw, 48px); }

/* phone menu open: the header turns graphite with the sheet, so the name and the close button stay visible */
.ch-lock .ch-top { background: var(--ink); border-bottom-color: var(--on-ink-14); color: var(--on-ink); text-shadow: none; }
.ch-lock .ch-menu { color: var(--on-ink); border-color: var(--on-ink-60); }

/* phone menu: items centred */
.ch-sheet { align-items: center; text-align: center; }
.ch-sheet nav { justify-items: center; }

/* footer starts with "Aloha, Dan" only: smaller top space; no double gap after a dark section */
.ch-foot { padding-top: clamp(48px, 7vh, 72px); }
main > .sec.ink:last-child { padding-bottom: clamp(48px, 7vh, 72px); }
main > .sec.ink:last-child + .ch-foot, main:has(> .sec.ink:last-child) + .ch-foot { border-top: 1px solid var(--on-ink-14); }

/* video captions in the site's style: linen text, soft translucent graphite band, site font */
::cue { font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif; font-weight: 500; font-size: 0.92em; line-height: 1.35; color: #F1EBE1; background-color: rgba(37, 33, 29, .62); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }

/* footer: social links with icons */
.ch-cols .social { display: grid; gap: 9px; }
.ch-cols .social a, .ch-cols .social-icons a { display: inline-flex; align-items: center; gap: 10px; }
.ch-cols svg { width: 18px; height: 18px; flex: none; }
.ch-cols .social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.ch-cols .social-icons a { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--on-ink-14); border-radius: 50%; color: var(--on-ink-60); transition: color .3s, border-color .3s; }
.ch-cols .social-icons a:hover { color: var(--gold); border-color: var(--gold); }

/* legal lines in the footer: one idea per line, balanced */
.ch-legal { max-width: 720px; display: grid; gap: 6px; justify-items: center; font-size: 13px; line-height: 1.55; text-wrap: balance; }
.ch-legal span { display: block; }
.ch-legal a { margin-top: 6px; }
.ch-cols .social a { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; font-size: 14.5px; }
