:root {
  --bg: #0B1833; --card: #142650; --border: #2F4275; --divider: #26365F;
  --text: #F4F1EA; --muted: #D9DCE8; --foot: #B8BED3;
  --gold: #D2B062; --gold-hi: #EBD49A;
  --fill: #D2B062; --fill-hi: #EBD49A; --on-fill: #0B1833;
  --paper: #F4F1EA; --on-paper: #0B1833; --paper-accent: #8A5A00;
  color-scheme: dark;
  --serif: 'DM Serif Display', Georgia, serif;
}
/* Light theme: follows the system unless the visitor picked one (data-theme on <html>). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F2E9; --card: #FFFFFF; --border: #D6CCB6; --divider: #E1D8C5;
    --text: #0B1833; --muted: #3F4A66; --foot: #5B6580;
    --gold: #8C6517; --gold-hi: #6B4C0E;
    --fill: #D2B062; --fill-hi: #C29E4C; --on-fill: #0B1833;
    --paper: #142650; --on-paper: #F4F1EA; --paper-accent: #D2B062;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F2E9; --card: #FFFFFF; --border: #D6CCB6; --divider: #E1D8C5;
  --text: #0B1833; --muted: #3F4A66; --foot: #5B6580;
  --gold: #8C6517; --gold-hi: #6B4C0E;
  --fill: #D2B062; --fill-hi: #C29E4C; --on-fill: #0B1833;
  --paper: #142650; --on-paper: #F4F1EA; --paper-accent: #D2B062;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg) url("stars.svg") repeat;
  color: var(--text); font-family: Inter, system-ui, sans-serif; line-height: 1.5;
}
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
img { display: block; max-width: 100%; }
.wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 26px 32px 22px; }
.staff { position: absolute; top: 0; left: 300px; width: calc(100% - 300px); height: 150px; pointer-events: none;
  background: url("staff.svg") no-repeat left top / 1160px 150px; }

/* header */
header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 8px; }
.brand img { width: 217px; height: 110px; object-fit: contain; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
nav.main { display: flex; align-items: center; gap: 40px; font-size: 17px; font-weight: 500; }
nav.main a { color: var(--text); text-decoration: none; white-space: nowrap; padding: 10px 0 6px; border-bottom: 2px solid transparent; }
nav.main a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 26px; border-radius: 999px; text-align: center; }
.btn-gold { background: var(--fill); color: var(--on-fill) !important; }
.btn-gold:hover { background: var(--fill-hi); }
.btn-cream { background: var(--paper); color: var(--on-paper) !important; }

/* mobile menu (no JavaScript) */
.mobile-actions { display: none; align-items: center; gap: 8px; }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu .panel { position: absolute; right: 0; top: 54px; z-index: 10; width: min(340px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 6px 18px 10px; }
.menu .panel a { display: block; padding: 14px 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--divider); }
.menu .panel a:last-child { border-bottom: 0; }
.menu .panel a[aria-current="page"] { color: var(--gold); }

/* hero */
.hero { position: relative; margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; height: 390px; }
.photo { position: relative; grid-column: span 2; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 30px 22px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 84%); mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 84%); }
.photo .text { position: relative; display: flex; flex-direction: column; gap: 10px; }
/* Soft halo in the page background color, so the text reads over the photo. */
.photo .text h1, .photo .text .lead { text-shadow: 0 0 2px var(--bg), 0 0 6px var(--bg), 0 0 12px var(--bg), 0 0 20px var(--bg), 0 0 32px var(--bg), 0 0 48px var(--bg); }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 33px; line-height: 1.1; }
h1 em, .serif em { font-style: italic; color: var(--gold); }
.lead { margin: 0; font-size: 15px; color: var(--muted); }

.event { background: var(--card); border: 1px solid var(--gold); border-radius: 8px; padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.event .head { display: flex; align-items: center; gap: 20px; }
.date { width: 84px; height: 92px; flex-shrink: 0; border-radius: 6px; background: var(--paper); color: var(--on-paper); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date .m { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-accent); }
.date .d { font-family: var(--serif); font-size: 42px; line-height: 1; }
.date .w { font-size: 11px; font-weight: 500; }
.event h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.12; }
.meta { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.meta span { display: flex; align-items: center; gap: 8px; }
.event p { margin: 0; font-size: 15px; color: var(--muted); }
.event .actions { margin-top: auto; display: flex; align-items: center; gap: 22px; }
.event .actions a.link { font-size: 15px; font-weight: 600; padding: 10px 0; }

/* info boxes */
.boxes { position: relative; margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.box { background: var(--card); border-radius: 10px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.box .title { font-family: var(--serif); font-size: 27px; line-height: 1.05; }
.box .addr { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.box .note { font-size: 14px; color: var(--muted); }
.social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.social a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.support { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 2px; }
.support .note { line-height: 1.45; }
.support .btn { flex-shrink: 0; font-size: 15px; }

footer { position: relative; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--foot); }
footer a { display: flex; align-items: center; gap: 8px; }

svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tablet & phone */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; height: auto; }
  .photo { grid-column: auto; height: auto; padding: 0; }
  .photo img { position: static; height: 230px; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .photo .text { margin-top: 14px; }
  h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .boxes { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .wrap { padding: 14px 20px 24px; }
  nav.main { display: none; }
  .mobile-actions { display: flex; }
  header { align-items: flex-start; }
  .brand { gap: 6px; }
  .brand img { width: 140px; height: 71px; }
  header .eyebrow { font-size: 9.5px; letter-spacing: .1em; line-height: 1.6; white-space: nowrap; }
  .mobile-actions { position: absolute; top: 12px; right: 0; }
  .menu .panel { top: 50px; }
  .staff { top: 112px; left: 0; width: 100%; height: 26px; background-size: 520px 67px; background-position: -30px -36px; }
  .hero { margin-top: 34px; }
  .event { padding: 22px; }
  .event .actions { flex-direction: column; align-items: stretch; }
  .event .actions .btn { width: 100%; }
  .event .actions a.link { align-self: center; }
  .social a { flex-direction: column; min-height: 64px; border-radius: 8px; font-size: 13px; gap: 6px; }
  .support { flex-direction: column; align-items: stretch; }
  .support .btn { width: 100%; font-size: 16px; padding: 14px 20px; }
  footer { flex-direction: column-reverse; align-items: flex-start; border-top: 1px solid var(--divider); padding-top: 18px; }
}

/* ---------- inner pages ---------- */
.page-hero { position: relative; margin-top: 44px; max-width: 860px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: 60px; line-height: 1.04; }
.page-hero .lead { font-size: 19px; }
.section { position: relative; margin-top: 56px; display: flex; flex-direction: column; gap: 26px; }
h2.big { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.08; }
.section-head { display: flex; flex-direction: column; gap: 10px; }

/* event cards (cream) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); color: var(--text); border: 1px solid var(--gold); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card .poster { width: 100%; height: 210px; object-fit: cover; border-radius: 6px; }
.card .badge { align-self: flex-start; background: var(--fill); color: var(--on-fill); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.card .head { display: flex; align-items: center; gap: 18px; }
.card .date { background: var(--paper); color: var(--on-paper); }
.card .date .m { color: var(--paper-accent); }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.card .meta { font-size: 16px; gap: 8px; }
.card .meta a { color: var(--text); display: flex; align-items: center; gap: 8px; text-underline-offset: 3px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .actions { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.btn-navy { background: var(--bg); color: var(--text) !important; }
.card .actions a.link { color: var(--gold); font-size: 15px; font-weight: 600; padding: 10px 0; }
.card .actions a.fb { display: inline-flex; align-items: center; gap: 6px; }

/* past events */
.past { display: flex; flex-direction: column; }
.past a { display: grid; grid-template-columns: 150px 220px 1fr 40px; align-items: center; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--divider); color: var(--text); text-decoration: none; }
.past img { width: 150px; height: 96px; object-fit: cover; border-radius: 6px; }
.past .when { font-size: 15px; color: var(--foot); }
.past .name { font-family: var(--serif); font-size: 26px; }
.past .arrow { color: var(--gold); display: flex; justify-content: flex-end; }
.past a:hover .name { color: var(--gold-hi); }
.watch { align-self: flex-start; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; padding: 8px 0; }

.rehearse { position: relative; margin-top: 56px; background: var(--card); border-radius: 10px; padding: 32px 34px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.rehearse .title { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.rehearse a.addr { display: flex; gap: 10px; font-size: 16px; color: var(--text); }
.rehearse .note { font-size: 16px; color: var(--muted); max-width: 420px; }

/* inner-page footer */
.site-footer { position: relative; color: var(--text); font-size: 15px; justify-content: flex-start; align-items: stretch; flex-wrap: nowrap; margin-top: 64px; border-top: 1px solid var(--divider); padding-top: 44px; display: flex; flex-direction: column; gap: 32px; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer .col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .brandname { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.site-footer .muted { font-size: 15px; color: var(--muted); }
.site-footer .round { display: flex; gap: 10px; }
.site-footer .round a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; color: var(--text); }
.site-footer .legal { font-size: 13px; color: var(--foot); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .rehearse { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 760px) {
  .page-hero { margin-top: 46px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero .lead { font-size: 17px; }
  .section { margin-top: 40px; }
  h2.big { font-size: 32px; }
  .card { padding: 22px; }
  .card .poster { height: 170px; }
  .card .actions { flex-direction: column; align-items: stretch; }
  .card .actions .btn { width: 100%; }
  .card .actions a.link { align-self: center; }
  .past a { display: flex; gap: 14px; padding: 14px 0; }
  .past img { width: 88px; height: 66px; flex-shrink: 0; }
  .past .text { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
  .past .name { font-size: 21px; line-height: 1.15; }
  .rehearse { margin-top: 40px; padding: 24px; }
  .rehearse .title { font-size: 28px; }
  .site-footer { margin-top: 44px; padding-top: 32px; flex-direction: column; align-items: stretch; }
}
@media (min-width: 761px) { .past .text { display: contents; } }

/* ---------- About Us pages ---------- */
.subtabs { position: relative; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; }
.subtabs a { color: var(--text); text-decoration: none; font-weight: 500; padding: 10px 20px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.subtabs a[aria-current="page"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); font-weight: 600; }
.page-hero.wide { max-width: none; }
.nowrap-lg { white-space: nowrap; }

.story { position: relative; margin-top: 56px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.story p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.stats div { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--gold); padding-top: 12px; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.stats span { font-size: 14px; color: var(--muted); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { background: var(--card); border-radius: 10px; padding: 32px 34px; display: flex; flex-direction: column; gap: 12px; }
.tile.outline { background: transparent; border: 1px solid var(--border); }
.tile .num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); }
.tile h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.tile h3.gold { color: var(--gold); font-size: 30px; }
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Justified row: each photo keeps its own aspect ratio (--ar), all share a height. */
.photos { position: relative; margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px; }
.photos img { flex: var(--ar) 1 calc(var(--ar) * 100px); min-width: 0; height: auto; aspect-ratio: var(--ar); object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

.vision { position: relative; margin-top: 56px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.vision p { margin: 0; max-width: 820px; font-family: var(--serif); font-size: 40px; line-height: 1.2; color: var(--text); }
.vision p em { font-style: italic; color: var(--gold); }

.join { position: relative; margin-top: 56px; border-top: 1px solid var(--divider); padding-top: 44px; display: flex; flex-direction: column; gap: 28px; }
.join .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.join .top p { margin: 0; font-size: 18px; color: var(--muted); }
.join .btns { display: flex; gap: 14px; flex-shrink: 0; }
.btn-outline { border: 1.5px solid var(--text); color: var(--text) !important; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--border); border-radius: 10px; }
.step .n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--fill); color: var(--on-fill); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; }
.step b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin-bottom: 4px; }
.step span { font-size: 15px; line-height: 1.5; color: var(--muted); }

.board .tile img { width: 140px; height: 140px; object-fit: cover; border-radius: 999px; border: 2px solid var(--gold); background: var(--bg); }
.board .role { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.board .tile h3 { font-size: 28px; margin-top: 8px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ein { font-family: var(--serif); font-size: 36px; color: var(--gold); }
.docs { display: flex; flex-direction: column; gap: 12px; }
.docs a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; }
.docs a:hover { border-color: var(--gold); }
.docs .doc { display: flex; align-items: center; gap: 14px; }
.docs .doc svg { color: var(--gold); width: 24px; height: 24px; }
.docs .doc b { display: block; font-size: 17px; font-weight: 500; }
.docs .doc small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.docs .pdf { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }

@media (max-width: 1000px) {
  .story { grid-template-columns: 1fr; gap: 18px; }
  .grid3, .steps, .grid2 { grid-template-columns: 1fr; gap: 16px; }
  .photos { gap: 12px; }
  .join .top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nowrap-lg { white-space: normal; }
}
@media (max-width: 760px) {
  .subtabs { margin-top: 20px; font-size: 14px; }
  .story, .photos, .vision, .join { margin-top: 36px; }
  .story p { font-size: 16px; }
  .stats { gap: 10px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 12px; }
  .tile { padding: 22px; }
  .vision { padding: 30px 8px; }
  .vision p { font-size: 28px; }
  .join { padding-top: 28px; gap: 22px; }
  .join .btns { flex-direction: column; width: 100%; }
  .join .btns .btn { width: 100%; }
  .step { padding: 18px; }
  .step b { font-size: 22px; }
  .board .tile img { width: 112px; height: 112px; }
  .board .tile h3 { font-size: 26px; }
  .ein { font-size: 30px; }
}

/* ---------- event pages ---------- */
a.title { color: inherit; text-decoration: none; }
a.title:hover { color: var(--gold-hi); }
.back { position: relative; margin-top: 36px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.event-page { position: relative; margin-top: 22px; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.event-page .poster { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.event-page .info { display: flex; flex-direction: column; gap: 20px; }
.event-page h1 { font-size: 52px; line-height: 1.06; }
.event-page .head { display: flex; align-items: center; gap: 20px; }
.event-page .meta { font-size: 17px; gap: 8px; }
.event-page .meta a { color: var(--text); display: flex; align-items: center; gap: 8px; text-underline-offset: 3px; }
.event-page .text p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.event-page .text p:last-child { margin-bottom: 0; }
.event-page .actions { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.event-page .actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.event-page .actions a.link { font-size: 15px; font-weight: 600; padding: 10px 0; display: inline-flex; align-items: center; gap: 6px; }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.videos iframe:only-child { grid-column: 1 / -1; max-width: 900px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

@media (max-width: 1000px) {
  .event-page { grid-template-columns: 1fr; gap: 28px; }
  .event-page .poster { max-width: 520px; order: 1; }
  .videos { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery img { height: 180px; }
}
@media (max-width: 760px) {
  .back { margin-top: 40px; }
  .event-page h1 { font-size: 36px; }
  .event-page .text p { font-size: 16px; }
  .event-page .actions { flex-direction: column; align-items: stretch; }
  .event-page .actions .btn { width: 100%; }
  .event-page .actions a.link { align-self: center; }
  .gallery img { height: 150px; }
}

/* light theme: artwork and theme switch */
.logo-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body { background-image: url("stars-light.svg"); }
  :root:not([data-theme="dark"]) .staff { background-image: url("staff-light.svg"); }
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
}
:root[data-theme="light"] body { background-image: url("stars-light.svg"); }
:root[data-theme="light"] .staff { background-image: url("staff-light.svg"); }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

.theme-toggle { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show the icon of the theme you would switch to. */
.theme-toggle .to-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .to-light { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .to-dark { display: block; }
}
:root[data-theme="light"] .theme-toggle .to-light { display: none; }
:root[data-theme="light"] .theme-toggle .to-dark { display: block; }
.switches { display: flex; align-items: center; gap: 8px; }
nav.main .switches { margin-left: -16px; }
.switches .lang-switch { width: 44px; padding: 0; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.switches .lang-switch:hover { border-color: var(--gold); color: var(--gold); }
/* On phones the language link lives in the menu, to keep the header short. */
.mobile-actions .lang-switch { display: none; }
.menu .panel a.lang { color: var(--gold); font-weight: 500; font-size: 16px; }

/* Russian pages: DM Serif Display has no Cyrillic, so headings use Playfair Display. */
:root:lang(ru) { --serif: 'Playfair Display', Georgia, serif; }
