/*
  The viewers' greeting at hello.finnehninger.com (6b step 8): its own small
  stylesheet, from design/08-greeting.html (approved by Bill 2026-11-06) and
  the parts of static/site/site.css that page uses. Dark only. Fonts from
  this upload's own copies, exactly as published (fonts/, with their
  licences). A change to the site's fonts, logo or colours comes here too
  (app/OPERATIONS.md, "Things that must change together").
*/
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next/AtkinsonHyperlegibleNext[wght].ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Jersey 10"; src: url("fonts/jersey-10/Jersey10-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #17181D; --ink: #EDE8DE; --muted: #A8A196; --on-accent: #1E1B18;
  /* Palette 5 (Bill, 2026-11-04, for now), as site.css */
  --blue: #6D7AF3;    --blue-pale: #99A2F7;
  --teal: #55A6FF;    --teal-pale: #88C1FF;
  --amber: #B0CCFF;   --amber-pale: #C8DBFF;
  --mustard: #FFF6E0; --mustard-pale: #FFF9E9;
  --c: var(--blue); --c-pale: var(--blue-pale);
  --read: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --texture: repeating-conic-gradient(rgba(255,255,255,.06) 0 25%, transparent 0 50%);
}
*, *::before, *::after { box-sizing: border-box; }
.site {
  margin: 0; background-color: var(--bg); color: var(--ink);
  background-image: var(--texture); background-size: 8px 8px;
  font-family: var(--read); font-size: 18px; line-height: 1.5;
}
a { color: var(--c-pale); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--c-pale); color: var(--on-accent);
  border: 3px solid var(--ink); border-radius: 0; box-shadow: 4px 4px 0 0 var(--ink);
  padding: 10px 20px; min-height: 48px;
}
.btn:hover { color: var(--on-accent); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.narrow-aware { container-type: inline-size; }
[hidden] { display: none !important; }

/* One narrow column, centred, as the sign-in screens: the stacked logo, the loading bar, the lines */
.frame { margin: 0 auto; min-height: 100vh; }
.door { max-width: 420px; margin: 0 auto; padding: 40px 16px 56px; text-align: center; }
.door-logo { display: block; margin: 0 auto 40px; max-width: 100%; }
.door-logo img { display: block; width: 100%; height: auto; }
@container (min-width: 601px) { .door { padding-top: 72px; } }
.line { margin: 0 0 12px; }
.line.first { font-size: 24px; font-weight: 700; }
.line.muted { color: var(--muted); }
.door .btn { justify-content: center; width: 100%; margin-top: 12px; }
/* The loading bar: a frame in the site's colour with its checkered shadow, twenty pixel blocks filling left to right
   in the four colours. A guess, not real progress: about one block a second, holding at 18 of 20 until the site
   answers, then the rest at once. Under reduce-motion it stays empty, and the lines do the telling. */
.bar { position: relative; z-index: 0; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 36px; padding: 5px;
  margin: 0 auto 28px; max-width: 320px; border: 3px solid var(--c); background: var(--bg); }
.bar::after { content: ""; position: absolute; left: 6px; top: 6px; right: -9px; bottom: -9px; z-index: -1;
  background: repeating-conic-gradient(var(--c) 0 25%, transparent 0 50%) 0 0 / 4px 4px; opacity: .9; }
.bar i { display: block; background: transparent; }
.bar i.on:nth-child(4n+1) { background: var(--blue); }
.bar i.on:nth-child(4n+2) { background: var(--teal); }
.bar i.on:nth-child(4n+3) { background: var(--amber); }
.bar i.on:nth-child(4n+4) { background: var(--mustard); }
.noscript-link { font-size: 20px; font-weight: 700; }
