:root {
  color-scheme: light;
  --paper: #f7f8f1;
  --white: #fffefa;
  --ink: #23382d;
  --muted: #536457;
  --line: #d6ded2;
  --green: #315742;
  --green-dark: #254333;
  --rose: #93513c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
main, section { min-width: 0; }
h1, h2 { font-family: var(--serif); font-weight: normal; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.55rem); }
p { margin: 0; }
a { color: var(--green-dark); }
:focus-visible { outline: 3px solid #7b4b27; outline-offset: 4px; }
.skip-link { position: absolute; top: .7rem; left: .7rem; transform: translateY(-200%); background: var(--white); padding: .55rem .8rem; z-index: 5; }
.skip-link:focus { transform: none; }
.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; }
.eyebrow { color: var(--rose); font-size: .875rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .8rem; }
.lede, .section-intro > p:last-child { color: var(--muted); margin-top: .8rem; }
.micro { font-size: .875rem; color: var(--muted); }
.center-shell { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 1.25rem; }
.gate { background: radial-gradient(ellipse at 50% 20%, #fffdfa, var(--paper) 87%); }
.card { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--white); box-shadow: 0 .6rem 2.5rem #23382d0b; }
.gate-card { width: min(100%, 31rem); padding: clamp(1.5rem, 6vw, 3rem); text-align: center; }
.mark { color: var(--rose); display: block; font-size: 1.6rem; line-height: 1; margin-bottom: .85rem; }
.gate-card .lede { max-width: 26ch; margin-inline: auto; }
.gate-card .stack, .gate-card .button, .gate-card .alert { margin-top: 1.5rem; }
.gate-card .micro { margin-top: 1.15rem; }
.stack { display: grid; gap: 1rem; }
.field { display: flex; flex-flow: column; gap: .35rem; min-width: 0; text-align: left; }
.field label { font-weight: 650; }
.optional { color: var(--muted); font-size: .875rem; font-weight: 400; }
input:not([type="hidden"]) { width: 100%; min-height: 2.9rem; appearance: none; background: #fff; font: inherit; color: var(--ink); padding: .55rem .75rem; border: 1px solid #86998a; border-radius: .5rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; border: 1px solid var(--green); border-radius: .55rem; background: var(--green); color: #fff; padding: .55rem 1.15rem; font: 650 1rem/1.25 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--green-dark); }
.button-secondary, .button-secondary:hover { color: var(--green-dark); background: var(--white); }
.button-secondary:hover { background: #eaf0e8; }
.alert { color: #843520; background: #fbefe9; padding: .65rem .8rem; border: 1px solid #c77d69; border-radius: .45rem; margin: 1.2rem 0 0; text-align: left; }
.field-error { color: #843520; font-size: .875rem; }
input[aria-invalid=true] { border-color: #a84d37; }
.invite-shell { width: min(100%, 49rem); margin: 0 auto; padding: 0 1rem; }
.invite-hero { position: relative; overflow: hidden; text-align: center; padding-top: clamp(2.25rem, 7vw, 4.5rem); }
.invite-hero h1 { font-size: clamp(3.05rem, 10vw, 6rem); letter-spacing: -.06em; }
.invite-hero h1 span { font-size: .7em; color: var(--rose); font-style: italic; margin: 0 .08em; }
.event-date { font: normal clamp(1.3rem, 4vw, 1.9rem)/1.3 var(--serif); margin-top: 1rem; }
.event-location { color: var(--muted); margin-top: .35rem; }
.event-location span { margin: 0 .15rem; }
.orchard-art { display: block; width: 100%; height: auto; max-height: 11rem; margin-top: .3rem; }
.address-card { width: min(100%, 39rem); position: relative; margin: -.75rem auto 0; padding: clamp(1.2rem, 5vw, 2.65rem); }
.address-form { margin-top: 1.35rem; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.submit { justify-self: start; margin-top: .15rem; }
.invite-footer { margin: 1.4rem 0 2rem; text-align: center; color: var(--muted); font: italic 1.1rem var(--serif); }
.dash-shell { width: min(100%, 72rem); margin: auto; padding: clamp(1rem, 4vw, 3rem); }
.dash-header, .dash-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dash-header { margin-bottom: 1.5rem; }
.dash-header .lede { margin-top: .45rem; }
.dash-card { overflow: hidden; }
.dash-toolbar { margin: 0; padding: 1.25rem; }
.dash-toolbar p { margin-top: .4rem; color: var(--muted); }
.records { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; text-align: left; }
th, td { border-top: 1px solid var(--line); padding: .75rem 1.25rem; vertical-align: top; overflow-wrap: anywhere; }
thead { background: #eef2ea; }
thead th { font-size: .875rem; }
tbody th { font-weight: 650; }
.dash-note, .empty { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 36rem) {
  .dash-header, .dash-toolbar { flex-wrap: wrap; align-items: start; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .submit { justify-self: stretch; }
  .event-location { max-width: 30ch; margin-inline: auto; }
}
