/* Fixture Lab public pages: the overview and the sign-in page, in the app's
 * Dark Room system (design canvas, "Public overview", "Sign-in" and
 * "Sign-in · choose your password"). Neutral chrome; the only colours are
 * light, signal lime and attention. Every colour is in :root below.
 * Fonts are served from this site (assets/fonts, SIL Open Font License 1.1). */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  /* Dark Room: the same values as the app's styles/tokens.css. */
  --ground: #0a0a0b;
  --inset: #0e0e10;
  --panel: #111113;
  --raised: #19191c;
  --hover: #222226;
  --line: #26262b;
  --line-strong: #34343a;
  --line-tag: #4a4a52;
  --text: #ececee;
  --text-2: #b1b1b6;
  --text-3: #86868d;
  --ink: #0a0a0b;
  --signal: #bcef7c;
  --attention: #ff7a66;
  --attention-line: #5a2f28;
  --primary-hover: color-mix(in srgb, #ececee 84%, #0a0a0b);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius-tag: 3px;
  --radius: 4px;
  --radius-overlay: 8px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-fast: 120ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text-2); text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--line-strong); color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }

/* Brand: a lime mark of four bars and the wordmark. */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { color: var(--text); }
.mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 2px; width: 24px; height: 24px; border-radius: var(--radius); background: var(--signal); }
.mark span { display: block; width: 2px; height: 7px; background: var(--ink); }
.mark span:nth-child(2) { height: 14px; }
.mark span:nth-child(3) { height: 10px; }
.mark span:nth-child(4) { height: 5px; }
.mark-small { width: 20px; height: 20px; }
.mark-small span { height: 6px; }
.mark-small span:nth-child(2) { height: 12px; }
.mark-small span:nth-child(3) { height: 9px; }
.mark-small span:nth-child(4) { height: 4px; }
.wordmark { font-size: 13px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.wordmark span { margin-left: .35em; }

/* Buttons: light for the way forward, outlined otherwise. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
}
.button-primary { background: var(--text); color: var(--ink); }
.button-primary:hover { background: var(--primary-hover); color: var(--ink); }
.button-primary[disabled] { border-color: var(--line); background: var(--raised); color: var(--text-3); cursor: default; }
.button-ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.button-ghost:hover { background: var(--hover); color: var(--text); }
.button-small { height: 32px; padding: 0 14px; font-size: 13px; }
.button-large { height: 44px; padding: 0 20px; }
.button-block { display: flex; width: 100%; }

/* Overview */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.site-nav { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
@media (max-width: 720px) {
  .site-header .wrap { justify-content: space-between; }
  .site-nav { flex: 1 1 100%; order: 3; gap: 4px 18px; }
}
.hero { padding: clamp(48px, 7vw, 72px) 0 clamp(48px, 6vw, 64px); }
.hero-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.hero h1 { flex: 3 1 440px; max-width: 700px; margin: 0; font-size: clamp(36px, 5.4vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero-side { display: flex; flex: 2 1 320px; flex-direction: column; gap: 18px; max-width: 420px; }
.lede { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fine { margin: 0; color: var(--text-3); font-size: 13px; }
.art { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-overlay); background: var(--inset); }
.art svg { width: 100%; height: auto; }
.hero figure.hero-figure { margin: clamp(40px, 5vw, 48px) 0 0; }
.frame { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 48px; margin-top: 0; padding: 40px 0 0; }
.frame-text { flex: 1 1 220px; max-width: 280px; }
.frame-text strong { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; line-height: 22px; }
.frame-text p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.slots { display: grid; flex: 999 1 480px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.slot { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.slot-head { display: flex; justify-content: space-between; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
.slot-value { font-family: var(--mono); font-size: 18px; font-weight: 500; line-height: 22px; }
.slot-value.zero { color: var(--text-3); }
.slot-label { overflow: hidden; color: var(--text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.slot-bar { display: block; height: 3px; overflow: hidden; background: var(--line); }
.slot-bar span { display: block; height: 3px; background: var(--signal); }
.section { padding: clamp(56px, 8vw, 72px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 64px; margin-bottom: 36px; }
.section-head h2 { flex: 3 1 420px; max-width: 640px; margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.section-head p { flex: 2 1 300px; max-width: 420px; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-overlay); background: var(--panel); }
.card-wide { flex: 7 1 520px; }
.card-narrow { flex: 5 1 380px; }
.card-full { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 28px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.card .meta { margin-top: 4px; color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.card-art { background: var(--inset); }
.card-art.model { border-bottom: 1px solid var(--line); }
.card-art.model svg { width: 100%; height: auto; }
.card-art.faders { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; padding: 8px 0; border-top: 1px solid var(--line); }
.card-art.faders svg { width: 100%; max-width: 460px; height: auto; }
.card-text { display: flex; flex: 1 1 380px; flex-direction: column; gap: 10px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips li { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-tag); color: var(--text-2); font-size: 12px; }
/* A recorded disagreement: an attention outline, never a fill. */
.note { display: flex; flex: 1 1 380px; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 16px 18px; border: 1px solid var(--attention-line); border-radius: var(--radius); background: var(--inset); }
.note-head { display: flex; align-items: center; gap: 10px; }
.badge { padding: 1px 6px; border: 1px solid var(--attention-line); border-radius: var(--radius-tag); color: var(--attention); font-size: 11px; font-weight: 600; }
.note-head strong { font-size: 15px; font-weight: 600; }
.note blockquote { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.note figcaption { color: var(--text-3); font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-overlay); list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-right: 1px solid var(--line); background: var(--panel); }
.steps li:last-child { border-right: 0; }
.step-number { color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.steps h3 { margin: 0; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.decoded { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; margin-top: clamp(48px, 6vw, 64px); }
.decoded-text { display: flex; flex: 1 1 300px; flex-direction: column; gap: 10px; max-width: 380px; }
.decoded-text h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 26px; }
.decoded-text p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.panel-art { min-width: 0; margin: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-overlay); background: var(--inset); }
.panel-art svg { width: 100%; height: auto; }
.decoded .panel-art { flex: 999 1 520px; }
.numbers { border-top: 1px solid var(--line); }
.numbers .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.numbers .wrap > div { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.numbers strong { display: block; font-family: var(--mono); font-size: 32px; font-weight: 500; line-height: 36px; }
.numbers p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.closing { padding: 0 0 clamp(56px, 8vw, 72px); }
.closing-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-overlay); background: var(--panel); }
.closing-box div:first-child { display: flex; flex: 1 1 420px; flex-direction: column; gap: 6px; }
.closing-box h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.closing-box p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.closing-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.closing-action p { color: var(--text-3); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; color: var(--text-3); font-size: 13px; }
.site-footer .wrap > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }

/* Sign-in */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-art { position: relative; display: flex; flex: 1 1 520px; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 420px; overflow: hidden; padding: 28px 32px 32px; border-right: 1px solid var(--line); background: var(--inset); }
.auth-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art > .brand, .auth-art > .auth-quote { position: relative; }
.auth-art > .brand { align-self: flex-start; }
.auth-quote { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.auth-quote p { margin: 0; font-size: 28px; font-weight: 600; line-height: 32px; letter-spacing: -0.02em; text-wrap: balance; }
.auth-quote .mono { color: var(--text-3); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.auth-main { display: flex; flex: 1 1 420px; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-panel { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 360px; }
.auth-panel[hidden] { display: none; }
.auth-title { display: flex; flex-direction: column; gap: 4px; }
.auth-title h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 32px; letter-spacing: -0.02em; }
.auth-title p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-row a { font-size: 13px; }
.label { color: var(--text); font-size: 13px; font-weight: 500; }
.input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--ground); color: var(--text); font-family: inherit; font-size: 14px; transition: border-color var(--ease-fast); }
.input:hover { border-color: var(--line-tag); }
.input::placeholder { color: var(--text-3); }
.input[aria-invalid="true"] { border-color: var(--attention); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 72px; }
.reveal { position: absolute; top: 5px; right: 5px; min-width: 56px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius); background: var(--raised); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.reveal:hover { background: var(--hover); }
.message { margin: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--inset); color: var(--text); font-size: 13px; line-height: 1.5; }
.message[hidden] { display: none; }
.message-error { border-color: var(--attention-line); }
.rules { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.rules li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.rules li.met { color: var(--text); }
.rules svg { flex: 0 0 auto; width: 14px; height: 14px; }
.rules .tick { display: none; }
.rules li.met .tick { display: block; }
.rules li.met .ring { display: none; }
.rules .rule-state { margin-left: auto; color: var(--text-3); }
.rules li.met .rule-state { color: var(--text-2); }
.mismatch { margin: 0; color: var(--text-3); font-size: 13px; }
.mismatch[hidden] { display: none; }
.auth-help { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--text-3); font-size: 13px; }
