:root {
  color-scheme: light;
  --ink: #23201d;
  --muted: #645d55;
  --gold: #826039;
  --gold-light: #f1e5d5;
  --paper: #fcfbf8;
  --line: #e3dcd2;
  --white: #fff;
  --success: #2c5e43;
  --danger: #9b3c32;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .25em; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
:focus-visible { outline: 3px solid #a87838; outline-offset: 3px; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(3rem, 6.5vw, 6.2rem); letter-spacing: -.062em; }
h1 em { color: var(--gold); font-weight: inherit; }
h2 { font-size: clamp(2rem,4vw,3.4rem); letter-spacing: -.044em; }
h3 { font-size: 1.28rem; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; display: flex; gap: .65rem; align-items: center; }
.eyebrow span { width: 1.4rem; height: 1px; background: currentColor; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row,.footer-row,.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-row { min-height: 5rem; }
.brand { position: relative; display: block; flex: none; width: 6rem; aspect-ratio: 96 / 73; overflow: hidden; }
.brand img { position: absolute; inset: 50% auto auto 50%; width: 124%; max-width: none; height: auto; transform: translate(-50%, -52%); }
nav { display: flex; gap: clamp(.55rem,2vw,1.8rem); align-items: center; }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 2.8rem; padding: .62rem 1.1rem; border: 1px solid var(--ink); border-radius: .35rem; background: var(--ink); color: var(--white); font-weight: 650; text-decoration: none; text-align: center; }
.button:not(:disabled):hover { background: #42372c; color: var(--white); }
.button.outline { border-color: #b9a990; background: transparent; color: var(--ink); }
.button.outline:not(:disabled):hover { background: var(--gold-light); color: var(--ink); }
.button.light { background: #f3e0c7; color: var(--ink); border-color: #f3e0c7; }
.button.light:not(:disabled):hover { background: #fff4e4; color: var(--ink); }
.button.danger { color: var(--danger); border-color: #d8aaa0; background: none; }
.button.danger:not(:disabled):hover { color: white; background: var(--danger); }
.button.small { font-size: .875rem; padding-inline: .8rem; }
.hero { padding-block: 2.5rem; }
.hero-copy { display: grid; justify-items: center; gap: 1.4rem; padding: 3.2rem 1.5rem; background: #f5eee4; border-radius: .6rem; text-align: center; }
.hero h1 em { display: block; }
.hero-description { color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.catalog { padding-block: 1.25rem 2.5rem; scroll-margin-top: 1rem; }
.section-head { align-items: end; margin-bottom: 1.3rem; }
.section-head h2 { margin-top: .4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.filter { min-height: 2.75rem; border: 1px solid var(--line); border-radius: 2rem; padding: .45rem 1.15rem; color: var(--ink); background: var(--white); }
.filter[aria-pressed=true] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service-card { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: .55rem; }
.service-card.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.service-card-content { display: grid; grid-template-rows: 1fr auto; gap: .9rem; padding: 1rem; }
.service-card h3 { margin-bottom: .28rem; }
.service-card .meta { font-size: .9rem; color: var(--muted); }
.service-card .card-end { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.price { color: var(--gold); font: 1.28rem var(--serif); white-space: nowrap; }
.service-note { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.attendance { padding-bottom: 1.25rem; scroll-margin-top: 1rem; }
.attendance-card { border: 1px solid var(--line); border-radius: .65rem; background: #f5eee4; padding: clamp(1rem,3vw,2rem); }
.attendance-card .policy-list { max-width: 64ch; margin-top: .85rem; }
.attendance-card li+li { margin-top: .5rem; }
.attendance-card li:last-child { font-weight: 650; }
.attendance-artwork { margin-top: .85rem; }
.results { padding-block: 1.25rem 2.5rem; scroll-margin-top: 1rem; }
.results-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-top: 1.3rem; }
.result-card { min-width: 0; }
.result-card a { display: block; border-radius: .55rem; }
.result-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: inherit; background: #efebe4; }
.result-card figcaption { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
summary { cursor: pointer; font-weight: 650; }
.site-footer { padding: 1.8rem 0 6rem; }
.footer-row { flex-wrap: wrap; }
.selection-bar { width: min(35rem,100% - 1.25rem); margin-inline: auto; position: fixed; inset: auto 0 max(.75rem,env(safe-area-inset-bottom)); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: .55rem; border: 1px solid #5d5347; color: var(--white); background: var(--ink); box-shadow: 0 8px 32px #26180b35; }
#selection-count { font-size: .875rem; color: #f4e9db; }
dialog { border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); color: var(--ink); width: min(43rem,100% - 1rem); max-height: calc(100dvh - 1rem); padding: clamp(1rem,4vw,1.8rem); overscroll-behavior: contain; }
dialog::backdrop { background: #21191191; }
.dialog-top,.line-between,.row { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.dialog-top { position: sticky; top: 0; z-index: 1; background: var(--paper); padding-bottom: .45rem; margin-bottom: .65rem; }
#checkout[open] { display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
#checkout .dialog-top { position: static; }
#checkout-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-inline: 2px; }
.row { justify-content: flex-start; flex-wrap: wrap; }
.icon-button { min-width: 2.8rem; min-height: 2.8rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--ink); background: var(--white); font-size: 1.5rem; }
.stack { display: grid; gap: 1rem; }
.card,.notice { border: 1px solid var(--line); border-radius: .45rem; background: var(--white); padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
.notice { background: #f5eee4; }
.error { color: var(--danger); font-weight: 600; }
.success { color: var(--success); font-weight: 600; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.fields-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
label { display: grid; align-items: start; gap: .3rem; font-weight: 600; font-size: .9rem; min-width: 0; }
label > small { font-weight: 400; }
input, select { color: var(--ink); background: var(--white); border: 1px solid #ab9e8e; border-radius: .32rem; min-height: 2.75rem; padding: .55rem .65rem; width: 100%; min-width: 0; font-size: 1rem; }
input[type=file] { padding: .36rem; }
input[type=checkbox] { width: 1.24rem; min-height: unset; height: 1.24rem; margin: .15rem 0 0; accent-color: var(--ink); }
label.check { grid-template-columns: 1.24rem 1fr; gap: .65rem; align-items: start; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--gold); min-height: 2.75rem; }
.policy-list { margin: .5rem 0 .1rem; padding-left: 1.3rem; }
.admin-main { padding-block: 2rem 4rem; }
.admin-login { max-width: 30rem; margin-inline: auto; }
.admin-login h1,.admin-main h1 { font-size: clamp(2.4rem,5vw,4rem); }
.admin-tabs { border-block: 1px solid var(--line); padding-block: 1rem; margin: 1.2rem 0; }
.admin-tabs .filter { flex-shrink: 0; }
.admin-list { display: grid; gap: .75rem; }
.admin-list .line-between { flex-wrap: wrap; }
.admin-photo { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: .35rem; }
.status { display: inline-flex; padding: .15rem .55rem; background: var(--gold-light); border-radius: 1rem; font-size: .875rem; }
.status.confirmed,.status.completed { color: var(--success); background: #e5f0e8; }
.status.cancelled,.status.no_show { color: var(--danger); background: #fae9e5; }
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.kpis strong { display: block; font: 1.7rem var(--serif); }
.checkbox-list { max-height: 15rem; overflow-y: auto; display: grid; gap: .7rem; }
fieldset { min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .35rem; }
fieldset legend { font-weight: 650; }
#admin-view > h2 { font-size: clamp(1.8rem,4vw,2.7rem); }
@media(max-width: 55rem) {
  .hero-copy { padding: 2.7rem 1.5rem; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width: 40rem) {
  .container { width: calc(100% - 1.75rem); }
  .header-row { min-height: 4.25rem; }
  .brand { width: 5.5rem; }
  .header-row nav a:not(.button) { display: none; }
  .hero { padding-block: 1rem; }
  .hero-copy { gap: 1rem; padding: 2rem 1.2rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .service-grid { grid-template-columns: 1fr; gap: .65rem; }
  .service-card-content { gap: .45rem; padding: .7rem; }
  .results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .filter { padding-inline: .72rem; }
  .fields-3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} }
#catalog-status:not([hidden]) { margin-bottom: .8rem; }
.card p+p { margin-top: .25rem; }
#admin-status:not(:empty), #dialog-status:not(:empty) { margin-bottom: .8rem; }
