:root {
  --sage: #8a9a7b;
  --sage-deep: #5f6f52;
  --moss: #3f4a35;
  --sage-light: #dde3d3;
  --sage-mist: #eef1e8;
  --cream: #f7f3ea;
  --sand: #ebe3d3;
  --clay: #b5694a;
  --clay-deep: #96523a;
  --bark: #3d3226;
  --bark-soft: #6b5d4d;
  --line: #ddd4c2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(61,50,38,.06), 0 8px 24px rgba(61,50,38,.08);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--bark);
  font: 400 1.125rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--moss); letter-spacing: -.01em; text-wrap: balance; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* header */
.site-header { background: var(--sage-deep); color: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 1.4rem/1 var(--serif); }
.brand:hover { color: inherit; }
.brand .mark { width: 30px; height: 30px; color: var(--sage-light); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(247,243,234,.14); color: #fff; }

/* hero */
.hero { position: relative; background: var(--sage); color: var(--cream); padding: 56px 0 110px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 85% 10%, rgba(255,255,255,.14), transparent 70%),
  radial-gradient(500px 260px at 10% 90%, rgba(63,74,53,.25), transparent 70%); }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; margin: 0; opacity: .85; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.35rem); margin: 0; max-width: 34ch; opacity: .95; font-style: italic; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }

/* stories */
.stories { padding-top: 8px; padding-bottom: 64px; }
.meta { color: var(--bark-soft); font-size: .92rem; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.meta .loc::before { content: ""; display: inline-block; width: .7em; height: .9em; margin-right: 5px; vertical-align: -1px;
  background: var(--clay); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6Zm0 8.2A2.2 2.2 0 1 1 6 3.8a2.2 2.2 0 0 1 0 4.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6Zm0 8.2A2.2 2.2 0 1 1 6 3.8a2.2 2.2 0 0 1 0 4.4Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.dot { opacity: .6; }

.feature { margin: -40px 0 40px; position: relative; }
.feature-link { display: grid; grid-template-columns: 1.3fr 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.feature-link:hover { color: inherit; }
.feature-img { min-height: 320px; background: var(--sage-light); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-link:hover .feature-img img { transform: scale(1.03); }
.feature-body { padding: 32px 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 6px 0 10px; }
.tag { display: inline-block; align-self: flex-start; background: var(--sage-mist); color: var(--sage-deep); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin: 0; }
.excerpt { color: var(--bark-soft); margin: 4px 0 0; }
.read { margin-top: 16px; color: var(--clay); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(61,50,38,.06), 0 16px 32px rgba(61,50,38,.12); }
.card-img { aspect-ratio: 4 / 3; background: var(--sage-light); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.no-img { display: grid; place-items: center; color: var(--sage); }
.card-img.no-img .mark { width: 64px; height: 64px; }
.card-body { padding: 18px 20px 22px; }
.card-body h2 { font-size: 1.35rem; margin: 2px 0 6px; }
.card-body .excerpt { font-size: 1rem; }
.empty { text-align: center; padding: 48px 16px; color: var(--bark-soft); font-style: italic; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; gap: 12px; }
.pageno { color: var(--bark-soft); font-size: .95rem; }
.btn { display: inline-block; background: var(--sage-deep); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem; border: 2px solid var(--sage-deep); }
.btn:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn.ghost { background: transparent; color: var(--sage-deep); }
.btn.ghost:hover { background: var(--sage-deep); color: #fff; }

/* post */
.post { padding-bottom: 64px; }
.post-head { padding-top: 48px; padding-bottom: 20px; }
.post-head h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 6px 0 0; }
.post-cover { margin: 8px auto 36px; }
.post-cover img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose { font-size: 1.15rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; margin-bottom: .2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.5em; margin-bottom: .2em; }
.prose img, .prose video { border-radius: 10px; margin: 1.6em auto; box-shadow: var(--shadow); }
.prose p img { display: block; }
.prose img { cursor: zoom-in; }
.prose video { width: 100%; background: #000; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--sage); font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--moss); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .3em; }
.prose li::marker { color: var(--clay); }
.prose a { color: var(--clay-deep); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pn { display: block; padding: 14px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--moss); font-family: var(--serif); font-weight: 600; line-height: 1.3; }
.pn span { display: block; font: 700 .75rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--bark-soft); }
.pn.older { text-align: right; }
.preview-bar { background: var(--clay); color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; font-size: .95rem; }

.page { padding-top: 48px; padding-bottom: 72px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 20px; }

/* footer */
.site-footer { background: var(--moss); color: var(--sage-light); padding: 40px 0; text-align: center; font-size: 1rem; }
.site-footer .brand { justify-content: center; color: var(--cream); margin: 0 0 6px; }
.site-footer p { margin: 4px 0; }
.site-footer .fine { font-size: .85rem; opacity: .75; margin-top: 14px; }
.site-footer a { color: var(--sage-light); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(30,26,20,.92); display: grid; place-items: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 100%; width: auto; border-radius: 8px; box-shadow: none; margin: 0; }

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .hero { padding: 40px 0 96px; }
  .feature-link { grid-template-columns: 1fr; }
  .feature-img { min-height: 0; aspect-ratio: 4 / 3; }
  .feature-body { padding: 22px 20px 24px; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .brand { font-size: 1.2rem; }
  .nav a { padding: 8px 10px; }
  .post-head { padding-top: 32px; }
  .post-cover { padding: 0; }
  .post-cover img { border-radius: 0; max-height: none; }
  .post-nav { grid-template-columns: 1fr; }
  .pn.older { text-align: left; }
  .pager .btn { padding: 8px 12px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* world map */
.map-section { margin-top: 64px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 28px 24px; }
.map-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.map-head h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0; }
.map-count { margin: 0; color: var(--bark-soft); }
.map-count strong { color: var(--clay); font-family: var(--serif); font-size: 1.5rem; }
.map-frame { background: var(--sage-mist); border-radius: 10px; padding: 8px; }
.worldmap { display: block; width: 100%; height: auto; }
.worldmap .c { fill: #d9d2c0; stroke: var(--sage-mist); stroke-width: .6; transition: fill .15s; }
.worldmap .c.on { fill: var(--sage-deep); }
.worldmap .c:hover { fill: #c7bea8; }
.worldmap .c.on:hover { fill: var(--moss); }
.worldmap .dot.on { fill: var(--sage-deep); stroke: #fff; stroke-width: 2; }
.worldmap .ring { fill: none; stroke: var(--sage-deep); stroke-width: 1.5; opacity: .45; pointer-events: none; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sage-mist); color: var(--moss); border-radius: 999px; padding: 4px 12px; font-size: .92rem; font-weight: 600; }
@media (max-width: 760px) {
  .map-section { margin-top: 44px; padding: 20px 14px 18px; }
  .map-frame { padding: 2px; margin: 0 -6px; }
  .chips li { font-size: .85rem; }
}

/* travel map: story pins + stories-per-country heatmap */
.map-section:not(.heat) .worldmap .ring:not(.on), .map-section:not(.heat) .worldmap .dot:not(.on) { display: none; }
.worldmap .pin { cursor: pointer; }
.worldmap .pin-halo { fill: var(--clay); opacity: .22; transition: opacity .15s; }
.worldmap .pin-dot { fill: var(--clay); stroke: #fff; stroke-width: 1.6; }
.worldmap .pin text { fill: #fff; font: 700 7px var(--sans); pointer-events: none; }
.worldmap .pin:hover .pin-halo, .worldmap .pin:focus .pin-halo { opacity: .5; }
.worldmap .pin:focus { outline: none; }
.map-modes { display: inline-flex; background: var(--sage-mist); border-radius: 999px; padding: 4px; margin: 0 0 12px; gap: 2px; }
.map-modes button { font: 700 .92rem var(--sans); color: var(--bark-soft); background: none; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 36px; }
.map-modes button[aria-pressed="true"] { background: #fff; color: var(--moss); box-shadow: 0 1px 3px rgba(61,50,38,.15); }
.map-note { margin: 10px 0 0; color: var(--bark-soft); font-size: .95rem; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; color: var(--bark-soft); font-size: .92rem; font-weight: 600; }
.heat-legend .sw { display: inline-flex; align-items: center; gap: 6px; }
.heat-legend i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.heat-legend .h1, .heat .worldmap .h1 { --heat: #e2bd8f; } .heat-legend .h2, .heat .worldmap .h2 { --heat: #d0965f; }
.heat-legend .h3, .heat .worldmap .h3 { --heat: #b9703f; } .heat-legend .h4, .heat .worldmap .h4 { --heat: #9a512f; }
.heat-legend .h5, .heat .worldmap .h5 { --heat: #6b3520; }
.heat-legend i { background: var(--heat); }
.map-section .when-heat { display: none; }
.map-section.heat .when-heat { display: flex; }
.map-section.heat .when-visited, .map-section.heat .pins { display: none; }
.heat .worldmap .c, .heat .worldmap .c.on, .heat .worldmap .c.on:hover { fill: #e7e2d5; }
.heat .worldmap .c[class*=" h"], .heat .worldmap .dot[class*=" h"] { fill: var(--heat); }
.heat .worldmap .c[class*=" h"]:hover { filter: brightness(.92); }
.heat .worldmap .ring { stroke: var(--clay); }
.heat .worldmap .ring:not([class*=" h"]), .heat .worldmap .dot:not([class*=" h"]) { display: none; }

/* story page: where it happened */
.place { margin-top: 36px; }
.place h2 { font-size: 1.35rem; margin: 0 0 12px; }
.place-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sage-mist); aspect-ratio: 16 / 9; }
.place-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.place-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 10px 0 0; color: var(--bark-soft); font-size: .95rem; }
.place-line a { font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .place-map { aspect-ratio: 4 / 3; } }

/* travel map: important places (star pins labelled with the town name) */
.worldmap .landmark { cursor: default; }
.worldmap .lm-pin { fill: var(--berry, #a8323a); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 1px 1.5px rgba(40,30,20,.35)); }
.worldmap .lm-star { fill: #ffd36b; }
.worldmap .landmark text { font: 700 13px var(--sans); fill: var(--bark, #3d3226); stroke: #fff; stroke-width: 3.2px; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.map-section.heat .landmarks { display: none; }
.ip-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.ip-key { color: var(--berry, #a8323a); font-weight: 700; font-size: .95rem; }
.ip-legend .ip-chips { margin: 0; }
.ip-chips li { background: #f7e3e1; color: var(--berry, #a8323a); }
.map-section.heat .ip-legend { display: none; }
