:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --surface: #fffcf5;
  --ink: #252a20;
  --muted: #565a4e;
  --olive: #37462e;
  --olive-hover: #283722;
  --rule: #d7d5c7;
  --field: #8a8c79;
  --wash: #eeefe4;
  --small: .875rem;
  --body: 1rem;
  --lead: 1.125rem;
  --section: 1.75rem;
  --figure: 2.375rem;
  --display: 5.75rem;
  --serif: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  font: var(--body)/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--olive-hover); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
::selection { background: #dce3d0; color: var(--ink); }
.shell { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.site-nav, .nav-links, .footer { display: flex; align-items: center; }
.site-nav { min-height: 4.75rem; justify-content: space-between; gap: 1rem 2rem; }
.nav-links { gap: .25rem clamp(.85rem, 3vw, 2rem); flex-wrap: wrap; }
.nav-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--small); font-weight: 600; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.brand { font: 500 var(--section)/1 var(--serif); letter-spacing: -.05em; text-decoration: none; overflow-wrap: anywhere; }
main { padding-block: clamp(2rem, 5vw, 4.25rem) 4rem; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.hero-copy { padding-block: 1.25rem; }
h1, h2, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; overflow-wrap: anywhere; }
h1 { font-size: clamp(3rem, 8.4vw, var(--display)); line-height: .98; letter-spacing: -.065em; }
h2 { font-size: var(--section); line-height: 1.15; letter-spacing: -.035em; }
.event-details { max-width: 44ch; margin-top: 1.4rem; color: var(--muted); font-size: var(--lead); white-space: pre-wrap; overflow-wrap: anywhere; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; border-radius: .2rem; background: #51442b; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.3rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem; width: fit-content; max-width: 100%; padding: .65rem 1.15rem; background: var(--olive); border: 1px solid transparent; border-radius: .3rem; color: #fffdf7; font: 650 var(--small)/1.35 system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--olive-hover); color: #fffdf7; }
.secondary-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; font-size: var(--small); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); margin-block: clamp(2rem, 5vw, 3.5rem); border-block: 1px solid var(--rule); }
.facts > div { padding: 1.1rem clamp(.65rem, 3vw, 2rem); }
.facts > div + div { border-left: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: var(--small); }
.facts dd { font: 400 var(--figure)/1.15 var(--serif); letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.workspace-heading h1 { font-size: clamp(3rem, 6vw, var(--display)); }
.forms { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(1rem, 2.8vw, 2rem); }
.panel, .photo-section { min-width: 0; }
.panel { padding: clamp(1rem, 3vw, 1.8rem); border: 1px solid var(--rule); border-radius: .35rem; background: var(--surface); }
.panel:target { border-color: var(--olive); }
.edit { margin-bottom: 1.5rem; }
.edit form { max-width: 42rem; }
.muted { margin-top: .5rem; color: var(--muted); }
form, .field { display: grid; gap: .45rem; min-width: 0; }
form { margin-top: 1.15rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .8rem; }
.field-row + label, input + label { margin-top: .45rem; }
label { font-size: var(--small); font-weight: 650; }
input, textarea { width: 100%; min-width: 0; min-height: 2.8rem; padding: .55rem .7rem; border: 1px solid var(--field); border-radius: .25rem; background: var(--surface); color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input[type="file"] { font-size: var(--small); }
input::file-selector-button { margin-right: .6rem; padding: .32rem .55rem; border: 1px solid var(--rule); border-radius: .2rem; background: var(--wash); color: var(--ink); font: inherit; cursor: pointer; }
form .button { margin-top: .5rem; }
small { color: var(--muted); font-size: var(--small); }
.notice { margin-block: 0 1.25rem; padding: .75rem 1rem; border: 1px solid var(--rule); background: var(--wash); border-radius: .25rem; }
.notice:empty { display: none; }
.photo-section { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.photo-form { max-width: 30rem; margin-bottom: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.3rem; margin-top: 1rem; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .25rem; background: var(--wash); }
figcaption { margin-top: .35rem; color: var(--muted); overflow-wrap: anywhere; }
.record-list { margin: .75rem 0 0; padding: 0; list-style: none; }
.record-list li { padding-block: .7rem; overflow-wrap: anywhere; }
.record-list li + li { border-top: 1px solid var(--rule); }
.payment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: baseline; }
.payment a { grid-column: 1 / -1; justify-self: start; font-size: var(--small); }
.payment strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer { justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; min-height: 4.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--small); }
@media (max-width: 47rem) {
  .hero, .forms { grid-template-columns: 1fr; }
  .hero { gap: 1.4rem; }
  .hero-copy { padding-block: 0; }
  .hero-photo { aspect-ratio: 1.65; }
}
@media (max-width: 32rem) {
  .shell { width: calc(100% - 2rem); }
  .site-nav { flex-wrap: wrap; gap: .2rem 1.1rem; padding-block: .6rem .25rem; }
  .nav-links { width: 100%; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.75rem), 1fr)); }
  .facts dd { font-size: var(--section); }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { margin-top: 1.25rem; }
}
