:root {
  color-scheme: dark;
  --night: #10161f;
  --panel: #19222d;
  --ink: #07090d;
  --cream: #f7eed8;
  --ember: #ffc069;
  --text: #f2f1e9;
  --muted: #b6c4bc;
  --paper-ink: #2a2116;
  --paper-muted: #63543e;
  --display: ui-rounded, "Apple SD Gothic Neo", system-ui, sans-serif;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.13; }
p { overflow-wrap: break-word; }
p:lang(ko) { word-break: keep-all; }
:focus-visible { outline: 3px solid #f2a541; outline-offset: 4px; }

.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid #b1c4d426; }
.topbar, .footer-row, .header-controls, .desktop-nav, .brand { display: flex; align-items: center; }
.topbar { min-height: 4.75rem; gap: 2rem; }
.brand { gap: .65rem; margin-right: auto; min-width: 0; font-family: var(--display); font-weight: 850; text-decoration: none; }
.brand img { flex: 0 0 auto; width: 2.375rem; height: 2.375rem; border: 1px solid #ffd89966; border-radius: .65rem; }
.desktop-nav { gap: 1.5rem; }
.desktop-nav a, .mobile-nav a, .site-footer a { font-size: .94rem; font-weight: 650; text-decoration: none; }
.desktop-nav a:hover, .mobile-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.desktop-nav a[aria-current], .mobile-nav a[aria-current] { color: var(--ember); }
.header-controls { gap: .55rem; }
.sr-only, .ipe-lang__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ipe-lang { position: relative; }
.ipe-lang::after { content: ""; position: absolute; top: 17px; right: .85rem; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.ipe-lang__select, .mobile-nav summary { min-height: 44px; border: 1px solid #86988f6b; border-radius: .75rem; background: var(--panel); color: var(--text); }
.ipe-lang__select { appearance: none; padding: .42rem 1.85rem .42rem .72rem; max-width: 100%; font: 600 .9rem system-ui, sans-serif; }
.ipe-lang__links { position: absolute; right: 0; top: 100%; padding: .6rem; display: grid; gap: .25rem; background: var(--panel); border-radius: .5rem; }
.mobile-nav { display: none; }
.mobile-nav summary { display: grid; place-items: center; width: 44px; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.menu-icon { display: block; width: 16px; height: 12px; border-block: 2px solid; position: relative; }
.menu-icon::before { position: absolute; content: ""; inset: 3px 0 auto; border-top: 2px solid; }
.mobile-nav nav { position: absolute; top: 100%; right: 1rem; width: min(16rem, calc(100% - 2rem)); padding: .4rem; background: var(--panel); border: 1px solid #86988f6b; border-radius: .85rem; box-shadow: 0 .8rem 1.2rem #07090d80; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; padding-inline: .75rem; }

.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.75rem, 4vw, 4rem); padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--ember); font-size: .89rem; font-weight: 750; letter-spacing: .06em; }
.hero h1 { margin-block: .5rem .75rem; font-size: clamp(3.25rem, 6.35vw, 6.4rem); font-weight: 900; letter-spacing: -.06em; color: var(--cream); }
.hero h1:lang(ko) { font-size: clamp(2.65rem, 5.1vw, 5rem); letter-spacing: -.065em; }
.tagline { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 750; line-height: 1.22; text-wrap: balance; }
.hero-description { margin-top: 1rem; max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.55rem; }
.primary, .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 780; }
.primary { justify-content: center; padding: .62rem 1.1rem; border: 2px solid var(--ink); border-radius: .8rem; box-shadow: inset 0 2px #ffffff5c, 0 4px var(--ink); background: linear-gradient(#ffd18c, #f2a541); color: var(--paper-ink); text-decoration: none; }
.primary:hover { background: #ffd18c; }
.primary:active { transform: translateY(2px); box-shadow: inset 0 2px #ffffff5c, 0 2px var(--ink); }
.text-link:hover { color: var(--ember); }
.pricing { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.hero-art, .release-art { position: relative; overflow: hidden; border: 2px solid #f5bd765e; border-radius: 1.35rem; box-shadow: 0 .5rem 0 var(--ink), 0 .55rem 1.8rem #07090d91; }
.hero-art img, .release-art img { aspect-ratio: 3 / 2; object-fit: cover; }
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i { position: absolute; bottom: 24%; left: 44%; width: 4px; height: 4px; border-radius: 50%; background: #ffbc63; box-shadow: 0 0 .45rem #ff9649; opacity: 0; animation: ember-rise 5s 3 ease-out; }
.embers i:nth-child(2) { left: 48%; animation-delay: .8s; }
.embers i:nth-child(3) { left: 50%; animation-delay: 2s; }
.embers i:nth-child(4) { left: 46%; animation-delay: 3.3s; }
@keyframes ember-rise { 18% { opacity: .9; } 100% { transform: translate(1.55rem, -5rem) scale(.45); opacity: 0; } }

.daylight { background: linear-gradient(135deg, var(--cream), #edddba); color: var(--paper-ink); border-top: 2px solid var(--ink); }
.field-guide { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(1.6rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.field-guide h2 { font-size: clamp(1.9rem, 3.4vw, 3.15rem); letter-spacing: -.042em; }
.features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.features li { display: grid; grid-template-columns: 2.5rem 1fr; align-items: center; gap: .18rem .8rem; }
.features h3 { font-size: 1.15rem; }
.features p { grid-column: 2; color: var(--paper-muted); }
.feature-mark { position: relative; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; grid-row: span 2; align-self: start; border: 2px solid var(--paper-ink); border-radius: .6rem; box-shadow: 0 2px var(--paper-ink); background: #e7bc7d; }
.feature-mark::after { content: ""; width: 1rem; height: 1rem; border: 2px solid var(--paper-ink); }
.feature-mark.grid::after { box-shadow: inset -5px -5px #ad7543; }
.feature-mark.fire { background: #df8e6b; }
.feature-mark.fire::after { border-radius: .2rem 60% 60%; transform: rotate(45deg); background: #ffcc77; }
.feature-mark.coin { background: #a3c39a; }
.feature-mark.coin::after { border-radius: 50%; box-shadow: inset 0 0 0 2px #edb86e; background: #ffcf79; }
.snapshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.35rem); }
.snapshot { min-width: 0; }
.snapshot img { border: 2px solid var(--ink); border-radius: 1rem; box-shadow: 0 4px var(--ink); }
.snapshot figcaption { text-align: center; margin-top: .65rem; font-size: .9rem; font-weight: 690; }

.document { max-width: 54rem; min-height: calc(100svh - 10rem); padding-block: clamp(2.55rem, 7vw, 5rem); }
.document h1 { font-size: clamp(2.15rem, 5vw, 4rem); letter-spacing: -.045em; color: var(--cream); overflow-wrap: anywhere; }
.document-header > p { margin-top: .8rem; color: var(--muted); font-size: 1.12rem; max-width: 41rem; }
.prose, .journal-empty, .post-list a { margin-top: 1.75rem; border: 2px solid var(--ink); border-radius: 1.15rem; background: var(--cream); color: var(--paper-ink); box-shadow: 0 4px var(--ink); }
.prose, .journal-empty { padding: clamp(1.2rem, 4vw, 2.35rem); }
.prose section + section, .prose section + .provider-links, .provider-links + section { margin-top: 1.4rem; }
.prose h2, .post-list h2 { font-size: 1.35rem; margin-bottom: .45rem; }
.prose p + p { margin-top: 1rem; }
.provider-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.post { display: flow-root; }
.post figure { width: min(42%, 11rem); float: right; margin: 0 0 1rem 1.25rem; }
.post figure img, .post-list img { border: 2px solid var(--ink); border-radius: .6rem; }
.post-list, .stores { list-style: none; padding: 0; margin: 0; }
.post-list a { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: 1rem; padding: .9rem; text-decoration: none; }
.post-list a:hover h2 { text-decoration: underline; }
.release { margin-top: 1.5rem; display: grid; gap: 1.65rem; }
.stores { display: flex; flex-wrap: wrap; gap: .8rem; }
.stores li { padding: .55rem 1rem; border: 1px solid #85978e70; border-radius: .65rem; background: var(--panel); color: var(--muted); font-weight: 650; }
.release-art { max-width: 34rem; }

.site-footer { border-top: 1px solid #b1c4d43b; color: var(--muted); }
.footer-row { min-height: 5.25rem; padding-block: .85rem; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1.5rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.site-footer .studio { color: var(--text); font-weight: 800; }

@media (max-width: 58rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero { gap: 1.6rem; }
  .topbar { gap: 1.25rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .topbar { min-height: 4.25rem; gap: .55rem; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .brand { gap: .45rem; }
  .brand img { width: 2rem; height: 2rem; }
  .ipe-lang__select { max-width: 8.1rem; }
  .hero, .field-guide { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.35rem 2.65rem; }
  .hero-art { border-radius: 1rem; }
  .field-guide { align-items: start; }
}

@media (max-width: 23rem) {
  .brand { font-size: .88rem; }
  .ipe-lang__select { max-width: 7.2rem; }
  .post figure { float: none; width: min(100%, 10rem); margin: 0 auto 1.1rem; }
}

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