:root {
  color-scheme: light;
  --paper: #f8f8f4;
  --paper-light: #fff;
  --wash: #e9edf7;
  --ink: #202322;
  --muted: #555b64;
  --line: #d5d8e0;
  --blue: #304784;
  --button: var(--blue);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Golos Text", Arial, sans-serif;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid #526caf; outline-offset: 4px; }
:target { scroll-margin-top: 20px; }
.skip {
  position: absolute; top: 8px; left: 8px;
  transform: translateY(-155%); padding: 12px; background: white; z-index: 2;
}
.skip:focus { transform: none; }
.topbar, .footer {
  width: min(1320px, calc(100% - 100px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 86px;
}
.topbar { border-bottom: 1px solid var(--line); }
.brand {
  text-decoration: none; font-weight: 700; font-size: 1.04rem;
}
.topbar nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px 20px; }
.topbar nav a, .footer a { text-underline-offset: 5px; font-size: .92rem; white-space: nowrap; }

.hero, .calendar, .play {
  width: min(1240px, calc(100% - 140px));
  margin-inline: auto;
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  grid-template-areas: "heading visual" "letter visual";
  align-content: center; align-items: start; min-height: 565px; padding-block: 52px 68px;
  column-gap: clamp(32px, 7vw, 106px); row-gap: 19px;
}
.hero-heading { grid-area: heading; align-self: end; }
.hero-copy { grid-area: letter; max-width: 48ch; line-height: 1.6; font-size: 1.06rem; }
.hero-copy p + p { margin-top: 13px; }
.hero-role { color: var(--muted); margin-top: 9px; font-size: .95rem; }
.eyebrow { color: var(--blue); font-size: .91rem; font-weight: 650; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1 {
  font-size: clamp(3.35rem, 6.1vw, 6rem);
  line-height: .92; letter-spacing: -.047em;
}
h1 span { white-space: nowrap; }
.lede { font-size: clamp(1rem, 1.33vw, 1.2rem); line-height: 1.6; max-width: 33ch; }
.hero-action { display: flex; gap: 18px; align-items: center; margin-top: 23px; flex-wrap: wrap; }
.hero-calendar-link { color: var(--blue); text-underline-offset: 4px; }
.button {
  min-height: 48px; border: 1px solid transparent; display: inline-flex;
  align-items: center; justify-content: center; padding: 12px 24px;
  font-weight: 650; font-size: .99rem; text-decoration: none; text-align: center;
}
.primary { background: var(--button); color: white; }
.primary:hover { background: #26396c; }
.outline { border-color: var(--ink); background: transparent; }
.outline:hover { background: #e9edf7; }

.hero-visual {
  grid-area: visual; align-self: center; display: grid; align-items: end;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-right: 9px;
}
.hero-portrait, .hero-cover { grid-row: 1; width: 100%; height: auto; }
.hero-portrait { grid-column: 1 / 9; }
.hero-cover {
  grid-column: 7 / -1; margin-bottom: -13px; transform: rotate(4deg);
  border: 1px solid #d0d3da; box-shadow: 1px 6px 14px #29334824;
}
.cover-top {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6%;
}
.cover-album {
  font-family: var(--display); font-weight: 600; font-style: italic;
  font-size: clamp(.95rem, 1.5vw, 1.3rem);
}

.calendar { border-top: 1px solid var(--line); padding-block: 40px 52px; }
.calendar-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
h2 { font-size: clamp(2.65rem, 5.25vw, 4.6rem); line-height: .99; letter-spacing: -.03em; }
.calendar-heading > .lede { color: var(--muted); max-width: 42ch; }
.gallery { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 13px; }
.gallery-card {
  display: flex; flex-direction: column; gap: 3px; align-items: start; padding: 0 0 10px;
  text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent;
}
.gallery-card:hover { border-color: var(--blue); color: var(--blue); }
.gallery-card img {
  width: 100%; height: auto; border: 1px solid var(--line); margin-bottom: 6px;
}
.gallery-card:hover img { border-color: var(--blue); }
.gallery-month { font-weight: 700; line-height: 1.25; }
.gallery-artist { font-size: .86rem; color: var(--muted); line-height: 1.3; }
.author {
  margin-top: 42px; padding-block: 30px; border-block: 1px solid var(--line);
}
.author-bio { max-width: 66ch; }
.author-bio h2 { margin-bottom: 15px; font-size: clamp(2.6rem, 4.7vw, 4rem); }
.author-bio p + p { margin-top: 9px; }
.author-bio p { line-height: 1.55; }
.author-bio a { color: var(--blue); text-underline-offset: 4px; }
.author-profile { display: inline-block; margin-top: 14px; font-weight: 650; }
.ordering { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--wash); border: 1px solid var(--line); margin-top: 38px; padding: 22px 26px; }
.ordering h3 { font-size: 1.65rem; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; min-height: 64px; }

.play { padding-block: 42px 58px; }
.quiz-progress { display: flex; align-items: center; gap: 20px; font-size: .88rem; }
.quiz-progress > span { white-space: nowrap; font-weight: 650; }
progress {
  flex: 1; min-width: 0; height: 6px; appearance: none; border: 0; border-radius: 4px;
  background: #dde2ec; color: var(--blue);
}
progress::-webkit-progress-bar { background: #dde2ec; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
.text-button, .small-button {
  min-height: 42px; border: 0; padding: 6px 0; background: transparent;
  text-decoration: underline; text-underline-offset: 4px; white-space: nowrap;
}
.text-button:hover, .small-button:hover { color: var(--blue); }
.question-grid, .result-grid {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: start; gap: clamp(24px, 6vw, 86px);
}
.question-grid { margin-top: 25px; }
.quiz-art, .result-art {
  display: flex; align-items: center; justify-content: center;
  min-height: 430px; padding: 8%; border: 1px solid #ac9c79;
  background: radial-gradient(ellipse at 55% 50%, #fbf5e7, #e3d4b3);
  box-shadow: inset 0 0 0 7px #f8f8f485;
}
.quiz-art img { max-height: 390px; width: 100%; object-fit: contain; }
.art-pair { gap: 12px; padding: 5%; align-items: stretch; }
.art-pair img { width: calc((100% - 12px)/2); object-fit: contain; }
.question-copy .eyebrow { margin: 5px 0 10px; }
.question-copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.question-detail { color: var(--muted); line-height: 1.55; margin: 10px 0 18px; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper-light); min-height: 52px; border: 1px solid var(--line); padding: 8px 12px;
  text-align: left;
}
.choice:not(:disabled):hover { border-color: #8192bb; background: var(--wash); }
.choice:disabled { cursor: default; }
.choice-letter {
  display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid var(--line);
  font-weight: 700; font-size: .8rem;
}
.choice.correct { background: #e2ebdd; border-color: #56784e; }
.choice.incorrect { background: #f1deda; border-color: #a34b41; }
.choice-label { margin-left: auto; text-align: right; font-size: .75rem; }
.feedback { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 14px; }
.feedback p { font-size: .9rem; line-height: 1.45; }
.result-art {
  min-height: 480px; overflow: hidden;
  background: color-mix(in srgb, var(--card-color) 48%, var(--paper));
}
.result-card {
  display: flex; flex-direction: column; width: clamp(178px, 61%, 292px); border: 1px solid #acb5cb;
  padding: 12px; background: var(--paper-light); transform: rotate(-3deg); text-align: center;
  box-shadow: 2px 8px 15px #27345535;
}
.result-card img { width: 100%; aspect-ratio: .94; height: auto; object-fit: cover; border: 1px solid var(--line); }
.result-card .cover-artist { font-family: var(--display); font-size: clamp(1rem, 2.2vw, 1.8rem); margin: 9px 0 3px; text-transform: uppercase; }
.result-card .cover-album { padding-bottom: 6px; }
.result-copy { align-self: center; }
.result-copy h2 { margin: 12px 0; overflow-wrap: anywhere; }
.album-meta { margin-bottom: 18px; color: var(--muted); line-height: 1.45; }
.result-copy .lede { max-width: 47ch; }
.score { margin-top: 18px; font-size: .95rem; }
.result-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.result-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; font-size: .93rem; }
.result-links a { display: inline-flex; align-items: center; }

.preview {
  width: min(92vw, 700px); max-height: 94vh; padding: 0;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper);
}
.preview::backdrop { background: #202634c9; }
.preview-bar {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.preview-bar h2 { font-size: 1.38rem; }
.preview img { width: 100%; height: auto; }

@media (max-width: 1120px) {
  .hero, .calendar, .play { width: calc(100% - 92px); }
  .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .topbar, .footer, .hero, .calendar, .play { width: calc(100% - 36px); }
  .topbar { min-height: 65px; }
  .topbar nav { column-gap: 10px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "visual" "letter";
    gap: 19px; padding-block: 24px 34px; min-height: 0;
  }
  h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
  .hero-role { font-size: .86rem; line-height: 1.3; }
  .hero-visual {
    width: min(100%, 480px); grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
    align-items: center; gap: 12px; padding-right: 5px;
  }
  .hero-portrait { grid-column: 1; }
  .hero-cover { grid-column: 2; margin-bottom: 0; transform: rotate(2deg); }
  .hero-copy { font-size: 1rem; }
  .hero-action { margin-top: 18px; gap: 10px 17px; }
  .calendar { padding-block: 27px 36px; }
  .calendar-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 9px; }
  .author { margin-top: 26px; padding-block: 23px; }
  .ordering { margin-top: 28px; align-items: start; flex-direction: column; gap: 7px; padding: 17px; }
  .play { padding-block: 23px 35px; }
  .question-grid, .result-grid { grid-template-columns: 1fr; gap: 20px; }
  .question-grid { margin-top: 13px; }
  .quiz-art, .result-art { padding: 16px; }
  .quiz-art { min-height: clamp(176px, 52vw, 250px); }
  .quiz-art img { height: clamp(144px, calc(52vw - 32px), 218px); }
  .result-card { width: min(55%, 240px); }
  .result-art { min-height: 0; padding-block: 25px; }
}
@media (max-width: 355px) {
  h1 { font-size: 2.5rem; }
  .brand { font-size: .87rem; }
  .topbar nav a { font-size: .83rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
