:root {
  color-scheme: light;
  --ink: #132050;
  --brand: #273ec0;
  --action: #2524a9;
  --yellow: #ffea7d;
  font: 100%/1.5 'Avenir Next', Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--brand);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
:where(a, button, summary):focus-visible { outline: 3px solid #36117b; outline-offset: 4px; }
[hidden] { display: none !important; }

.content { width: min(100% - clamp(2rem, 8vw, 6rem), 72rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; top: .5rem; left: .5rem; translate: 0 -150%; padding: .7rem 1rem; border-radius: .5rem; background: #fff; }
.skip-link:focus { translate: 0; }
.site-nav, .site-footer { background: var(--brand); color: #fff; }
.nav-row, .footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1.4rem; padding-block: .62rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { width: 2.35rem; height: 2.35rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover, .scroll-call a:hover { text-decoration: underline; text-underline-offset: .22em; }
:is(.site-nav, .site-footer, .comic) :focus-visible { outline-color: #ffea7d; }

.desk { background: #a9e7ff; }
.desk-content { padding-block: clamp(1.9rem, 5vw, 4rem) 1rem; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.hero-copy { position: relative; display: grid; gap: 1rem; z-index: 1; }
.eyebrow { color: #2924a4; font-size: .85rem; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
h1, .chapter-title { font-size: clamp(2.65rem, 7vw, 5.7rem); font-weight: 820; letter-spacing: -.055em; line-height: .98; }
.intro { max-width: 41ch; font-size: clamp(1rem, 2vw, 1.22rem); color: #223663; }
.action { display: inline-flex; width: fit-content; min-height: 46px; align-items: center; justify-content: center; padding: .62rem 1rem; border-radius: .56rem; background: var(--action); color: #fff; text-decoration: none; font-size: 1rem; font-weight: 780; }
.action:hover { background: #181a81; }
.hero-art { position: relative; width: min(100%, 31rem); margin-inline: auto; padding: .75rem 1.1rem; }
.hero-card { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1.25rem; box-shadow: .38rem .4rem 0 #3552d8; }
.hero-sticker { position: absolute; width: 28%; height: auto; filter: drop-shadow(0 3px 2px #1e27604b); pointer-events: none; }
.hero-viking { bottom: -.3rem; left: -.15rem; rotate: -12deg; }
.hero-tophat { top: -.5rem; right: -.1rem; rotate: 11deg; }

.mood { display: grid; grid-template-columns: 6.6rem minmax(0,1fr); align-items: center; gap: 1rem; margin-top: 2rem; padding: .9rem; border: 2px solid #3648cf; border-radius: 1.15rem; background: #fff4ba; }
.mood img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .85rem; }
.mood h2, .collection h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; }
.choices { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0; }
.choices button { min-height: 44px; border: 1px solid #6d6040; border-radius: 99px; padding: .3rem .68rem; background: #fffdf4; font-size: .9rem; font-weight: 720; }
.choices button[aria-pressed="true"] { background: #ffdf55; color: #251d44; border-color: #80631d; }
#mood-note { font-size: .92rem; color: #26325a; }
.scroll-call { text-align: center; margin-top: .45rem; }
.scroll-call a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 750; text-underline-offset: .22em; }

.album { color: #39175f; background: #ffc9ee; border-top: 5px solid #f67bc2; }
.album-content, .comic-content { padding-block: clamp(2.4rem, 6vw, 4.7rem); }
.album-content { text-align: center; }
.album .eyebrow { color: #6125a0; }
.chapter-title { font-size: clamp(2.35rem, 6vw, 4.85rem); margin-top: .45rem; }
.album .chapter-title { max-width: 17ch; margin-inline: auto; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.album .intro { color: #4f2d66; margin: .85rem auto 0; }
.sticker-grid { max-width: 50rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.48rem, 2vw, 1rem); margin: 1.68rem auto 1rem; }
.sticker { display: grid; justify-items: center; align-content: end; gap: .5rem; min-width: 0; min-height: 44px; padding: .72rem .36rem; border: 2px solid #67278a; border-radius: .95rem; box-shadow: 0 4px #68217b; color: #281344; font-size: clamp(.88rem, 2vw, 1.05rem); font-weight: 770; line-height: 1.18; }
.sticker img { width: 94%; height: auto; max-width: 11.4rem; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 5px 2px #1f142740); }
.sticker[aria-pressed="true"] { translate: 0 -2px; border-color: #471460; box-shadow: 0 6px #471460; }
.viking { background: #95dcff; }
.viking img { rotate: -9deg; }
.tophat { background: #ffd65f; }
.tophat img { rotate: 7deg; }
.pirate { background: #bdf584; }
.pirate img { rotate: -5deg; }
.sticker-note { min-height: 4rem; color: #4f2d66; }
.sticker-note strong { color: #39175f; }
.traits { max-width: 50rem; text-align: left; margin: .75rem auto 0; border-block: 1px solid #9c589f; }
.traits summary { display: list-item; padding: .65rem .15rem; font-weight: 800; cursor: pointer; }
.traits ul { display: grid; list-style: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem .55rem; margin: 0; padding: .4rem .15rem .8rem; }
.traits a { display: inline-flex; min-height: 44px; align-items: center; margin: 0 .15rem .25rem; text-underline-offset: .22em; }

.comic { background: #3b2092; color: #fff5e9; border-top: 5px solid #8062ee; }
.comic .eyebrow, .comic .chapter-title { color: #fff087; }
.comic-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; margin-top: 1.25rem; }
.comic-panel { width: 100%; min-width: 0; min-height: 44px; overflow: hidden; text-align: left; padding: 0; border: 2px solid #ac94f5; border-radius: .62rem; background: #3b2092; }
.comic-panel[aria-pressed="true"] { border-color: #ffe86c; }
.comic-panel img { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; object-position: center 38%; }
.comic-panel .comic-caption { display: block; padding: .54rem .7rem; border-top: 2px solid #303043; font-size: clamp(.92rem, 2vw, 1.05rem); font-weight: 800; line-height: 1.2; color: #241f32; }
.comic-panel:nth-child(1) .comic-caption { background: #fff092; }
.comic-panel:nth-child(2) .comic-caption { background: #adf1ff; }
.comic-panel:nth-child(3) .comic-caption { background: #ffabd9; }
.comic-panel .comic-punchline { display: none; }
#comic-note { min-height: 2.8rem; margin-top: .85rem; color: #f2e5ff; }

.collection { color: #27144d; background: var(--yellow); }
.collection-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding-block: 1.8rem; }
.collection p { max-width: 50ch; margin-top: .35rem; }

@media (max-width: 640px) {
  .nav-row { gap: 0; }
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { gap: .8rem; }
  .hero-art { width: min(100%, 24rem); }
  .mood { grid-template-columns: 4.2rem minmax(0,1fr); gap: .6rem; margin-top: 1.45rem; padding: .65rem; }
  .comic-strip { grid-template-columns: 1fr; width: min(100%, 28rem); margin-inline: auto; }
  .comic-panel img { aspect-ratio: 1.5; }
  .comic-panel .comic-punchline { display: block; padding: .55rem .7rem; color: #fff5e9; font-size: .95rem; }
  #comic-note { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) {
  .mood { grid-template-columns: 1fr; }
  .mood img { width: 4rem; }
  .traits ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .show-on-scroll.is-visible { animation: rise .5s ease-out both; }
  @keyframes rise { from { translate: 0 .65rem; } to { translate: 0; } }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sticker img { transition: transform .19s ease; }
  .sticker:hover img { transform: scale(1.08); }
}
