/* Eldoria website. One stylesheet for all languages; no external requests. */
@font-face {
  font-family: "MedievalSharp";
  src: url("fonts/MedievalSharp-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f5f1e8;
  --card: #fffaf0;
  --text: #201c15;
  --muted: #5f5849;
  --link: #7b4a1f;
  --border: #e3dccb;
  --brand: #7b4a1f;
  --brand-dark: #4a2a12;
  --gold: #e0b040;
  --on-hero: #f5ecd8;
  --heading: "MedievalSharp", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120e;
    --card: #1f1c16;
    --text: #f1ebdc;
    --muted: #b0a794;
    --link: #d49a5a;
    --border: #34302a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.2; margin: 0; }
h2 { font-size: 30px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { background: var(--brand-dark); color: var(--on-hero); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-size: 24px; color: var(--on-hero); text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-nav a { color: var(--on-hero); text-decoration: none; opacity: 0.9; }
.site-nav a:hover { text-decoration: underline; opacity: 1; }

/* language menu: a native <details>, no script */
.lang-menu { position: relative; font-size: 14px; }
.lang-menu summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid rgba(245, 236, 216, 0.5); border-radius: 8px; color: var(--on-hero); font-weight: 600; letter-spacing: 0.04em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "\25BE"; margin-left: 8px; }
.lang-menu[open] summary { background: rgba(245, 236, 216, 0.12); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 190px; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.lang-menu a { display: block; padding: 7px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--link); }

/* hero */
.hero { background: linear-gradient(180deg, var(--brand-dark), #7a4a26); color: var(--on-hero); padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 14px; }
.hero p { font-size: 18px; max-width: 34em; }
.hero .badge { display: inline-block; margin: 6px 0 22px; padding: 6px 14px; border: 1px solid rgba(245, 236, 216, 0.5); border-radius: 999px; font-size: 14px; }
.hero .icon { width: 168px; height: 168px; border-radius: 36px; box-shadow: 0 0 0 4px rgba(245, 236, 216, 0.25); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--gold); color: #2a1a0a; }
.btn.ghost { border: 1px solid rgba(245, 236, 216, 0.6); color: var(--on-hero); }
.btn:hover { filter: brightness(1.08); }
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr auto; }
  .hero .icon { width: 220px; height: 220px; border-radius: 48px; }
}

/* facts */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); transform: translateY(-28px); }
.facts li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: center; }
.facts strong { display: block; font-family: var(--heading); font-size: 26px; font-weight: 400; color: var(--brand); }
@media (prefers-color-scheme: dark) { .facts strong { color: var(--gold); } }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* sections */
section { padding: 36px 0; }
.lead { max-width: 44em; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.card p:last-child { margin-bottom: 0; }

/* screenshots: a row of phones that scrolls sideways */
.shots { list-style: none; margin: 20px 0 0; padding: 4px 4px 18px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: 246px; scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 6px solid #1b1814; border-radius: 30px; background: #1b1814; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.shots:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
/* with JavaScript the arrows replace the scroll bar */
.gallery { position: relative; }
.gallery.has-arrows .shots { scrollbar-width: none; padding-bottom: 4px; }
.gallery.has-arrows .shots::-webkit-scrollbar { display: none; }
.gallery .arrow { position: absolute; top: 38%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--brand); font: inherit; font-size: 30px; line-height: 1; padding: 0 0 4px; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; }
.gallery .arrow.prev { left: -6px; }
.gallery .arrow.next { right: -6px; }
.gallery .arrow:disabled { opacity: 0; pointer-events: none; }
.gallery .arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .gallery .arrow { color: var(--gold); } }

/* reading the map */
.looks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); margin: 20px 0; }
.look { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.look .sample { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; width: 92px; }
.disc { display: inline-block; border-radius: 50%; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.look p { margin: 0; font-size: 15px; }
.kinds { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.kinds li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.kinds .disc { width: 16px; height: 16px; }

/* events */
.events { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.events .card h3 { font-size: 19px; }
.events .when { font-weight: 600; color: var(--brand); margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .events .when { color: var(--gold); } }
.events .where { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.events .when { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.events .when .tag { color: var(--muted); font-size: 13px; font-weight: 600; text-align: right; }
.status { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chips button { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: inherit; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-hero); }
.chips button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.event-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.event-search { display: flex; flex-wrap: wrap; gap: 12px; }
.event-search input { flex: 1 1 240px; }
.event-tools select { font: inherit; flex: 0 1 240px; box-sizing: border-box; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: inherit; }
.event-tools select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.event-tools input { font: inherit; box-sizing: border-box; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: inherit; }
.event-tools input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.event-tools .chips { margin: 0; }
.more-link { margin-top: 20px; }
.expected { margin-top: 36px; }
.expected h3 { font-size: 21px; margin-bottom: 4px; }

/* data sources */
.sources { margin: 16px 0 0; display: grid; gap: 0; }
.sources div { display: grid; gap: 2px 20px; padding: 12px 0; border-top: 1px solid var(--border); }
.sources dt { font-weight: 600; }
.sources dd { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .sources div { grid-template-columns: 220px 1fr; } }

/* faq */
#faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
#faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
#faq details[open] summary { margin-bottom: 4px; }
#faq details p { color: var(--muted); }

/* privacy policy and other plain text pages */
.legal { max-width: 800px; padding-top: 32px; padding-bottom: 48px; }
.legal { hyphens: auto; }
.legal h1 { font-size: clamp(25px, 7.4vw, 34px); margin: 0 0 4px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { margin: 8px 0; }
.legal ul { padding-left: 22px; }
.legal .summary { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-top: 16px; }
.legal .note { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 0; padding: 10px 16px; margin: 0 0 20px; font-size: 15px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 44px; margin-top: 12px; }
.site-footer p { font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; font-size: 15px; }

/* ---------------------------------------------------------------- folding sections and feature cards */
/* On a wide screen a <details data-resp> is open all the time and its summary is a plain heading. */
.feature > summary, .fold > summary { list-style: none; cursor: default; }
.feature > summary::-webkit-details-marker, .fold > summary::-webkit-details-marker { display: none; }
.feature > summary h3 { margin: 0 0 6px; }
.fold > summary h2 { margin: 0 0 12px; }
.feature > p { margin: 0 0 12px; }
.feature > p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- events: cards, actions, months, show more */
.events .card { display: flex; flex-direction: column; }
.events .desc { margin: 0 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.events .desc.open { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.events .toggle, .events .actions button { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; }
.events .toggle { align-self: flex-start; padding: 2px 0 8px; }
.events .actions { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: auto 0 0; padding-top: 4px; font-size: 14px; }
.events .actions a, .events .actions button { padding: 6px 0; min-height: 32px; display: inline-flex; align-items: center; }
.events .toggle:focus-visible, .events .actions button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.events .month { grid-column: 1 / -1; margin: 14px 0 -4px; }
.events .month:first-child { margin-top: 0; }
.events .month h3 { font-size: 22px; margin: 0; color: var(--brand); }
@media (prefers-color-scheme: dark) { .events .month h3 { color: var(--gold); } }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.show-more { display: block; margin: 20px auto 0; }
.show-more[hidden] { display: none; }
.expected summary { cursor: pointer; padding: 6px 0; }
.expected summary h3 { display: inline; font-size: 21px; }
.expected[open] summary { margin-bottom: 4px; }

/* ---------------------------------------------------------------- contact form */
.contact-form { display: grid; gap: 2px; margin-top: 20px; max-width: 640px; }
.contact-form[hidden] { display: none; }
.contact-form .field { display: grid; gap: 6px; margin: 8px 0; }
.contact-form label { font-weight: 600; font-size: 15px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: inherit; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.contact-form .btn { padding: 12px 24px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.6em; font-weight: 600; margin: 0; }
.form-status.ok { color: #2e6b32; }
.form-status.error { color: #a3261c; }
@media (prefers-color-scheme: dark) { .form-status.ok { color: #8fd18f; } .form-status.error { color: #ff9b91; } }

/* ---------------------------------------------------------------- phones */
@media (max-width: 759px) {
  :root { --gutter: 16px; --sticky: 44px; }
  html { scroll-padding-top: calc(var(--sticky) + 14px); }

  /* Header: brand and language on one row that scrolls away; the menu strip below it stays at the top. */
  .site-header { position: sticky; top: -56px; z-index: 30; }
  .bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding-top: 0; padding-bottom: 0; }
  .brand { grid-area: 1 / 1; height: 56px; margin: 0; font-size: 22px; }
  .lang-menu { grid-area: 1 / 2; }
  .site-nav { grid-area: 2 / 1 / 3 / 3; position: relative; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent 100%); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; line-height: 20px; white-space: nowrap; opacity: 1; }
  .site-nav a[aria-current] { background: rgba(245, 236, 216, 0.2); font-weight: 600; }
  .lang-menu ul { max-height: 60vh; }

  /* Hero: shorter, without the big icon (the header has one). */
  .hero { padding: 26px 0 40px; }
  .hero .icon { display: none; }
  .hero h1 { font-size: 30px; margin-bottom: 10px; }
  .hero p { font-size: 16px; margin-bottom: 10px; }
  .hero .badge { margin: 2px 0 16px; font-size: 13px; }
  .buttons { gap: 10px; }
  .buttons .btn { flex: 1 1 140px; text-align: center; padding: 12px 14px; }
  .buttons .btn.play { flex: 1 1 100%; }

  .facts { gap: 8px; transform: translateY(-24px); margin-bottom: -12px; }
  .facts li { padding: 10px 8px; font-size: 13px; line-height: 1.35; }
  .facts strong { font-size: 22px; }

  section { padding: 22px 0; }
  h2 { font-size: 26px; margin-bottom: 10px; }

  /* Features: a list of headings that open on tap. */
  .grid { gap: 8px; margin-top: 14px; }
  .feature { padding: 0 16px; }
  .feature > summary, .fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
  .feature > summary { min-height: 52px; }
  .feature > summary h3 { margin: 0; font-size: 18px; }
  .feature > summary::after, .fold > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 3px 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0.7; transition: transform 0.15s; }
  .feature[open] > summary::after, .fold[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
  .feature > p { margin: 0 0 14px; }
  .fold > summary { padding-bottom: 10px; border-bottom: 1px solid var(--border); min-height: 48px; }
  .fold > summary h2 { margin: 0; }
  .fold[open] > summary { margin-bottom: 14px; }

  .shots { margin-top: 14px; }
  .shots li { width: 210px; }

  .looks { gap: 8px; margin: 14px 0; }
  .look { padding: 10px 14px; gap: 12px; }
  .look .sample { width: 78px; }
  .kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }

  /* The home page's events: a row of cards that swipes sideways. */
  .events.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter) 14px; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .events.carousel::-webkit-scrollbar { display: none; }
  .events.carousel > .card { flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; }
  .events.carousel > .status { flex: 0 0 100%; }
  .more-link { margin-top: 6px; }
  /* The events page: a single column, so a month heading can stay at the top while its cards pass. */
  .events:not(.carousel) { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
  .events .month { position: sticky; top: var(--sticky); z-index: 5; margin: 0; padding: 8px 0 6px; background: var(--bg); }
  .events .card { padding: 14px 16px; }
  .events .card h3 { font-size: 18px; }

  .event-tools { gap: 10px; margin-top: 12px; }
  .event-search { flex-wrap: nowrap; gap: 8px; }
  .event-search input { flex: 1 1 0; min-width: 0; }
  .event-tools select { flex: 0 0 42%; min-width: 0; }
  .event-tools .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
  .event-tools .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; white-space: nowrap; padding: 8px 14px; }
  .expected { margin-top: 26px; }

  #faq details { margin-bottom: 8px; }
  .legal { padding-top: 22px; }

  .site-footer { padding: 22px 0 36px; }
  .site-footer .links { flex-direction: column; gap: 0; }
  .site-footer .links a { padding: 7px 0; }
}

/* ---------------------------------------------------------------- everywhere */
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; opacity: 1; }
@media (max-width: 759px) { .site-nav a[aria-current] { text-decoration: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature > summary::after, .fold > summary::after { transition: none; }
}

/* ---------------------------------------------------------------- refreshed Eldoria visual system */
:root {
  --bg: #f4efe4;
  --card: #fffdf7;
  --text: #25221d;
  --muted: #6a655a;
  --link: #794823;
  --border: #e4dac7;
  --brand: #805126;
  --brand-dark: #241b14;
  --gold: #e4b64e;
  --on-hero: #fff7e5;
  --shadow-sm: 0 8px 24px rgba(43, 31, 19, .07);
  --shadow-lg: 0 24px 60px rgba(23, 17, 12, .22);
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151411;
    --card: #201e19;
    --text: #f3eddf;
    --muted: #b4ac9b;
    --link: #e5b46e;
    --border: #3b362c;
    --brand: #e5b46e;
    --brand-dark: #100e0b;
    --on-hero: #fff7e5;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .18);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .48);
  }
}
html[data-theme="light"] {
  --bg: #f4efe4; --card: #fffdf7; --text: #25221d; --muted: #6a655a;
  --link: #794823; --border: #e4dac7; --brand: #805126; --brand-dark: #241b14;
  --on-hero: #fff7e5; --shadow-sm: 0 8px 24px rgba(43, 31, 19, .07);
  --shadow-lg: 0 24px 60px rgba(23, 17, 12, .22); color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #151411; --card: #201e19; --text: #f3eddf; --muted: #b4ac9b;
  --link: #e5b46e; --border: #3b362c; --brand: #e5b46e; --brand-dark: #100e0b;
  --on-hero: #fff7e5; --shadow-sm: 0 8px 24px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .48); color-scheme: dark;
}
html { scroll-padding-top: 90px; }
body {
  background-image: radial-gradient(ellipse at 15% 8%, rgba(205, 170, 104, .09), transparent 36rem);
  transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3 { letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.wrap { max-width: 1160px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(36, 27, 20, .96); border-bottom: 1px solid rgba(255, 247, 229, .12);
  box-shadow: 0 5px 22px rgba(20, 14, 9, .12); backdrop-filter: blur(14px);
}
.bar { min-height: 72px; gap: 10px 22px; }
.brand { font-size: 27px; letter-spacing: -.02em; }
.brand img { border: 1px solid rgba(255, 247, 229, .35); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.site-nav { gap: 4px; }
.site-nav a { padding: 9px 12px; border-radius: 999px; transition: background .18s ease, color .18s ease; }
.site-nav a:hover, .site-nav a[aria-current] { background: rgba(255, 247, 229, .12); text-decoration: none; }
.lang-menu summary, .theme-toggle {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 247, 229, .35); border-radius: 999px;
  background: rgba(255, 247, 229, .04); color: var(--on-hero); font: inherit;
}
.lang-menu summary { padding: 7px 13px; }
.theme-toggle { width: 42px; padding: 0; cursor: pointer; font-size: 19px; transition: background .18s, transform .18s; }
.theme-toggle:hover { background: rgba(255, 247, 229, .15); transform: translateY(-1px); }
.hero {
  position: relative; overflow: hidden; padding: clamp(54px, 8vw, 100px) 0 clamp(68px, 9vw, 108px);
  background: radial-gradient(ellipse at 86% 18%, rgba(228, 182, 78, .18), transparent 34%),
    linear-gradient(125deg, #20170f 0%, #382313 52%, #664321 100%);
  border-bottom: 1px solid rgba(228, 182, 78, .25);
}
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255, 247, 229, .08); border-radius: 50%; right: -180px; bottom: -320px; box-shadow: 0 0 0 35px rgba(255, 247, 229, .025), 0 0 0 70px rgba(255, 247, 229, .02); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; gap: clamp(32px, 8vw, 120px); }
.hero h1 { max-width: 12ch; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.045em; line-height: 1.02; margin-bottom: 22px; text-wrap: balance; }
.hero p { max-width: 38em; color: rgba(255, 247, 229, .84); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero .badge { margin: 8px 0 24px; padding: 7px 13px; background: rgba(255, 247, 229, .08); border-color: rgba(255, 247, 229, .25); }
.hero .icon { width: clamp(190px, 24vw, 270px); height: auto; aspect-ratio: 1; border-radius: 28%; box-shadow: 0 26px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 247, 229, .32); transform: rotate(2deg); }
.btn { min-height: 48px; padding: 12px 21px; border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn.primary { background: linear-gradient(135deg, #f0cb6e, #d9a83d); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.btn.ghost { border-color: rgba(255, 247, 229, .38); background: rgba(255, 247, 229, .04); }
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0, 0, 0, .17); }
.facts { position: relative; z-index: 2; gap: 12px; transform: translateY(-34px); margin-bottom: -10px; }
.facts li { min-height: 104px; display: flex; flex-direction: column; justify-content: center; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.facts strong { font-size: clamp(26px, 3vw, 34px); }
section { padding: clamp(42px, 6vw, 72px) 0; }
section > h2 { text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.7; }
.grid { gap: 18px; margin-top: 26px; }
.card, #faq details { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.grid .card:hover, .events .card:hover, #faq details:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(128, 81, 38, .3); }
.feature { padding: 23px 24px; }
.feature > summary h3 { font-size: 21px; }
.feature > p { color: var(--muted); line-height: 1.7; }
.shots { gap: 24px; padding-top: 14px; }
.shots li { width: 258px; }
.shots img { border: 7px solid #201b15; border-radius: 34px; box-shadow: 0 18px 36px rgba(33, 25, 16, .18); transition: transform .22s ease, box-shadow .22s ease; }
.shots figure:hover img { transform: translateY(-5px); box-shadow: 0 24px 42px rgba(33, 25, 16, .24); }
.shots figcaption { padding: 0 4px; }
.look { border-radius: 16px; box-shadow: var(--shadow-sm); }
.kinds li { padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.events { gap: 18px; margin-top: 26px; }
.events .card { border-radius: 18px; padding: 21px; }
.events .when { color: var(--brand); }
.events .where { font-size: 14px; }
.events .month { padding: 10px 0 2px; }
.events .month h3 { display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.chips button { transition: background .18s, color .18s, border-color .18s; }
.chips button:hover { border-color: var(--brand); }
#faq details { padding: 2px 20px; }
#faq summary { padding: 16px 0; }
.sources div { padding: 16px 0; }
.site-footer { margin-top: 34px; padding: 42px 0 52px; background: var(--card); }
.site-footer .links { gap: 8px 22px; }
.site-footer .links a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Page utilities are created by site.js and require no tracking or third-party code. */
.reading-progress { position: fixed; inset: 0 auto auto 0; z-index: 50; height: 3px; width: 0; background: linear-gradient(90deg, #d6a743, #f4d786); box-shadow: 0 0 12px rgba(228, 182, 78, .5); pointer-events: none; }
.scroll-top { position: fixed; z-index: 25; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); font-size: 23px; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s, background .2s; }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--gold); color: #20170f; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 34px; background: transparent; cursor: zoom-in; }
.shot-open:focus-visible { outline: 4px solid var(--gold); outline-offset: 5px; }
.shot-dialog { width: min(92vw, 900px); max-width: none; max-height: 92dvh; padding: 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; background: #17130f; color: #fff7e5; box-shadow: var(--shadow-lg); }
.shot-dialog::backdrop { background: rgba(12, 10, 8, .84); backdrop-filter: blur(5px); }
.shot-dialog figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.shot-dialog img { display: block; width: auto; max-width: 100%; max-height: calc(92dvh - 90px); object-fit: contain; border-radius: 12px; }
.shot-dialog figcaption { color: rgba(255, 247, 229, .82); text-align: center; }
.shot-dialog button { position: absolute; z-index: 1; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(20, 16, 12, .72); color: #fff7e5; font: inherit; font-size: 24px; cursor: pointer; }
.shot-dialog .shot-close { right: 12px; }
.shot-dialog .shot-prev { left: 12px; top: 50%; }
.shot-dialog .shot-next { right: 12px; top: 50%; }
.shot-dialog button:hover { background: #7b4a1f; }
.shot-dialog button:focus-visible, .scroll-top:focus-visible, .theme-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 759px) {
  html { scroll-padding-top: calc(var(--sticky) + 16px); }
  .site-header { top: -56px; }
  .bar { min-height: 0; }
  .brand { font-size: 22px; }
  .theme-toggle { grid-area: 1 / 2; justify-self: end; margin-right: 54px; }
  .lang-menu { justify-self: end; }
  .site-nav a { padding: 8px 13px; }
  .hero { padding: 32px 0 52px; }
  .hero h1 { max-width: 14ch; font-size: clamp(36px, 10vw, 48px); line-height: 1.05; }
  .hero .badge { margin-bottom: 17px; }
  .buttons .btn { min-height: 46px; }
  .facts { transform: translateY(-26px); margin-bottom: -8px; }
  .facts li { min-height: 84px; border-radius: 15px; }
  section { padding: 31px 0; }
  .feature { padding: 0 16px; }
  .grid .card:hover, .events .card:hover, #faq details:hover { transform: none; }
  .shots li { width: min(66vw, 250px); }
  .events { gap: 12px; }
  .site-footer { margin-top: 20px; }
  .shot-dialog { width: 96vw; padding: 10px; border-radius: 16px; }
  .shot-dialog .shot-prev { left: 8px; }
  .shot-dialog .shot-next { right: 8px; }
  .shot-dialog button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------------------------------------------------------- interactive living atlas */
.atlas-page-intro { position: relative; overflow: hidden; padding: clamp(38px, 6vw, 68px) 0 20px; color: #f3efdf; background: radial-gradient(ellipse at 80% 20%, rgba(190, 150, 76, .13), transparent 34rem), #0d1a20; }
.atlas-page-intro .wrap { position: relative; z-index: 1; }
.atlas-page-intro h1 { max-width: 18ch; color: #fff7e5; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.atlas-page-intro > .wrap > p:last-child { max-width: 54em; margin: 14px 0 0; color: rgba(243, 239, 223, .72); font-size: 17px; line-height: 1.7; }
.atlas-page-intro .atlas-kicker { margin: 0 0 10px; color: #e2bd72; font-size: 12px; font-weight: 700; letter-spacing: .19em; }
.atlas-section {
  position: relative; overflow: hidden; padding: 22px 0 72px;
  color: #f3efdf; background: #0d1a20;
  background-image: radial-gradient(ellipse at 12% 8%, rgba(80, 143, 135, .2), transparent 38rem),
    radial-gradient(ellipse at 92% 95%, rgba(190, 150, 76, .14), transparent 42rem);
  border-top: 1px solid rgba(223, 192, 126, .25); border-bottom: 1px solid rgba(223, 192, 126, .25);
}
.atlas-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15; background-image: linear-gradient(rgba(214, 198, 161, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 198, 161, .08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.atlas-section > .wrap { position: relative; z-index: 1; }
.atlas-kicker, .atlas-selected-kicker { margin: 0 0 10px; color: #e2bd72; font-size: 12px; font-weight: 700; letter-spacing: .19em; }
.atlas-shell { overflow: hidden; border: 1px solid rgba(222, 190, 122, .32); border-radius: 22px; background: rgba(13, 28, 34, .88); box-shadow: 0 28px 76px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .04); backdrop-filter: blur(12px); }
.atlas-tools { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .8fr) minmax(160px, .9fr) auto auto; align-items: end; gap: 12px; padding: 18px; border-bottom: 1px solid rgba(219, 201, 159, .16); }
.atlas-tools label { display: grid; gap: 6px; min-width: 0; }
.atlas-tools label > span { color: rgba(243, 239, 223, .67); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.atlas-tools input, .atlas-tools select { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid rgba(223, 210, 179, .24); border-radius: 11px; background: #14272d; color: #fff7e5; font: inherit; }
.atlas-tools input::placeholder { color: rgba(243, 239, 223, .48); }
.atlas-tools input:focus-visible, .atlas-tools select:focus-visible, .atlas-button:focus-visible, .atlas-zoom button:focus-visible, .atlas-result:focus-visible, .atlas-copy:focus-visible, .atlas-link:focus-visible { outline: 3px solid #e2bd72; outline-offset: 3px; }
.atlas-button { min-height: 46px; padding: 0 15px; border: 1px solid rgba(223, 210, 179, .25); border-radius: 11px; background: rgba(226, 189, 114, .1); color: #f4d990; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .18s, transform .18s; }
.atlas-button:hover { background: rgba(226, 189, 114, .2); transform: translateY(-1px); }
.atlas-button.atlas-surprise { background: linear-gradient(135deg, #e4bd6d, #b8883b); color: #21180f; border-color: transparent; }
.atlas-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .75fr); min-height: 430px; align-items: start; }
.atlas-mapbox { position: relative; overflow: hidden; width: 100%; height: min(58vh, 640px); min-width: 0; min-height: 430px; border-right: 1px solid rgba(219, 201, 159, .16); background: #0a1920; }
.atlas-canvas { display: block; width: 100%; height: 100%; min-height: 430px; cursor: grab; touch-action: none; }
.atlas-canvas:active { cursor: grabbing; }
.atlas-canvas:focus-visible { outline: 3px solid #e2bd72; outline-offset: -4px; }
.atlas-zoom { position: absolute; z-index: 4; top: 14px; right: 14px; display: grid; gap: 6px; pointer-events: auto; }
.atlas-zoom button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(245, 232, 198, .26); border-radius: 11px; background: rgba(10, 25, 31, .86); color: #f5dfa4; font-size: 20px; cursor: pointer; backdrop-filter: blur(6px); }
.atlas-zoom button:last-child { margin-top: 4px; font-size: 17px; }
.atlas-map-caption { position: absolute; z-index: 3; top: 14px; left: 14px; max-width: calc(100% - 80px); padding: 8px 11px; border: 1px solid rgba(245, 232, 198, .16); border-radius: 10px; background: rgba(9, 22, 28, .78); color: rgba(243, 239, 223, .78); font-size: 12px; backdrop-filter: blur(7px); pointer-events: none; }
.atlas-attribution { position: absolute; z-index: 3; right: 8px; bottom: 7px; padding: 5px 7px; border-radius: 5px; background: rgba(255,255,255,.9); color: #263c39; font-size: 10px; line-height: 1.2; }
.atlas-attribution a { color: #263c39; text-decoration: none; }
.atlas-attribution a:hover { text-decoration: underline; }
.atlas-side { width: 100%; height: min(58vh, 640px); min-width: 0; min-height: 430px; overflow-y: auto; padding: 21px; scrollbar-color: rgba(226, 189, 114, .45) transparent; }
.atlas-count { display: inline-flex; align-items: center; min-height: 30px; margin-bottom: 18px; padding: 5px 10px; border: 1px solid rgba(226, 189, 114, .28); border-radius: 999px; color: #f1d891; font-size: 13px; font-weight: 700; }
.atlas-selection { min-height: 198px; }
.atlas-selection > p:not(.atlas-selected-kicker) { color: rgba(243, 239, 223, .7); }
.atlas-selection h3 { margin: 0 0 4px; color: #fff7e5; font-size: 25px; line-height: 1.2; }
.atlas-photo { overflow: hidden; margin: 16px 0; border-radius: 12px; }
.atlas-photo.is-loading { height: 170px; background: linear-gradient(100deg, rgba(255,255,255,.04) 20%, rgba(226,189,114,.11) 42%, rgba(255,255,255,.04) 64%); background-size: 220% 100%; animation: atlas-shimmer 1.5s ease-in-out infinite; }
.atlas-photo img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; background: #10232b; }
.atlas-photo.is-empty { padding: 12px 14px; border: 1px solid rgba(219,201,159,.16); color: rgba(243,239,223,.6); font-size: 12px; }
.atlas-photo-credit { margin: 8px 0 0 8px; padding-left: 2px; color: rgba(243,239,223,.6); font-size: 11px; line-height: 1.5; }
.atlas-photo-credit a { color: #f0d68f; }
@keyframes atlas-shimmer { to { background-position: -220% 0; } }
.atlas-country-name { color: #d7c9a5; }
.atlas-metadata { display: grid; grid-template-columns: 1fr; margin: 18px 0; }
.atlas-metadata div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(219, 201, 159, .16); }
.atlas-metadata dt { color: rgba(243, 239, 223, .6); font-size: 13px; }
.atlas-metadata dd { margin: 0; color: #f6ecd1; font-size: 13px; text-align: right; }
.atlas-card-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.atlas-link, .atlas-copy, .atlas-add { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid rgba(223, 210, 179, .24); border-radius: 9px; background: transparent; color: #f4d990; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.atlas-link:hover, .atlas-copy:hover, .atlas-add:hover { background: rgba(226, 189, 114, .12); }
.atlas-journey { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr) auto; align-items: center; gap: 20px; padding: 18px 20px; border-top: 1px solid rgba(219, 201, 159, .16); background: rgba(5, 16, 21, .48); }
.atlas-journey-head h3 { margin: 0 0 4px; color: #fff7e5; font-size: 19px; }
.atlas-journey-head p { margin: 0; color: rgba(243, 239, 223, .58); font-size: 12px; }
.atlas-journey-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.atlas-journey-list li { padding: 6px 9px; border: 1px solid rgba(226, 189, 114, .24); border-radius: 999px; background: rgba(226, 189, 114, .07); color: #f3e7c4; font-size: 12px; }
.atlas-journey-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.atlas-clear-journey, .atlas-directions { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid rgba(223, 210, 179, .22); border-radius: 9px; background: transparent; color: #d9caa4; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.atlas-directions { background: rgba(226, 189, 114, .14); color: #f4d990; }
.atlas-clear-journey:hover, .atlas-directions:hover { border-color: #dcb968; }
.atlas-directions[hidden] { display: none; }
.atlas-results { display: grid; gap: 5px; max-height: 300px; margin-top: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(226, 189, 114, .45) transparent; }
.atlas-result { overflow: hidden; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: rgba(255, 255, 255, .035); color: rgba(243, 239, 223, .86); font: inherit; font-size: 13px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.atlas-result:hover { border-color: rgba(226, 189, 114, .32); background: rgba(226, 189, 114, .09); }
.atlas-empty { color: rgba(243, 239, 223, .65); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .atlas-photo.is-loading { animation: none; } }
@media (max-width: 940px) {
  .atlas-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-search-label { grid-column: 1 / -1; }
  .atlas-grid { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .8fr); }
}
@media (max-width: 700px) {
  .atlas-page-intro { padding: 32px 0 14px; }
  .atlas-section { padding: 14px 0 42px; }
  .atlas-shell { border-radius: 16px; }
  .atlas-tools { gap: 10px; padding: 13px; }
  .atlas-tools select, .atlas-tools input, .atlas-button { height: 44px; min-height: 44px; padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .atlas-grid { display: flex; flex-direction: column; }
  .atlas-mapbox { order: 0; height: min(58vh, 520px); min-height: 300px; border-right: 0; border-bottom: 1px solid rgba(219, 201, 159, .16); }
  .atlas-canvas { min-height: 300px; }
  .atlas-side { order: 1; height: auto; min-height: 0; overflow: visible; padding: 17px; }
  .atlas-selection { min-height: 0; }
  .atlas-journey { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
  .atlas-journey-actions { justify-content: flex-start; }
}
