/* ============================================================
   STYLE — the site's own CSS.

   Every colour reads a token from tokens.css. There are no hex
   literals in this file and there should never be one.

   The page is one sheet. The recurring motif is the DOUBLE RULE —
   a heavy band, a gap, then a hairline — which is the chop's own
   double border restated at page scale, and the same device the
   launch screens use. It appears as the divider between sections
   and nowhere else; used more than that it stops being a signature.

   Element rules inside a shell class are wrapped in :where(), which
   has zero specificity, so a class added later wins on source order
   rather than being silently outranked. That trap was paid for once
   already — keep :where() when adding a rule of this shape.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* The browser's default focus ring reads as someone else's furniture.
   Ink, not browser blue — this is "you're here", not "click me". */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The sheet: content is a narrow measure centred in the viewport with
     air above and below, so the page reads as a pressed card rather than
     a screen that happens to be short. */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter) clamp(2rem, 5vh, 4rem);
  gap: clamp(2.5rem, 6vh, 4.5rem);
}

.skip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 50%;
  translate: -50% -120%;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: var(--fs-xs);
  text-decoration: none;
  z-index: 10;
  transition: translate var(--dur-fast) var(--ease-out);
}
.skip:focus-visible { translate: -50% 0.75rem; }

/* ---------------------------------------------------------------- head */

.sheet-head {
  width: min(34rem, 100%);
  text-align: center;
}

.chop {
  display: block;
  width: clamp(58px, 12vw, 76px);
  height: auto;
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  /* No border, no shadow, on purpose. The mark's own ground IS Stock, so
     on the day shift it meets the sheet at the same value and the chop
     reads as pressed INTO the paper. A hairline here would draw the tile
     edge the whole design is trying not to have. */
}

.wordmark {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--ink);
}

.standfirst {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.2rem);
}

/* ---------------------------------------------------------------- main */

main {
  width: min(34rem, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vh, 4rem);
}

/* The double rule. Heavy band, gap, hairline — the chop's border at
   page scale. Only ever between sections. */
main > :where(section) + :where(section) {
  border-block-start: 3px solid var(--line-strong);
  padding-block-start: calc(clamp(2.5rem, 6vh, 4rem) - 0.5rem);
  position: relative;
}
main > :where(section) + :where(section)::before {
  content: "";
  position: absolute;
  inset-block-start: 5px;
  inset-inline: 0;
  border-block-start: 1px solid var(--line);
}

.lede :where(p) {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.15rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Section labels: small mono caps, the one place mono appears in prose. */
.label {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.items :where(h3) {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.items :where(p) {
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ------------------------------------------------------------- contact */

.contact-line { margin: 0; }

.mailto {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-block-end: 2px solid var(--line-strong);
  padding-block-end: 2px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.mailto:hover { border-block-end-color: var(--ink); }

.note {
  margin: 1rem 0 0;
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  max-width: 30rem;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- foot */

.sheet-foot {
  width: min(34rem, 100%);
  margin-block-start: auto;
  padding-block-start: clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.shift-toggle {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.shift-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.colophon,
.legal {
  margin: 0;
  color: var(--ink-mute);
  font-size: var(--fs-xxs);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* The legal entity line is the one piece of small print that must never
   be trimmed: it is what ties the domain to the registered company. */
.legal :where(strong) {
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- misc */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body { min-height: 0; padding: 0; }
  .skip, .shift-toggle { display: none; }
}
