:root {
  --dw-bg: #1b130c; --dw-fg: #efe3cb; --dw-accent: #e9c27a; --dw-panel: rgba(36, 25, 15, .96);
  --dw-font-body: 'EB Garamond', Georgia, serif; --fell: 'IM Fell English', Georgia, serif; --fellsc: 'IM Fell English SC', Georgia, serif;
  --parch: #ecdcb8; --ink: #2a1d10; --rust: #9c4a24; --line: rgba(239, 227, 203, .16);
}
body { overflow-x: hidden; font-size: 1.12rem; background: radial-gradient(120% 80% at 50% 0%, #2a1d12, var(--dw-bg) 60%); }
h1, h2, h3 { font-family: var(--fell); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px); }
[id] { scroll-margin-top: 76px; }
.intro { max-width: 60ch; margin-left: auto; margin-right: auto; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 12px clamp(16px, 4vw, 40px); background: #1b130cd0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--fellsc); font-size: 1.5rem; letter-spacing: .2em; color: var(--dw-fg); text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-family: var(--fellsc); font-size: 1rem; letter-spacing: .06em; }
.topbar nav a { color: var(--dw-fg); text-decoration: none; opacity: .85; }
.topbar nav a:hover { color: var(--dw-accent); }
@media (max-width: 600px) { .topbar nav a { display: none; } }

.hero { position: relative; min-height: 92svh; display: grid; place-items: center; text-align: center; padding-top: 110px; overflow: hidden;
  background: radial-gradient(50% 45% at 50% 55%, #e9c27a1f, transparent 70%); }
.hero::before { content: ''; position: absolute; inset: -5%; background: url(/assets/map.webp) center / cover no-repeat; opacity: .13; filter: sepia(.6) blur(1.5px); transform: rotate(-4deg); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent, var(--dw-bg) 85%); }
.hero-copy { position: relative; z-index: 1; }
.kicker { font-family: var(--fellsc); letter-spacing: .24em; font-size: .9rem; color: var(--dw-accent); margin: 0 0 1.4rem; }
.hero h1 { font-size: clamp(3.6rem, 11vw, 8.5rem); text-shadow: 0 0 40px #e9c27a33; }
.of { font-style: italic; font-size: .5em; color: var(--dw-accent); }
.working { font-style: italic; opacity: .65; margin: -.6rem 0 2rem; }
.epigraph { font-family: var(--fell); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.45; margin: 0 0 2.2rem; }
.btn { display: inline-block; font-family: var(--fellsc); font-size: 1.1rem; letter-spacing: .12em; text-decoration: none; color: var(--dw-bg); background: var(--dw-accent);
  padding: .7em 1.6em; border-radius: 2px; transition: background .2s; }
.btn:hover { background: #f6d99c; }

.mapsec { max-width: 1320px; margin: 0 auto; }
.map-head { text-align: center; max-width: 760px; margin: 0 auto 1.6rem; }
.found { font-family: var(--fellsc); letter-spacing: .1em; color: var(--dw-accent); }
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .map-layout { grid-template-columns: 1fr; } }
.map { position: relative; margin: 0; filter: drop-shadow(0 30px 50px #000c); }
.map img { width: 100%; height: auto; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--rust); background: #ecdcb8cc; cursor: pointer;
  box-shadow: 0 0 0 4px #9c4a2433; transition: transform .2s, background .2s; }
.pin::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--rust); }
.pin:hover, .pin:focus-visible { transform: scale(1.25); }
.pin.is-found { background: #9c4a24; border-color: #ecdcb8; }
.pin.is-found::after { background: #ecdcb8; inset: 9px; }
.pin.is-current { box-shadow: 0 0 0 6px #e9c27a88, 0 0 24px #e9c27a; }
.pin:not(.is-found) { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 9px #9c4a2411; } }
.p-tower { left: 26.5%; top: 66%; } .p-serpent { left: 24%; top: 46%; } .p-lake { left: 52%; top: 41%; } .p-forest { left: 43%; top: 20%; }
.p-peak { left: 66.5%; top: 9%; } .p-harbor { left: 85%; top: 17%; } .p-city { left: 78%; top: 62%; } .p-compass { left: 11%; top: 80%; }
@media (max-width: 600px) { .pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; } .pin::after { inset: 6px; } }
.reading { background: var(--parch); color: var(--ink); padding: 1.4rem 1.5rem 1.2rem; border-radius: 2px; box-shadow: 0 20px 50px #000a, inset 0 0 50px #b89a6066; position: sticky; top: 90px; }
.reading.turn { animation: turn .5s ease; }
@keyframes turn { from { opacity: 0; transform: translateY(8px); } }
.r-kicker { font-family: var(--fellsc); letter-spacing: .18em; font-size: .82rem; color: var(--rust); margin: 0 0 .4rem; }
.reading h3 { font-size: 1.7rem; }
.reading [data-r-text] { font-family: var(--fell); font-size: 1.22rem; line-height: 1.5; }
.r-note { font-size: .85rem; font-style: italic; opacity: .7; margin-bottom: 0; }
.reward { max-width: 760px; margin: 2rem auto 0; text-align: center; border-top: 1px solid var(--dw-accent); border-bottom: 1px solid var(--dw-accent); padding: 1.4rem 1rem; }
.last { font-family: var(--fell); font-style: italic; font-size: 1.4rem; line-height: 1.5; margin: 0; }
.journal { max-width: 760px; margin: 1.6rem auto 0; font-size: 1.02rem; opacity: .9; }
.journal li { margin: .5em 0; }

.door { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .door { grid-template-columns: 1fr; } }
.art { position: relative; margin: 0; box-shadow: 0 30px 70px #000b; }
.art img { width: 100%; height: auto; }
.hs { position: absolute; border-radius: 4px; border: 1px dashed transparent; background: transparent; transition: border-color .3s, background .3s; }
.hs:hover, .hs:focus-visible { border-color: var(--dw-accent); background: #e9c27a1a; }
.hs-door { left: 52%; top: 41%; width: 9%; height: 30%; }
.door-copy p { max-width: 58ch; }

.interest { text-align: center; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1100px; margin: 1.6rem auto 0; }
.offer { font: inherit; color: var(--ink); background: var(--parch); border: 0; border-radius: 2px; padding: 1.3rem 1.2rem; cursor: pointer; display: grid; gap: .3rem; text-align: left;
  box-shadow: 0 14px 40px #000a, inset 0 0 40px #b89a6055; transition: transform .2s; }
.offer b { font-family: var(--fell); font-size: 2rem; color: var(--rust); font-weight: 400; line-height: 1; }
.offer span { font-weight: 600; } .offer small { opacity: .8; font-size: .95rem; }
.offer:hover, .offer:focus-visible { transform: translateY(-3px) rotate(-.5deg); }

.chapters { display: grid; justify-items: center; text-align: center; }
.chapters > p { max-width: 58ch; }
.chapters .dw-optin { text-align: left; width: 100%; }
.dw-optin input[type=email] { border-radius: 2px; font-family: var(--dw-font-body); font-size: 1.05rem; }
.dw-optin button[type=submit] { border-radius: 2px; font-family: var(--fellsc); letter-spacing: .08em; font-size: 1.05rem; }
.offer-note { margin: 0; color: var(--dw-accent); font-style: italic; }

.foot { padding: 30px 16px 10px; text-align: center; border-top: 1px solid var(--line); }
.more { font-family: var(--fellsc); letter-spacing: .04em; }
.sigil { font-size: 1.8rem; color: var(--dw-accent); background: none; border: 0; cursor: pointer; opacity: .6; }
.sigil:hover, .sigil.is-found { opacity: 1; }
