/* gair.dev coming-soon page: Spruce "Desktop" identity, checklist layout. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --graphite: #26262b;
  --window: #fbfaf6;
  --platinum: #ece7da;
  --spruce: #1f5a50;
  --celery: #b7e0a6;
  --jade: #5ba383;
  --crt: #0c140f;
  --glow: #9be870;
  --glow-text: #e6f2e2;
  --glow-link: #c6f2a8;

  --bg: var(--platinum);
  --surface: var(--window);
  --text: var(--graphite);
  --muted: #5e5c57;
  --line: var(--graphite);
  --action: var(--spruce);
  --action-text: #ffffff;
  --link: var(--spruce);
  --stripe-1: var(--celery);
  --stripe-2: var(--jade);
  --stripe-3: var(--spruce);
  --shadow: var(--graphite);
  --dot: rgb(38 38 43 / 0.1);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: var(--crt); --surface: #222925; --text: var(--glow-text); --muted: #a8a39a; --line: #7e8c82;
    --action: var(--glow); --action-text: var(--crt); --link: var(--glow-link);
    --stripe-3: var(--glow); --shadow: #000000; --dot: rgb(155 232 112 / 0.08);
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100%;
  background-color: var(--bg); color: var(--text);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 16px 16px;
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
h1, h2 { font-family: var(--font-display); font-weight: 780; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; margin: 0; font-variation-settings: "opsz" 96; }
p { margin: 0; }

.stripes { height: 9px; background: linear-gradient(var(--stripe-1) 0 3px, var(--stripe-2) 3px 6px, var(--stripe-3) 6px 9px); }
.stage {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: clamp(20px, 4vw, 44px) calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px);
}
.logo { display: block; width: clamp(170px, 30vw, 230px); height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(24px, 5vw, 64px); align-items: start; padding-top: clamp(8px, 4vh, 40px); }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

.copy { display: grid; gap: 20px; align-content: start; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 800; }
.cur { display: inline-block; width: 0.42em; height: 0.74em; background: var(--action); vertical-align: -0.02em; margin-left: 0.06em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 1.15rem; max-width: 36ch; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.addr {
  font-family: var(--font-mono); font-size: 0.95rem; padding: 9px 12px; color: var(--text); text-decoration: none;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}
.addr:hover { border-style: solid; }
.note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

.sheet { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--shadow); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 12px; border-bottom: 2px solid var(--line); }
.sheet-head h2 { font-size: 1.2rem; letter-spacing: -0.02em; }
.count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo { list-style: none; margin: 0; padding: 6px 0; }
.todo li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 20px; }
.todo li + li { border-top: 1px dashed color-mix(in srgb, var(--line) 30%, transparent); }
.what { font-weight: 700; }
.todo li.next .what { color: var(--text); }
.meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); text-align: right; }
.todo li.next .meta { font-weight: 700; color: var(--action-text); background: var(--action); padding: 2px 8px; border-radius: 99px; }
.sheet-foot { padding: 14px 20px 18px; border-top: 2px solid var(--line); display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.track { display: block; flex: 1; height: 14px; border: 2px solid var(--line); border-radius: 3px; background: var(--surface); overflow: hidden; }
.fill { display: block; height: 100%; width: 90%; background: linear-gradient(var(--stripe-1) 0 33%, var(--stripe-2) 33% 66%, var(--stripe-3) 66%); transition: width 0.4s ease; }

/* Checkbox before the script draws the pixel tick (and without scripts) */
.cb { display: block; width: 26px; height: 26px; position: relative; border: 2.5px solid var(--line); border-radius: 3px; background: var(--surface); box-shadow: 2px 2px 0 var(--line); }
.todo li.done .cb:empty::after { content: ""; position: absolute; left: 7px; top: 1px; width: 7px; height: 14px; border: solid var(--action); border-width: 0 4px 4px 0; transform: rotate(40deg); }
/* Pixel checkbox, the logo mark */
.cb:has(svg) { border: 0; box-shadow: none; background: none; width: 30px; height: auto; }
.cb svg { display: block; width: 100%; height: auto; overflow: visible; }
.cb .cb-shadow { fill: var(--line); }
.cb .cb-face { fill: var(--surface); }
.cb .cb-edge { stroke: var(--line); }
.cb .tick rect { fill: var(--action); opacity: 0; }
.cb .halo rect { opacity: 0; }
.cb.on .tick rect, .cb.on .halo rect { opacity: 1; transition: opacity 0s calc(var(--i) * 24ms); }
.todo li.next .cb-edge { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
