@font-face {
  font-family: Rubik;
  src: url("/static/rubik-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 900;
}

:root {
  color-scheme: dark;
  --text: #fff3ec;
  --muted: #e0cbd1;
  --line: #ffffff29;
  --surface: #160c13;
  --warm-edge: color-mix(in srgb, var(--accent) 32%, transparent);
  font-family: Rubik, system-ui, sans-serif;
  color: var(--text);
  background: var(--theme);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: #fff1bc; }
.text-link, .doc-wrap a {
  text-decoration-color: var(--warm-edge);
  text-decoration-thickness: 1px;
}
.text-link:hover, .doc-wrap a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.13; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: absolute; z-index: 1; padding: .6rem 1rem; background: var(--theme); transform: translateY(-120%); }
.skip-link:focus { transform: none; }
.site-header, .site-footer { background: var(--surface); }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row, nav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; }
.header-row, .footer-row { justify-content: space-between; }
.header-row { min-height: 74px; }
.brand { display: block; width: 122px; }
.site-header nav a, .footer-row a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover, .footer-row a:hover { color: var(--accent); }

.doc-page { padding-block: clamp(36px, 7vw, 76px); }
.doc-wrap { max-width: 760px; margin-inline: auto; overflow-wrap: anywhere; }
.doc-head { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.doc-meta { color: var(--muted); margin: 0; }
.doc-wrap h2 { margin-top: 1.5em; font-size: clamp(1.4rem, 3vw, 2rem); }
.doc-wrap li + li { margin-top: .35rem; }
.site-footer { padding-block: 1.45rem; border-top: 1px solid var(--line); }
.footer-row p { margin: 0; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-image:
    linear-gradient(90deg, #1a0e17 2%, #1a0e17e8 28%, #23101c2c 72%),
    linear-gradient(0deg, var(--theme), transparent 40%),
    var(--hero-background);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--warm-edge);
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.28fr);
  padding-block: clamp(56px, 8vw, 115px);
  min-height: min(610px, 70vw);
}

.hero-copy { z-index: 1; }
.hero-title { margin-bottom: .28em; }
.hero-title img { width: min(100%, 400px); filter: drop-shadow(0 14px 20px #160712b0); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-scene { position: relative; isolation: isolate; padding-top: clamp(100px, 15vw, 176px); }
.hero-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px -18% -16%;
  background: radial-gradient(ellipse 32% 38% at 66% 42%, #ff8a3459, #e73d281f 57%, transparent);
  pointer-events: none;
}

.hero-volcano {
  position: absolute;
  z-index: -1;
  width: clamp(205px, 30vw, 345px);
  right: 3%;
  top: -74px;
  filter: drop-shadow(0 0 34px #ff692277);
}

.hero-coins {
  position: absolute;
  width: clamp(70px, 11vw, 145px);
  bottom: -27px;
  left: -20px;
  filter: drop-shadow(0 10px 12px #10050bab);
  pointer-events: none;
}

.hero-shot {
  position: relative;
  padding: 5px;
  border: 1px solid #ffc464b8;
  border-radius: 17px;
  background: linear-gradient(150deg, #fff4bc, #ad501d 27%, #442130 58%, #e59138);
  box-shadow: 0 18px 55px #130a14, 0 0 40px #ff803827;
}

.hero-shot img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }

.hero-embers {
  position: absolute;
  z-index: -1;
  width: 3px;
  height: 3px;
  top: 52%;
  left: 55%;
  border-radius: 50%;
  color: #ff8742;
  background: currentColor;
  box-shadow: -72px -94px #ffc778, 74px -89px #ff943f, 148px -29px #ffd17a,
    218px -112px #f35e31, 307px -63px #ffb05d, -29px 71px #ffb55d,
    80px 110px #ff943f, 368px 45px #ffc778, 405px -113px #ff943f;
  filter: drop-shadow(0 0 4px #ff713a);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 49px;
  gap: .6rem;
  padding: .62rem 1.12rem;
  border-radius: .82rem;
  border: 1px solid var(--warm-edge);
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #fff3bb, var(--accent) 44%, #ee9b2f);
  color: #32140e;
  border-color: #ffe8a6;
  box-shadow: inset 0 1px #fff9db, 0 3px #8f3c21, 0 8px 22px #ef652334;
}

.btn-primary::before {
  content: "";
  width: 11px;
  height: 13px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(180deg, #47202b, #26141e 78%);
  border-color: #b7744299;
  box-shadow: inset 0 1px #ffd39524, 0 3px #140b13;
}

.btn-secondary:hover { color: #ffe5b6; }
.btn:hover { text-decoration: none; filter: brightness(1.13); }
.btn:active { transform: translateY(2px); }

.section { margin-block: clamp(44px, 7vw, 84px); }
.feature-grid, .gallery { display: grid; margin-top: 1.3rem; }


.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3.5vw, 42px); }
.feature {
  border: 0;
  border-top: 1px solid var(--warm-edge);
  border-radius: 0;
  padding: 1.25rem 0 0;
  background: none;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: .85rem;
  align-content: start;
}
.feature-icon {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px #ef652345);
}
.feature h3 { margin-top: .12em; }

.feature p { margin: 0; color: var(--muted); }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border: 1px solid var(--warm-edge); border-radius: .75rem; }
.gallery figcaption { margin-top: .7rem; color: var(--muted); font-weight: 600; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

.journal { padding-block: clamp(48px, 8vw, 96px); }
.journal-heading { max-width: 720px; margin-bottom: clamp(28px, 5vw, 52px); }
.journal-heading p { color: var(--muted); font-size: 1.1rem; }
.journal-list { display: grid; }
.journal-item {
  display: grid;
  grid-template-columns: minmax(0, 208px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 34px);
  border-top: 1px solid var(--line);
  padding-block: 1.15rem;
}
.journal-item:last-child { border-bottom: 1px solid var(--line); }
.journal-item img, .journal-visual img { border-radius: .4rem; }
.journal-item h2, .journal-item h3 {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: -.018em;
  margin: .2rem 0 .45rem;
}
.journal-item h2 a, .journal-item h3 a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
}
.journal-item h2 a:hover, .journal-item h3 a:hover,
.journal-item h2 a:focus-visible, .journal-item h3 a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--warm-edge);
}
.journal-item p { color: var(--muted); margin: 0; max-width: 60ch; }
.journal-item time, .journal-visual figcaption { color: var(--muted); font-size: .86rem; }
.journal-article { max-width: 820px; margin-inline: auto; }
.back-link { display: inline-block; margin-bottom: 1.65rem; }
.journal-heading .journal-byline { font-size: .95rem; }
.journal-visual { margin: 0 0 2rem; }
.journal-visual figcaption { margin-top: .5rem; }
.journal-prose { max-width: 66ch; font-size: 1.07rem; }

.play-note {
  padding-block: 1.4rem 1.65rem;
  border-top: 1px solid var(--line);
}
.play-note h2 {
  font-size: 1rem;
  letter-spacing: 0;
}
.play-note p { max-width: 72ch; margin: 0; color: var(--muted); font-size: .92rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .72s ease-out both; }
  .hero-scene { animation: rise-in .9s .08s ease-out both; }
  .hero-embers { animation: ember-drift 4s ease-in-out 2 both; }
  .btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
  .gallery img { transition: border-color .25s ease, box-shadow .25s ease; }

  @media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .btn:active { transform: translateY(2px); }
    .gallery figure:hover img {
      border-color: var(--accent);
      box-shadow: 0 8px 28px #ff7b2626;
    }
  }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes ember-drift {
    from { opacity: 0; transform: translateY(28px); }
    30% { opacity: .8; }
    65% { opacity: .56; }
    to { opacity: 0; transform: translate(22px, -100px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-embers { display: none; }
  .btn:active { transform: none; }
}

@media (max-width: 780px) {
  .hero {
    background-image:
      linear-gradient(180deg, #1a0e17 0%, #1a0e17b3 30%, #23101c22 60%, var(--theme)),
      var(--hero-background);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding-block: 34px 46px;
  }

  .hero-scene { padding-top: clamp(102px, 23vw, 145px); }
  .hero-volcano { top: -14px; right: 3%; }
  .hero-coins { left: -10px; bottom: -19px; }
  .hero-embers { top: 64%; left: 18%; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { padding-block: .6rem .8rem; }
  .site-header nav { gap: .35rem .7rem; }
  .hero-title img { width: min(100%, 290px); }
  .gallery { grid-template-columns: 1fr; }
  .journal-item { grid-template-columns: 1fr; }
  .journal-item img { width: 100%; }
  .site-header nav { font-size: .85rem; }
  .hero-shot { padding: 3px; border-radius: 12px; }
  .hero-shot img { border-radius: 9px; }
  .btn { padding-inline: .85rem; }
}
