@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("/assets/fonts/fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --outer: #e5e1d8;
  --white: #fff;
  --ink: #000;
  --quiet: #5a5852;
  --line: #e5e1d8;
  --soft-line: #eeebe4;
  --olive: #556b3d;
  --olive-light: #eaeee1;
  --red: #87382d;
  --serif: Fraunces, Georgia, serif;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--outer);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin-inline: auto;
  padding: 20px 20px 60px;
  position: relative;
  z-index: 1;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 6%);
}
.shell.wide { width: min(100%, 680px); }
.background { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.has-background::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgb(245 243 238 / 20%);
  pointer-events: none;
}
.has-background .shell { background: transparent; box-shadow: none; }
.heading { margin-bottom: 0; }
.eyebrow, .label {
  font-family: inherit;
  display: block;
  margin: 0 0 8px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow { margin: 0; font-size: 11px; font-weight: 500; line-height: normal; }
h1, h2, h3, .media-copy strong { font-family: var(--serif); font-weight: 400; }
h1 { margin: 4px 0 6px; font-size: 30px; line-height: 1.1; letter-spacing: -.5px; overflow-wrap: anywhere; }
h2, h3 { margin: 0; }
p { margin: 0; }
.sub { color: var(--quiet); font-size: 13px; line-height: 1.55; }
.heading .sub { margin-top: 4px; }
.card .sub, .admin-nav + .sub { margin-top: 8px; }
.card, .media-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}
.has-background h1,
.has-background .card,
.has-background .media-card { text-shadow: 0 1px 2px rgb(255 255 255 / 65%), 0 0 1px rgb(255 255 255 / 85%); }
.has-background .card, .has-background .media-card {
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(10px);
}
.has-background .day, .has-background .choice { background: rgb(255 255 255 / 45%); }
.has-background .choice[aria-pressed="true"] { text-shadow: none; }
.card { font-size: 14px; }
.note, .profile-notes { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.profile-notes { max-height: 260px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.rows { margin: 0; }
.rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--soft-line);
  padding: 10px 0;
}
.rows > div:first-child { border-top: 0; }
.rows dd {
  text-align: right;
  margin: 0;
  font: 400 14px var(--serif);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.service { padding: 13px 0; border-top: 1px solid var(--soft-line); }
.service:first-of-type { border-top: 0; padding-top: 4px; }
.service:last-child { padding-bottom: 0; }
.service h3 { font-size: 17px; margin-bottom: 4px; }
.rates { font-size: 13px; }
.rates > div { border: 0; padding: 6px 0; }
.rates dd { font-size: 13px; font-weight: 500; }
details > .label { margin-top: 15px; }

.media-card { display: flex; align-items: center; gap: 14px; padding: 14px; color: inherit; text-decoration: none; }
.media-card:hover { border-color: var(--olive); }
.thumbnail {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: #faf8f3;
  border: 1px solid var(--soft-line);
  border-radius: 2px;
  overflow: hidden;
  color: var(--olive);
  font-size: 23px;
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.media-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.media-copy strong { font-size: 17px; letter-spacing: -.2px; overflow-wrap: anywhere; }
.media-copy small { color: var(--quiet); }
.arrow { color: var(--olive); font-size: 18px; font-weight: 600; }
.contact-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 3px;
  background: var(--olive);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.contact-button:hover { filter: brightness(.93); }
.profile-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--quiet);
}
.back { display: inline-block; margin-top: 17px; font-size: 13px; text-underline-offset: 3px; }
.gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gallery-tile {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #faf8f3;
}
.gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-play, .gallery-badge { position: absolute; color: #fff; background: rgb(0 0 0 / 55%); }
.gallery-play {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding-left: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 15px;
}
.gallery-badge { bottom: 6px; left: 6px; padding: 2px 6px; border-radius: 2px; font-size: 10px; text-transform: uppercase; }

.media-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 35px 44px;
  border: 0;
  background: rgb(20 20 18 / 97%);
  color: #fff;
}
.media-viewer[open] { display: grid; place-items: center; }
.media-viewer::backdrop { background: rgb(20 20 18 / 90%); }
.viewer-frame { display: grid; place-items: center; width: 100%; min-width: 0; }
.viewer-frame img, .viewer-frame video { display: block; max-width: 100%; max-height: calc(100dvh - 70px); object-fit: contain; }
.viewer-button {
  position: absolute;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 32px;
}
.viewer-button:focus-visible { outline-color: #fff; }
.viewer-close { top: 4px; right: 8px; }
.viewer-prev, .viewer-next { top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 0; }
.viewer-next { right: 0; }
.viewer-counter { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 13px; pointer-events: none; }

input, textarea, select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); }
textarea { resize: vertical; }
.with-gap { margin-top: 16px; }
.days, .chips { display: flex; gap: 6px; }
.days { overflow-x: auto; padding: 3px 3px 9px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.chips { flex-wrap: wrap; }
.choice {
  min-height: 42px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}
.choice:disabled { opacity: .44; }
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice:not(:disabled):hover { border-color: var(--olive); }
.day { flex: 0 0 63px; display: grid; place-items: center; gap: 3px; padding-block: 9px; scroll-snap-align: start; }
.day small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.day b { font: 400 20px var(--serif); }
.chips .choice { flex: 1 0 76px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-variant-numeric: tabular-nums; }
.slots .choice[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); }
.summary { margin-bottom: 6px; padding: 10px 12px; background: var(--olive-light); border-radius: 2px; font-size: 13px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.primary, .positive, .secondary {
  min-height: 41px;
  padding: 9px 12px;
  border: 1px solid var(--olive);
  border-radius: 3px;
  background: var(--olive);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.primary { width: 100%; margin-top: 14px; padding: 13px; }
.primary:disabled { opacity: .55; }
.secondary { background: var(--white); color: var(--olive); border-color: var(--line); }
.error { margin-top: 10px; padding: 10px 12px; border-radius: 3px; color: var(--red); background: #f8eae6; font-size: 13px; }
.admin-nav, .actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-booking h2 { font-size: 21px; overflow-wrap: anywhere; }
.admin-booking .rows, .actions { margin-top: 12px; }
.actions { justify-content: flex-start; flex-wrap: wrap; }
.badge { display: inline-block; border-radius: 3px; padding: 5px 8px; background: var(--paper); color: var(--quiet); font-size: 12px; white-space: nowrap; }
.badge.confirmed { background: var(--olive-light); color: #344827; }
.badge.pending { background: #fbefd8; color: #694a21; }
.badge.declined, .badge.cancelled { background: #f8eae6; color: var(--red); }

@media (max-width: 520px) {
  .shell { box-shadow: none; }
}

.admin-links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; font-size: 13px; }
.editor-section h2 { font-size: 23px; }
.editor-section h3 { font-size: 18px; margin-top: 18px; }
.editor-field { display: grid; gap: 6px; margin-top: 12px; color: var(--quiet); font-size: 13px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.editor-check { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.editor-check input { width: auto; accent-color: var(--olive); }
.editor-service { min-width: 0; margin: 16px 0 0; padding: 0 12px 12px; border: 1px solid var(--line); border-radius: 3px; }
.editor-service legend { padding: 0 5px; color: var(--quiet); font-size: 12px; }
.editor-remove { margin-top: 10px; font-size: 12px; }
.editor-notice { margin-top: 16px; }
.editor-media { margin: 8px 0 0; padding: 0; list-style: none; }
.editor-media-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.editor-media-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; }
.editor-media-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }

@media (max-width: 460px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
}
