/* D&D Characters — self-hosted rebuild */
:root {
  --bg: #f4f5ec;
  --paper: #fbfbf5;
  --nav: #e6e7da;
  --ink: #171b02;
  --ink-soft: #3f432c;
  --sage: #677354;
  --forest: #0b4f3d;
  --forest-2: #0d5b32;
  --mint: #e9f2df;
  --line: #cfd2bd;
  --shadow: 0 10px 30px rgba(23, 27, 2, .12);
  --radius: 14px;
  --wrap: 1120px;
  --display: "Cinzel", Georgia, serif;
  --fancy: "IM Fell English SC", Georgia, serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Header + footer colours. Each character theme overrides these. */
  --hdr-bg: var(--nav);
  --hdr-ink: var(--ink);
  --hdr-accent: var(--forest);
  --hdr-accent-ink: var(--mint);
  --hdr-line: var(--line);
  --hdr-hover: rgba(11, 79, 61, .08);
  --hdr-drop-bg: var(--paper);
  --hdr-drop-hover: var(--mint);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--hdr-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hdr-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em;
  color: var(--hdr-accent); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--hdr-accent); color: var(--hdr-accent-ink); font-size: .95rem;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  font: 600 1rem var(--display); color: var(--hdr-ink); text-decoration: none;
  background: none; border: 0; padding: 10px 14px; border-radius: 8px; cursor: pointer;
}
.nav > a:hover, .nav-drop > button:hover, .nav a[aria-current="page"] { color: var(--hdr-accent); background: var(--hdr-hover); }
.nav-drop { position: relative; }
.nav-drop > button::after { content: " ▾"; font-size: .8em; }
.drop-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px;
  background: var(--hdr-drop-bg); border: 1px solid var(--hdr-line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; display: none;
}
.nav-drop.open .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
@media (hover: hover) { .nav-drop:hover .drop-menu { display: block; } }
.drop-menu a {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px;
  color: var(--hdr-ink); text-decoration: none; font-family: var(--display); font-size: .95rem;
}
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--hdr-drop-hover); color: var(--hdr-accent); }
.drop-menu img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 720px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: transparent; color: var(--hdr-ink); font-size: 1.6rem; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); padding: 8px 16px 16px; display: none;
  }
  .site-header.open .nav { display: flex; }
  .nav-drop > button { width: 100%; text-align: left; }
  .drop-menu { position: static; box-shadow: none; display: block; background: transparent; border: 0; padding: 0 0 0 8px; }
}

/* ---------- Home ---------- */
.home-hero {
  position: relative; min-height: calc(100vh - 69px); display: grid; align-content: center; grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(23,27,2,.35), rgba(23,27,2,.55)), url("../img/bg-forest.jpg") center 60% / cover;
  color: #fff; padding: 64px 0 48px; overflow: hidden;
}
.home-hero h1 { font-family: var(--fancy); font-weight: 400; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: .03em; text-shadow: 0 2px 20px rgba(0,0,0,.4); margin-bottom: .2em; }
.home-hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 40ch; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-panel {
  width: fit-content; max-width: 100%; margin-bottom: 40px; padding: 28px 32px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.hero-panel .lede { margin: 0; }
@media (max-width: 520px) { .hero-panel { padding: 20px; } }

.char-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .char-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.char-card {
  text-decoration: none; color: #fff; display: block; text-align: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius);
  padding: 10px 10px 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .2s, background .2s;
}
.char-card:hover, .char-card:focus-visible { transform: translateY(-4px); background: rgba(255,255,255,.2); }
.char-card img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 10px; background: #111; }
.char-card .name { display: block; margin-top: 10px; font-family: var(--fancy); font-size: 1.35rem; line-height: 1.2; }

.btn {
  display: inline-block; font: 600 1rem var(--display); letter-spacing: .03em; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; background: var(--forest); color: var(--mint); border: 0;
}
.btn:hover { background: var(--forest-2); }
.btn.light { background: var(--paper); color: var(--forest); }

/* ---------- Character page ---------- */
.char-hero {
  position: relative; color: #fff; padding: 56px 0;
  background: var(--forest) center / cover no-repeat;
}
.char-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,30,20,.75), rgba(11,30,20,.45)); }
.char-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.char-hero .art img { max-height: 560px; margin-inline: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.char-hero .art img.round { width: min(360px, 80%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255,255,255,.85); background: #111; }
.char-name { font-family: var(--fancy); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; margin-bottom: .4em; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.char-name small { display: block; font-size: .55em; opacity: .9; }
.stats {
  background: rgba(251,251,245,.94); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px;
}
.stats dt { font-family: var(--display); font-weight: 700; color: var(--forest); }
.stats dd { margin: 0; }
.stats .gap { grid-column: 1 / -1; height: 4px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
@media (max-width: 820px) {
  .char-hero .wrap { grid-template-columns: 1fr; }
  .char-hero .art img { max-height: 380px; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stats dd { margin-bottom: 8px; }
}

.story { padding: 56px 0 8px; }
.story section { max-width: 760px; margin: 0 auto 48px; }
.story h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--forest); display: flex; align-items: center; gap: 14px; }
.story h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.story p { margin: 0 0 1.1em; }
.story .opening p:first-child::first-letter {
  font-family: var(--display); float: left; font-size: 3.4em; line-height: .9; padding: 6px 8px 0 0; color: var(--forest);
}

.people { padding: 8px 0 56px; }
.people h2 { text-align: center; color: var(--forest); font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 28px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 2px 8px rgba(23,27,2,.05); }
.person h3 { font-family: var(--fancy); font-weight: 400; font-size: 1.5rem; color: var(--forest); margin-bottom: .3em; }
.person p { margin: 0 0 .8em; font-size: .97rem; }
.person p:last-child { margin-bottom: 0; }

.coming-soon { text-align: center; padding: 64px 0; color: var(--ink-soft); }
.coming-soon p { font-family: var(--display); font-size: 1.2rem; }

/* ---------- Gallery ---------- */
.gallery-block { padding: 48px 0 64px; }
.gallery-block h2, .page-title { text-align: center; color: var(--forest); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head { padding: 56px 0 8px; text-align: center; }
.page-head p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery a {
  display: block; border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  aspect-ratio: 1; transition: transform .2s, box-shadow .2s;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a.contain img { object-fit: contain; padding: 8px; }
.gallery-group { margin-bottom: 40px; }
.gallery-group h3 { font-family: var(--fancy); font-weight: 400; font-size: 1.6rem; }
.gallery-group h3 a { color: var(--forest); text-decoration: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 6, .92);
  display: none; align-items: center; justify-content: center; padding: 56px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hdr-bg); border-top: 1px solid var(--hdr-line); padding: 28px 0; text-align: center; }
.site-footer a { font-family: var(--display); color: var(--hdr-accent); text-decoration: none; font-weight: 600; }
.gallery a { position: relative; }
.gallery .cap {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px;
  background: rgba(251,251,245,.92); color: var(--forest); font-family: var(--fancy); font-size: .95rem;
}

/* =========================================================
   Story layout (Marea, Rutee, ...): synopsis box over a photo band,
   plain headings with a rule, two-column people cards.
   Each theme sets the colours, fonts and band photo.
   ========================================================= */
.layout-story {
  --name-font: var(--fancy);
  --head-font: var(--display);
  --syn-box: #3e4744;
  --syn-ink: #fefbee;
  --syn-name-ink: #fff9ef;
}
.layout-story a { color: var(--forest); }
.layout-story .story h2, .layout-story .people h2, .layout-story .gallery-block h2,
.layout-story .person h3 { font-family: var(--head-font); font-weight: 400; }
.layout-story .person { box-shadow: none; }

/* Synopsis: the photo fills a full-width band at 25% opacity,
   with a rounded box (70% of the page wide) on top of it */
.synopsis-band { position: relative; padding: 50px 0; }
.synopsis-band::before {
  content: ""; position: absolute; inset: 0; opacity: .25; background: center / cover;
}
.synopsis {
  position: relative; width: 70%; margin: 0 auto; border-radius: var(--radius);
  background: var(--syn-box); color: var(--syn-ink); overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.synopsis .wrap {
  position: relative; width: auto; padding: clamp(16px, 2.5vw, 32px) clamp(24px, 4vw, 48px) clamp(16px, 2.5vw, 32px) clamp(8px, 1.5vw, 20px);
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px); align-items: center;
}
.syn-art img { width: 108%; max-width: none; margin-left: -4%; }
.syn-name {
  font: 400 clamp(2.6rem, 5.5vw, 4.8rem)/1.05 var(--name-font);
  color: var(--syn-name-ink); margin: 0 0 .6em;
}
.syn-stats {
  margin: 0; display: grid; grid-template-columns: minmax(120px, 2fr) 3fr; column-gap: 24px; row-gap: 0;
  font: 300 clamp(1rem, 1.25vw, 1.2rem)/1.3 "Almarai", sans-serif; letter-spacing: -.03em; color: var(--syn-ink);
}
.syn-stats dt, .syn-stats dd { margin: 0; padding: .15em 0; font-weight: 300; }
.syn-stats .gap { grid-column: 1 / -1; height: 1.3em; }
@media (max-width: 820px) {
  .synopsis-band { padding: 24px 0; }
  .synopsis { width: calc(100% - 32px); }
  .synopsis .wrap { grid-template-columns: 1fr; padding: 20px; }
  .syn-art img { width: 100%; max-width: 460px; margin: 0 auto; }
}

/* Variant: art outside the box, standing on the band photo */
.art-out .wrap {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 48px); align-items: center;
}
.art-out .synopsis { width: auto; margin: 0; padding: clamp(24px, 3vw, 40px); }
.art-out .syn-art img {
  width: 100%; max-width: 520px; max-height: 600px; object-fit: contain; margin: 0 auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45));
}
@media (max-width: 820px) {
  .art-out .wrap { grid-template-columns: 1fr; }
  .art-out .synopsis { width: auto; }
  .art-out .syn-art img { max-height: 380px; }
}

/* No drop cap */
.layout-story .story .opening p:first-child::first-letter {
  float: none; font: inherit; color: inherit; padding: 0;
}

/* People heading matches the story headings */
.layout-story .people h2 {
  text-align: left; display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: .6em;
}
.layout-story .people h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Two cards side by side; the last card goes full width underneath */
.layout-story .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-story .people-grid .person:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 720px) { .layout-story .people-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Marea: Water Genasi, Echo Knight. Slate sea, sea-foam, cream.
   ========================================================= */
.theme-marea {
  --bg: #2f3735;
  --paper: #39423f;
  --ink: #ebe6d4;
  --ink-soft: #c9c4b2;
  --forest: #9cc9bd;      /* sea-foam accent, used for headings */
  --line: #4f5a56;
  --mint: #1f2725;

  --hdr-bg: #262a29;
  --hdr-ink: #ebe6d4;
  --hdr-accent: #9cc9bd;
  --hdr-accent-ink: #1f2725;
  --hdr-line: #3e4744;
  --hdr-hover: rgba(156, 201, 189, .12);
  --hdr-drop-bg: #2f3735;
  --hdr-drop-hover: #3e4744;

  /* Fondamento: flowing, water-like pen strokes */
  --name-font: "Fondamento", Georgia, serif;
  --head-font: "Fondamento", Georgia, serif;
  --syn-box: #3e4744;
}
.theme-marea .synopsis-band::before { background-image: url("../img/bg-marea-sea.jpg"); }
.theme-marea .gallery a { background: #3e4744; }

/* =========================================================
   Rutee: Harengon bard, College of Whistles. Colours from her
   Wix page: deep blue, mid blue boxes, sunrise gold headings.
   ========================================================= */
.theme-rutee {
  --bg: #14458d;
  --paper: #3b649f;
  --ink: #fff9ef;
  --ink-soft: #dbe4f3;
  --forest: #ffd271;      /* sunrise gold accent, used for headings */
  --line: #5a7fb5;
  --mint: #0e2f63;

  --hdr-bg: #0e2f63;
  --hdr-ink: #fff9ef;
  --hdr-accent: #ffd271;
  --hdr-accent-ink: #0e2f63;
  --hdr-line: #1d4f97;
  --hdr-hover: rgba(255, 210, 113, .14);
  --hdr-drop-bg: #14458d;
  --hdr-drop-hover: #3b649f;

  --syn-box: #0e2f63;
  --syn-name-ink: #ffd271;

  /* Henny Penny: hoppy, uneven fairy-tale letters */
  --name-font: "Henny Penny", Georgia, serif;
  --head-font: "Henny Penny", Georgia, serif;
}
.theme-rutee .synopsis-band::before { background-image: url("../img/bg-rutee.jpg"); }
/* Rutee: art stands free on the railway photo, text box beside it */
.theme-rutee .art-out::before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(14, 47, 99, .55), rgba(14, 47, 99, .35)), url("../img/bg-rutee.jpg") center / cover;
}
.theme-rutee .gallery a { background: #3b649f; border-color: #5a7fb5; }
.theme-rutee .person { border-color: #5a7fb5; }

/* Centred headings with a rule on both sides */
.theme-rutee .story h2, .theme-rutee .people h2, .theme-rutee .gallery-block h2 {
  display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.theme-rutee .story h2::before, .theme-rutee .people h2::before, .theme-rutee .gallery-block h2::before,
.theme-rutee .gallery-block h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =========================================================
   Rutee: bubbly, slightly chaotic extras
   ========================================================= */
.theme-rutee { --ticket: #fff6df; --ticket-ink: #14305f; --ticket-gold: #d9a63a; }

/* --- Fog drifting over the railway photo --- */
.art-out .fog { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.art-out .fog::before, .art-out .fog::after {
  content: ""; position: absolute; inset: -20% -50%;
  background:
    radial-gradient(40% 30% at 20% 70%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(35% 25% at 60% 80%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(30% 22% at 85% 60%, rgba(255,255,255,.3), transparent 70%);
  filter: blur(18px); animation: fog-drift 70s linear infinite alternate;
}
.art-out .fog::after { animation-duration: 95s; animation-direction: alternate-reverse; opacity: .7; top: -35%; }
@keyframes fog-drift { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.art-out .wrap { z-index: 1; }

/* --- Rutee hops while you hover over her, with whistled notes --- */
.theme-rutee .syn-art { position: relative; cursor: pointer; }
.theme-rutee .syn-art img { transform-origin: 50% 100%; transition: transform .3s; }
.theme-rutee .syn-art:hover img { animation: hop 1.1s ease-in-out infinite; }
@keyframes hop {   /* a gentle, light-footed hop */
  0%, 100% { transform: translateY(0) rotate(0); }
  40%      { transform: translateY(-10px) rotate(-1deg); }
  60%      { transform: translateY(-10px) rotate(1deg); }
}
.theme-rutee .notes { position: absolute; inset: 0; pointer-events: none; }
.theme-rutee .note {
  position: absolute; top: 30%; font-size: 2rem; color: #ffd271; opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.theme-rutee .note.n1 { left: 62%; } .theme-rutee .note.n2 { left: 72%; top: 22%; }
.theme-rutee .note.n3 { left: 55%; top: 18%; } .theme-rutee .note.n4 { left: 80%; top: 32%; }
.theme-rutee .syn-art:hover .note { animation: note-float 1.8s ease-out infinite; }
.theme-rutee .syn-art:hover .n2 { animation-delay: .45s; }
.theme-rutee .syn-art:hover .n3 { animation-delay: .9s; }
.theme-rutee .syn-art:hover .n4 { animation-delay: 1.35s; }
@keyframes note-float {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-10deg) scale(.7); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(30px, -110px) rotate(15deg) scale(1.15); }
}

/* --- Synopsis as a railway ticket --- */
.ticket {
  display: grid; grid-template-columns: minmax(0, 1fr) 70px; padding: 0 !important;
  background: var(--ticket) !important; color: var(--ticket-ink); overflow: visible;
  transform: rotate(-2deg); box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
  border: 2px solid var(--ticket-gold); outline: 1px dashed rgba(217, 166, 58, .7); outline-offset: -10px;
}
.ticket::before, .ticket::after {   /* notches where the stub tears off */
  content: ""; position: absolute; right: 58px; width: 24px; height: 24px; border-radius: 50%;
  background: #1d3f73; z-index: 1;
}
.ticket::before { top: -13px; } .ticket::after { bottom: -13px; }
.ticket-main { padding: clamp(22px, 3vw, 36px); }
.ticket-top {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--ticket-gold);
  font: 700 .8rem/1.2 "Almarai", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8a6a1f;
}
.ticket .syn-name { color: #14458d; font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: .35em; }
.ticket .syn-stats { color: var(--ticket-ink); }
.ticket .syn-stats dt, .ticket .syn-stats dd { font-weight: 400; }
.ticket .syn-stats dt { color: #3b649f; }
.ticket-stub {
  border-left: 3px dashed var(--ticket-gold); background: #ffe7a8; border-radius: 0 12px 12px 0;
  writing-mode: vertical-rl; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-family: "Henny Penny", serif; font-size: 1.35rem; color: #14458d;
}
.ticket-stub span:last-child { font: 700 .75rem "Almarai", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a6a1f; }

/* --- Story stops along a winding railway --- */
.theme-rutee .story { padding-top: 40px; }
.theme-rutee .story section {
  max-width: 620px; margin: 0; padding: 24px 28px 8px;
  background: rgba(59, 100, 159, .45); border: 1px solid #5a7fb5; border-radius: var(--radius);
}
.theme-rutee .story section:nth-of-type(even) { margin-left: auto; }
.track { height: 140px; margin: -4px 0; }
.track svg { width: 100%; height: 100%; display: block; overflow: visible; }
.track path { fill: none; }
.track .ties  { stroke: #8a6a1f; stroke-width: 26px; stroke-dasharray: 5 11; }
.track .rails { stroke: #ffd271; stroke-width: 15px; }
.track .gap   { stroke: #14458d; stroke-width: 10px; }

/* Station-sign headings */
.theme-rutee .story h2, .theme-rutee .people h2, .theme-rutee .gallery-block h2 {
  display: block; width: fit-content; margin: 0 auto 18px; padding: 6px 26px 8px;
  background: #0e2f63; border: 3px solid #ffd271; border-radius: 10px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25); transform: rotate(-2deg);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.theme-rutee .story section:nth-of-type(even) h2, .theme-rutee .gallery-block h2 { transform: rotate(2deg); }
.theme-rutee .story h2::before, .theme-rutee .story h2::after,
.theme-rutee .people h2::before, .theme-rutee .people h2::after,
.theme-rutee .gallery-block h2::before, .theme-rutee .gallery-block h2::after { content: none; }

/* --- Family: a pile of pinned snapshots --- */
.theme-rutee .people { padding-top: 32px; }
.theme-rutee .people-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.theme-rutee .people-grid .person {
  position: relative; background: var(--ticket); color: var(--ticket-ink); border: 0;
  padding: 26px 24px 24px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  transition: transform .25s, box-shadow .25s; grid-column: span 3;
}
.theme-rutee .person h3 { color: #14458d; }
.theme-rutee .person::before {    /* the pin */
  content: ""; position: absolute; top: 10px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe9a6, #d9a63a 60%, #8a6a1f);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .4);
}
.theme-rutee .person:hover { transform: rotate(0) translateY(-6px) scale(1.03) !important; z-index: 5; box-shadow: 0 18px 36px rgba(0, 0, 0, .4); }
/* parents */
.theme-rutee .person:nth-child(1) { grid-column: 1 / 4; transform: rotate(-2deg); }
.theme-rutee .person:nth-child(2) { grid-column: 4 / 7; transform: rotate(1.5deg) translateY(12px); }
/* Merrick, the eldest */
.theme-rutee .person:nth-child(3) { grid-column: 2 / 6; transform: rotate(-1deg); }
/* Tobin, Wilric and Soren, always together: an overlapping cluster */
.theme-rutee .person:nth-child(4) { grid-column: 1 / 3; transform: rotate(3deg); margin-right: -18px; z-index: 1; }
.theme-rutee .person:nth-child(5) { grid-column: 3 / 5; transform: rotate(-3deg) translateY(18px); margin-inline: -18px; z-index: 2; }
.theme-rutee .person:nth-child(6) { grid-column: 5 / 7; transform: rotate(2.5deg); margin-left: -18px; z-index: 3; }
/* Rutee and her twin Eldon, side by side */
.theme-rutee .person.self { grid-column: 1 / 4; transform: rotate(-3deg) translateY(10px); z-index: 2; }
.theme-rutee .self-head { display: flex; align-items: center; gap: 12px; margin-bottom: .5em; }
.theme-rutee .self-head img {
  width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 6px; background: #0e2f63;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transform: rotate(4deg);
}
.theme-rutee .self-head h3 { margin: 0; }
.theme-rutee .people-grid .person { align-self: start; }
.theme-rutee .people-grid .person:last-child { grid-column: 4 / 7; transform: rotate(1.5deg); margin-left: -14px; align-self: center; }

@media (max-width: 820px) {
  .ticket { transform: rotate(-1deg); grid-template-columns: minmax(0, 1fr) 52px; }
  .ticket::before, .ticket::after { right: 40px; }
  .ticket-stub { font-size: 1.1rem; }
  .theme-rutee .story section { max-width: none; }
  .track { height: 48px; }
  .theme-rutee .people-grid { grid-template-columns: 1fr; gap: 26px; }
  .theme-rutee .people-grid .person, .theme-rutee .people-grid .person.self,
  .theme-rutee .people-grid .person:last-child { grid-column: 1 / -1 !important; margin: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .art-out .fog::before, .art-out .fog::after,
  .theme-rutee .syn-art:hover img, .theme-rutee .syn-art:hover .note { animation: none; }
}
