/* Black Paper Album: tokens, base and shared controls.
   The ground is black album card; the ink is off-white; paper corners are tan.
   One hot red is reserved for "?" guesses. Page layout is in app.css. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("atkinson-400.d49948a1804b.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("atkinson-700.333ad906f2ff.ttf") format("truetype"); }
@font-face { font-family: "Kalam"; font-weight: 400; font-style: normal; font-display: swap; src: url("kalam-400.22084c6e3c1b.ttf") format("truetype"); }

:root {
  color-scheme: dark;
  --bg: #141312;
  --page: #2b2824;
  --ink: #f1efe8;
  --muted: #c4bfb2;
  --corner: #b9ad92;
  --line: #4a463f;
  --edge: #8b8578;
  --hot: #ff7a5c;

  --ui: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --radius: 6px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 19px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--ui); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0 0 .8em; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--corner); color: #1a1712; }
input, textarea { caret-color: var(--hot); }
::placeholder { color: var(--muted); opacity: 1; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--line) var(--bg); }

/* buttons: all at least 52px tall, labelled in words */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px; cursor: pointer; text-decoration: none;
  font: 700 19px/1.2 var(--ui); color: var(--ink); background: transparent;
  border: 2px solid var(--edge); border-radius: var(--radius);
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #2a2724; border-color: var(--ink); }
.btn:active { background: #35312d; }
.btn:disabled, .btn[aria-disabled=true] { cursor: not-allowed; }
.btn:disabled:not(.btn-ink) { opacity: 1; color: var(--muted); border-style: dashed; }
.btn-ink:disabled { opacity: .7; }
.btn svg { display: block; flex: none; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #fff; border-color: #fff; }
.btn-ink:active { background: var(--muted); border-color: var(--muted); }
.btn-big { min-height: 58px; font-size: 21px; padding: 12px 26px; }

/* fields */
.input {
  width: 100%; min-height: 52px; padding: 10px 14px; font: 400 19px/1.5 var(--ui); color: var(--ink);
  background: var(--page); border: 2px solid var(--edge); border-radius: var(--radius);
}
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline-offset: 2px; border-color: var(--ink); }
textarea.input { min-height: 140px; resize: vertical; }

/* tag chips */
.tag { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; font-size: 18px; text-decoration: none; border: 2px solid var(--edge); border-radius: 999px; }
.tag:hover { border-color: var(--ink); background: #2a2724; }
