:root {
  --canvas: #f7f5f0;
  --paper: #fffefa;
  --ink: #172026;
  --muted: #5f686b;
  --action: #005e66;
  --action-dark: #00464c;
  --line: #cfd3cd;
  --soft: #e8eee9;
  --warn: #8b3f1f;
  --open: #1f6f46;
  --wait: #9a6513;
  --closed: #8b3f3f;
  --radius: .65rem;
  --shadow: 0 1.2rem 3rem rgb(23 32 38 / .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--action); text-underline-offset: .2em; }
a:hover { color: var(--action-dark); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: .2rem solid #e18b34; outline-offset: .2rem; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 720px; }
.site-header { border-bottom: 1px solid var(--line); background: rgb(247 245 240 / .94); backdrop-filter: blur(12px); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.wordmark-mark { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; font-size: .7rem; letter-spacing: .05em; }
.site-header nav, .site-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a, .site-footer nav a { color: inherit; font-size: .94rem; }
.hero { padding: clamp(3.5rem, 8vw, 8rem) 0 clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin: .35rem 0 1.35rem; font-family: ui-serif, Georgia, serif; font-size: clamp(2.6rem, 7vw, 5.65rem); font-weight: 500; }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
.prose h1, .result-card h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.eyebrow, .number { margin: 0; color: var(--action); font-size: .78rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.lede { max-width: 58ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; border: 1px solid var(--action); border-radius: 999px; padding: .65rem 1.15rem; background: var(--action); color: white; cursor: pointer; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--action-dark); color: white; }
.button-secondary { background: transparent; color: var(--action); }
.button-secondary:hover { background: var(--soft); color: var(--action-dark); }
.button-danger { border-color: var(--closed); background: var(--closed); }
.implicit-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.date-card { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.date-card-top { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding: .75rem 1rem; font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; padding: 1.15rem; border-bottom: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list > li > span { color: var(--action); font-family: ui-serif, Georgia, serif; font-size: 1.5rem; }
.feature-list div { display: grid; }
.feature-list small { color: var(--muted); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tint { background: var(--ink); color: var(--canvas); }
.section-heading { max-width: 44rem; margin-bottom: 2rem; }
.search-panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.search-panel label, .stacked-form label { display: block; margin-bottom: .4rem; font-weight: 750; }
.search-row { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; }
input, select, textarea { width: 100%; min-height: 2.85rem; border: 1px solid #8e9896; border-radius: .4rem; padding: .65rem .75rem; background: white; color: var(--ink); }
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.three-up article { border-top: 1px solid #657075; padding-top: 1.5rem; }
.three-up p:not(.number) { color: #cfd5d3; }
.source-strip { border-block: 1px solid var(--line); padding: 1rem 0; background: #eee9df; font-size: .88rem; }
.source-strip .shell { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.source-strip p { margin: 0; max-width: 78ch; }
.site-footer { padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.site-footer p { margin: .25rem 0; color: var(--muted); }
.site-footer nav { max-width: 28rem; justify-content: flex-end; }
.prose, .result-card { padding-block: clamp(3rem, 8vw, 6rem); }
.prose p, .prose li { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.warning, .service-alert, .message { border-left: .3rem solid var(--wait); padding: 1rem; background: #fff2d8; }
.service-alert { border-left: 0; border-bottom: 1px solid #d4aa5e; }
.service-alert .shell { padding-block: .6rem; }
.messages { margin-top: 1rem; }
.result-card { margin-block: clamp(2rem, 5vw, 4rem); }
.status { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: .35rem .7rem; font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.status-full { color: var(--open); }
.status-facts_only { color: var(--wait); }
.status-paused { color: var(--closed); }
.manage-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.manage-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; border-bottom: 1px solid var(--line); }
.text-button { border: 0; background: transparent; color: var(--action); cursor: pointer; text-decoration: underline; }
.text-button, .site-header nav a, .site-footer nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.danger-zone { margin-top: 3rem; border: 1px solid #d6a4a4; border-radius: var(--radius); padding: 1.25rem; }
.stacked-form > div { margin-bottom: 1rem; }
.filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.filter-form label, .secret-result label { display: block; margin-bottom: .4rem; font-weight: 750; }
.filter-form select { min-height: 9.5rem; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.filter-label-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.85rem; }
.filter-label-row label { margin-bottom: 0; }
.filter-reset { min-height: 2.75rem; border: 0; padding: .35rem 0; background: transparent; color: var(--action); cursor: pointer; font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.filter-reset:hover { color: var(--action-dark); }
.form-errors { margin-bottom: 1rem; border-left: .3rem solid var(--closed); padding: 1rem; background: #fce9e7; }
.form-errors p { margin: .35rem 0 0; }
.field-help { max-width: 72ch; color: var(--muted); font-size: .92rem; }
.preview { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.secret-result input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; }
.muted { color: var(--muted); }
.catalog-heading { margin-bottom: 2rem; }
.catalog-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.catalog-filters label { display: block; margin-bottom: .35rem; font-weight: 750; }
.catalog-filters .filter-label-row label { margin-bottom: 0; }
.catalog-filters select { min-height: 8rem; }
.event-results { margin-top: 2rem; border-top: 1px solid var(--ink); }
.event-card { display: grid; grid-template-columns: minmax(7rem, .25fr) 1fr; gap: 1.25rem; border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.event-card h2 { margin: .45rem 0; }
.event-date time { display: grid; }
.event-date strong { font-family: ui-serif, Georgia, serif; font-size: 1.25rem; }
.event-date span, .event-meta { color: var(--muted); }
.event-meta, .chip-row { margin: .35rem 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.status-chip { display: inline-flex; align-items: center; min-height: 1.8rem; border: 1px solid currentColor; border-radius: 999px; padding: .15rem .55rem; color: var(--muted); font-size: .75rem; font-weight: 750; }
.status-available { color: var(--open); }
.status-limited, .status-waitlist { color: var(--wait); }
.status-closed { color: var(--closed); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.empty-state { padding: 3rem 0; }
.detail-header { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; border-bottom: 1px solid var(--ink); padding-bottom: 1.5rem; }
.detail-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .42fr); gap: clamp(2rem, 6vw, 5rem); padding-top: 2rem; }
.detail-grid section { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.detail-actions { align-self: start; position: sticky; top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); }
.detail-actions .button { width: 100%; }
.session-list { padding: 0; list-style: none; }
.session-list li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .85rem 0; }
.session-list time { display: grid; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.tag-list li { border-radius: 999px; padding: .3rem .65rem; background: var(--soft); font-size: .85rem; }
.source-description { overflow-wrap: anywhere; }
.source-meta { margin-top: 2rem; color: var(--muted); font-size: .88rem; }
code { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .hero-grid, .three-up, .footer-grid, .filter-form, .catalog-filters, .detail-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .detail-header { align-items: flex-start; flex-direction: column; }
  .detail-status { justify-content: flex-start; }
  .detail-actions { position: static; }
  .site-header .header-inner { align-items: flex-start; flex-direction: column; padding-block: .8rem; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .date-card { transform: none; }
  .source-strip .shell { display: grid; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 1.2rem, 1120px); }
  .search-row { grid-template-columns: 1fr; }
  .button, .search-row .button { width: 100%; }
  .button-row { display: grid; }
  .site-header nav a { font-size: .82rem; }
  .event-card { grid-template-columns: 1fr; }
  .pagination { align-items: stretch; flex-direction: column; }
}

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