:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #262a22;
  --muted: #5f6459;
  --line: #d8d1bf;
  --peach: #ffa574;
  --terracotta: #b0542a;
  --cream: #fff4db;
  --gold: #edcf99;
  --night: #0b1a19;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(60rem 38rem at 88% -12rem, rgba(255, 165, 116, .2), transparent 70%) no-repeat,
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .35em; }
a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 6px; border-radius: 2px; }
.wrap { width: min(1160px, calc(100% - 6rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -6rem; background: #fff; padding: 1rem; z-index: 5; }
.skip:focus { top: 1rem; }

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: block; width: 55%; max-width: 250px; }
.brand img { display: block; width: 100%; height: auto; }
.nav {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: .35rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.nav:hover { color: var(--terracotta); background-size: 35% 1px; }

/* Intro */
.intro { padding-block: 6.5rem 6rem; }
.eyebrow {
  margin: 0 0 2rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; display: inline-block; vertical-align: middle; margin: -.2em .9rem 0 0; width: 2rem; height: 1px; background: currentColor; opacity: .55; }
.intro .eyebrow { color: var(--terracotta); }
.intro .eyebrow span { opacity: .6; }
h1, h2, .glint-tagline, .soon, figcaption { font-family: var(--serif); font-weight: 400; }
h1 {
  margin: 0 0 3rem;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: -.03em;
}
h1 em { font-style: italic; font-weight: 300; color: var(--terracotta); }
.intro-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.intro-bottom p { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.125rem; }
.text-link {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: .35rem;
  border-bottom: 1px solid currentColor;
  transition: color .2s;
}
.text-link span { display: inline-block; margin-left: .6rem; transition: transform .35s var(--ease); }
.text-link:hover { color: var(--terracotta); }
.text-link:hover span { transform: translateY(3px); }

/* Glint */
.glint {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background: var(--night);
}
.glint::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -2;
  background: url('/assets/library.jpg') center 48% / cover no-repeat;
  filter: blur(3px) saturate(1.1);
}
.glint::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 26, 25, .55), transparent 22%, transparent 75%, rgba(11, 26, 25, .6)),
    linear-gradient(90deg, rgba(11, 26, 25, .94), rgba(11, 26, 25, .74) 50%, rgba(11, 26, 25, .32));
}
.glint-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-block: 7rem 6.5rem;
}
.glint .eyebrow { color: var(--gold); }
h2 {
  margin: 0 0 .6rem;
  font-size: clamp(5rem, 10vw, 8.75rem);
  font-weight: 380;
  line-height: .95;
  letter-spacing: -.035em;
  text-shadow: 0 0 60px rgba(255, 214, 150, .18);
}
.glint-tagline {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.description { max-width: 500px; margin: 0; color: #e2e0d3; font-size: 1.125rem; }
.availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  max-width: 500px;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(237, 207, 153, .28);
}
.soon { margin: 0; font-size: 1.4rem; font-style: italic; color: var(--gold); }
.platforms { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.platforms li { display: flex; }
.platforms li + li { padding-left: 1.25rem; border-left: 1px solid rgba(237, 207, 153, .28); }
.platforms svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.release-note { max-width: 420px; margin: 1.25rem 0 0; color: #c9c7b9; font-size: .9rem; }

.mascot { margin: 0; text-align: center; }
.mascot-art { position: relative; display: inline-block; }
.mascot-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: -1;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 206, 120, .42), rgba(255, 176, 90, .14) 55%, transparent);
  pointer-events: none;
}
.mascot img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}
figcaption { margin-top: 1.5rem; font-size: 1.2rem; font-style: italic; font-weight: 300; color: #e8d7b2; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-block: 3rem;
}
.footer p { margin: 0; font-size: .875rem; color: var(--muted); }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--terracotta); }
.footer .legal { margin-bottom: .4rem; color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.copyright { text-align: right; }

/* Load-in */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.intro > * { animation: rise .9s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .1s; }
.intro > :nth-child(3) { animation-delay: .22s; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 3rem); }
  .header { padding-block: 1.5rem; }
  .brand { max-width: 190px; }
  .intro { padding-block: 4rem 3.5rem; }
  h1 { margin-bottom: 2.25rem; }
  .intro-bottom { display: block; padding-top: 1.5rem; }
  .text-link { display: inline-block; margin-top: 1.75rem; }
  .glint-inner { grid-template-columns: 1fr; gap: 3rem; padding-block: 4.5rem; }
  .glint::after { background: linear-gradient(180deg, rgba(11, 26, 25, .9), rgba(11, 26, 25, .72)); }
  .mascot img { width: 210px; }
  .footer { flex-direction: column; align-items: start; gap: 1rem; }
  .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
