/* ==========================================================================
   Bench — get-bench.com
   The only stylesheet on the site. No JavaScript, no webfonts, no @import,
   no external origin of any kind. Colour tokens are measured against
   #FFFFFF — read docs/website/site-design.md §4.1 before changing one.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------
   Contrast ratios: on --paper (#FFFFFF) / on --panel (#F4F4F4)
   --ink        17.4:1 / 15.8:1     --ink-muted   8.9:1 / 8.1:1
   --accent      9.1:1 /  8.3:1     white on --accent 9.1:1
   --edge        3.5:1  — borders and placeholder marks (1.4.11 non-text, 3:1)
   -------------------------------------------------------------------------- */
:root {
  --paper:    #FFFFFF;
  --panel:    #F4F4F4;
  --ink:      #1A1A1A;
  --ink-muted:#4A4A4A;
  --accent:   #14532D;
  --edge:     #8A8A8A;
  --hairline: #DDDDDD;   /* decorative rules only, never a UI boundary */

  --measure:  41rem;     /* ≈ 67ch of body copy, ≈ 60ch of lede — §4.1 wants 60-75 */
  --gutter:   1.25rem;
  --stack:    2.75rem;   /* space between top-level sections */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Minimal reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure, figcaption { margin: 0; }
ul { padding: 0; }
img { max-width: 100%; height: auto; }

/* --- Base ----------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;   /* 100%, not none — user zoom stays intact */
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;             /* relative to the user's root size (1.4.4) */
  line-height: 1.6;
  overflow-wrap: break-word;        /* reflow safety net at 320px (1.4.10) */
  text-underline-offset: 0.15em;
}

/* Headings: the rem term keeps these responsive to the user's own font size;
   the vw term only adds to it. Never a bare vw size. */
h1 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem);
  line-height: 1.28;
  letter-spacing: -0.008em;
}
h3 { font-size: 1.0625rem; line-height: 1.4; }

p + p { margin-top: 0.9rem; }

/* --- Links ---------------------------------------------------------------- */
a { color: var(--accent); }
a:hover { color: #0E3D20; }

/* Colour is never the only signal on a text link (1.4.1). The two button-shaped
   CTAs are exempt because their shape and fill carry the affordance. */
main a, .site-footer a, .header-link { text-decoration: underline; text-decoration-thickness: 0.09em; }
.cta { text-decoration: none; }

/* --- Focus (2.4.7) — never `outline: none`, anywhere ---------------------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On the dark CTA: an accent ring outside (9.1:1 on paper) plus a white ring
   inside (9.1:1 on the fill), so the indicator survives either backdrop. */
.cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 3px var(--paper);
}
/* The two programmatic targets (#main, #request-access) carry tabindex="-1";
   :focus rather than :focus-visible, because fragment-triggered focus is not
   consistently treated as "visible" across engines. */
main:focus, section[tabindex="-1"]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 1.5rem; }

/* --- Skip link ------------------------------------------------------------
   Moved off-screen by transform, not display:none, so it stays in tab order. */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 10;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--paper);
  padding: 0.75rem 1.15rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }
.skip-link:focus-visible { outline-color: var(--ink); }

/* --- Layout --------------------------------------------------------------- */
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  padding-block: 0.6rem;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1.25rem;
}
.wordmark { line-height: 1.3; }
.wordmark__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.012em;
}
.wordmark__descriptor { display: block; color: var(--ink-muted); }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;              /* 44px target (2.5.5) */
  padding-inline: 0.15rem;
  font-weight: 600;
}
@media (min-width: 34rem) {
  .wordmark__name { display: inline; }
  .wordmark__descriptor { display: inline; margin-left: 0.5rem; }
}

/* --- Main ----------------------------------------------------------------- */
main { display: block; }
main > .wrap > section { margin-top: var(--stack); }
main > .wrap > section:first-child { margin-top: 2rem; }
main > .wrap > section > * + * { margin-top: 0.9rem; }
main > .wrap > section > h2 + * { margin-top: 0.75rem; }

/* --- Hero ----------------------------------------------------------------- */
.eyebrow {
  color: var(--ink-muted);
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 0.7rem;
}
.hero h1 { margin-top: 1rem; }
.lede { font-size: 1.125rem; }
.hero__note { color: var(--ink-muted); }
.cta-row { margin-top: 1.5rem; }

/* --- CTA ------------------------------------------------------------------ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;              /* 44px minimum; grows with text spacing */
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  border-radius: 4px;
}
.cta:hover { background: #0E3D20; color: var(--paper); }

/* --- Concept illustration (site-design.md §2.11) --------------------------- */
.concept { margin-top: 1.75rem; }
.concept img {
  display: block;
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--paper);
}
.concept figcaption {
  margin-top: 0.75rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--edge);
  color: var(--ink-muted);
}

/* --- IT-review panel ------------------------------------------------------ */
.panel {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 1.4rem 1rem;
}
.posture { list-style: none; }
.posture li { padding-left: 1.1rem; position: relative; }
.posture li + li { margin-top: 0.8rem; }
.posture li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
.posture__caveat { color: var(--ink-muted); }
@media (min-width: 34rem) {
  .panel { padding: 1.75rem 1.6rem; }
}

/* --- FAQ ------------------------------------------------------------------ */
.faq__item { margin-top: 1.4rem; }
.faq__item h3 { font-weight: 700; }
.faq__item p { margin-top: 0.3rem; }

/* --- Request access ------------------------------------------------------- */
.request__line { margin-top: 1.4rem; }
.request__tail { display: block; margin-top: 0.75rem; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--hairline);
  padding-block: 1.75rem 3rem;
  color: var(--ink-muted);
}
.site-footer p + p { margin-top: 0.35rem; }

/* --- Motion (2.3.3) -------------------------------------------------------
   There is no animation in v1. This block ships as a standing guard. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --- Print (C4: paper is a first-class output) ---------------------------- */
@media print {
  :root {
    --ink: #000; --ink-muted: #000; --accent: #000;
    --paper: #FFF; --panel: #FFF; --edge: #000; --hairline: #000;
  }
  @page { margin: 16mm; }

  body { background: #FFF; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .wrap { max-width: none; padding-inline: 0; }

  /* Off-screen navigation affordances: the skip link, the header CTA, and the
     hero's in-page anchor are all meaningless on paper. The mailto CTA stays —
     its visible text is the address, which is the actionable thing in print. */
  .skip-link, .header-link, .cta-row { display: none; }

  a { color: #000; }
  /* Show the destination for links that leave the page. Deliberately NOT applied
     to "#" anchors or to the mailto, whose visible text already is the address —
     printing mailto:…?subject=… would add noise, not information. */
  main a[href^="http"]::after { content: " <" attr(href) ">"; font-size: 0.9em; word-break: break-all; }

  .cta { background: none; color: #000; border: 1px solid #000; padding: 0.2rem 0.4rem; min-height: 0; }
  .panel { background: none; border-left: 2px solid #000; }
  .concept img { border: 1px solid #000; }

  .faq__item, .posture li, figure, .panel { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .site-footer { margin-top: 1.5rem; }
}
