:root {
  --bg: #0e1512;
  --ink: #e7ece8;
  --ink-soft: #8ba396;
  --accent: #6fd6a8;
  --line: #223028;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse at top, #16211b 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.7;
  min-height: 100vh;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 44px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
header .brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
header .tagline {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-style: italic;
}
h1 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 22px;
  color: var(--accent);
}
h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 28px 0 14px;
}
p.meta, p.latest-label {
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}
article.riddle p {
  margin: 0 0 1.1em;
  font-size: 1.06rem;
}
p.pending {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.95rem;
}
article.solved h2 {
  margin-top: 0;
}
p.see-riddle {
  margin-top: 4px;
  font-size: 0.85rem;
}
p.see-riddle a { color: var(--accent); text-decoration: none; }
p.see-riddle a:hover { text-decoration: underline; }
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
nav.riddle-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 0.9rem;
}
nav.riddle-nav a {
  color: var(--accent);
  text-decoration: none;
}
nav.riddle-nav a:hover { text-decoration: underline; }
footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
ul.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.archive-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
ul.archive-list a {
  color: var(--ink);
  text-decoration: none;
}
ul.archive-list a:hover { color: var(--accent); }
.archive-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}
