:root {
  --night: #0b1b40;
  --ink: #152039;
  --gold: #ffe2a0;
  --paper: #fff8e9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.06; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #cc7134; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
.frame { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 82px; }
.skip { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 10px 15px; background: var(--gold); color: var(--night); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header, footer { background: var(--night); color: var(--paper); }
.site-header { border-bottom: 1px solid #fff3; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.wordmark { display: block; width: 172px; flex: none; }
nav { display: flex; gap: clamp(12px, 3vw, 37px); font-size: .96rem; font-weight: 600; }
nav a, footer a { text-underline-offset: .25em; }
nav a:hover, footer a:hover { text-decoration: underline; }

.hero { overflow: hidden; color: var(--paper); background: radial-gradient(ellipse at 76% 42%, #284781 0%, #152c59 42%, var(--night) 78%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 54px; min-height: 575px; padding-block: 62px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; flex: none; background: var(--gold); transform: rotate(45deg); }
.hero h1 { font-size: clamp(3rem, 6vw, 5.65rem); line-height: .94; letter-spacing: -.067em; margin-block: 19px 25px; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 405px; color: #eee8df; font-size: 1.04rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 47px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; font-size: .88rem; font-weight: 740; transition: background .15s; }
.primary { background: var(--gold); color: var(--night); }
.primary:hover { background: #ffda96; }
.outline { border-color: #b3c1dc; }
.outline:hover { background: #fff2; }
.hero-art { display: grid; justify-items: center; align-content: center; position: relative; padding: 17px 22px 4px; isolation: isolate; }
.orbit { position: absolute; z-index: -1; width: 108%; aspect-ratio: 1.05; top: -6%; border-radius: 50%; border: 1px solid #f9c8754d; background: radial-gradient(ellipse, #ffe59839, #ff9e4c0a 55%, transparent 70%); transform: rotate(-15deg); }
.feature-cover { display: block; width: min(100%, 385px); transform: rotate(5deg); border-radius: 3px 10px 10px 3px; box-shadow: 12px 20px 30px #070817be, 2px 2px 0 2px #fff9, 6px 5px 0 2px #b1a0a3; transition: transform .2s; }
.feature-cover:hover, .feature-cover:focus-visible { transform: rotate(2deg) translateY(-3px); }
.feature-cover img { border-radius: inherit; }
.feature-caption { margin-top: 30px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: #ffe2a9; }
.spark { position: absolute; width: 21px; height: 21px; background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.spark.one { top: 0; right: 0; }
.spark.two { top: 12%; left: 1%; opacity: .65; }
.spark.three { bottom: 12%; right: -2%; width: 13px; height: 13px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 31px; }
.section h2 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); letter-spacing: -.068em; }
.section-heading p { max-width: 360px; color: #514961; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.book-card { display: flex; flex-direction: column; border-radius: 11px; overflow: hidden; border: 1px solid #e5d5ba; background: #fffdf8; }
.book-art { padding: 23px; }
.book-art img { border-radius: 2px 5px 5px 2px; box-shadow: 3px 4px 0 #e8dfd2, 4px 7px 13px #1c10255c; aspect-ratio: 1; object-fit: contain; }
.art-gnome { background: #dbdfcb; }
.art-elf { background: #ebd9e5; }
.art-trolley { background: #f1ddb5; }
.book-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 24px; gap: 11px; }
.book-copy h3 { font-size: clamp(1.43rem, 2.25vw, 2rem); letter-spacing: -.05em; }
.book-copy p { flex: 1; color: #514961; font-size: .96rem; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 750; font-size: .89rem; text-decoration: underline; text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 2px; }

.read { background: #152c59; color: var(--paper); }
.read-grid, .origin-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.read h2 { margin-top: 13px; }
.read blockquote { color: #ffe1a4; max-width: 365px; font-family: var(--serif); font-style: italic; line-height: 1.25; font-size: clamp(1.38rem, 3.2vw, 2.25rem); margin-block: 19px 22px; }
.read img, .origin img, .team-banner { border-radius: 11px; }
.team-banner { box-shadow: 0 8px 20px #25153627; }
.character-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.character-card { padding: 24px; background: #fffdf8; border: 1px solid #e5d5ba; border-radius: 11px; }
.character-header { display: flex; align-items: center; gap: 14px; }
.character-portrait { display: block; width: clamp(70px, 8vw, 96px); height: auto; flex: none; border-radius: 12px; }
.character-card h3 { color: var(--night); font-size: clamp(1.45rem, 2.5vw, 1.9rem); letter-spacing: -.04em; }
.character-card p { color: #514961; font-size: .96rem; margin-top: 10px; }
.origin { background: #f4e7d5; }
.origin h2 { margin-bottom: 17px; }
.origin p + p { margin-top: 12px; }
.footer-inner { min-height: 90px; font-size: .89rem; }
.footer-inner p { color: #e9ddea; }
.footer-inner > a:last-child { color: var(--gold); font-weight: 700; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 60px); }
  .hero-grid { gap: 25px; min-height: 495px; }
  .hero h1 { font-size: clamp(2.8rem, 7.1vw, 5rem); }
  .book-art, .book-copy { padding: 16px; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .frame { width: calc(100% - 36px); }
  .header-inner { gap: 10px; min-height: 58px; }
  .wordmark { width: 116px; }
  nav { gap: 11px; font-size: .76rem; }
  .hero-grid, .read-grid, .origin-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid { padding-block: 48px 36px; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4.8rem); }
  .hero-art { width: min(100%, 350px); margin-inline: auto; }
  .feature-cover { width: min(100%, 275px); }
  .section { padding-block: 51px; }
  .section-heading { display: block; margin-bottom: 21px; }
  .section-heading p { margin-top: 9px; }
  .book-grid, .character-grid { grid-template-columns: 1fr; }
  .book-art { padding: 21px; }
  .book-copy { padding: 20px; }
  .origin img { order: 2; }
  .footer-inner { flex-wrap: wrap; gap: 8px 14px; justify-content: flex-start; padding-block: 15px; }
  .footer-inner > a:last-child { margin-left: auto; }
}
@media (max-width: 380px) {
  .wordmark { width: 98px; }
  nav { gap: 8px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
