/* ── Reset & base ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Palette (earth tones) ────────────────────────── */
:root {
  --bg: #f5f0e8;
  /* warm linen */
  --surface: #ede6d8;
  /* parchment */
  --border: #c9bba8;
  /* sand */
  --text: #1a140d;
  /* dark espresso */
  --text-muted: #3d352c;
  /* warm grey-brown */
  --accent: #5c3d1e;
  /* dark walnut */

  --tag-book: #3b5323;
  /* forest green */
  --tag-series: #7a4a1e;
  /* burnt sienna */
  --tag-game: #2a3d5c;
  /* slate blue */
}

/* ── Typography & body ────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.75;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Sections ─────────────────────────────────────── */
section {
  margin-bottom: 0;
}

.subtitle {
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.me {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.rule-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Shared media list ────────────────────────────── */
.media-list {
  list-style: none;
}

/* ── Media type tags ──────────────────────────────── */
.media-type {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  color: var(--bg);
  flex-shrink: 0;
}

.media-type.book {
  background-color: var(--tag-book);
}

.media-type.series {
  background-color: var(--tag-series);
}

.media-type.game {
  background-color: var(--tag-game);
}

/* ── Current list ─────────────────────────────────── */
.current-list .media-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.current-list .media-item:last-child {
  border-bottom: none;
}

.media-title {
  font-size: 1.1rem;
  color: var(--text);
}

/* ── Completed groups ─────────────────────────────── */
.completed-group {
  margin-bottom: 1.1rem;
}

.completed-group:last-child {
  margin-bottom: 0;
}

.group-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  color: var(--bg);
  margin-bottom: 0.75rem;
}

.group-label.book {
  background-color: var(--tag-book);
}

.group-label.series {
  background-color: var(--tag-series);
}

.group-label.game {
  background-color: var(--tag-game);
}

/* ── Completed list ───────────────────────────────── */
.completed-list .completed-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.completed-list .completed-item:last-child {
  border-bottom: none;
}

.completed-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.completed-date {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: auto;
}

.completed-comment {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Things I care about ──────────────────────────── */
.care-list {
  list-style: none;
  padding: 0;
}

.care-list li {
  padding: 0.3rem 0;
}

/* ── Back link ────────────────────────────────────── */
.back-link {
  font-size: 1.4rem;
  text-decoration: none;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.back-link:hover {
  opacity: 0.7;
}

/* ── Quiz ─────────────────────────────────────────── */
.quiz-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.quiz-legend {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: block;
}

.scale-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scale-end {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 7rem;
}

.scale-end:last-child {
  text-align: right;
}

.scale-options {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.scale-dot input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.quiz-submit {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5em 1.4em;
  background-color: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.quiz-submit:hover {
  opacity: 0.85;
}

/* ── Quiz result ──────────────────────────────────── */
.quiz-result {
  margin-top: 0.5rem;
}

.quiz-result.hidden {
  display: none;
}

.result-type {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.result-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.result-famous-label {
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.result-famous {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-famous-item {
  font-size: 1rem;
  color: var(--text);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.result-famous-item:last-child {
  border-bottom: none;
}

/* ── Days together ────────────────────────────────── */
.together-count {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.days-box {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.day-square {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.day-square.today {
  outline: 1px solid var(--text);
  outline-offset: 1px;
}