/* =====================================================================
   site.css — the shared half of the stylesheet.

   WHY THIS FILE EXISTS
   ⚠️  HISTORY, so the comments below are not read as current fact: this file
   was extracted from an earlier homepage design (docs/demo/journey.html) when
   product.html was added beside it. That homepage is no longer the site — the
   press edition is — and product.html is now the only page loading this file.
   The tokens here and the ones in index.html therefore say the same thing in
   two places, which is precisely the drift this file was created to avoid.
   Merging them is the next tidy-up, not a change of design.

   Adding a second page (product.html) meant either duplicating the token
   block or extracting it. Duplicated tokens drift: the two pages would agree
   today and disagree the first time an ink is corrected, and the failure is
   silent because both pages still render. So the shared part was lifted OUT of
   journey.html verbatim rather than retyped — the blocks below are the same
   bytes that were in its <style>, in the same order.

   WHAT IS SHARED, AND WHAT IS NOT
   Shared: the two inks and the paper, the reset, the type roles and scale, the
   CJK/Latin gap, the page measure, the sign, the foot.
   Not shared: anything that is one page's furniture — the porthole, the
   departures board, the magazine plates, the product rows. Those stay in the
   page that has them, because a shared file of things one page uses is just a
   slower way to duplicate.
   ===================================================================== */


/* ---------- tokens: the mono-color system, resolved once ---------- */
:root {
  color-scheme: light;

  /* --- paper ---------------------------------------------------------- */
  --g0:  #F5F1E8;   /* the substrate itself */
  --g1:  #EDE8DC;   /* substrate, one density down */
  --g2:  #FAF8F2;   /* substrate, one density up */

  /* --- the cobalt plate, by density ----------------------------------- */
  /* Each of these is Cobalt #2148B8 laid over the substrate at a stated
     coverage, computed rather than picked, so the "greys" are provably the
     same ink and not a second neutral creeping in. */
  --ink:  #12255E;  /* pooled ink — body and display */
  --ink2: #3D4C7B;  /* ~72% */
  --ink3: #616C8E;  /* ~65% — measured: 48% gave 2.85:1 and 60% gave 3.94:1;
                       this is the first density that clears 4.5 (4.61) */
  --rule: #C6CBD9;  /* ~22% — hairlines */

  /* --- the terracotta plate: SIGNAL ONLY ------------------------------ */
  /* One job. Current state, the thing being pointed at, nothing else. The
     moment this appears as decoration the two-ink discipline is gone. */
  --accent: #C65F38;
  --accent-text: #A94A26;   /* the same ink, denser, for text on paper */

  /* [EXT] The dark state. All three catalog substrates are light, and this
     site has a day/night switch. Not a third ink: the press run inverted —
     the paper becomes the light, the two inks stay the two inks. */

  /* Identical to index.html's, and the order matters: `ui-serif` sits LAST,
     not first. A generic family is allowed to resolve to a system CJK face on
     its own, and if it does it wins before the PressSong alias below is ever
     consulted — which is how this file ended up setting the detail page in a
     different face from the front page. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "PressSong", "Songti SC", "STSong", "Source Han Serif SC",
           "Noto Serif SC", ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --m: 8px;
  --gut: calc(var(--m) * 3);
  --page: min(100% - var(--m) * 6, 1216px);
  --r-s: 2px;   /* print has no soft corners; a plate edge is a cut */
  --r-m: 2px;
  --r-l: 2px;
  --r1: var(--r-s);
  --r2: var(--r-m);
  --lift:   0 1px 0 rgba(18, 37, 94, 0.10);
  --lift-2: 0 1px 0 rgba(18, 37, 94, 0.16);

  /* motion: the front page's curve and durations, value for value (index.html
     :root). Change them there and copy. */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-press: 120ms;
  --t-hover: 200ms;
  --t-rise: 420ms;
  --t-settle: 600ms;
}

/* The night run, and it is the HOMEPAGE'S night run, value for value.
   Measured 2026-09-02: six of these nine had drifted. The dark paper was
   #17171A against the front page's #14161C, and --ink3 was #8C8A86 — a WARM
   grey, which is a third ink on a page whose whole argument is that there are
   two. It showed up only on the detail page and only at night, which is
   exactly how a divergence like this survives.

   Do not edit these here. They are index.html's :root[data-press="night"];
   change them there and copy. */
/* The CJK alias, same as index.html's: it scopes 宋体 to the ideographs — and
   to the em dash and the ellipsis, which Iowan sets too short for a Chinese
   line — at no download cost, because every face named is one the system
   already has. Without it this page was picking a CJK face by luck. */
@font-face {
  font-family: "PressSong";
  src: local("Songti SC"), local("STSong"), local("Source Han Serif SC"),
       local("Noto Serif SC"), local("SimSun");
  unicode-range: U+2014, U+2026, U+3000-303F, U+3400-4DBF, U+4E00-9FFF,
                 U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
  font-display: swap;
}
@font-face {
  font-family: "PressSong";
  font-weight: 600 900;
  src: local("Songti SC Bold"), local("STSong"), local("Songti SC"),
       local("Source Han Serif SC"), local("SimSun");
  unicode-range: U+2014, U+2026, U+3000-303F, U+3400-4DBF, U+4E00-9FFF,
                 U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;
  font-display: swap;
}

:root[data-press="night"] {
  color-scheme: dark;
  --g0:  #14161C;
  --g1:  #1B1E27;
  --g2:  #0F1116;
  --ink:  #ECE8DF;
  --ink2: #AEB6CC;
  --ink3: #8B93A8;
  --rule: #333849;
  --accent: #E0784B;
  --accent-text: #E89468;
  --lift:   0 1px 0 rgba(0, 0, 0, 0.5);
  --lift-2: 0 1px 0 rgba(0, 0, 0, 0.7);
}


/* ---------- reset, type roles, the type scale, .lat, .wrap ---------- */
/* --- reset and page ----------------------------------------------------
   Restored: the token replacement above took the base rules with it, and the
   page ran with a transparent body and black inherited text — contrast
   measured 1.00 against the substrate because there was no substrate painted
   at all. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--g0);
  color: var(--ink);
  /* The page's reading voice, and it is the front page's: Iowan Old Style with
     宋体 scoped to the ideographs. It was var(--sans) — one click from a
     printed sheet into a system dialog. */
  font-family: var(--serif);
  font-size: 16px; line-height: 1.7;
  /* as on the front page: CJK has no italic, so refuse the synthetic slant */
  font-synthesis-style: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- type roles --------------------------------------------------------
   type_programmatic is the display voice: "dates and numerals may become the
   anchor, ruled clusters, unequal information blocks, bilingual-safe spacing".
   Years on the flight plan, star counts, leg codes, a departures board, CJK
   next to Latin — the catalog describes this page almost line for line.

   [EXT] A second role. The catalog picks one role per image; one image has one
   voice and a document has more than one. type_literary is the reading face:
   the positioning paragraph, the leg notes, the feature copy. Display never
   uses it and it never sets a label.
   -------------------------------------------------------------------- */
/* Display type is the reading serif, exactly as on the front page. This rule
   used to set it in a grotesk, which is why the same product name was a serif
   on the homepage and a sans one click later — the single most visible thing
   telling a reader the two pages were not one publication. -0.02em is the
   front page's own tracking for display serif (index.html `.entry h3`).

   Most of the selectors that used to be listed here — .part-t, .leg-place,
   .row-name b, .ix-what, .away b, .feat-txt h4, .row-txt h4 — belonged to an
   earlier design and matched nothing on this page. */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.standfirst, .p-motto { font-family: var(--serif); }

/* --- type scale ------------------------------------------------------
   Five sizes. Braun's own printed matter runs on about that many, and a
   sixth is nearly always a decision someone avoided making. */
.t-display { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.t-title   { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.t-body    { font-size: 1rem; line-height: 1.7; font-weight: 400; }
.t-small   { font-size: 0.875rem; line-height: 1.6; font-weight: 400; }
.t-label   { font-size: 0.6875rem; line-height: 1.4; font-weight: 500;
             letter-spacing: 0.14em; text-transform: uppercase; }
:where(h1,h2,h3,h4,p,dl,dd,ul,ol) { margin: 0; }

/* The quarter-em between 汉字 and Latin. The standard asks for about a
   quarter of an em where the two scripts meet; `text-autospace` is the
   property for it and this browser ignores it, so the gap is applied as a
   margin on the Latin run instead. A margin and not an inserted character,
   because an inserted character is a character a reader copies out. */
.lat { margin-inline: 0.12em; }

.wrap { width: var(--page); margin-inline: auto; }


/* ---------- the sign (sticky nav) ---------- */
.sign {
  position: sticky; top: 0; z-index: 40;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--g0) 92%, transparent);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(2px)) {
  /* the only filter on the page, and it is on a 28px strip that never moves
     relative to its backdrop — the cost the no-live-filter rule is about does
     not apply to a bar */
  .sign { backdrop-filter: saturate(150%) blur(8px); }
}
.sign > * { display: block; }
.sign {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gut); padding: calc(var(--m) * 1.25) 0;
}
.sign-brand, .sign-links a {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--ink3);
}
.sign-brand { color: var(--ink); letter-spacing: 0.1em; }
.sign-links { display: flex; gap: calc(var(--m) * 3); }
.sign-links a { padding: 4px 0; border-bottom: 1px solid transparent; }
.sign-links a:focus-visible { color: var(--ink); }
/* Gated: on a touch screen `:hover` sticks after the tap and there is
   nothing to take it off again. `:focus-visible` above is keyboard-only
   and stays ungated, which is the point of it. */
@media (hover: hover) and (pointer: fine) { .sign-links a:hover { color: var(--ink); } }
.sign-links a[aria-current="true"] { color: var(--accent-text); border-bottom-color: currentColor; }
/* the bar sits on the page measure, like everything else */
.sign { padding-inline: max(calc((100% - var(--page)) / 2), calc(var(--m) * 2)); }


/* ---------- the foot ---------- */
/* --- foot ------------------------------------------------------------ */
.foot { width: var(--page); margin-inline: auto;
        padding-block: calc(var(--m) * 6) calc(var(--m) * 10);
        font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em;
        text-transform: uppercase; color: var(--ink3); }
/* The return link is the only navigation on the page, so it is set as quietly
   as the rest of the foot and gets its emphasis from the underline alone. */
.foot a { color: var(--ink2); text-decoration: underline;
          text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--ink); } }
.foot p + p { margin-top: var(--m); }

/* ---------- spec values that are links ---------- */
.spec dd a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule);
             }
@media (hover: hover) and (pointer: fine) {
  .spec dd a { transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease); }
}
@media (hover: hover) and (pointer: fine) {
  .spec dd a:hover { color: var(--accent-text); border-bottom-color: currentColor; }
}

/* ---------- the spec block ----------
   Both pages set one. Moved here out of journey.html when product.html
   started printing the same four rows, rather than copied. */
/* The spec block is the most Braun thing on the page: a value, its unit,
   and nothing else. */
.spec { display: grid; gap: calc(var(--m) * 1.5) var(--gut); margin-top: calc(var(--m) * 3);
        padding-top: calc(var(--m) * 2); border-top: 1px solid var(--rule);
        grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec dt { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
           letter-spacing: 0.12em; white-space: nowrap;
           text-transform: uppercase; color: var(--ink3); }
.spec dd { font-family: var(--mono); font-size: 0.75rem; color: var(--ink);
           overflow: hidden; text-overflow: ellipsis; }
.spec dd.prose { font-family: var(--sans); font-size: 0.8125rem; }
