:root {
  --bg: #0b0f0d;
  --bg-soft: #121917;
  --panel: #16201d;
  --panel-hi: #1c2825;
  --line: #2a3a35;
  --text: #eef3f0;
  --muted: #9fb3ab;
  --green: #2fa96b;
  --green-soft: #7fd6a8;
  --red: #d8433b;
  --gold: #d8b45a;
  --focus: #8fd7ff;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -10%, #16302a 0%, transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

/* ---------- accessibility utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--green);
  color: #04120b;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--green), #1d7a4d);
  color: #04120b;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; letter-spacing: 0.02em; }
.brand-ar { font-size: 13px; color: var(--muted); }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 9px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--text); background: var(--panel); }

/* ---------- hero ---------- */

.hero { padding: 52px 0 34px; }

.hero-inner { max-width: 780px; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.lede {
  margin: 0 0 26px;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  color: #cfded7;
  max-width: 62ch;
}

.lede strong { color: var(--green-soft); }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}

.btn:hover { background: var(--panel-hi); border-color: #3b514a; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #04120b;
}

.btn-primary:hover { background: #38c07b; border-color: #38c07b; }

.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 14px; }

/* ---------- sections ---------- */

section { scroll-margin-top: 78px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.section-head h2 { margin: 0; }

.section-note { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- filters ---------- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover { color: var(--text); border-color: #3b514a; }

.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #04120b;
}

/* ---------- event cards ---------- */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.event[hidden] { display: none; }

.card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 8px;
  background: #0d1512;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-align: center;
  height: fit-content;
}

.d-month {
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.d-day {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.d-weekday { font-size: 12.5px; color: var(--muted); }

.d-rel {
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  line-height: 1.34;
  font-weight: 720;
  letter-spacing: -0.005em;
}

.meta {
  margin: 0 0 14px;
  display: grid;
  gap: 7px;
  font-size: 15px;
  color: #cfded7;
}

.meta-item { display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }

.meta-label {
  flex: 0 0 52px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta a { color: var(--green-soft); text-decoration-color: rgba(127, 214, 168, 0.4); text-underline-offset: 3px; }
.meta a:hover { color: #a5ecc4; }

/* ---------- theater nights ---------- */

.nights {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d1512;
  overflow: hidden;
}

.nights summary {
  padding: 12px 16px;
  min-height: 46px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--gold);
  list-style: none;
}

.nights summary::-webkit-details-marker { display: none; }

.nights summary::before {
  content: "▸";
  margin-right: 10px;
  transition: transform 0.15s ease;
}

.nights[open] summary::before { transform: rotate(90deg); }
.nights[open] summary { border-bottom: 1px solid var(--line); }

.nights-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 14px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}

.nights-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.night-label { color: var(--muted); font-size: 13px; }

/* ---------- card links ---------- */

.card-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }

/* ---------- past events ---------- */

.past {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
}

.past summary {
  padding: 14px 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
  color: var(--muted);
}

.past-list { margin: 0; padding: 0 18px 16px; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }

.empty { color: var(--muted); padding: 20px 0; }
.empty a { color: var(--green-soft); }

/* ---------- feature / reading ---------- */

.reading { padding: 44px 0 8px; }

.feature-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--panel) 0%, var(--bg-soft) 100%);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.feature-link:hover { border-left-color: var(--gold); }

.feature-kicker {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.feature-title { flex: 1 1 auto; font-weight: 680; font-size: 1.02rem; line-height: 1.4; }
.feature-arrow { flex: 0 0 auto; color: var(--muted); font-size: 20px; }

/* ---------- connect ---------- */

.connect { padding: 44px 0 8px; }

.connect-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.connect-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.connect-grid a:hover { background: var(--panel-hi); border-color: var(--green); }

/* ---------- link blocks ---------- */

.link-block { padding: 34px 0 6px; }

.link-block h2 { font-size: clamp(1.1rem, 3.6vw, 1.32rem); margin-bottom: 14px; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #dceee5;
  text-decoration: none;
  font-size: 15.5px;
  border-left: 2px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.link-list a::before {
  content: "↗";
  color: var(--green);
  font-size: 14px;
  flex: 0 0 auto;
}

.link-list a:hover { background: var(--panel); border-left-color: var(--green); }

.filetype {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 48px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 0; }

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  body { font-size: 16.5px; }

  .wrap { padding: 0 15px; }

  .masthead-inner { min-height: 58px; padding: 6px 0; }

  .nav a { padding: 9px 11px; font-size: 14.5px; }

  .hero { padding: 34px 0 24px; }

  .hero h1 { margin-bottom: 14px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .card-date {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 9px 13px;
    width: fit-content;
  }

  .d-month { order: 2; }
  .d-day { font-size: 21px; order: 1; }
  .d-weekday { order: 3; }
  .d-rel { margin-top: 0; order: 4; margin-left: auto; }

  .meta-label { flex: 0 0 44px; }

  .feature-link { flex-wrap: wrap; padding: 18px; gap: 10px; }
  .feature-title { flex: 1 1 100%; order: 3; }
  .feature-arrow { order: 2; margin-left: auto; }

  .connect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand-ar { display: none; }
  .nav { gap: 0; }
  .filters { gap: 6px; }
  .chip { padding: 9px 13px; font-size: 13.5px; }
}

/* ---------- high contrast / forced colors ---------- */

@media (prefers-contrast: more) {
  :root {
    --text: #ffffff;
    --muted: #c3d6ce;
    --line: #4a6a5f;
  }
  .card, .feature-link, .link-list a { border-width: 2px; }
}

@media (forced-colors: active) {
  .chip.is-active, .btn-primary { border: 2px solid ButtonText; }
  .card { border: 1px solid CanvasText; }
}
