/* Okabe-Ito accents. Colour is decoration only: every kind also has a word and a glyph. */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --accent: #0072b2;
  --main: #e69f00;
  --error: #9a3412;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --card: #1f2937;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --line: #374151;
    --accent: #56b4e9;
    --main: #e69f00;
    --error: #fdba74;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; }
header { display: flex; align-items: baseline; justify-content: space-between; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 600; }
.card {
  display: block; text-decoration: none; color: inherit; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px;
}
.card.main { border-left: 6px solid var(--main); padding: 18px 16px; }
.card.main .title { font-size: 20px; font-weight: 600; }
.kind { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.glyph { display: inline-block; min-width: 1.2em; text-align: center; color: var(--text); }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-weight: 500; }
.title { margin: 4px 0; }
.where { font-size: 14px; color: var(--muted); }
details summary { cursor: pointer; color: var(--accent); margin: 16px 0 10px; font-weight: 600; }
button {
  font: inherit; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; margin-top: 10px;
}
.link-button { background: none; color: var(--accent); padding: 4px 0; margin: 0; }
label { display: block; font-weight: 600; margin-top: 12px; }
input { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); }
footer { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.focus-line { margin: 0; }
