/* Start page and the sign-in / sign-up pages.
   Direction: a register extract - paper, serif headings, PKD codes in typewriter type, the app's forest green.
   Fonts (SIL OFL licence) are served locally, without connecting to Google. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/newsreader.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/newsreader-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/newsreader-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/newsreader-italic-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/publicsans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/fonts/publicsans-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/plexmono-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/plexmono-400-ext.woff2) format("woff2"); unicode-range: U+0100-02AF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/plexmono-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/plexmono-500-ext.woff2) format("woff2"); unicode-range: U+0100-02AF; }

:root {
  --paper: #f3f0e8; --card: #fbfaf6; --ink: #1b1c19; --muted: #5f5e57; --faint: #8b897f; --rule: #d9d5c8; --rule-soft: #e7e3d8;
  --forest: #1f5f4a; --forest-deep: #143f31; --forest-hover: #174a39; --on-forest: #f3f0e8; --forest-soft: #dfe9e2;
  --seal: #9a3b2a; --bad: #a12c2c; --bad-soft: #fbe6e4; --ok: #2f7a4f;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 48px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131512; --card: #1a1c18; --ink: #ebe8df; --muted: #a6a398; --faint: #7d7b72; --rule: #34362f; --rule-soft: #262822;
    --forest: #7cc4a6; --forest-deep: #0f2a21; --forest-hover: #95d3b9; --on-forest: #0f1a15; --forest-soft: #1f322a;
    --seal: #e08a72; --bad: #f08a8a; --bad-soft: #3d2222; --ok: #7cc4a6;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); font-feature-settings: "tnum" 0; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background-image: var(--grain); opacity: .05; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .04; } }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--card); padding: 8px 12px; }

/* --- buttons -------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 2px; border: 1px solid var(--forest); background: var(--forest); color: var(--on-forest);
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--forest-hover); border-color: var(--forest-hover); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--forest); }

/* --- logo --------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid currentColor; border-radius: 50%;
  font: 500 12px/1 var(--mono); letter-spacing: -.02em; }
