@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #efe6d6;
  --card: #fffdf8;
  --ink: #1d1a16;
  --muted: #6d6458;
  --line: #e4d7c4;
  --accent: #0f5c4c;
  --signal: #d85a2a;
  --gold: #e2b340;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public { min-height: 100vh; display: flex; flex-direction: column; }
body.public .page { flex: 1; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% 0%, #f7f1e6 0%, transparent 46%),
    radial-gradient(ellipse at 100% 0%, #f4e3d0 0%, transparent 40%),
    var(--paper);
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fffaf3;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}
.ticket {
  height: 7px;
  background: linear-gradient(90deg, var(--accent) 0 70%, var(--signal) 70% 88%, var(--gold) 88% 100%);
}
.site-header { padding: 14px 0 12px; }
.header-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.mark { position: relative; display: grid; color: var(--accent); width: 42px; height: 42px; flex: none; }
.mark svg { width: 42px; height: 42px; }
.mark-day {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  text-align: center;
  color: #fffaf3;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 600; letter-spacing: -0.02em; }
.brand-tag { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.view-switch {
  display: inline-flex;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.view-link {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.view-link.is-active { background: var(--ink); color: #fffaf3; }
.search input {
  width: 180px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 6px 0;
}
.pager { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn, .today-link {
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
}
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.today-link { padding: 7px 12px; font-size: 14px; font-weight: 600; }

.page { padding: 18px 0 56px; }
.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.display {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.display em { font-style: italic; font-weight: 500; }
.display span { font-weight: 620; }
h1 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.02; }
.lede { font-size: 20px; max-width: 46ch; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  font-size: 14px;
}
.chip i, .result-list i, .swatch {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--accent));
  display: inline-block;
}
.chip.is-active { background: var(--ink); color: #fffaf3; border-color: var(--ink); }

.next-up { margin-bottom: 22px; }
.next-up h2, .related h2, .day-focus h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 10px;
}
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 124px;
  text-decoration: none;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 16px 18px;
  border-top: 4px solid var(--c, var(--accent));
  box-shadow: 0 12px 30px rgba(48, 32, 8, 0.05);
}
.next-card strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.next-when, .next-where { color: var(--muted); font-size: 14px; }

.calendar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(48, 32, 8, 0.06);
}
.month { width: 100%; border-collapse: collapse; table-layout: fixed; }
.month th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 8px 8px;
  border-bottom: 1px solid var(--line);
}
.day {
  vertical-align: top;
  height: 132px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 6px;
  background: var(--card);
}
.month tr td:first-child { border-left: 0; }
.day.is-out { background: #f6f0e6; }
.day.is-out .day-num { color: #b3a898; }
.day.is-selected { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, white); }
.day-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
}
.day.is-today .day-num { background: var(--accent); color: #f4fffb; }
.pills { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.pill {
  display: flex;
  gap: 6px;
  align-items: baseline;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.25;
  padding: 3px 6px 3px 7px;
  border-radius: 7px;
  border-left: 3px solid var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, white);
  white-space: nowrap;
}
.pill:hover { background: color-mix(in srgb, var(--c, var(--accent)) 22%, white); }
.pill-title { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pill-time { font-weight: 600; flex: none; }
.pill.is-cancelled { text-decoration: line-through; opacity: 0.7; }
.more-link { font-size: 12px; color: var(--muted); text-decoration: none; padding-left: 6px; }
.dots { display: none; gap: 3px; justify-content: center; margin-top: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--accent)); display: block; }

.day-focus { display: none; margin-top: 18px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 220px;
  padding: 10px;
}
.week-col.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.week-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.week-head span { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.week-head strong { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.week-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  border-left: 3px solid var(--c, var(--accent));
  padding: 6px 8px;
  margin-bottom: 6px;
  background: color-mix(in srgb, var(--c, var(--accent)) 10%, white);
  border-radius: 8px;
}
.week-card strong { font-size: 14px; }
.week-card span, .week-card em { font-size: 12px; color: var(--muted); font-style: normal; }
.quiet { color: var(--muted); }

.agenda { display: flex; flex-direction: column; gap: 18px; }
.agenda-day { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.agenda-mark { display: flex; flex-direction: column; align-items: flex-start; }
.agenda-mark span, .agenda-mark em { color: var(--muted); font-style: normal; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.agenda-mark strong { font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 0.9; }
.agenda-day ol, .result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.result-list a, .agenda-day a {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.when { color: var(--muted); font-size: 14px; }
.what { display: flex; flex-direction: column; min-width: 0; }
.what strong { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.what em { color: var(--muted); font-style: normal; font-size: 14px; }
.is-cancelled .what strong { text-decoration: line-through; }

.empty {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  border: 1px dashed var(--line);
}
.empty h1 { margin-top: 0; }

.event-page { max-width: 820px; }
.back { margin: 0 0 12px; }
.back a { color: var(--muted); }
.event-sheet {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 28px 32px;
  border-top: 8px solid var(--c, var(--accent));
  box-shadow: 0 18px 40px rgba(48, 32, 8, 0.05);
}
.event-sheet h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 8px; }
.event-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.event-meta span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.event-meta strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.event-meta em { display: block; margin-top: 4px; font-style: normal; font-size: 18px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.prose { font-size: 18px; line-height: 1.55; max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.series-note { color: var(--muted); }
.cancel-banner, .draft-banner, .form-errors {
  background: #fff4ec;
  border: 1px solid #efd0bf;
  border-radius: 12px;
  padding: 10px 12px;
}
.draft-banner { background: #f3f0e4; border-color: var(--line); }
.event-photo { border-radius: 12px; margin: 8px 0 16px; }
.related { margin-top: 28px; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #f4fffb;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc3b0; }
.btn-danger { background: transparent; color: #9d2c2c; border-color: #e3b4b4; }
.site-footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--ink); }

.install-page, .login-wrap { padding-top: 48px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.login-card, .install-form, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.login-card { width: min(420px, 100%); }
.login-card h1 { margin-top: 0; }
.hint { color: var(--muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); }
.field input, .field select, .field textarea, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd2c2;
  border-radius: 10px;
  padding: 10px 12px;
}
.field textarea, textarea { min-height: 120px; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0 14px; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

@media (max-width: 860px) {
  .header-row { flex-direction: column; align-items: stretch; }
  .header-tools { justify-content: flex-start; }
  .next-grid, .event-meta { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .week-col { min-height: 0; }
  .agenda-day { grid-template-columns: 64px 1fr; }
  .result-list a, .agenda-day a { grid-template-columns: 1fr auto; }
  .when { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pills, .more-link { display: none; }
  .dots { display: flex; }
  .day { height: 58px; }
  .day-focus { display: block; }
  .display { font-size: 64px; }
  .search input { width: 140px; }
  .brand-tag { display: none; }
}
.event-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.event-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: start;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.event-row a { text-decoration: none; }
.event-row h2 a:hover { text-decoration: underline; }
.more-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.more-dates span { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.more-dates a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  background: #fff;
}
.event-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.when-block { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; }
.when-block span, .when-block em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.when-block strong { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 0.9; }
.event-copy h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; }
.meta-line, .blurb { margin: 4px 0 0; color: var(--muted); }
.blurb { font-size: 15px; }
.offer { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 110px; }
.offer strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.offer span { color: var(--muted); font-size: 13px; }
.price-line { font-size: 18px; }
.booking-page { max-width: 760px; }
.booking-page h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 8px; }
.booking-form { margin-top: 18px; }
.name-list { margin: 0 0 16px; padding-left: 18px; }

@media (max-width: 720px) {
  .event-row { grid-template-columns: 64px 1fr; }
  .offer { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 10px; }
  .event-copy h2 { font-size: 22px; }
}

@media print {
  .topbar, .filters, .site-footer, .event-actions, .next-up { display: none !important; }
  body { background: white; }
  .day { break-inside: avoid; }
}
