:root {
  color-scheme: light;
  --ink: #142521;
  --muted: #5d6c67;
  --forest: #0d332c;
  --gold: #b67a25;
  --paper: #fffdf9;
  --cream: #f6f1e8;
  --line: #d7ddd8;
  --green-soft: #e7efeb;
  --error: #a52d2d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
body::before { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 0.1875rem; content: ""; background: linear-gradient(90deg, var(--gold), #f3d996 45%, var(--gold)); }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: absolute; z-index: 200; top: 0.5rem; left: 0.5rem; padding: 0.625rem 0.875rem; transform: translateY(-150%); background: #fff; color: var(--forest); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
header { display: flex; width: min(100% - 2rem, 72rem); min-height: 5rem; margin: 0 auto; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--forest); text-decoration: none; }
.brand svg { width: 2.5rem; height: 2.5rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 1.125rem; }
.brand small, .step-label { margin-top: 0.25rem; color: var(--muted); font-size: 0.625rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.step-label { text-align: right; }
main { width: min(100% - 2rem, 72rem); margin: 0 auto; padding: 2.5rem 0 5rem; }
.loading-state, .error-state { display: flex; min-height: 55vh; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.loading-state span { width: 2rem; height: 2rem; margin-bottom: 1rem; border: 0.1875rem solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { margin: 0 0 0.35rem; color: var(--gold); font-size: 0.6875rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, p { text-wrap: pretty; }
h1 { max-width: 12ch; margin: 0; font-family: Georgia, serif; font-size: clamp(2.75rem, 9vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.page-heading > div:first-child > p:last-child { max-width: 40rem; margin: 1rem 0 0; color: var(--muted); }
.property-meta { display: flex; max-width: 20rem; flex-direction: column; color: var(--muted); font-size: 0.75rem; }
.property-meta strong { color: var(--forest); font-size: 1rem; }
.property-meta code { margin-top: 0.25rem; overflow-wrap: anywhere; font-size: 0.625rem; }
.appointment-card { display: flex; margin-top: 2rem; padding: 1.25rem; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 1rem; border: 1px solid #9bc5b2; border-left: 0.3rem solid #287856; border-radius: 0.5rem; background: var(--green-soft); }
.appointment-card h2 { margin: 0; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.appointment-card p:last-child { margin: 0.25rem 0 0; color: var(--muted); }
#booking-form { display: grid; margin-top: 1rem; gap: 1rem; }
.booking-panel { min-width: 0; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; overflow: hidden; }
.panel-heading { display: flex; padding: 1rem 1.25rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: flex; align-items: center; gap: 0.75rem; }
.panel-heading > div > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border: 1px solid #c9b489; border-radius: 50%; color: var(--gold); font-size: 0.75rem; font-weight: 800; }
.panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.panel-heading > span { color: var(--muted); font-size: 0.6875rem; }
.slot-grid { display: grid; padding: 1rem; gap: 0.75rem; }
.slot-grid fieldset { display: grid; min-width: 0; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; border: 0; }
.slot-grid legend { width: 100%; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.slot-grid label { position: relative; cursor: pointer; }
.slot-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slot-grid label span { display: flex; min-height: 2.75rem; align-items: center; justify-content: center; border: 1px solid #bdc9c3; border-radius: 0.375rem; color: var(--forest); font-size: 0.75rem; font-weight: 750; }
.slot-grid input:checked + span { border-color: var(--forest); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.slot-grid input:focus-visible + span, .format-options input:focus-visible + span, button:focus-visible, a:focus-visible { outline: 3px solid rgba(182, 122, 37, 0.38); outline-offset: 2px; }
.empty-slots { grid-column: 1 / -1; margin: 0; padding: 1.5rem; color: var(--muted); text-align: center; }
.format-options { display: grid; padding: 1rem; gap: 0.625rem; }
.format-options label { position: relative; cursor: pointer; }
.format-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-options span { display: flex; min-height: 5rem; padding: 1rem; justify-content: center; flex-direction: column; border: 1px solid #bdc9c3; border-radius: 0.375rem; }
.format-options small { margin-top: 0.25rem; color: var(--muted); }
.format-options input:checked + span { border-color: var(--forest); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.button { display: inline-flex; min-height: 3rem; padding: 0.75rem 1.125rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 0.375rem; cursor: pointer; font-weight: 750; text-decoration: none; }
.button-primary { background: var(--forest); color: #fff; }
.button-quiet { border-color: var(--forest); background: transparent; color: var(--forest); }
.button:disabled { cursor: wait; opacity: 0.65; }
.submit-button { width: 100%; }
.field-error { min-height: 1rem; margin: -0.4rem 1rem 1rem; color: var(--error); font-size: 0.75rem; font-weight: 700; }
.form-status { padding: 0.875rem 1rem; border-left: 0.25rem solid #287856; background: var(--green-soft); color: var(--forest); }
.booking-note { margin: -0.5rem 0 0; color: var(--muted); font-size: 0.6875rem; text-align: center; }
[hidden] { display: none !important; }
@media (min-width: 42rem) {
  header, main { width: min(100% - 3rem, 72rem); }
  .appointment-card { align-items: center; flex-direction: row; }
  #booking-form { grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr); }
  .format-panel { align-self: start; }
  .form-status, .submit-button, .booking-note { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
