/* PA'Z design tokens: Design & Feel #2. Light only, by design. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #eaf2fd;
  --text: #12234a;
  --text-muted: #4a5b7d;
  --accent: #0b5cc4;
  --accent-text: #ffffff;
  --accent-deep: #083f8a;
  --line: #c9d8f0;
  --danger: #b42318;
  --danger-bg: #fde8e6;
  --sure: #116b3a;        --sure-bg: #e3f5ea;
  --fairly-sure: #8a5a00; --fairly-sure-bg: #fdf1d8;
  --not-sure: #b42318;    --not-sure-bg: #fde8e6;

  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-display: "Fredoka", "Atkinson Hyperlegible", system-ui, sans-serif;
  --text-sm: 17px; --text-md: 20px; --text-lg: 23px; --text-xl: 28px; --text-2xl: 36px; --text-3xl: 40px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius: 18px;
  --stroke: 3px;
  --press: 80ms;
  --column: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.45;
}

main {
  max-width: var(--column);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + var(--space-6)) var(--space-4) calc(env(safe-area-inset-bottom) + 120px);
}
main.narrow { padding-top: calc(env(safe-area-inset-top) + 15vh); padding-bottom: var(--space-8); }

.wordmark {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}
.narrow .wordmark { font-size: 64px; text-align: center; margin-bottom: var(--space-8); }

.stack { display: grid; gap: var(--space-5); }

.field { display: grid; gap: var(--space-2); font-weight: 700; }
.field input {
  font: inherit;
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--text);
  background: var(--bg);
  border: var(--stroke) solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  min-height: 56px;
  width: 100%;
}
.field input:focus-visible { outline: var(--stroke) solid var(--accent-deep); outline-offset: 3px; }

.button {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--accent);
  box-shadow: 0 5px 0 var(--accent-deep);
  margin-bottom: 5px;
  cursor: pointer;
  transition: transform var(--press) ease-out, box-shadow var(--press) ease-out;
  -webkit-tap-highlight-color: transparent;
}
.button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-deep); }
.button:focus-visible { outline: var(--stroke) solid var(--accent-deep); outline-offset: 4px; }
.button:disabled { opacity: 0.55; cursor: default; }
.button-primary { background: var(--accent); color: var(--accent-text); }
.button-secondary { background: var(--bg); color: var(--accent); }

.message { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-weight: 700; }
.message-danger { color: var(--danger); background: var(--danger-bg); }

.page-header { display: flex; align-items: center; justify-content: space-between; }
.page-header .wordmark { margin: 0; }

.empty {
  margin: var(--space-8) 0;
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--text-lg);
}
.empty p { margin: 0 0 var(--space-3); }
.empty p:last-child { margin: 0; }

.page-footer { margin-top: var(--space-8); }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-3) var(--space-4) calc(env(safe-area-inset-bottom) + var(--space-3));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.dock .button { max-width: calc(var(--column) - 2 * var(--space-4)); margin: 0 auto 5px; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active:not(:disabled) { transform: none; }
}
