/* ==========================================================================
   Oxford Outdoors — styles
   ========================================================================== */

:root {
  --bg: #f7f3ea;
  --bg-alt: #efe8da;
  --surface: #fffdf8;
  --ink: #1d2a24;
  --muted: #5d6b63;
  --line: #ddd4c2;
  --primary: #2f6b4f;
  --primary-ink: #ffffff;
  --primary-soft: #dcebe2;
  --accent: #d9692f;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgb(30 40 35 / 6%), 0 8px 24px rgb(30 40 35 / 8%);
  --shadow-lg: 0 20px 60px rgb(20 30 25 / 22%);
  --radius: 18px;
  --radius-sm: 10px;

  --sky-1: #fde6c4;
  --sky-2: #f6b98a;
  --sky-3: #b9d8c9;
  --sun: #fff3d1;
  --m1: #a6c3a5;
  --m2: #6f9b7c;
  --m3: #3f6d55;
  --m4: #213f31;

  --c-hike: #2f8a5b;
  --c-climb: #d9692f;
  --c-paddle: #2a7bbf;
  --c-camp: #8a5a2f;
  --c-social: #c2457a;
  --c-skills: #b8901a;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dark: 1; }
}

:root[data-theme="dark"] { --dark: 1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1613; --bg-alt: #131e1a; --surface: #182520; --ink: #e7eee9; --muted: #9aaca2; --line: #2a3a33;
    --primary: #5fb88a; --primary-ink: #0b1511; --primary-soft: #1e3a2e; --accent: #f0915a; --danger: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --sky-1: #0b1230; --sky-2: #29295a; --sky-3: #6b4a7a; --sun: #f4f1e0;
    --m1: #3d3f6e; --m2: #2b2d52; --m3: #1b1d38; --m4: #0e1613;
    --c-hike: #5fc18c; --c-climb: #f0915a; --c-paddle: #5aa8ec; --c-camp: #c99a6a; --c-social: #ee7aab; --c-skills: #e6c04a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1613; --bg-alt: #131e1a; --surface: #182520; --ink: #e7eee9; --muted: #9aaca2; --line: #2a3a33;
  --primary: #5fb88a; --primary-ink: #0b1511; --primary-soft: #1e3a2e; --accent: #f0915a; --danger: #ff8a80;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  --sky-1: #0b1230; --sky-2: #29295a; --sky-3: #6b4a7a; --sun: #f4f1e0;
  --m1: #3d3f6e; --m2: #2b2d52; --m3: #1b1d38; --m4: #0e1613;
  --c-hike: #5fc18c; --c-climb: #f0915a; --c-paddle: #5aa8ec; --c-camp: #c99a6a; --c-social: #ee7aab; --c-skills: #e6c04a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
svg { display: block; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: var(--primary-ink); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(47 107 79 / 30%); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { background: var(--primary-soft); }
.nav-links .btn { margin-left: 8px; }
#themeToggle .i-moon { display: none; }
:root[data-theme="dark"] #themeToggle .i-sun { display: none; }
:root[data-theme="dark"] #themeToggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .i-sun { display: none; }
  :root:not([data-theme="light"]) #themeToggle .i-moon { display: block; }
}
.menu-btn { display: none; gap: 4px; flex-direction: column; }
.menu-btn span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; padding: 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .35s, opacity .35s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 12px 14px; }
  .nav-links .btn { margin: 8px 0 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden; padding: 110px 0 140px; }
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%); transition: background .6s; }
.hero-sun {
  position: absolute; width: min(34vw, 360px); aspect-ratio: 1; border-radius: 50%; right: 12%; top: 18%;
  background: radial-gradient(circle, var(--sun) 0 55%, color-mix(in srgb, var(--sun) 40%, transparent) 56%, transparent 72%);
  filter: blur(.5px); will-change: transform;
}
.hero-layers { position: absolute; inset: 0; pointer-events: none; }
.hero-layers svg[data-depth] { position: absolute; left: -5%; width: 110%; bottom: -2%; height: 52%; will-change: transform; }
.hero-layers .stars { position: absolute; inset: 0 0 40%; opacity: 0; transition: opacity .6s; }
:root[data-theme="dark"] .hero-layers .stars { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-layers .stars { opacity: 1; } }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s infinite ease-in-out; }
@keyframes twinkle { 50% { opacity: .2; } }
.birds { position: absolute; top: 22%; left: -10%; width: 90px; animation: fly 26s linear infinite; opacity: .6; }
.birds path { fill: none; stroke: var(--m4); stroke-width: 2; stroke-linecap: round; }
@keyframes fly { to { transform: translateX(130vw) translateY(-40px); } }
.hero-content { position: relative; z-index: 2; text-shadow: 0 1px 18px color-mix(in srgb, var(--sky-2) 60%, transparent); }
.hero-content .btn, .hero-content .next-chip { text-shadow: none; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); color: #1b2a22; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 52ch; color: #2b3a32; }
:root[data-theme="dark"] .hero h1, :root[data-theme="dark"] .hero .lede { color: #f1efe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1, :root:not([data-theme="light"]) .hero .lede { color: #f1efe6; } }
.hero .eyebrow { color: #8a3e14; }
:root[data-theme="dark"] .hero .eyebrow { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .eyebrow { color: var(--accent); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero .btn-ghost { background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(6px); }
.next-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow); font-size: .92rem;
}
.next-chip b { background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .78rem; letter-spacing: .04em; }
.next-chip .cd { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .85rem; color: #2b3a32; font-weight: 500; }
.stats dd { margin: 0; font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 700; color: #1b2a22; font-variant-numeric: tabular-nums; line-height: 1.1; }
:root[data-theme="dark"] .stats dt, :root[data-theme="dark"] .stats dd { color: #f1efe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats dt, :root:not([data-theme="light"]) .stats dd { color: #f1efe6; } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 3; width: 28px; height: 46px; border: 2px solid rgb(255 255 255 / 70%); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); padding: 7px 15px; border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="false"] .dot { opacity: .35; }
.chip .count { opacity: .7; font-size: .8em; }

/* ---------- Updates ---------- */
.updates { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.update { padding: 24px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.update::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.update:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.update:hover::before { transform: scaleY(1); }
.update .meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.tag { background: var(--primary-soft); color: var(--primary); font-weight: 600; padding: 2px 10px; border-radius: 999px; font-size: .78rem; }
.update h3 { margin-bottom: .5em; }
.update p { color: var(--muted); margin: 0; }
.update.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; padding: 0; }
.update.featured .art { min-height: 240px; }
.update.featured .art svg { width: 100%; height: 100%; }
.update.featured .body { padding: 32px; align-self: center; }
.update.featured h3 { font-size: 1.8rem; }
.update.featured p { font-size: 1.05rem; }
@media (max-width: 700px) { .update.featured { grid-template-columns: 1fr; } .update.featured .art { min-height: 160px; } .update.featured .body { padding: 24px; } }

/* ---------- Newsletters ---------- */
.search { position: relative; max-width: 420px; margin-bottom: 28px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 13px 16px 13px 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.nl-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.nl-card { text-align: left; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; perspective: 800px; }
.nl-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.nl-cover { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.nl-cover svg, .nl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.nl-card:hover .nl-cover svg, .nl-card:hover .nl-cover img { transform: scale(1.06); }
.nl-cover .issue { position: absolute; top: 12px; left: 12px; background: rgb(0 0 0 / 45%); color: #fff; backdrop-filter: blur(4px); padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.nl-cover .new { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.nl-info { padding: 18px 20px 22px; }
.nl-info time { font-size: .82rem; color: var(--muted); }
.nl-info h3 { margin: 4px 0 6px; }
.nl-info p { color: var(--muted); font-size: .94rem; margin: 0 0 12px; }
.read-more { font-weight: 600; color: var(--primary); font-size: .92rem; }
.read-more::after { content: " →"; transition: margin .2s; }
.nl-card:hover .read-more::after { margin-left: 4px; }
mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Gallery ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.photo { break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-alt); animation: pop .5s both; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.photo svg, .photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s, filter .4s; }
.photo.tall svg, .photo.tall img { aspect-ratio: 3 / 4; }
.photo:hover svg, .photo:hover img { transform: scale(1.07); }
.photo figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; text-align: left; font-size: .9rem; font-weight: 500; background: linear-gradient(transparent, rgb(0 0 0 / 65%)); transform: translateY(100%); transition: transform .35s; }
.photo figcaption small { display: block; opacity: .75; font-size: .76rem; }
.photo:hover figcaption, .photo:focus-visible figcaption { transform: none; }
@media (hover: none) { .photo figcaption { transform: none; } }

/* ---------- Officers ---------- */
.officers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.officer { padding: 28px 22px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .3s, box-shadow .3s; }
.officer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.avatar { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--c); color: #fff; font-family: "Fraunces", serif; font-size: 2.1rem; font-weight: 700; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--c); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.officer h3 { margin: 0 0 6px; font-size: 1.25rem; }
.officer .tag { margin-bottom: 12px; }
.officer p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.officer .email { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--primary); text-decoration: none; overflow-wrap: anywhere; }
.officer .email:hover { text-decoration: underline; }

/* ---------- Calendar ---------- */
.cal-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .cal-layout { grid-template-columns: 1fr; } }
.cal { padding: 20px; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-head h3 { margin: 0 auto 0 0; font-size: 1.5rem; order: -1; min-width: 0; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow span { text-align: center; font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; }
.cal-grid.slide-l { animation: slideL .35s; }
.cal-grid.slide-r { animation: slideR .35s; }
@keyframes slideL { from { opacity: 0; transform: translateX(30px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-30px); } }
.day {
  min-height: 92px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); padding: 6px; text-align: left;
  display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; overflow: hidden;
}
.day:hover { border-color: var(--primary); }
.day.out { opacity: .4; }
.day.past .num { color: var(--muted); }
.day .num { font-size: .85rem; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.day.today .num { background: var(--accent); color: #fff; }
.day.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.day .ev { font-size: .72rem; line-height: 1.25; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--ink); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day .more { font-size: .7rem; color: var(--muted); padding-left: 4px; }
.day .dots { display: none; gap: 3px; flex-wrap: wrap; }
.day .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@media (max-width: 640px) {
  .cal { padding: 12px; }
  .cal-dow, .cal-grid { gap: 3px; }
  .day { min-height: 54px; align-items: center; padding: 4px 2px; }
  .day .ev, .day .more { display: none; }
  .day .dots { display: flex; justify-content: center; }
  .cal-head h3 { font-size: 1.15rem; }
}
.cal-side { display: grid; gap: 22px; }
.cal-side .card { padding: 20px; }
.ev-list { display: grid; gap: 10px; }
.ev-item {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; text-align: left; width: 100%;
  padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: transform .2s, border-color .2s;
}
.ev-item:hover { transform: translateX(4px); border-color: var(--c); }
.ev-date { width: 52px; text-align: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); padding: 6px 0; line-height: 1.1; }
.ev-date b { display: block; font-family: "Fraunces", serif; font-size: 1.35rem; color: var(--c); }
.ev-date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ev-item strong { display: block; font-size: .95rem; line-height: 1.3; }
.ev-item span { font-size: .8rem; color: var(--muted); }
.ev-none { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Subscribe ---------- */
.subscribe { overflow: hidden; color: #f3f1e8; background: #1f3d30; }
.sub-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 15% 20%, rgb(217 105 47 / 35%), transparent 40%),
  radial-gradient(circle at 85% 80%, rgb(95 184 138 / 35%), transparent 45%); }
.sub-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; opacity: .25;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 180 L140 90 L240 160 L380 40 L520 170 L640 100 L780 190 L900 70 L1040 160 L1200 110 L1200 300Z' fill='%23000'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.sub-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .sub-inner { grid-template-columns: 1fr; } }
.sub-copy .eyebrow { color: #f6a77f; }
.sub-copy p { color: #d3dbd5; font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #5fb88a; color: #0b1511; font-weight: 700; font-size: .8rem; flex: none; }
.sub-form { padding: 28px; color: var(--ink); }
.sub-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; transition: all .2s; user-select: none; }
.pills input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pills input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: .88rem; color: var(--muted); text-align: center; }
.form-msg.error { color: var(--danger); }
.sub-done { text-align: center; padding: 20px 0; }
.sub-done h3 { font-size: 1.7rem; margin-top: 12px; }
.sub-done p { color: var(--muted); }
.tick-anim { width: 84px; height: 84px; margin: 0 auto; fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tick-anim circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .7s forwards; }
.tick-anim path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .4s .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; width: 9px; height: 14px; top: 0; left: 0; z-index: 200; pointer-events: none; border-radius: 2px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer .brand { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer nav a { color: var(--ink); text-decoration: none; }
.footer nav a:hover { color: var(--primary); }
.footer p { margin: 0; }

/* ---------- Modals ---------- */
.modal { border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: min(720px, calc(100% - 32px)); width: 100%; max-height: calc(100% - 48px); }
.modal::backdrop { background: rgb(10 18 14 / 60%); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal .close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.reader-cover { aspect-ratio: 21 / 8; overflow: hidden; }
.reader-cover svg, .reader-cover img { width: 100%; height: 100%; object-fit: cover; }
.reader-body { padding: 28px clamp(20px, 5vw, 48px) 40px; }
.reader-body .meta { color: var(--muted); font-size: .88rem; }
.reader-body h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.reader-body h3 { margin-top: 1.4em; color: var(--primary); }
.reader-body .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.lightbox { background: transparent; box-shadow: none; max-width: 100%; max-height: 100%; width: 100%; height: 100%; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgb(5 10 8 / 92%); }
.lightbox figure { margin: 0; max-width: min(1100px, 100% - 120px); text-align: center; color: #fff; }
.lightbox figure svg, .lightbox figure img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; animation: pop .35s both; }
.lightbox figure svg { width: min(1000px, 100%); height: auto; aspect-ratio: 4 / 3; }
.lightbox figcaption { margin-top: 14px; }
.lightbox figcaption small { opacity: .7; display: block; }
.lb-nav { position: fixed; top: 50%; translate: 0 -50%; background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 25%); color: #fff; width: 48px; height: 48px; }
.lb-nav:hover { background: rgb(255 255 255 / 25%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lightbox .close { position: fixed; background: rgb(255 255 255 / 12%); color: #fff; border-color: rgb(255 255 255 / 25%); }
@media (max-width: 640px) { .lightbox figure { max-width: calc(100% - 24px); } .lb-nav { top: auto; bottom: 20px; translate: none; } }
.event-modal { max-width: min(560px, calc(100% - 32px)); }
.ev-hero { padding: 32px 28px 22px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-bottom: 4px solid var(--c); }
.ev-hero .tag { background: var(--c); color: #fff; }
.ev-hero h2 { font-size: 2rem; margin: 12px 40px 0 0; }
.ev-details { padding: 22px 28px 28px; }
.ev-details dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; }
.ev-details dt { color: var(--muted); font-size: .88rem; }
.ev-details dd { margin: 0; font-weight: 500; }
.ev-details .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.past-note { font-size: .85rem; color: var(--muted); font-style: italic; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; translate: -50% 0; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; z-index: 300; font-size: .92rem; box-shadow: var(--shadow-lg); animation: toast 3s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
