/* Write In Yellow — the writer quiz on the landing page: the masthead link and the
   splash under the hero. The quiz itself is quiz.html. */

.masthead-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.masthead-quiz {
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
}
.masthead-quiz:hover { border-bottom-color: var(--ink); }
.masthead-quiz .short { display: none; }

/* The splash: a dark card like the write-along band, with the quiz's yellow notebook. */
.quiz-splash { padding-bottom: 88px; }
.qs-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 56px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 4px rgba(40, 35, 25, .12), 0 40px 80px -40px rgba(40, 35, 25, .6);
}
.qs-card .eyebrow { color: #b9b09c; }
.qs-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.qs-card h2 em { font-style: normal; color: var(--yellow); }
.qs-lede {
  margin: 0 0 28px;
  font-size: 1.25rem;
  color: #e6dfcc;
  max-width: 36ch;
}
.qs-go { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.qs-card .button { border-color: var(--yellow); }
.qs-card .button:hover { box-shadow: 0 3px 0 var(--paper); }
.qs-note { font-size: 0.95rem; color: #b9b09c; }

/* The notebook: Fitz's Reader's Report, closed, with its elastic band. */
.qs-art { display: flex; justify-content: center; }
.qs-book {
  position: relative;
  width: 210px;
  aspect-ratio: 3 / 4;
  transform: rotate(-4deg);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  text-decoration: none;
  color: var(--ink);
}
.qs-book:hover { transform: rotate(-2deg) translateY(-6px); }
.qs-pages {
  position: absolute;
  inset: 6px -8px -8px 6px;
  border-radius: 6px 14px 14px 6px;
  background: repeating-linear-gradient(0deg, #fbf8f0 0 3px, #e9e1cd 3px 4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
}
.qs-cover {
  position: absolute;
  inset: 0;
  border-radius: 6px 16px 16px 6px;
  background: linear-gradient(135deg, #f0d468 0%, var(--yellow) 50%, #d4ad25 100%);
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, .08);
}
.qs-band {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 22%;
  width: 12px;
  background: linear-gradient(90deg, #222 0, #3a3a3a 50%, #222 100%);
}
.qs-title {
  position: absolute;
  left: 12%;
  top: 14%;
  right: 34%;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}
.qs-title small {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: .8;
}
.qs-tag {
  position: absolute;
  left: 10%;
  bottom: 13%;
  padding: 8px 12px 8px 14px;
  border-radius: 4px 12px 12px 4px;
  background: #fbf8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transform: rotate(3deg);
  font-size: 0.8rem;
  line-height: 1.2;
}
.qs-tag i { display: block; font-size: 1.15rem; }

@media (max-width: 860px) {
  .qs-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 32px; }
  .qs-art { order: -1; justify-content: flex-start; }
  .qs-book { width: 150px; }
  .qs-title { font-size: 1.25rem; }
  .qs-title small { font-size: 0.7rem; margin-top: 6px; }
  .qs-tag { font-size: 0.7rem; padding: 6px 10px; }
  .qs-tag i { font-size: 0.95rem; }
}

@media (max-width: 760px) {
  .masthead-quiz .long { display: none; }
  .masthead-quiz .short { display: inline; }
  .masthead-quiz { border-bottom-color: var(--yellow); }
  .quiz-splash { padding-bottom: 64px; }
  .qs-card { padding: 28px 22px 30px; }
  .qs-lede { font-size: 1.1rem; }
  .qs-book { width: 120px; margin-left: 6px; }
  .qs-title { font-size: 1rem; }
  .qs-title small { font-size: 0.6rem; }
  .qs-tag { font-size: 0.6rem; padding: 5px 8px; }
  .qs-tag i { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qs-book { transition: none; }
}
