/* SPDX-FileCopyrightText: 2026 Cedrec Sumimoto
   SPDX-License-Identifier: CC-BY-SA-4.0 */

/* Layout: an instrument datasheet. One left-aligned reading column with drawings and tables
   beside it on wide screens; thin rules rather than boxes; every number and unit in mono.
   Cyan is reserved for measurement overlays; green, red and amber only ever mean a decision. */
:root {
  /* Neutrals lean slightly cool, toward the overlay cyan. */
  --paper: #f3f5f6;
  --surface: #ffffff;
  --ink: #141c21;
  --ink-muted: #4b5961;
  --rule: #d0d8dc;
  --rule-strong: #77858d;
  /* Measurement overlays: edge marks, dimension lines, links and focus. */
  --accent: #006f86;
  --overlay: #0a8fab;
  --overlay-soft: rgb(10 143 171 / 0.13);
  /* Decisions: always an icon and a word as well as a colour. */
  --pass: #1b6f34;
  --pass-bg: #e3f1e7;
  --fail: #b0261d;
  --fail-bg: #fbe7e4;
  --indet: #7f5100;
  --indet-bg: #fcefd2;
  /* Camera views are pictures of light, so they barely change with the theme. */
  --cam-bright: #f6fcfd;
  --cam-glow: #cdeef6;
  --cam-part: #1b2328;
  --cam-field: #3a454b;
  --cam-face: #a9b4ba;
  --cam-overlay: #0a8fab;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.65rem, 1.3rem + 1.3vw, 2.15rem);
  --text-hero: clamp(2.2rem, 1.5rem + 2.6vw, 3.25rem);

  --gutter: 1rem;
  --page: 74rem;
  --measure: 38rem;
  --radius: 6px;
  --header-height: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1316;
    --surface: #151c20;
    --ink: #e3e9ec;
    --ink-muted: #9caab1;
    --rule: #273238;
    --rule-strong: #62727a;
    --accent: #55d0e6;
    --overlay: #3cc3dd;
    --overlay-soft: rgb(60 195 221 / 0.15);
    --pass: #72d18d;
    --pass-bg: #12301c;
    --fail: #ff8b7e;
    --fail-bg: #3b1714;
    --indet: #f1bb57;
    --indet-bg: #33260b;
    --cam-bright: #e4f3f7;
    --cam-glow: #a9dfec;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0e1316;
  --surface: #151c20;
  --ink: #e3e9ec;
  --ink-muted: #9caab1;
  --rule: #273238;
  --rule-strong: #62727a;
  --accent: #55d0e6;
  --overlay: #3cc3dd;
  --overlay-soft: rgb(60 195 221 / 0.15);
  --pass: #72d18d;
  --pass-bg: #12301c;
  --fail: #ff8b7e;
  --fail-bg: #3b1714;
  --indet: #f1bb57;
  --indet-bg: #33260b;
  --cam-bright: #e4f3f7;
  --cam-glow: #a9dfec;
  color-scheme: dark;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

@media (min-width: 60rem) {
  :root {
    --header-height: 3.75rem;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p,
ul,
ol,
figure {
  margin: 0;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 0.65rem 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand .icon {
  width: 1.65rem;
  height: 1.65rem;
}

.site-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav ul {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0 0.4rem;
  list-style: none;
  white-space: nowrap;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-tools {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 60rem) {
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
  }

  .site-header .wrap {
    min-height: var(--header-height);
    padding-block: 0.5rem;
  }

  .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .site-nav ul {
    gap: 1.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--overlay);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--overlay) 50%, transparent 50%);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--rule-strong);
}

.icon-button .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-icon-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-icon-light {
    display: block;
  }
}

:root[data-theme="dark"] .theme-icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-icon-light {
  display: block;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 var(--text-sm) / 1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--primary:hover {
  background: color-mix(in srgb, var(--ink) 84%, var(--overlay));
}

.button--secondary {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Hero */

.hero {
  padding-block: 2.5rem 3rem;
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
}

.hero h1 {
  max-width: 17ch;
  font-size: var(--text-hero);
  font-weight: 760;
  letter-spacing: -0.028em;
}

.hero .lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.hero-signup {
  display: grid;
  gap: 0.5rem;
  max-width: 34rem;
  margin-top: 2rem;
}

.signup-title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.signup-intro {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.hero-visual {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 60rem) {
  .hero {
    padding-block: 4.5rem 5rem;
  }
}

@media (min-width: 70rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 3.5rem;
  }
}

/* Drawings */

.drawing {
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.drawing svg {
  display: block;
  width: 100%;
  height: auto;
}

.drawing figcaption,
.figure-note {
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0 0.35rem;
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.s-body {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.s-unit {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2.25;
  stroke-linejoin: round;
}

.s-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-thin {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1;
}

.s-hidden {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.s-center {
  fill: none;
  stroke: var(--overlay);
  stroke-width: 0.9;
  stroke-dasharray: 10 3 2 3;
}

.s-overlay {
  fill: none;
  stroke: var(--overlay);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.s-dash {
  stroke-dasharray: 5 4;
}

.s-dot,
.s-arrow {
  fill: var(--overlay);
}

.s-fov {
  fill: var(--overlay-soft);
}

.s-zone {
  fill: var(--overlay-soft);
}

.s-label {
  fill: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.s-label--ink {
  fill: var(--ink);
}

.hero-visual .s-label {
  font-size: 13px;
}

.s-word {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
}

.s-plate {
  stroke: var(--overlay);
  stroke-width: 1;
}

.s-lamp {
  fill: var(--overlay);
}

.s-frame {
  fill: none;
  stroke: var(--rule-strong);
}

.s-point {
  fill: var(--ink);
}

.s-label--sm {
  font-size: 10px;
}

.mark-gap {
  stroke: var(--overlay);
}

.s-file {
  fill: var(--paper);
  stroke: var(--ink-muted);
  stroke-width: 1;
}

/* Overlays drawn on a camera view keep one colour, because the view itself doesn't change. */
.cam-view {
  --overlay: var(--cam-overlay);
}

.cam-bright {
  fill: var(--cam-bright);
}

.cam-part {
  fill: var(--cam-part);
}

.cam-field {
  fill: var(--cam-field);
}

.cam-face {
  fill: var(--cam-face);
}

.stop-bright {
  stop-color: var(--cam-bright);
}

.stop-glow {
  stop-color: var(--cam-glow);
}

.stop-clear {
  stop-color: var(--cam-glow);
  stop-opacity: 0;
}

.c-pass {
  color: var(--pass);
  fill: var(--pass);
}

.c-fail {
  color: var(--fail);
  fill: var(--fail);
}

.c-indet {
  color: var(--indet);
  fill: var(--indet);
}

/* Claim strip */

/* Sections */

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure);
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: var(--text-xl);
  font-weight: 720;
}

.section-head p {
  color: var(--ink-muted);
  font-size: var(--text-md);
}

.split {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 60rem) {
  .section {
    padding-block: 5.5rem;
  }

  .split {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .split > .section-head {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    margin-bottom: 0;
  }
}

/* How it works */

.steps {
  display: grid;
  gap: 2.5rem;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-width: 0;
}

.step .drawing {
  margin-bottom: 0.6rem;
}

.step-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step h3 {
  font-size: var(--text-lg);
}

.step p {
  color: var(--ink-muted);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.note {
  display: flex;
  gap: 0.75rem;
  max-width: 48rem;
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
}

.note .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

/* Why it's different */

.why {
  display: grid;
  gap: 2.5rem;
}

.why-aside {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.why-aside .note {
  margin-top: 0;
}

/* Same rule and padding as the first point, so the two columns start on one line. */
.why-lede {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: var(--text-md);
}

.points {
  display: grid;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.points h3 {
  font-size: var(--text-md);
}

.points p {
  color: var(--ink-muted);
}

@media (min-width: 60rem) {
  .why {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

/* What it measures */

.measures {
  display: grid;
  gap: 2.5rem;
}

.features {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.features li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.features .glyph {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: center;
}

.features strong {
  display: block;
}

.features span:not(.glyph) {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.features .later strong {
  color: var(--ink-muted);
}

.lighting {
  display: grid;
  gap: 1.25rem;
}

.lighting h3 {
  margin-bottom: 0.25rem;
  font-size: var(--text-md);
}

.lighting p {
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

@media (min-width: 40rem) {
  .lighting {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .measures {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* Tiers */

.tiers {
  display: grid;
  gap: 1.75rem;
}

.tier {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.tier h3 {
  font-size: var(--text-lg);
}

.tier p,
.tier ul {
  color: var(--ink-muted);
}

.tier ul {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.15rem;
}

.ribbon {
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  padding: 0.05rem 0.55rem;
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.after-note {
  max-width: 48rem;
  margin-top: 1.75rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

@media (min-width: 48rem) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .tiers > .tier:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tiers > .tier:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Tables */

.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

caption {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  text-align: left;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--paper);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th {
  font-weight: 600;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.machines th[scope="row"] {
  min-width: 9.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.status--planned,
.status--later {
  border-style: dashed;
}

.status--later,
.status--unsupported {
  color: var(--ink-muted);
}

.status--reference {
  border-color: var(--ink);
}

/* On phones, each row of a .stack table becomes a block with labelled cells. */
@media (max-width: 39.99rem) {
  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .stack,
  .stack tbody,
  .stack tr,
  .stack th,
  .stack td {
    display: block;
  }

  .stack tr {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .stack tbody tr:last-child {
    border-bottom: 0;
  }

  .stack th,
  .stack td {
    padding: 0;
    border: 0;
  }

  .stack td {
    margin-top: 0.55rem;
  }

  .stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .machines th[scope="row"] {
    min-width: 0;
  }
}

.status-detail {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

/* Roadmap */

.timeline {
  display: grid;
  padding: 0 0 0 0.45rem;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 1.35rem 1.6rem;
  border-left: 1px solid var(--rule-strong);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: -0.42rem;
  width: 0.84rem;
  height: 0.84rem;
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
}

.timeline .phase {
  padding-bottom: 0.9rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline .phase::before {
  top: 0.35rem;
  left: -0.2rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--rule-strong);
  border: 0;
}

.timeline .done::before {
  background: var(--ink);
  border-color: var(--ink);
}

.timeline .current::before {
  background: var(--overlay);
  border-color: var(--overlay);
  box-shadow: 0 0 0 4px var(--overlay-soft);
}

.timeline h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  font-size: var(--text-md);
}

.timeline .code {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
}

.timeline p {
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.here {
  padding: 0 0.45rem;
  background: var(--overlay-soft);
  border: 1px solid var(--overlay);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.done-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* FAQ */

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-size: var(--text-md);
  font-weight: 620;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  display: grid;
  gap: 0.75rem;
  max-width: var(--measure);
  padding-bottom: 1.25rem;
  color: var(--ink-muted);
}

/* Updates */

.signup {
  display: grid;
  gap: 0.5rem;
  max-width: 34rem;
}

.signup label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.signup input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.signup input:disabled {
  cursor: not-allowed;
}

.signup-note {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* Footer */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.site-footer .wrap {
  display: grid;
  gap: 1.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-notes {
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* Decisions and the sample report */

.decision {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.5rem 0.1rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: 650;
  white-space: nowrap;
}

.decision .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.decision--pass {
  background: var(--pass-bg);
  color: var(--pass);
}

.decision--fail {
  background: var(--fail-bg);
  color: var(--fail);
}

.decision--indeterminate {
  background: var(--indet-bg);
  color: var(--indet);
}

.report {
  container: report / inline-size;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.report-title {
  font-weight: 700;
}

.report-meta {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.label {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.label--simulated {
  border-style: dashed;
}

.result-head {
  display: none;
}

.results {
  padding: 0;
  list-style: none;
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "feature decision" "value decision";
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.result:last-child {
  border-bottom: 0;
}

.result-feature {
  grid-area: feature;
  font-weight: 600;
}

.result-value {
  grid-area: value;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

.result .decision {
  grid-area: decision;
  justify-self: end;
}

.result .nominal,
.result .inch {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.result .nominal {
  display: block;
}

@container report (min-width: 30rem) {
  .result-head,
  .result {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 8.5rem;
    grid-template-areas: "feature value decision";
  }

  .result-head {
    display: grid;
    gap: 1rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--rule);
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .result-head span:last-child {
    text-align: right;
  }

  .result-value {
    display: grid;
    gap: 0;
  }
}

.report-foot {
  padding: 0.65rem 1rem 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

/* Component sheet */

.section--first {
  border-top: 0;
}

.sheet-title {
  font-size: var(--text-xl);
}

.row--spaced {
  margin-top: 1.5rem;
}

.figure-note--inline {
  margin: 0;
}

.sheet-grid--spaced {
  margin-top: 2.5rem;
}

.sample-hero {
  font-size: var(--text-hero);
  font-weight: 760;
  letter-spacing: -0.028em;
  line-height: 1.05;
}

.sample-heading {
  font-size: var(--text-xl);
  font-weight: 720;
}

.sample-number {
  font-size: var(--text-lg);
}

.steps--single,
.tiers--single {
  grid-template-columns: minmax(0, 1fr);
}

.tiers--single {
  margin-top: 0.75rem;
}

.note--flush {
  margin-top: 0;
}

.chip--paper {
  background: var(--paper);
}

.chip--surface {
  background: var(--surface);
}

.chip--ink {
  background: var(--ink);
}

.chip--ink-muted {
  background: var(--ink-muted);
}

.chip--rule-strong {
  background: var(--rule-strong);
}

.chip--accent {
  background: var(--accent);
}

.chip--overlay {
  background: var(--overlay);
}

.chip--pass {
  background: var(--pass);
}

.chip--fail {
  background: var(--fail);
}

.chip--indet {
  background: var(--indet);
}

.chip--cam-bright {
  background: var(--cam-bright);
}

.chip--cam-part {
  background: var(--cam-part);
}


.sheet-grid {
  display: grid;
  gap: 1.5rem;
}

.sheet-block {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.sheet-block h3 {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.wordmarks {
  display: grid;
  gap: 1rem;
}

.wordmark-card {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.wordmark-card p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.wm {
  justify-self: start;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
}

.wm-jaw {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.wm-jaw .icon {
  width: 2.6rem;
  height: 2.6rem;
}

.wm-measured {
  display: inline-grid;
  gap: 0.35rem;
  justify-items: stretch;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wm-measured .dim {
  display: block;
  width: 100%;
  height: 0.6rem;
}

.wm-reticle {
  font-weight: 760;
  letter-spacing: -0.03em;
}

.wm-reticle .i {
  position: relative;
  display: inline-block;
}

.wm-reticle .i svg {
  position: absolute;
  top: 0.04em;
  left: 50%;
  width: 0.36em;
  height: 0.36em;
  transform: translateX(-50%);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.swatches li {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.swatches .chip {
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

@media (min-width: 48rem) {
  .sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wordmarks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
