:root {
  --ink: #102437;
  --muted: #5e7180;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --line: #d9e2e5;
  --blue: #1768d4;
  --blue-deep: #0d3e79;
  --mint: #b9edc6;
  --orange: #f47d45;
  --display: #0d3e79;
  --measure: min(1180px, calc(100% - 3rem));
  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 1.25rem;
  --shadow: 0 18px 50px rgba(15, 49, 76, .10);
}

html[data-theme="dark"], html.dark {
  --ink: #edf4f3;
  --muted: #a6bcc5;
  --paper: #0a1825;
  --surface: #122737;
  --line: #2b4350;
  --blue: #6ca8ff;
  --blue-deep: #b9d5ff;
  --mint: #3c8e67;
  --orange: #ff9a64;
  --display: #dceaff;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); position: relative; z-index: 5; }
.header-inner { width: var(--measure); margin: 0 auto; min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--display); }
.brand-mark { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; }
.brand-name { font: 700 1.32rem/1 var(--font-display); letter-spacing: -.04em; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { text-decoration: none; padding: .65rem .8rem; font-size: .92rem; font-weight: 600; border-radius: .6rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, transparent); }
[data-sableef], .sage-c5a6 { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: .6rem; min-width: 2.7rem; height: 2.7rem; cursor: pointer; }
.sage-c5a6 { display: none; }

.page-wrap { width: var(--measure); margin: 0 auto; }
.ember-8c71 { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2.25rem; align-items: start; padding: 3.5rem 0 5rem; }
.ember-8c71:has([data-nova58][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-nova58][hidden] { display: none; }
.cobalt-d3e5 { border-left: 2px solid var(--mint); padding: .45rem 0 .45rem 1rem; position: sticky; top: 1.5rem; }
.cobalt-d3e5 h2 { font: 700 .72rem/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .9rem; }
.cobalt-d3e5 ol { margin: 0; padding: 0; list-style: none; }
.cobalt-d3e5 li + li { margin-top: .65rem; }
.cobalt-d3e5 a { color: var(--muted); font-size: .84rem; text-decoration: none; }
.cobalt-d3e5 a:hover { color: var(--blue); }

.hero { min-height: 35rem; position: relative; display: grid; align-items: end; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); background: var(--blue-deep); color: white; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 35, 66, .94) 0%, rgba(8, 35, 66, .66) 48%, rgba(8, 35, 66, .10) 100%); }
.hero-copy { position: relative; z-index: 1; width: var(--measure); margin: 0 auto; padding: 6rem 0 5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--orange); font: 600 .72rem/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--display); font-family: var(--font-display); letter-spacing: -.045em; line-height: 1.08; margin: 0 0 1rem; }
.hero h1 { color: white; font-size: clamp(2.8rem, 6vw, 5.8rem); max-width: 9ch; }
.hero p { max-width: 32rem; color: rgba(255,255,255,.83); font-size: 1.12rem; }
.hero .eyebrow { color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--orange); color: #24160f; }
.button-primary:hover { background: #ff9867; }
.button-quiet { border-color: rgba(255,255,255,.55); color: white; }
.button-quiet:hover { background: rgba(255,255,255,.12); }
.button-blue { background: var(--blue); color: white; }

.section { padding: 5rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 13ch; }
.section-intro { color: var(--muted); max-width: 35rem; margin: 0; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 1.4rem; }
.stat strong { display: block; color: var(--display); font: 700 2rem/1 var(--font-display); }
.stat span { display: block; color: var(--muted); margin-top: .5rem; font-size: .9rem; }

.calendar-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calendar-row { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.calendar-row:last-child { border-bottom: 0; }
.calendar-date { color: var(--blue); font: 700 .75rem/1.3 var(--font-mono); text-transform: uppercase; }
.calendar-row h3 { font-size: 1.15rem; margin: 0 0 .2rem; letter-spacing: -.025em; }
.calendar-row p { color: var(--muted); font-size: .9rem; margin: 0; }
.tag { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--mint) 55%, var(--surface)); color: var(--blue-deep); font: 600 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

.split-band { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: center; }
.photo-card { min-height: 27rem; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--blue-deep); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 30%, rgba(8, 35, 66, .7)); }
.photo-note { position: absolute; z-index: 1; left: 1.3rem; bottom: 1.3rem; color: white; font: 600 .85rem/1.4 var(--font-mono); max-width: 14rem; }
.feature-list { display: grid; gap: .9rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start; }
.feature-list b { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--blue-deep); font: 700 .78rem var(--font-mono); }
.feature-list strong { display: block; color: var(--display); }
.feature-list span { color: var(--muted); font-size: .92rem; }

.page-intro { padding: 2rem 0 1rem; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); max-width: 11ch; }
.page-intro p { max-width: 42rem; color: var(--muted); font-size: 1.08rem; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 2rem 0; }
.filter-form { display: grid; grid-template-columns: minmax(12rem, 1.7fr) repeat(3, minmax(8rem, 1fr)) auto; gap: .7rem; align-items: end; }
.field { display: grid; gap: .35rem; }
.field label { color: var(--muted); font: 600 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select { width: 100%; min-height: 2.8rem; padding: .55rem .7rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; align-items: start; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; min-height: 13rem; }
.event-card h2 { font-size: 1.25rem; margin: .75rem 0 .35rem; }
.event-card p { color: var(--muted); margin: 0 0 1rem; }
.event-card .text-link { margin-top: auto; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; color: var(--muted); font: .72rem var(--font-mono); }

.prose { max-width: 48rem; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { margin-top: 2.4rem; font-size: 2rem; }
.prose a { color: var(--blue); font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .7fr); gap: 2.25rem; }
.contact-card { padding: 1.5rem; background: var(--blue-deep); border-radius: var(--radius); color: white; }
.contact-card h2 { color: white; font-size: 1.6rem; }
.contact-card a { color: var(--mint); font-weight: 700; }
.contact-form { display: grid; gap: 1rem; }
.contact-form textarea { min-height: 9rem; resize: vertical; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); }
.footer-inner { width: var(--measure); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; }
.ripple-27b4 { color: var(--muted); padding: 1rem; }
.byline { display: flex; gap: .8rem; align-items: center; margin: 0 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.byline img { width: 2.7rem; height: 2.7rem; border-radius: 50%; object-fit: cover; }
.byline p { color: var(--muted); margin: 0; font-size: .9rem; }
.lantern-efde { margin-bottom: 1.8rem; }
.lantern-efde h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.cobalt-b212 { color: var(--muted); font-size: 1.15rem; }
.bloom-d075 { width: 100%; max-height: 32rem; object-fit: cover; border-radius: var(--radius); margin: 1.5rem 0 2rem; }

@media (max-width: 860px) {
  .sage-c5a6 { display: inline-block; }
  .header-actions { margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 1.5rem; right: 1.5rem; top: 5rem; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: .6rem; box-shadow: var(--shadow); }
  .site-nav.sage-778c { display: grid; }
  .site-nav a { padding: .8rem; }
  .ember-8c71, .ember-8c71:has([data-nova58][hidden]) { grid-template-columns: minmax(0, 1fr); }
  .cobalt-d3e5 { position: static; order: 2; }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form .field:first-child, .filter-form .button { grid-column: span 2; }
}
@media (max-width: 620px) {
  :root { --measure: min(100% - 2rem, 1180px); }
  .header-inner { min-height: 4.8rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 2.35rem; height: 2.35rem; }
  .hero { min-height: 33rem; border-radius: 0; }
  .hero-copy { padding: 5rem 0 3.5rem; }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 4.3rem); }
  .section { padding: 3.5rem 0; }
  .section-head, .split-band, .contact-layout { display: block; }
  .section-head .section-intro { margin-top: 1rem; }
  .photo-card { margin-top: 2rem; min-height: 20rem; }
  .stat-strip { grid-template-columns: 1fr; }
  .calendar-row { grid-template-columns: 4.7rem minmax(0, 1fr); }
  .calendar-row .text-link { grid-column: 2; }
  .filter-form { display: block; }
  .filter-form .field, .filter-form .button { margin-top: .7rem; width: 100%; }
  .footer-inner { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
