:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #1d1a17;
  --ink-2: #4a443d;
  --muted: #7a7167;
  --line: #e4ddd1;
  --accent: #c0392b;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3dc;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 6px 20px rgba(40, 30, 20, .06);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171513; --surface: #211e1b; --ink: #f1ebe3; --ink-2: #cfc6bb; --muted: #988e83;
    --line: #35302b; --accent: #e8604f; --accent-ink: #1a0f0c; --accent-soft: #3a221d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171513; --surface: #211e1b; --ink: #f1ebe3; --ink-2: #cfc6bb; --muted: #988e83;
  --line: #35302b; --accent: #e8604f; --accent-ink: #1a0f0c; --accent-soft: #3a221d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 2em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6em; }
.kicker a { color: inherit; text-decoration: none; }
.lede { font-size: 1.15rem; color: var(--ink-2); }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { font-family: var(--serif); font-weight: 650; font-size: 1.2rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .95rem; }
nav { display: flex; gap: 18px; }
nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; font-size: .9rem; }
.footer-inner p { max-width: 720px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* home */
.hero { padding: 64px 0 24px; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card-title { font-family: var(--serif); font-weight: 650; font-size: 1.15rem; line-height: 1.25; }
.badge { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: 999px; }
.teaser { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.teaser > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.teaser strong { font-family: var(--serif); font-size: 1.35rem; }
.teaser .arrow { font-size: 1.6rem; color: var(--accent); }

/* episode */
.episode { padding-top: 40px; }
.video { margin: 28px 0 8px; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; cursor: pointer; box-shadow: var(--shadow); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 14px; background: rgba(20, 20, 20, .78); transition: background .15s; }
.yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #e62117; }
.yt-soon { cursor: default; }
.soon-badge { position: absolute; left: 14px; bottom: 14px; background: rgba(20,20,20,.82); color: #fff; font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.video figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.jump { margin: 16px 0 0; font-weight: 500; }
.story-head { margin-top: 1.8em; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin-bottom: 8px; }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 10px 0 4px; padding-left: 1.3em; }
.toc li { margin: 2px 0; }
.story .plate { border-radius: 10px; margin: 6px 0 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--line); }
.story p { color: var(--ink); }
.practical { margin-top: 40px; background: var(--accent-soft); border-radius: var(--radius); padding: 24px 24px 12px; }
.practical h2 { margin-top: 0; }
.places ul, .plan-box ul { padding-left: 1.1em; }
.places li { margin-bottom: .6em; }
.plan-box { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 8px; background: var(--surface); }
.plan-box h2 { margin-top: 0; font-size: 1.3rem; }
.cta { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta p { margin-bottom: .6em; }
.more h2 { margin-top: 56px; }

/* map */
#map { height: min(70vh, 560px); border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0 24px; z-index: 0; }
.place-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.place { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.place:hover { border-color: var(--accent); }
.place span { color: var(--ink-2); font-size: .93rem; }
.map-lists h2 { font-size: 1.25rem; }
.map-lists h2 a { color: var(--ink); text-decoration: none; }
.map-lists h2 a:hover { color: var(--accent); }
.leaflet-popup-content { font: 14px/1.45 var(--sans); }
.leaflet-popup-content strong { display: block; margin-bottom: 2px; }

.prose { padding-top: 40px; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  nav { gap: 14px; }
  .hero { padding-top: 40px; }
  .practical { padding: 20px 18px 8px; }
}

/* Sophie */
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: none; }
.byline { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); margin: -4px 0 18px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cta { display: flex; gap: 18px; align-items: center; }
.cta img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.guide { display: flex; gap: 18px; align-items: flex-start; }
.guide img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 760px) {
  .cta, .guide { flex-direction: column; align-items: flex-start; }
}
.meet { margin-top: 56px; display: flex; gap: 24px; align-items: center; }
.meet img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.meet h2 { margin-top: 0; }
.meet-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 560px) { .meet { flex-direction: column; align-items: flex-start; } }
