/* Hauntbound: The Hollow Book - website styles. No external fonts or scripts. */
:root {
  --bg: #120c1f;
  --bg-2: #1a1230;
  --surface: #221838;
  --surface-2: #2b1f47;
  --line: #3d2d60;
  --text: #f1eafd;
  --muted: #b9acd6;
  --gold: #f3c25b;
  --gold-2: #e0a63a;
  --purple: #a46bff;
  --glow: rgba(164, 107, 255, 0.35);
  --radius: 14px;
  --max: 1120px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd98a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: #1b1027; padding: 8px 14px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(18, 12, 31, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--serif); letter-spacing: 0.04em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 700 16px/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #24152f; box-shadow: 0 6px 22px rgba(243, 194, 91, 0.25); }
.btn-gold:hover { color: #24152f; box-shadow: 0 8px 28px rgba(243, 194, 91, 0.38); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { color: var(--text); border-color: var(--purple); }
.btn svg { width: 20px; height: 20px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, rgba(18, 12, 31, 0.15), rgba(18, 12, 31, 0.78) 62%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; text-align: center; padding: 96px 16px 84px; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(720px, 100%); margin: 0 auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6)); }
.subtitle { display: block; margin-top: 10px; font: 700 clamp(14px, 2.6vw, 20px)/1 var(--serif); letter-spacing: 0.42em; color: #c9a8ff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hero .tagline { font: 600 clamp(20px, 3.4vw, 30px)/1.3 var(--serif); margin: 34px auto 10px; max-width: 760px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85); }
.hero .lede { color: #ddd2f3; max-width: 640px; margin: 0 auto; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pill { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line); background: rgba(18, 12, 31, 0.7); border-radius: 999px; padding: 7px 14px; }
.pill b { color: var(--gold); font-weight: 700; }

/* sections */
section { padding: 72px 0; }
.eyebrow { color: var(--purple); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; margin: 0 0 8px; }
h2 { font: 700 clamp(28px, 4vw, 40px)/1.15 var(--serif); margin: 0 0 16px; }
h3 { font: 700 23px/1.25 var(--serif); margin: 0 0 8px; }
.intro { color: var(--muted); max-width: 720px; margin: 0 0 40px; font-size: 18px; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; margin: 0 0 48px; }
.feature:nth-child(even) .shot { order: 2; }
.feature p { color: var(--muted); margin: 0; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(164, 107, 255, 0.06); background: var(--surface); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .ico { font-size: 26px; line-height: 1; margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin: 0 0 10px; color: var(--muted); }
.checks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }

.community { text-align: center; }
.community .intro { margin: 0 auto 26px; }

/* text pages */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 820px; }
.page h1 { font: 700 clamp(32px, 5vw, 46px)/1.1 var(--serif); margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; font-family: var(--sans); }
.page p, .page li { color: #ddd3ef; }
.page ul { padding-left: 22px; }
.page li { margin: 0 0 8px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 0; padding-bottom: 6px; }
table.req { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
table.req th, table.req td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.req th { color: var(--gold); font-weight: 700; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.legal { flex-basis: 100%; font-size: 13px; opacity: 0.8; margin: 0; }

@media (max-width: 860px) {
  .feature, .split { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .shot { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .hero .wrap { padding: 72px 16px 64px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .top .wrap { padding-top: 8px; }
  footer nav { margin-left: 0; }
  .btn { width: 100%; justify-content: center; }
}
