/* Industry — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;500;600;700&family=Overpass+Mono:wght@400;500;700&display=swap');

/* Only the faces this site uses are bundled. The full Industry system also
   ships Arial MT Pro Narrow, Arial Rounded MT, and the italic / extra-bold /
   black weights; add them here and to css/fonts/ if a later page needs them. */
@font-face { font-family: 'Arial MT Pro'; src: url('fonts/ARIALMTLIGHT.TTF') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arial MT Pro'; src: url('fonts/ARIALMTREGULAR.OTF') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arial MT Pro'; src: url('fonts/ARIALMTMEDIUM.TTF') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arial MT Pro'; src: url('fonts/ARIALBOLDMT.OTF') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Knockout 52'; src: url('fonts/knockout-htf52-cruiserweight.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-accent: #e53c0d;
  --color-accent-2: #329c59;
  --color-divider: color-mix(in srgb, #000000 16%, transparent);
  --color-band: color-mix(in srgb, #000000 4%, transparent); /* quiet grey ground for section bands and table stripes */

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #ffffff;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #000000;

  --color-accent-100: #fdece7;
  --color-accent-200: #fbd0c4;
  --color-accent-300: #f7ab94;
  --color-accent-400: #f28060;
  --color-accent-500: #ec5a2e;
  --color-accent-600: #e53c0d;
  --color-accent-700: #b82f0a;
  --color-accent-800: #8a2308;
  --color-accent-900: #5c1705;

  --color-accent-2-100: #e8f6ed;
  --color-accent-2-200: #c7e8d4;
  --color-accent-2-300: #99d5b2;
  --color-accent-2-400: #66bd8b;
  --color-accent-2-500: #46ab70;
  --color-accent-2-600: #329c59;
  --color-accent-2-700: #287d47;
  --color-accent-2-800: #1e5e36;
  --color-accent-2-900: #143f24;

  /* Headings are Knockout HTF52 Cruiserweight, set in caps. The family ships
     one width and one weight, so hierarchy is carried by SIZE and TRACKING
     instead of weight: tracking opens as size drops (see the h1–h6 rules).
     Caps also hide the missing bold — a tracked cap line reads as its own
     level without any weight change. Titles must stay short: caps hold far
     less text per line than sentence case. */
  --font-heading: "Knockout 52", "Arial MT Pro", Arial, Helvetica, sans-serif;
  --font-heading-weight: 400;
  /* Small structural UI — buttons, field labels, anything that needs a BOLD
     small size to do its job. Knockout has no bold, so this work stays with
     Arial MT Pro. */
  --font-ui: "Arial MT Pro", "ArialMT", Arial, Helvetica, sans-serif;
  --font-ui-weight: 700;
  --font-body: "Overpass", system-ui, sans-serif;
  --font-mono: "Overpass Mono", ui-monospace, monospace;
  --font-condensed: "Arial MT Pro Narrow", "Arial Narrow", sans-serif;
  --font-display: "Knockout 52", "Arial MT Pro", sans-serif;
  --font-display-weight: 400;

  /* Two scales, two jobs. --space-* is INSIDE a component: padding, the gap
     between a label and its field, the space between buttons in a row.
     --leading is the PAGE: it is the body line box, and every vertical
     interval down a page is a whole or half multiple of it, so type on one
     column lines up with type on the next. Section intervals are
     calc(3 * var(--leading)) and the like — never a --space-* value. */
  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --leading: 24px;
  --half: 12px;
  --edge: clamp(20px, 5vw, 72px); /* @kind spacing */ /* the page gutter */
  --measure: 60ch;

  /* No radius and no elevation tokens: every corner in this system is square
     and every surface sits flat on the paper. The one round object is the
     radio dot, which is round because it is a radio. Separation is drawn
     with a hairline rule, never with a shadow. */
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); text-transform: uppercase; }
/* the logotype — Knockout HTF52 Cruiserweight, the same face the headings now
   use. Set the words themselves, never a heading that merely mentions the name. */
.logotype { font-family: var(--font-display); font-weight: var(--font-display-weight); text-transform: uppercase; letter-spacing: 0.005em; }

.blueprint {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
}
/* A blueprint wrapper draws its registration marks outside the box, so an
   image wrapper must not clip them. */
.blueprint.plate { overflow: visible; }
/* Buttons never wear the registration marks — at button scale they read as stray
   boxes. Marks belong to drawn objects: cards, figures, plates, cells. */
.btn > .corner { display: none; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* Photographs run live — no tint, no wash, no desaturation. The wrapper only
   holds the frame and gives the marks something to sit on. */
.plate{position:relative}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; text-transform: uppercase; margin: 0 0 var(--space-2);
}
/* tracking opens as size drops — this is the hierarchy, since the face has no
   second weight to spend. Values are for caps in Knockout's tight fit. */
h1 { font-size: 42px; letter-spacing: 0.012em; }
h2 { font-size: 32px; letter-spacing: 0.015em; }
h3 { font-size: 25px; letter-spacing: 0.02em; }
h4 { font-size: 20px; letter-spacing: 0.028em; }
h5 { font-size: 16px; letter-spacing: 0.04em; }
h6 { font-size: 13px; letter-spacing: 0.08em; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-family: var(--font-mono); font-size: 11px; margin-top: var(--space-1);
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-ui); font-weight: var(--font-ui-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  white-space: nowrap;
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-2-700); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.035em;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: none;
}
.nav-brand {
  font-family: var(--font-display); font-weight: var(--font-display-weight);
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.005em; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td {
  font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  padding: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.table tbody tr:nth-child(even) { background: var(--color-band); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.band { background: var(--color-band); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4);
  /* the dialog is separated from the page by the scrim behind it and its own
     hairline border — not by a shadow */
  background: var(--color-surface); border: 1px solid var(--color-divider);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.028em;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ── Page patterns ──
   Promoted out of the landing: these are the system's page-level grammar,
   not one page's inventions. All three run on --leading. */

/* the caption rule — a label sits ABOVE a drawn 1px rule and the content
   seats below it. The system's default way to title a block of anything. */
.kicker {
  display: block; font-size: 13px; line-height: var(--half);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--color-accent-2-700); margin: 0 0 var(--half);
}
.caption-rule {
  height: 1px; border: 0; background: var(--color-divider);
  margin: 0 0 calc(var(--leading) - var(--half));
}

/* the title block — a drawing sheet's title bar: a name cell that flexes and
   fixed register cells rules off to its right. Sits on top of a plate. */
.title-block { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--color-divider); }
.title-block > span {
  padding: var(--half) var(--leading); font-size: 13px; line-height: var(--leading);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  font-feature-settings: "tnum" 1;
}
.tb-title { flex: 1; min-width: 16ch; }
.tb-cell {
  border-left: 1px solid var(--color-divider); white-space: nowrap;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* the spec sheet — a PRINTED table, distinct from the interactive .table:
   green ordinals, mono values, ruled on the leading, and no hover, because a
   sheet is not a grid you poke at. */
.spec { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.spec th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--half) var(--leading); border-bottom: 1px solid var(--color-divider);
}
.spec td {
  font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  padding: var(--half) var(--leading);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.spec .c-num { width: calc(3 * var(--leading)); color: var(--color-accent-2-700); }
.spec tbody tr:hover { background: none; }

/* — blueprint frame: components are wireframe objects (see .blueprint
     and .corner above) — square, transparent, hairline-bordered. States
     switch on the frame: there are no transitions in this system. — */
.card, .btn, .input, .tag, .seg, .dialog { border-radius: 0; }
.card, .dialog { border: 1px solid var(--color-divider); }
.card { background: transparent; }
.dialog { background: var(--color-bg); } /* the one surface that must be opaque — it sits over the scrim */
.btn { border: 1px solid var(--color-divider); }
.btn-primary { border-color: var(--color-accent); }
.btn-ghost { border-color: transparent; }

