:root {
  font-family: "IM Fell English SC", "IM Fell English SC", serif;
}

html, body {
  height: 100%;
}

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');

body {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #5f462a;

  /* ✅ parchment texture */
  background-image: url("./assets/parchment-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #f2e6cf;
}


h1, h2 {
  letter-spacing: 0.06em;
}

.question-text {
  font-size: 2.1rem;
}

.answer-key {
  font-size: 1.5rem;
}

#cornerArt {
  position: fixed;
  right: 18px;
  bottom: 18px;

  width: min(360px, 38vw);
  height: min(360px, 38vw);

  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;

  pointer-events: none;
  z-index: 2;

  /* Blend + soften */
  opacity: 0.99;
  filter: sepia(0.35) contrast(1.05);

  /* Optional: removes the “cutout” vibe */
  mix-blend-mode: multiply;
}


/* Hide on very small screens if it crowds content */
@media (max-width: 520px) {
  #cornerArt {
    display: none;
  }
}


/* Optional vignette for extra depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index:1;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.20) 100%);
}

#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 18px;
  color: inherit;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

h1,
h2 {
  margin: 0 0 12px 0;
}

/* Buttons */
button {
  cursor: pointer;
  border: 1px transparent;
  background: transparent;
  color: #2a1f14;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}

button:hover {
  filter: brightness(1.05);
}

button.primary {
  background: rgba(170, 120, 60, 0.95);
  border-color: rgba(170, 120, 60, 0.95);
  color: #1b1208;
}

button.ghost {
  background: transparent;
}

/* Pills / tags */
.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: transparent;
  background: transparent;
  font-size: 18px;
  color: #2a1f14;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.choice {
  width: 100%;
  text-align: left;
}

/* Correct / wrong choice borders (kept from your logic, but toned to match parchment) */
.choice.correct {
  border-color: rgba(7, 112, 70, 0.95);
}

.choice.wrong {
  border-color: rgba(114, 6, 6, 0.95);
}

.muted {
  opacity: 0.8;
}

input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #5c3b1e;
  border-radius: 4px;
  background: #f3e5c0;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: #5c3b1e;
  position: relative;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  color: #f3e5c0;
  position: absolute;
  font-size: 14px;
  top: -1px;
  left: 2px;
}

/* Checkbox chips */
.check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px transparent;
  background: transparent;
  border-radius: 999px;
  user-select: none;
  color: #614226;
}

.check input {
  transform: translateY(1px);
}
