:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1f2320;
  --muted: #6b6f6a;
  --accent: #3a5a40;
  --accent-dark: #26401f;
  --danger: #a3392e;
  --border: #dcd6c6;
  --box5: #3a5a40;
  --box1: #c4644a;
}

* { box-sizing: border-box; }

/* Generic hide utility — needed because #mc-answer-block / #open-answer-block
   only ever get the plain "hidden" class (not "screen" or "feedback"), and
   without this rule they stay visible, which is why a leftover multiple-
   choice block could show through under an open question. */
.hidden { display: none !important; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

header {
  padding: 2.5rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.home-btn {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
}
.home-btn:hover { background: #e7ecdf; border-color: var(--accent); }

header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}

.subtitle {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.screen.hidden { display: none; }
