/* Quiet Hours Studio — site v2. One stylesheet, no framework.
   Fonts are self-hosted (see fonts/LICENSE-fonts.txt). Bump ?v= in the HTML on every edit. */

/* Latin subset, same unicode-range Google Fonts uses */
@font-face{font-family:"Newsreader";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/newsreader-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/newsreader-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/figtree-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/figtree-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Size-adjusted fallbacks so the font swap does not shift the layout.
   Numbers from the fonts' own metrics (weighted lowercase advance width vs Georgia / Arial). */
@font-face{font-family:"Newsreader Fallback";src:local("Georgia");size-adjust:96.06%;ascent-override:76.51%;descent-override:27.59%;line-gap-override:0%}
@font-face{font-family:"Figtree Fallback";src:local("Arial"),local("Liberation Sans"),local("Helvetica");size-adjust:101.52%;ascent-override:93.58%;descent-override:24.63%;line-gap-override:0%}

:root{
  color-scheme:light;
  --ink:#14192b;--paper:#f6f1e7;--card:#fbf8f2;--amber:#d98e3f; /* amber = graphics only */
  --amber-ui:#b8721f;                     /* header dot + active-nav underline, light mode: 3.4:1 on paper (raw amber is 2.36:1) */
  --bg:var(--paper);--fg:var(--ink);--muted:#575b6b;--surface:var(--card);--line:#cfc6b0;                          /* hairlines, card edges, hero ring: 1.5:1 on paper (was #ddd5c3, 1.30:1) */
  --accent:#8a5212;                       /* text amber on paper: 5.66:1 */
  --btn-bg:var(--ink);--btn-fg:var(--paper);
  --serif:"Newsreader","Newsreader Fallback",Georgia,"Times New Roman",serif;
  --sans:"Figtree","Figtree Fallback",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --gutter:clamp(16px,5vw,32px);
}
/* Light-only palette by Owner decision (2026-09-23, dev-web + qa-audience recommended forcing
   light for boutique-brand consistency): no prefers-color-scheme:dark override. Do not re-add one
   without an explicit Owner decision to reverse this. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:1rem}
body{margin:0;background:var(--bg);color:var(--fg);font:400 1.0625rem/1.65 var(--sans);min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
main:focus{outline:none}
.wrap{width:min(100% - 2 * var(--gutter),66rem);margin-inline:auto}

h1,h2,h3{font-family:var(--serif);font-weight:500;color:var(--fg);margin:0;text-wrap:balance}
h1{font-size:clamp(2.15rem,1.4rem + 3.2vw,3.5rem);line-height:1.1;letter-spacing:-.015em}
h2{font-size:clamp(1.5rem,1.2rem + 1.2vw,2rem);line-height:1.2;letter-spacing:-.01em}
h3{font-size:1.25rem;line-height:1.3}
p{margin:0 0 1rem;max-width:62ch;text-wrap:pretty}
ul,ol{margin:0 0 1rem;padding-left:1.25rem;max-width:62ch}
li{margin-bottom:.4rem}

a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:2px}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:var(--gutter);top:.75rem;z-index:10;background:var(--btn-bg);color:var(--btn-fg);padding:.6rem 1rem;border-radius:6px}

/* ---- Header and wordmark ---- */
.site-header{padding-block:1.25rem}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem}
.brand{display:inline-flex;flex-direction:column;align-items:flex-start;color:var(--fg);text-decoration:none;line-height:1}
.brand:hover{text-decoration:none}
.brand-name{font:400 2rem/1 var(--serif);letter-spacing:0;white-space:nowrap}
/* Hidden wordmark fragments stay inline (zero size, not absolutely positioned) so a copied selection reads "Quiet Hours Studio";
   the link's accessible name is computed from these same fragments (no aria-label: it fails the label-content-name audit). */
.brand-name .sr-only{position:static;display:inline;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;font-size:0;line-height:0}
/* Ring stands in for the Q (wordmark version B: ring plus a short tail ending in the amber dot at 5 o'clock).
   Sized to Newsreader's Q bowl (0.696em tall, -0.01em to 0.686em); the tail overflows the box on purpose.
   Side margins bring the advance to the Q's own width (0.7765em). Pre-B markup: context/brand/wordmark-before-B/. */
.ring-dot{fill:var(--amber-ui)}
.ring{display:inline-block;width:.696em;height:.696em;margin-inline:.04em;vertical-align:-.01em;overflow:visible}
.brand-sub{font:500 .8125rem/1.2 var(--sans);letter-spacing:.06em;color:var(--muted);margin:.35rem 0 0 1px}
.site-nav ul{display:flex;flex-wrap:wrap;gap:0 1.5rem;list-style:none;margin:0;padding:0;max-width:none}
.site-nav li{margin:0}
.site-nav a{display:inline-block;padding:.6rem 0;color:var(--fg);text-decoration:none;font-weight:500;font-size:1rem;border-bottom:2px solid transparent}
.site-nav a:hover{border-bottom-color:var(--accent)}
.site-nav a[aria-current="page"]{border-bottom-color:var(--amber-ui)}

/* ---- Hero ---- */
.hero{padding-block:clamp(2.5rem,7vw,5.5rem) clamp(2.5rem,6vw,4.5rem)}
.hero .wrap{position:relative}
.hero h1{max-width:19ch}
.lede{font-size:clamp(1.125rem,1rem + .5vw,1.3rem);line-height:1.55;max-width:38rem;margin-top:1.25rem}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}
.hero-ring{position:absolute;right:0;top:50%;width:min(23rem,32vw);height:auto;transform:translateY(-50%);color:var(--line);pointer-events:none}

.btn{display:inline-block;padding:.75rem 1.25rem;border:1px solid var(--btn-bg);border-radius:8px;background:var(--btn-bg);color:var(--btn-fg);font:500 1rem/1.2 var(--sans);text-decoration:none}
.btn:hover{text-decoration:underline}
.btn--ghost{background:transparent;color:var(--fg);border-color:var(--fg)}
/* Outbound (other domain) links: ghost button + arrow. Secondary to the filled inward buttons. */
.btn--out:hover{background:var(--surface)}
.btn--out span{display:inline-block;margin-left:.4em;line-height:1;transition:transform .15s}
.btn--out:hover span{transform:translate(2px,-2px)}

/* ---- Sections ---- */
.section{padding-block:clamp(2.25rem,6vw,3.75rem);border-top:1px solid var(--line)}
.section > .wrap > h2{margin-bottom:.75rem}
.eyebrow{font:500 .8125rem/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:0 0 .5rem}
.cards{display:grid;gap:1rem;margin-top:1.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,16.5rem),1fr))}
.card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.5rem}
.card h3{margin-bottom:.5rem}
.card p{margin-bottom:.75rem}
.card .more{margin:auto 0 0;padding-top:.5rem}
.band{background:var(--surface);border-block:1px solid var(--line)}
.band .lede{margin-top:0}
.principles{list-style:none;padding:0;display:grid;gap:1.25rem 2rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));max-width:none;margin-top:1.5rem}
.principles li{margin:0}
.principles strong{display:block;font:500 1.125rem/1.3 var(--serif);margin-bottom:.25rem}
.principles span{display:block;max-width:34ch}

/* ---- Inner pages ---- */
.page-head{padding-block:clamp(2rem,6vw,4rem) clamp(1.5rem,4vw,2.5rem)}
.page-head .lede{margin-bottom:0}
.prose h2{margin:2.25rem 0 .6rem}
.prose h2:first-child{margin-top:0}
.updated{color:var(--muted);font-size:.9375rem}

.case{padding-block:clamp(2rem,5vw,3rem);border-top:1px solid var(--line)}
.case h2{margin-bottom:.35rem}
.case-meta{margin:.75rem 0 1.5rem}
.case-part{display:grid;gap:.25rem 2rem;grid-template-columns:1fr;padding-block:1rem;border-top:1px solid var(--line)}
.case-part h3{font-size:1.125rem}
.case-part p{margin:0}
@media (min-width:44rem){.case-part{grid-template-columns:11rem 1fr}}

/* ---- Illustrative sketch and proof lines (Custom builds) ---- */
.prose .principles{margin-top:.75rem}
.sketch{margin-top:1.25rem;padding:1.25rem clamp(1rem,3vw,1.75rem) .5rem;background:var(--surface);border:1px dashed var(--muted);border-radius:12px}
.sketch .eyebrow{margin-bottom:.35rem}
.sketch-title{font:500 1.25rem/1.3 var(--serif);margin:0 0 1rem;max-width:none}

/* ---- Footer ---- */
.site-footer{border-top:1px solid var(--line);padding-block:2rem 3rem;color:var(--muted);font-size:.9375rem}
.site-footer p{margin:0 0 .5rem;max-width:none}
.site-footer ul{display:flex;flex-wrap:wrap;gap:0 1.5rem;list-style:none;margin:0 0 1rem;padding:0;max-width:none}
.site-footer li{margin:0}
.site-footer a{display:inline-block;padding:.3rem 0}

@media (max-width:56rem){.hero-ring{display:none}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.btn--out span{transition:none}.btn--out:hover span{transform:none}}

/* ---- v3: proof panels, featured card, numbered principles ---- */
.proof{display:block;width:100%;height:auto;aspect-ratio:320/132;border-radius:8px}
.proof .p-ink{fill:var(--ink)}.proof .p-paper{fill:var(--paper)}.proof .p-card{fill:var(--card)}
.proof .p-amber{fill:var(--amber)}.proof .p-muted{fill:var(--muted)}.proof .p-line{fill:var(--line)}
.proof .p-edge{stroke:var(--line);stroke-width:1.5}
.proof .p-rule-paper{stroke:var(--paper);stroke-width:1.5;fill:none}
.proof .p-rule-ink{stroke:var(--ink);stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.proof .p-dash{stroke:var(--paper);stroke-width:1.5;stroke-dasharray:2 3;opacity:.7}
.proof .p-ticks{stroke:var(--paper);stroke-width:1;opacity:.45}
.proof-wrap{margin:0 0 1.1rem}
.card--feature .card-body{display:flex;flex-direction:column;flex:1}
.card--feature h4{font-size:1.5rem}
@media (min-width:44rem){.cards--pair{grid-template-columns:1.35fr 1fr}}
.principles--num{gap:1.5rem 2.5rem}
.principles--num li{border-top:2px solid var(--amber-ui);padding-top:.75rem}
.proof-cap{margin:.5rem 0 0;font-size:.875rem;line-height:1.45;color:var(--muted)}
.card .more-out{margin:.75rem 0 0}
.proof .p-rule-line{stroke:var(--line);stroke-width:1.5;fill:none}
.proof-key{list-style:none;margin:.75rem 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:.25rem 1rem;max-width:none;font-size:.9375rem;line-height:1.4}
.proof-key li{margin:0;display:flex;align-items:center;gap:.5rem}
.proof-key i{flex:none;width:.75rem;height:.75rem;border-radius:2px}
.proof-key .k-ink{background:var(--ink)}.proof-key .k-muted{background:var(--muted)}.proof-key .k-amber{background:var(--amber)}.proof-key .k-line{background:var(--line)}
.proof .p-cap{stroke:var(--ink);stroke-width:1.5;stroke-dasharray:3 3;fill:none}
h4{font:500 1.25rem/1.3 var(--serif);margin:0;color:var(--fg);text-wrap:balance}
.card h4{margin-bottom:.5rem}
.card .eyebrow{margin-bottom:.35rem}
.card .note,.case .note{margin:0 0 .75rem;font-size:.9375rem;line-height:1.45;color:var(--muted)}
.group-h{margin:2.25rem 0 0;padding-top:.85rem;border-top:1px solid var(--line);font-size:1.375rem;line-height:1.25}
.section .group-h:first-of-type{margin-top:1.5rem}
.prose > .group-h{font-size:clamp(1.5rem,1.2rem + 1.2vw,2rem)}
.group-h + .case{border-top:0;padding-top:1rem}
.case > h3{font-size:1.5rem;line-height:1.2;margin-bottom:.35rem}
.case-part h4{font-size:1.125rem;line-height:1.3}
.work-more{margin:1.25rem 0 0}

/* ---- v4: four-card For work grid (2 x 2) ---- */
@media (min-width:44rem){.cards--quad{grid-template-columns:repeat(2,1fr)}}
