/* Color preview (2026-11-17), two ideas for giving the palette clock more play. Preview only.
   1. The chip: the live pair in the nav. Click it and the whole site wears the pair, on every page, still ticking.
   2. Every move: a page change wipes through the live pair, and a case page opens over the pair, not the near black. */

/* ---------- 1. the chip (second pass, Kevin 2026-11-17): it sits left of the wordmark like a brand mark, the same
   height as the letters, no ring. Nothing says it can be clicked; it is an easter egg. ---------- */
.nav__brand{display:flex;align-items:center;gap:10px}
/* 16px, not the wordmark's 17: each half is a whole 8px and the square sits on a whole pixel in the 72px nav, so no
   edge is ever drawn soft (Kevin saw one half look shorter). It matches the flat letters; only the O's run taller. */
.chip{display:flex;width:16px;height:16px;padding:0;margin:0;border:0;background:none;cursor:pointer;flex:none;
  transition:transform .6s cubic-bezier(.16,.84,.24,1)}
.chip i{display:block;flex:0 0 50%;height:100%}
.chip i:first-child{background:var(--live-lo)}
.chip i:last-child{background:var(--live-hi)}
.chip:hover{transform:rotate(90deg)}
.chip:focus-visible{outline:2px solid var(--fg);outline-offset:4px}
/* a half never disappears into the page, and the mark always has contrast. Off the white page the whole square takes
   one color of the pair, so no third color comes in:
   - the footer's turn and the worn site (the page is the light color): the square is the dark color, like the type
   - the near-black top of About: the square is the pair's light color, every pair (Kevin, 2026-11-17: the dark half
     read too low there) */
html[data-field="1"] .chip,html[data-field="1"] .chip i{background:var(--fg)}   /* the square itself too, so no hairline can show between the halves */
html[data-theme="dark"]:not([data-field="1"]) .chip,html[data-theme="dark"]:not([data-field="1"]) .chip i{background:var(--live-lo)}
/* when the page changes mode (white to the pair, the dark top to white) the mark fades with everything else; home.css
   switches every other transition off for that second, so it is named here */
html.is-turning .chip i{transition:background-color 1.2s cubic-bezier(.45,0,.2,1)!important}
html.is-turning .chip{transition:transform .6s cubic-bezier(.16,.84,.24,1),background-color 1.2s cubic-bezier(.45,0,.2,1)!important}
@media (max-width:700px){.chip{width:14px;height:14px}.nav__brand{gap:8px}}

/* wearing: the nav and the case-page backdrop follow too (data-field already turns the rest) */
html[data-wear="1"] body{background:var(--page)}

/* ---------- 2. every move ---------- */
@view-transition{navigation:none}   /* the wipe below does the page change in this preview */
html.is-covered{background:var(--cv-lo)}
html.is-covered body{opacity:0}
.curtain{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;pointer-events:none;
  background:var(--c-lo);color:var(--c-hi);transform:translateY(100%)}
.curtain svg{height:28px;width:auto;display:block}
.curtain.is-in{transform:none;transition:transform .7s cubic-bezier(.76,0,.24,1)}
.curtain.is-held{transform:none}
.curtain.is-out{transform:translateY(-100%);transition:transform .8s cubic-bezier(.76,0,.24,1)}
.curtain svg{opacity:0;transform:translateY(12px);transition:opacity .35s ease,transform .6s cubic-bezier(.16,.84,.24,1)}
.curtain.is-in svg,.curtain.is-held svg{opacity:1;transform:none;transition-delay:.25s}
.curtain.is-held svg{transition-delay:0s}
.curtain.is-out svg{opacity:0;transform:translateY(-12px);transition:opacity .25s ease,transform .5s ease}

/* a case page opens over the live pair: the page pushes back onto the darker of the two */
html.has-sheet{background:var(--live-hi)}
html:active-view-transition-type(unsheet)::view-transition-image-pair(root),
html:active-view-transition-type(page)::view-transition-image-pair(root){background:var(--live-hi,#001014)}

@media (prefers-reduced-motion:reduce){.curtain{display:none}}

/* ---------- the phone menu carries the mark too (Kevin, 2026-11-17): the menu is near black, so it is the one full
   square in the pair's light color, and the wordmark is the nav's size (it was 17px over the nav's 15) ---------- */
.menu__mark{display:flex;align-items:center;gap:10px}
.menu__chip{display:block;width:16px;height:16px;flex:none;background:var(--live-lo)}
@media (max-width:700px){.menu__mark{gap:8px}.menu__chip{width:14px;height:14px}.menu__mark svg{height:15px}}

/* ---------- What we do list (Kevin, 2026-11-17). The big sans terms were a third voice, so the term and its line are
   both set exactly as the section's sub-line (.sh__p): same size, leading, tracking and grey. The term is only a step
   heavier and in the ink. Second pass the same day: the line was a lighter grey than the sub-line; now it is the same.
   On desktop the section is one lockup: the words on the left, the list as a small table on the right, in the same
   right-hand 44% the process films use, its last rule level with the bottom of the button. ---------- */
.prog{padding:22px 0;align-items:baseline}
.prog h3{font-family:var(--text);font-weight:500;font-size:18px;line-height:1.5;letter-spacing:-.01em;color:var(--fg)}
.prog p{font-size:18px;line-height:1.5;letter-spacing:-.01em;color:var(--body)}
@media (max-width:700px){.prog{padding:18px 0;gap:2px}.prog h3,.prog p{font-size:17px}}
@media (min-width:1101px){
  .what>.wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,44%);column-gap:64px;align-items:end}
  .what .progs{margin-top:0;border-top:1px solid var(--hair)}
  .what .prog{grid-template-columns:8.5em minmax(0,1fr);gap:24px;padding:20px 0}
  .what .prog p{white-space:normal;overflow:visible;text-overflow:clip;max-width:none}
}

/* ---------- two sans sizes (Kevin, 2026-11-17: "They're different sizes... cut them down"). Inter ran at 20, 18, 17,
   16, 15, 14, 13 and 12.5. Now anything you read is 18px (17 on a phone) and anything small is 15px, on every page.
   Headlines stay serif at their own sizes. !important because the old sizes are spread over five sheets and their
   phone blocks; fold these into those rules when this ships. ---------- */
.c__sub,.lede,.sh__p,.body,.prog h3,.prog p,.cs__cap b,summary,.faq__i,.faq__a p,.td-qs li,.td-ask,.td-line p,.td-four p{
  font-size:18px!important;line-height:1.5!important;letter-spacing:-.01em!important}
.eyebrow,.sh__l,.label,.small,.link,.c__note,.cs__cap i,.progs__end,.foot__links li,.logos span,.writing span,.writing__more,
.bw__tags .label,.bw__meta .link,.td-fine,.td-err,.td-f label,.td-f label em{
  font-size:15px!important;letter-spacing:0!important}
@media (max-width:700px){
  .c__sub,.lede,.sh__p,.body,.prog h3,.prog p,.cs__cap b,summary,.faq__i,.faq__a p,.td-qs li,.td-ask,.td-line p,.td-four p{font-size:17px!important}
}
