:root {
  --pine: #1e3a32;
  --pine-mid: #2d5649;
  --pine-deep: #142821;
  --cream: #f6f1e7;
  --cream-soft: #fffaf2;
  --gold: #c4a35a;
  --ink: #1a241f;
  --free: #3d8b6e;
  --booked: #c45c4a;
  --closed: #8a8478;
  --font-d: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-b: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 14px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--cream);
  --fg: var(--ink);
  --muted: rgba(26, 36, 31, 0.68);
  --card: var(--cream-soft);
  --line: rgba(30, 58, 50, 0.14);
  --btn-bg: var(--pine);
  --btn-fg: var(--cream);
  --nav-bg: var(--pine);
  --nav-fg: var(--cream);
  --shadow: 0 18px 40px rgba(30, 58, 50, 0.12);
  --theme-color: #f6f1e7;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--pine-deep);
  --fg: var(--cream);
  --muted: rgba(246, 241, 231, 0.72);
  --card: #1b322b;
  --line: rgba(246, 241, 231, 0.14);
  --btn-bg: var(--cream);
  --btn-fg: var(--pine-deep);
  --nav-bg: #10201b;
  --nav-fg: var(--cream);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --theme-color: #142821;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--font-b);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--pine);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}
.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.wrap.narrow {
  max-width: 760px;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-d);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 1rem;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 0.85rem;
}
h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nav-bg);
  color: var(--nav-fg);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.logo {
  color: inherit;
  text-decoration: none;
  font-size: 1.35rem;
}
.logo small {
  display: block;
  font-family: var(--font-b);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.1rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.9;
}
.site-nav a:hover {
  opacity: 1;
}
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.28);
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.theme-btn::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 6px -6px 0 -2px var(--nav-bg);
}
html[data-theme="light"] .theme-btn::before {
  box-shadow: none;
  border-radius: 50%;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  background: var(--pine-deep);
  color: var(--cream);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 40, 33, 0.15), rgba(20, 40, 33, 0.72));
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}
.hero .lede {
  color: rgba(246, 241, 231, 0.88);
}
.hero .btn {
  margin-top: 1.4rem;
  background: var(--cream);
  color: var(--pine);
}

.section {
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}
.section.alt {
  background: color-mix(in srgb, var(--bg) 88%, var(--pine) 12%);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}
.frame {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
  background: color-mix(in srgb, var(--card) 70%, var(--pine) 30%);
}
.frame.portrait img {
  aspect-ratio: 3/4;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.card,
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.price {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-d);
  font-size: 1.6rem;
  color: var(--gold);
}

.cal-shell {
  margin-top: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cal-toolbar h3 {
  margin: 0;
  text-transform: capitalize;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: -1px;
}
.dot.free {
  background: var(--free);
}
.dot.booked {
  background: var(--booked);
}
.dot.closed {
  background: var(--closed);
  opacity: 0.45;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-dow,
.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.cal-dow {
  aspect-ratio: auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0 0.35rem;
}
.cal-cell {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: default;
}
.cal-cell.pad {
  visibility: hidden;
}
.cal-cell.free {
  background: color-mix(in srgb, var(--free) 22%, transparent);
  color: var(--fg);
  cursor: pointer;
}
.cal-cell.booked {
  background: color-mix(in srgb, var(--booked) 28%, transparent);
  color: var(--fg);
  cursor: default;
}
.cal-cell.closed,
.cal-cell.past {
  background: color-mix(in srgb, var(--closed) 12%, transparent);
  color: var(--muted);
}
.cal-cell.today {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.cal-cell.selected {
  outline: 2px solid var(--pine-mid);
}
html[data-theme="dark"] .cal-cell.selected {
  outline-color: var(--gold);
}

.cal-side {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slot {
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
}
.slot:hover,
.slot:focus-visible {
  border-color: var(--gold);
}
.slot[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.contact-list li {
  display: grid;
  gap: 0.15rem;
}
.contact-list span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin: 0.7rem 0;
}
.footer-wrap a {
  text-decoration: none;
}
.copy {
  margin: 0.4rem 0 0;
}

.legal-page h1,
.status-page h1 {
  margin-top: 0.4rem;
}
.policy-text p {
  margin: 0 0 1rem;
}
.policy-text p:first-child {
  white-space: pre-wrap;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 27, 0.72);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-back[hidden] {
  display: none;
}
.modal {
  background: var(--card);
  color: var(--fg);
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  border-radius: 18px;
  padding: 1.4rem 1.35rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-x {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.6rem;
  cursor: pointer;
}
.modal form {
  display: grid;
  gap: 0.75rem;
}
.modal label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}
.modal input,
.modal select,
.modal textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  width: 100%;
}
.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.check input {
  width: auto;
  margin-top: 0.25rem;
}
.form-error {
  color: var(--booked);
  margin: 0;
}
.chosen {
  color: var(--muted);
}

@media (max-width: 860px) {
  .split,
  .split.reverse,
  .contact-wrap,
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem var(--pad) 1.1rem;
  }
  body.nav-open .site-nav {
    display: flex;
  }
  .form-split {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 70vh;
    align-items: flex-end;
  }
}

@media (max-width: 520px) {
  .cal-cell {
    font-size: 0.85rem;
    border-radius: 8px;
  }
}
