/* Wildhold design tokens, fonts and shared components. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-600-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-ext-600-normal.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: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-ext-800-normal.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: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-900-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-400-normal.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: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-700-normal.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; }

:root {
  --spruce: #17231f;
  --spruce-2: #1f2e29;
  --spruce-3: #2a3c35;
  --moss: #4f6b47;
  --lichen: #c9d3a3;
  --birch: #ece7da;
  --stone: #a3aa9f;
  --ember: #e8853a;
  --ember-deep: #c2611f;
  --danger: #d9534a;
  --ok: #8fbf6a;
  --water: #5aa0c8;
  --line: rgba(201, 211, 163, 0.16);
  --glass: rgba(18, 27, 23, 0.9);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--spruce);
  color: var(--birch);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lichen); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--birch); font: 900 1.45rem/1 var(--display); letter-spacing: 0.04em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; line-height: 1.05; margin: 0 0 0.5em; }
p { margin: 0 0 0.8em; }
.muted { color: var(--stone); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }
kbd {
  font: 700 0.72rem/1 var(--body); padding: 3px 6px; border-radius: 4px; color: var(--birch);
  background: rgba(236, 231, 218, 0.08); border: 1px solid var(--line); border-bottom-width: 2px;
}
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 0.95rem/1 var(--body); color: var(--birch); text-decoration: none;
  background: var(--spruce-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 18px; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: #33483f; border-color: rgba(201, 211, 163, 0.32); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #1b130c; }
.btn-primary:hover { background: #f09a52; border-color: #f09a52; }
.btn-small { padding: 7px 11px; font-size: 0.85rem; }
.btn-wide { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--lichen); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--birch); }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: 0.9rem; }
input, select {
  font: 1rem var(--body); color: var(--birch); background: rgba(10, 16, 13, 0.6);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus { border-color: var(--ember); outline: none; }
input[type="checkbox"], input[type="range"] { width: auto; accent-color: var(--ember); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; margin: 6px 0 14px; }
.form-error { color: #ff9a8f; min-height: 1.2em; margin: 0 0 10px; }
.form-error:empty, .form-ok:empty { display: none; }
.form-ok { color: var(--ok); }
.auth-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 0.92rem; }

/* toasts */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 1000; pointer-events: none; width: min(92vw, 460px); }
.toast {
  background: rgba(16, 24, 20, 0.95); border: 1px solid var(--line); border-left: 4px solid var(--lichen);
  padding: 10px 14px; border-radius: 6px; font-size: 0.95rem; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.18s ease-out;
}
.toast-success { border-left-color: var(--ok); }
.toast-warn { border-left-color: #e0b44a; }
.toast-error { border-left-color: var(--danger); }
.toast.out { opacity: 0; transition: opacity 0.3s; }
@keyframes toast-in { from { transform: translateY(-6px); opacity: 0; } }

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

/* v0.6.2 languages: hide the English page until the translation is in (never longer than 2.5 s) */
html.i18n-wait body { visibility: hidden; animation: i18n-show 0s linear 2.5s forwards; }
@keyframes i18n-show { to { visibility: visible; } }
.lang-switch { display: inline-flex; gap: 2px; margin-left: 10px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; vertical-align: middle; background: rgba(14, 21, 18, 0.6); }
.lang-switch button { background: none; border: 0; color: #c9c2b2; font: 700 0.72rem/1 var(--body, sans-serif); padding: 5px 7px; border-radius: 6px; cursor: pointer; letter-spacing: 0.04em; }
.lang-switch button:hover { color: var(--birch); }
.lang-switch button.on { background: rgba(232, 133, 58, 0.22); color: var(--birch); }

/* v0.24.0 — the account's recovery key (shown once), Settings → Account */
.recovery-box { display: flex; flex-direction: column; gap: 8px; }
.recovery-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recovery-key { font: 700 1.05rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; padding: 8px 12px;
  border: 1px dashed var(--ember); border-radius: 8px; background: rgba(232, 133, 58, .08); color: var(--birch);
  user-select: all; word-break: break-all; }
.account-box { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.account-box .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.account-box input { min-width: 0; flex: 1 1 140px; }
