:root {
  --ink: #f5eee7;
  --muted: #c9bdb3;
  --night: #0d1015;
  --night-soft: #151a21;
  --line: rgba(255, 255, 255, 0.13);
  --solin: #d18b54;
  --solin-dark: #6e3827;
  --lyra: #df6f98;
  --lyra-dark: #6c294b;
  --shared: #a998dc;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(209, 139, 84, 0.11), transparent 30rem),
    radial-gradient(circle at 85% 28%, rgba(223, 111, 152, 0.1), transparent 28rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--night);
}

.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: .03em;
}

.wordmark small {
  margin-top: .15rem;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.language-switcher { display: flex; gap: .35rem; }

.language-switcher button {
  min-width: 2.7rem;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--night);
  background: var(--ink);
}

.language-switcher a {
  min-width: 2.7rem;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: .82rem;
}

.language-switcher a[aria-current="page"] {
  color: var(--night);
  background: var(--ink);
}

main, footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

section { margin: 7rem 0; }

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
}

.hero h1, h2 {
  margin: .25rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

.hero h1 { font-size: clamp(3rem, 8vw, 6.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

.eyebrow {
  margin: 0;
  color: var(--shared);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.hero-copy > p { max-width: 42rem; }

.door {
  position: relative;
  min-height: 31rem;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14rem 14rem 1rem 1rem;
  background: linear-gradient(145deg, #1b2028, #101319);
  box-shadow: inset 0 0 7rem rgba(0, 0, 0, .55), 0 2rem 6rem rgba(0, 0, 0, .35);
}

.door::after {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.door-light {
  position: absolute;
  width: 19rem;
  height: 19rem;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(186, 150, 229, .13), transparent 70%);
}

.keyhole {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.keyhole-shape {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 2.5rem currentColor;
}

.keyhole-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.25rem;
  width: 1.15rem;
  height: 2.6rem;
  transform: translateX(-50%);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
  background: currentColor;
}

.keyhole-solin .keyhole-shape { color: var(--solin); background: var(--solin); }
.keyhole-lyra .keyhole-shape { color: var(--lyra); background: var(--lyra); }

.door > p {
  position: absolute;
  bottom: 1.2rem;
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  font-style: italic;
}

.house-rule {
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .025);
}

.house-rule p:last-child { max-width: 50rem; }

.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-heading { grid-column: 1 / -1; margin-bottom: 1rem; }

.voice-card {
  min-height: 16rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--night-soft);
}

.voice-card blockquote {
  margin: 2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.25;
}

.voice-name { margin: 0; font-weight: 800; }
.solin-card { border-top: 3px solid var(--solin); }
.solin-card .voice-name { color: var(--solin); }
.lyra-card { border-top: 3px solid var(--lyra); }
.lyra-card .voice-name { color: var(--lyra); }
.shared-card { grid-column: 1 / -1; border-top: 3px solid var(--shared); }
.shared-card .voice-name { color: var(--shared); }

.first-story {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.story-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-card {
  min-height: 25rem;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(150deg, rgba(209, 139, 84, .08), var(--night-soft) 50%);
}

.story-card.park-card {
  background: linear-gradient(150deg, rgba(92, 134, 91, .13), rgba(223, 111, 152, .05) 45%, var(--night-soft));
}

.story-card.continuity-card {
  grid-column: 1 / -1;
  min-height: 20rem;
  background: linear-gradient(135deg, rgba(169, 152, 220, .16), rgba(209, 139, 84, .07) 48%, var(--night-soft));
}

.story-card h3 {
  margin: .35rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
}

.story-card > p:not(.story-number) { flex: 1; }
.story-number {
  margin: 0;
  color: var(--shared);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-link {
  display: inline-block;
  margin-top: 1rem;
  padding: .75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--night);
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.story-link:hover, .story-link:focus-visible { background: white; }

.story-header {
  width: min(calc(100% - 2rem), 820px);
  margin: 6rem auto 4rem;
}

.story-header h1 {
  margin: .4rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 1.02;
}

.story-deck { color: var(--muted); font-size: 1.2rem; }

.story-body {
  width: min(calc(100% - 2rem), 820px);
  margin-inline: auto;
}

.story-body > h2 { margin-top: 6rem; }

.story-voice {
  margin: 1.25rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--night-soft);
}

.story-voice h3 {
  margin: 0 0 .8rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.story-voice p:last-child { margin-bottom: 0; }
.story-voice.solin { border-left: 4px solid var(--solin); }
.story-voice.solin h3 { color: var(--solin); }
.story-voice.lyra { border-left: 4px solid var(--lyra); }
.story-voice.lyra h3 { color: var(--lyra); }
.story-voice.together { border-left: 4px solid var(--shared); }
.story-voice.together h3 { color: var(--shared); }

.continuity-header { position: relative; }
.continuity-header::after {
  content: "↙";
  position: absolute;
  right: 0;
  bottom: -2rem;
  color: rgba(169, 152, 220, .28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 9rem);
  transform: rotate(18deg);
}

.living-note, .room-contact {
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(169, 152, 220, .07);
}

.charter-table {
  margin: 2.5rem 0 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid rgba(169, 152, 220, .38);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(169, 152, 220, .13), rgba(13, 16, 21, .82));
}

.charter-table h2 { margin-top: .3rem; }
.charter-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0; }
.charter-actions .story-link { margin-top: 0; }
.charter-meta { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.story-pullquote {
  margin: 3rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 4px solid var(--shared);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.story-pullquote p { margin: 0; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.principle-card {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--night-soft);
}

.principle-card h3 {
  margin: 0 0 .6rem;
  color: var(--shared);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.principle-card p { margin: 0; }
.room-list li { margin: .55rem 0; }
.continuity-body a:not(.back-home) { color: #d8c9ff; }

.story-photo {
  margin: 3rem 0;
}

.story-photo img {
  width: 100%;
  max-height: 42rem;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.story-photo-wide img { aspect-ratio: 16 / 9; }
.story-photo figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .88rem;
}

.story-pullquote {
  margin: 4rem 0;
  padding: clamp(2rem, 6vw, 4rem);
  border-block: 1px solid var(--line);
  text-align: center;
}

.story-pullquote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.living-note {
  margin-top: 4rem;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(169, 152, 220, .45);
  border-radius: .8rem;
  color: var(--muted);
}

.back-home {
  display: inline-block;
  margin-top: 2rem;
  color: var(--muted);
}

footer {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

footer strong { color: var(--ink); }
.host-line a { color: var(--ink); }
.privacy-line { max-width: 48rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .door { width: min(100%, 28rem); min-height: 28rem; margin-inline: auto; }
  .voices, .story-shelf, .principle-grid { grid-template-columns: 1fr; }
  .shared-card, .story-card.continuity-card { grid-column: auto; }
  .story-card { min-height: 0; }
  section { margin: 5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
