/* ==========================================================================
   style.css — look and feel. Colours per variant come from site-config.js;
   the defaults below are used if a variant doesn't set them.
   ========================================================================== */
:root {
  --accent: #c8691c;
  --accent-soft: #f6e4d2;
  --hero-from: #2a1a0e;
  --hero-to: #7a3b12;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #6b655d;
  --line: #e7e2da;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210; --surface: #1d1a17; --text: #f1ede7; --muted: #a59d92; --line: #2e2a25;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
  :root .card-icon, :root .num { background: color-mix(in srgb, var(--accent) 22%, transparent); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
code { background: var(--accent-soft); color: var(--text); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Hide the page until variant text is filled in (avoids a flash of wrong text) */
html.js:not(.ready) body { opacity: 0; }


/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--hero-to), var(--accent)); color: #fff; font-family: var(--serif); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .95rem; }
.menu a:hover { background: var(--accent-soft); color: var(--text); }
.menu a[aria-current="page"] { background: var(--accent); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); }
.hero::after { /* subtle beadwork-style pattern */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 28px 28px; background-position: 0 0, 14px 14px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
/* Was: .hero .wrap { position: relative; z-index: 1; padding: clamp(40px, 6vw, 40px) 0;} */
.hero .wrap { position: relative; z-index: 1; padding: clamp(10px, 6vw, 10px) 0;}
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em;  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); margin-bottom: 18px; }
.hero h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; }
.hero p { font-size: 1.15rem; max-width: 56ch; opacity: .9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid transparent; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.page-hero .wrap { padding: clamp(48px, 7vw, 88px) 0; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.lead { color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0 0 8px; }
.card .more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .95rem; }

.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.place { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
a.place:hover { border-color: var(--accent); }
.place .flag { font-size: 1.8rem; }
.place small { display: block; color: var(--muted); }

.tracks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.track { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.track h3 { margin: 0 0 4px; font-size: 1.15rem; }
.track h3 a { color: var(--text); text-decoration: none; }
.track h3 a:hover { color: var(--accent); }
.track p { margin: 0; color: var(--muted); }
.num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { font: inherit; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; }
.gallery .ph { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery .ph:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 84vh; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; }
.lightbox .close { position: fixed; top: 16px; right: 20px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }
.empty { padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel ul { padding-left: 1.1em; }

.alt { background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; }
.footer-inner strong { color: var(--text); }
.footer-inner p { margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: start; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.fine { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
