:root {
  --bg: #faf7f2;
  --ink: #1e2721;
  --muted: #5d655f;
  --line: #e7e1d7;
  --accent: #2f7a4d;
  --soft: #e3f0e7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --ink: #eef1ec;
    --muted: #a3aca5;
    --line: #2b332d;
    --accent: #5dbb83;
    --soft: #1e3326;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
header img { width: 40px; height: 40px; }
header a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
nav { display: flex; gap: 16px; margin: 0 0 32px; font-size: 15px; }
nav a { color: var(--accent); }
nav a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.summary { background: var(--soft); border-radius: 14px; padding: 16px 20px; }
.summary ul { margin: 0; padding-left: 20px; }
a { color: var(--accent); }
li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td { border: 0; padding: 3px 0; }
  td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
/* The code page (/redeem). */
:root { --warn: #a3321f; }
@media (prefers-color-scheme: dark) { :root { --warn: #f0a593; } }
.notice { background: var(--soft); border-radius: 14px; padding: 4px 20px; margin: 0 0 24px; }
.notice.problem { background: transparent; border: 2px solid var(--warn); }
form.redeem { display: grid; gap: 8px; margin: 0 0 8px; }
form.redeem label { font-weight: 600; margin-top: 12px; }
form.redeem input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
form.redeem input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.redeem .hint { color: var(--muted); font-size: 15px; margin: 0; }
form.redeem button { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 12px; padding: 14px; margin-top: 16px; cursor: pointer; }
@media (prefers-color-scheme: dark) { form.redeem button { color: var(--bg); } }
