:root {
  --night: #24313f;
  --night-deep: #182129;
  --night-soft: #2f3f4e;
  --snow: #eef2f4;
  --snow-dim: #c9d3db;
  --fir: #3f7a6a;
  --coat: #2f57a6;
  --lantern: #e2b872;
  --lantern-bright: #f0cf94;
  --parchment: #f3ede0;
  --parchment-deep: #e6dcc6;
  --ink: #1b1b1b;
  --ink-soft: #5d5646;
  --display: 'Grenze Gotisch', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --body: 'Lora', Georgia, 'Times New Roman', serif;
  --gutter: clamp(20px, 6vw, 96px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--snow);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(36px, 4.6vw, 56px); color: #f7f9fa; }
p { margin: 0; }
a { color: var(--lantern); }
a:hover { color: var(--lantern-bright); }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }
img { max-width: 100%; display: block; }

.button {
  display: inline-block;
  background: var(--lantern);
  color: var(--night-deep);
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  padding: 17px 28px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--lantern-bright); color: var(--night-deep); }
.button--outline { background: transparent; color: var(--snow); border: 1px solid rgba(238,242,244,.55); padding: 16px 27px; }
.button--outline:hover { background: rgba(238,242,244,.1); color: var(--snow); border-color: var(--snow); }

/* Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night-soft);
  isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 78% 60%;
  z-index: -2;
}
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::after {
  /* Deepen the left side so the title sits on the trees, not on the characters. */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24,33,41,.86) 0%, rgba(24,33,41,.55) 38%, rgba(24,33,41,0) 70%),
    linear-gradient(180deg, rgba(24,33,41,0) 55%, rgba(24,33,41,.75) 100%);
}
.hero__copy {
  position: relative;
  padding: 18vh var(--gutter) 9vh;
  max-width: min(640px, 58vw);
  display: flex; flex-direction: column; gap: 14px;
}
.hero__kicker { font-size: clamp(19px, 1.6vw, 22px); color: #d9e0e6; font-style: italic; }
.hero__title {
  font-size: clamp(88px, 15vw, 190px);
  font-weight: 600;
  line-height: .82;
  color: #f7f9fa;
  margin-left: -0.04em;
  text-shadow: 0 2px 30px rgba(24,33,41,.6);
}
.hero__author { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); color: var(--snow-dim); }
.hero__hook { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin-top: 6px; color: #e3e9ee; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 14px; }
.hero__actions .hero__more { margin-left: 4px; }
.hero__more { color: var(--snow); text-decoration: none; border-bottom: 1px solid rgba(238,242,244,.55); padding-bottom: 2px; }
.hero__more:hover { color: var(--lantern-bright); border-color: currentColor; }
.hero__date { color: var(--snow-dim); font-size: 15px; margin-top: 6px; }

/* Story ------------------------------------------------------------ */
.story {
  padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: 1400px; margin: 0 auto;
}
.story__lead h2 { max-width: 12em; }
.story__body { display: flex; flex-direction: column; gap: 22px; max-width: var(--measure); color: #d9e0e6; }
.facts {
  margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px;
  border-top: 1px solid rgba(238,242,244,.18); padding-top: 22px;
  font-size: 16px;
}
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { color: var(--snow-dim); font-size: 14px; }
.facts dd { margin: 0; color: var(--snow); }

/* Island ----------------------------------------------------------- */
.island { padding: 0 var(--gutter) clamp(72px, 9vw, 128px); max-width: 1400px; margin: 0 auto; }
.island__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.island__hint { color: var(--snow-dim); font-size: 16px; }
.map {
  position: relative;
  background: var(--parchment);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 1px rgba(27,27,27,.12);
  padding: clamp(8px, 1.5vw, 20px);
}
.map__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.map__frame { position: relative; min-width: 720px; }
.map__img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.map__pins { position: absolute; inset: 0; }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
}
.pin::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--coat);
  border: 2px solid var(--parchment);
  box-shadow: 0 0 0 4px rgba(47,87,166,.28), 0 2px 6px rgba(0,0,0,.35);
  transition: transform 120ms ease, background-color 120ms ease;
}
.pin:hover::before, .pin:focus-visible::before { transform: scale(1.2); }
.pin[aria-pressed="true"]::before { background: var(--lantern); box-shadow: 0 0 0 5px rgba(226,184,114,.35), 0 2px 6px rgba(0,0,0,.35); }
.pin__label {
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, -6px);
  white-space: nowrap;
  font-family: var(--body); font-size: 12px; font-weight: 600;
  color: var(--ink);
  background: rgba(243,237,224,.9);
  padding: 1px 6px; border-radius: 2px;
  opacity: 0; transition: opacity 120ms ease;
  pointer-events: none;
}
.pin:hover .pin__label, .pin:focus-visible .pin__label, .pin[aria-pressed="true"] .pin__label { opacity: 1; }
.place {
  position: absolute; right: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px);
  width: min(320px, calc(100% - 48px));
  background: var(--night-deep);
  color: var(--snow);
  padding: 22px 24px 24px;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 10px;
}
.place[hidden] { display: none; }
.place__name { font-size: 30px; padding-right: 32px; }
.place__lore { font-size: 16px; line-height: 1.55; color: #d9e0e6; }
.place__close {
  position: absolute; right: 8px; top: 8px;
  width: 40px; height: 40px;
  border: 0; background: transparent; color: var(--snow-dim);
  font-size: 26px; line-height: 1; cursor: pointer; border-radius: 3px;
}
.place__close:hover { color: var(--snow); }

/* Author ----------------------------------------------------------- */
.author {
  padding: clamp(64px, 8vw, 112px) var(--gutter);
  background: var(--night-deep);
}
.author__inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.author__img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.author h2 { margin-bottom: 4px; }
.author__text { display: flex; flex-direction: column; gap: 18px; max-width: var(--measure); color: #d9e0e6; }

/* Letters ---------------------------------------------------------- */
.letters { padding: clamp(64px, 8vw, 112px) var(--gutter); }
.letters__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.letters p { color: #d9e0e6; }
.signup { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.signup__label { font-size: 15px; color: var(--snow-dim); }
.signup__row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup__input {
  flex: 1 1 260px;
  min-height: 48px;
  font: inherit; font-size: 17px;
  color: var(--snow);
  background: rgba(238,242,244,.06);
  border: 1px solid rgba(238,242,244,.28);
  border-radius: 3px;
  padding: 0 14px;
}
.signup__input::placeholder { color: rgba(201,211,219,.6); }
.signup__input:focus { border-color: var(--lantern); outline: none; box-shadow: 0 0 0 3px rgba(226,184,114,.25); }
.signup__status { min-height: 1.6em; font-size: 16px; color: var(--snow-dim); }
.signup__status[data-state="ok"] { color: var(--lantern-bright); }
.signup__status[data-state="error"] { color: #f2b8a8; }
.signup[data-done="true"] .signup__row, .signup[data-done="true"] .cf-turnstile, .signup[data-done="true"] .signup__label { display: none; }

/* Footer ----------------------------------------------------------- */
.foot { padding: 32px var(--gutter) 40px; font-size: 15px; color: var(--snow-dim); border-top: 1px solid rgba(238,242,244,.12); }

/* Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  /* On phones the art sits above the copy instead of behind it, so nobody's face is covered. */
  .hero { display: block; min-height: 0; }
  .hero__art { position: relative; inset: auto; height: 62svh; object-position: 72% 42%; z-index: 0; }
  .hero__snow { height: 62svh; z-index: 1; }
  .hero::after {
    inset: auto 0 auto 0; top: 0; height: 62svh; z-index: 1;
    background: linear-gradient(180deg, rgba(24,33,41,0) 55%, var(--night) 100%);
  }
  .hero__copy { position: relative; z-index: 2; max-width: none; padding: 0 var(--gutter) 48px; margin-top: -14svh; }
  .place { position: static; width: auto; margin-top: 12px; }
  .author__inner { grid-template-columns: 1fr; }
  .author__img { max-width: 300px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero__actions { gap: 16px; }
  .button { width: 100%; text-align: center; }
}
