:root {
  --bg: #0f1419;
  --surface: #171e26;
  --text: #e8e2d4;
  --muted: #9aa4af;
  --gold: #d4a64a;
  --gold-soft: #3a2f17;
  --border: #26303b;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f2e9;
    --surface: #fffdf7;
    --text: #2a2418;
    --muted: #6b6455;
    --gold: #9a6b12;
    --gold-soft: #f0e3c2;
    --border: #e2d9c3;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 16px 40px;
}
h1 {
  font: 600 clamp(2.4rem, 8vw, 3.6rem)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--gold);
}
.tagline { color: var(--muted); margin: 0 0 40px; font-size: 1.05rem; }
.cards { display: grid; gap: 14px; }
@media (min-width: 520px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover, .card:focus-visible { border-color: var(--gold); transform: translateY(-1px); outline: none; }
.card strong { display: block; font-size: 1.1rem; color: var(--gold); }
.card span { color: var(--muted); font-size: 0.95rem; }
footer { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 0.85rem; }

.guide { margin-top: 56px; }
.guide h2 { font: 600 1.5rem/1.3 Georgia, "Times New Roman", serif; color: var(--gold); margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 20px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 4px 20px;
}
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: outside; }
summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
details ol, details ul { padding-left: 1.3em; margin: 4px 0 10px; }
details li { margin-bottom: 8px; }
details p { margin: 6px 0 10px; }
.hint { color: var(--muted); font-size: 0.92rem; }
a { color: var(--gold); }

.logo { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 12px; margin: 0 auto; }
h1 { margin: 0 0 14px; line-height: 0; }

.tagline { text-align: center; }

/* visible expand/collapse control instead of the easy-to-miss default triangle */
summary { display: flex; justify-content: space-between; align-items: center; list-style: none; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; font-weight: 400; }
details[open] > summary::after { content: "\2013"; }
.tap { color: var(--gold); }
