:root {
  color-scheme: light;
  --ink: #20342c;
  --muted: #65736b;
  --green: #285d45;
  --green-deep: #194632;
  --ivory: #f8f6ef;
  --paper: #fffefa;
  --line: #dedfd5;
  --gold: #c99d54;
  --danger: #9a3c34;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(ellipse at 50% -15%, #e7eadc 0, var(--ivory) 52rem); }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { color: var(--green-deep); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #bb8b3e; outline-offset: 3px; }

.site-header, footer { width: min(100% - 3rem, 1120px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { height: 84px; border-bottom: 1px solid rgba(32, 52, 44, .12); }
.site-header nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.wordmark { color: var(--ink); font-size: 1.18rem; font-weight: 700; letter-spacing: -.07em; text-decoration: none; }
.wordmark span { color: var(--gold); }
main { width: min(100% - 3rem, 860px); margin: 0 auto; }
.intro { padding: 5.5rem 0 3rem; }
.eyebrow { margin: 0 0 .9rem; color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.25rem; color: var(--ink); font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: clamp(3.1rem, 8vw, 5.65rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
h1 em { color: var(--green); font-weight: 400; }
.lede { max-width: 620px; margin-bottom: .8rem; color: #4c5d53; font-size: 1.08rem; line-height: 1.72; }
.timezone-note, .privacy-note, .subtle { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.notice { margin: 1rem 0 2.8rem; padding: .9rem 1rem; border: 1px solid #d9dfd1; border-radius: 8px; background: #edf1e8; color: #365543; font-size: .86rem; line-height: 1.55; }
.event-list { padding-top: .3rem; }
.section-heading { margin-bottom: 1.3rem; }
.section-heading h2, .manage-actions h2, .cancel-section h2 { margin-bottom: 0; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 2rem; font-weight: 400; letter-spacing: -.02em; }
.event-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: .85rem; padding: 1.55rem 1.65rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 254, 250, .82); box-shadow: 0 5px 24px rgba(37, 54, 42, .025); }
.event-copy { max-width: 550px; }
.event-copy h3 { margin: .35rem 0 .4rem; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.event-copy p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.duration { color: #9a7238; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .65rem; padding: .72rem 1.1rem; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: .9rem; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-green { background: var(--green); color: white; }
.button-green:hover { background: var(--green-deep); color: white; }
.button-outline { border-color: #a8b5a8; background: transparent; color: var(--green-deep); }
.button-outline:hover { border-color: var(--green); background: #eef2e9; color: var(--green-deep); }
.button-danger { border-color: #e2c9c4; background: #fff9f7; color: var(--danger); }
.button-danger:hover { border-color: var(--danger); background: #fbefeb; color: #7c2d27; }
.privacy-note { margin: 2.5rem 0 4rem; }
footer { min-height: 78px; border-top: 1px solid rgba(32, 52, 44, .12); color: #788279; font-size: .77rem; }

.flow-main { max-width: 760px; padding-top: 3.5rem; }
.page-title { margin-bottom: .7rem; font-size: clamp(2.7rem, 6vw, 4rem); }
.narrow { max-width: 600px; }
.panel { margin: 1.5rem 0; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 34px rgba(37, 54, 42, .035); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: block; margin-bottom: 1rem; color: #35463d; font-size: .85rem; font-weight: 600; }
input:not([type=radio]), select, textarea { display: block; width: 100%; min-height: 46px; margin-top: .45rem; padding: .7rem .78rem; border: 1px solid #cfd5cb; border-radius: 5px; background: #fff; color: var(--ink); }
textarea { min-height: 95px; resize: vertical; }
.date-form .button { margin-top: .25rem; }
.slot-fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.slot-fieldset legend { margin-bottom: .8rem; color: var(--ink); font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 1.35rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .55rem; }
.slot-option { position: relative; margin: 0; }
.slot-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slot-option span { display: flex; min-height: 45px; align-items: center; justify-content: center; padding: .55rem; border: 1px solid #cbd4c9; border-radius: 5px; background: #fff; color: var(--green-deep); cursor: pointer; font-size: .87rem; font-weight: 600; }
.slot-option input:checked + span { border-color: var(--green); background: #eaf1e9; box-shadow: inset 0 0 0 1px var(--green); }
.slot-option input:focus-visible + span { outline: 3px solid #bb8b3e; outline-offset: 2px; }
.guest-fields { margin-top: 1rem; }
.optional { color: var(--muted); font-size: .77rem; font-weight: 400; }
.form-footnote { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.form-error { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #e5c6c1; border-radius: 6px; background: #fff1ee; color: #812f28; font-size: .9rem; line-height: 1.5; }
.empty-state { margin: 1.5rem 0; padding: 1.5rem; border: 1px dashed #bbc5b9; border-radius: 8px; background: rgba(255, 254, 250, .55); }
.empty-state h2 { margin-bottom: .45rem; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.empty-state p { color: var(--muted); line-height: 1.6; }
.back-link { display: inline-block; margin: 1rem 0 3rem; font-size: .88rem; font-weight: 600; }
.summary-top { display: flex; align-items: flex-start; justify-content: space-between; }
.summary-top h2 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.summary-mark { color: var(--gold); font-size: 2rem; }
.details { margin: 1.5rem 0 0; }
.details div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-top: 1px solid #e9e9e1; }
.details dt { color: var(--muted); font-size: .82rem; }
.details dd { margin: 0; color: var(--ink); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.manage-actions { margin-top: 1.2rem; }
.manage-actions h2 { margin-bottom: 1.2rem; }
.reschedule-form { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid #e9e9e1; }
.cancel-section { margin: 2rem 0; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.cancel-section h2 { font-size: 1.5rem; }
.cancel-section p { margin: .6rem 0 1rem; color: var(--muted); font-size: .9rem; }
.message-main { max-width: 680px; }
.message-panel .lede { margin-bottom: 1.4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.success-message { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #c9ddca; border-radius: 6px; background: #edf5ed; color: #285d45; font-size: .9rem; line-height: 1.5; }
.slot-fieldset:focus-within legend { color: var(--green); }

@media (max-width: 620px) {
  .site-header, footer, main { width: min(100% - 2rem, 860px); }
  .site-header { height: 68px; }
  .intro { padding: 4rem 0 2rem; }
  .event-card { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .event-card .button { width: 100%; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .flow-main { padding-top: 2.6rem; }
  .details div { grid-template-columns: 88px minmax(0, 1fr); }
  footer { gap: .8rem; font-size: .7rem; }
}

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