:root {
  --bg: #F5F0E6;
  --bg-2: #ECE5D5;
  --bg-3: #E2D9C2;
  --ink: #1C2520;
  --ink-2: #4A534B;
  --ink-3: #7A7367;
  --line: #D9D0BC;
  --accent: #8C4A2B;
  --accent-ink: #F5F0E6;
  --busy: #8C4A2B;
  --closed: #C8A88B;
  --free: #F5F0E6;
  --past: #C8C0AC;
  --shadow: 0 1px 0 rgba(28,37,32,.06), 0 8px 24px -16px rgba(28,37,32,.18);
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 24px;
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(245,240,230,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  border-radius: 4px;
}
.brand__text { font-family: var(--serif); font-size: 18px; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .topbar { padding: 12px 16px; }
  .nav { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--bg);
  isolation: isolate;
}
.hero__photo {
  position: absolute; inset: 0;
  background-image: url('photos/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 80%),
    linear-gradient(90deg, rgba(28,37,32,.45) 0%, rgba(28,37,32,0) 60%);
  z-index: -1;
}
.hero__content { padding: 48px 28px 64px; max-width: 1100px; width: 100%; margin: 0 auto; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; opacity: .85; margin-bottom: 14px; }
.hero__title { font-size: clamp(56px, 9vw, 128px); line-height: .95; letter-spacing: -.02em; }
.hero__sub { margin-top: 18px; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); opacity: .92; }
.hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero__content { padding: 32px 16px 44px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  min-height: 48px;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #6f3920; }
.btn--ghost { background: transparent; color: var(--bg); border-color: rgba(245,240,230,.55); }
.btn--ghost:hover { background: rgba(245,240,230,.1); border-color: var(--bg); }
.btn--block { width: 100%; }
.hero__cta .btn--ghost { color: var(--bg); border-color: rgba(245,240,230,.55); }

/* Intro */
.intro { padding: clamp(64px, 10vw, 120px) 28px; max-width: 880px; margin: 0 auto; }
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: var(--ink);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.feature { padding: 36px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature:nth-child(3n) { border-right: none; }
.feature:nth-last-child(-n+3) { border-bottom: none; }
.feature__num {
  font-family: var(--serif); font-size: 14px; color: var(--accent);
  letter-spacing: .12em; margin-bottom: 18px;
}
.feature h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .feature:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature:nth-child(2n) { border-right: none; }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feature:last-child, .feature:nth-last-child(2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature { border-right: none !important; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: none; }
}

/* Gallery */
.gallery { padding: clamp(56px, 8vw, 100px) 28px; max-width: 1200px; margin: 0 auto; }
.gallery__head { max-width: 640px; margin-bottom: 34px; }
.gallery__sub { margin-top: 14px; color: var(--ink-3); font-size: 16px; line-height: 1.55; }
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.shot { margin: 0; position: relative; grid-column: span 3; cursor: zoom-in; overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.shot--wide { grid-column: span 6; }
.shot--wide:last-child { grid-column: span 9; }
.shot img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.shot--tall img { aspect-ratio: 3 / 4; }
.shot--wide img { aspect-ratio: 16 / 9; }
.shot:hover img { transform: scale(1.035); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 11px;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 100%);
  transition: opacity .3s ease;
}
@media (max-width: 980px) {
  .shot { grid-column: span 6; }
  .shot--wide, .shot--wide:last-child { grid-column: span 6; }
}
@media (max-width: 560px) {
  .shot, .shot--wide, .shot--wide:last-child { grid-column: span 12; }
  .shot--tall img { aspect-ratio: 4 / 3; }
  .shot figcaption { opacity: 1; }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 32px;
  background: rgba(14,18,16,.92);
}
.lb.is-open { display: flex; }
.lb__img { max-width: min(1100px, 100%); max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lb__cap { margin-top: 14px; color: rgba(245,240,230,.82); font-size: 14px; text-align: center; }
.lb__close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(245,240,230,.12); color: var(--bg);
  font-size: 20px; cursor: pointer;
}
.lb__close:hover { background: rgba(245,240,230,.24); }

/* Occasions */
.occasions { padding: clamp(64px, 10vw, 120px) 28px; max-width: 880px; margin: 0 auto; }
.occasions__list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px;
}
.occasions__list li {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px);
  padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--ink);
}
.occasions__list li::before { content: "— "; color: var(--accent); }
.occasions__note {
  margin-top: 28px; padding: 16px 18px;
  background: var(--bg-2); border-left: 3px solid var(--accent);
  font-size: 14px; color: var(--ink-2);
}
@media (max-width: 560px) { .occasions__list { grid-template-columns: 1fr; } }

/* Calendar */
.calendar { padding: clamp(64px, 10vw, 120px) 28px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar__head { max-width: 1100px; margin: 0 auto 28px; }
.calendar__sub { color: var(--ink-2); margin-top: 6px; }
.calendar__widget {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: start;
}
.cal {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
}
.cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__title { font-family: var(--serif); font-size: 22px; text-transform: capitalize; }
.cal__btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 4px; cursor: pointer; font-size: 18px; color: var(--ink);
}
.cal__btn:hover { background: var(--bg-2); }
.cal__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3); padding: 8px 0;
  border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.cal__weekdays span { text-align: center; }
.cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal__day {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-size: 14px;
  border-radius: 4px;
  background: var(--free);
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
}
.cal__day--past { background: var(--past); color: var(--ink-3); border-color: transparent; }
.cal__day--booked { background: var(--busy); color: var(--accent-ink); border-color: var(--busy); font-weight: 600; }
.cal__day--booked::after {
  content: ""; position: absolute; left: 8px; bottom: 6px;
  width: 5px; height: 5px; background: var(--accent-ink); border-radius: 50%; opacity: .55;
}
.cal__day--closed {
  background: repeating-linear-gradient(45deg, var(--closed), var(--closed) 6px, transparent 6px, transparent 12px);
  color: var(--accent-ink); border-color: var(--closed);
  font-weight: 600;
}
.cal__day--unknown {
  background: var(--free);
  border: 1px dashed var(--ink-3);
  color: var(--ink-3);
}
.cal__day--today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal__day--empty { background: transparent; border-color: transparent; }
.cal__legend {
  display: flex; gap: 18px; align-items: center;
  font-size: 13px; color: var(--ink-2);
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.dot--free { background: var(--free); border: 1px solid var(--line); }
.dot--busy, .dot--booked { background: var(--busy); }
.dot--closed { background: var(--closed); }
.dot--past { background: var(--past); }
.dot--unknown { background: var(--free); border: 1px dashed var(--ink-3); }
.cal__msg { font-size: 13px; color: var(--ink-3); margin-top: 10px; min-height: 18px; }

.calendar__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.calendar__price { font-family: var(--serif); font-size: 24px; }
.calendar__price strong { font-size: 36px; }
.calendar__price-note { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.calendar__cta .btn--accent { margin-top: 22px; }
.calendar__hint { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.calendar__hint a { color: var(--bg); border-bottom: 1px dashed currentColor; text-decoration: none; }
@media (max-width: 880px) {
  .calendar__widget { grid-template-columns: 1fr; }
}

/* Terms */
.terms { padding: clamp(64px, 10vw, 120px) 28px; max-width: 880px; margin: 0 auto; }
.terms__list { margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.terms__list > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.terms__list > div:last-child { border-bottom: 1px solid var(--line); }
.terms__list dt { color: var(--ink-2); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.terms__list dd { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--ink); }
@media (max-width: 560px) {
  .terms__list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Contacts */
.contacts { padding: clamp(64px, 10vw, 120px) 28px; background: var(--bg-2); border-top: 1px solid var(--line); }
.contacts__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.contacts__label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.contacts__val { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); text-decoration: none; line-height: 1.3; display: block; }
a.contacts__val { border-bottom: 1px solid var(--line); padding-bottom: 4px; display: inline-block; }
a.contacts__val:hover { border-color: var(--accent); }
@media (max-width: 720px) { .contacts__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Footer */
.footer { padding: 32px 28px; text-align: center; color: var(--ink-3); font-size: 13px; background: var(--ink); color: var(--bg); }
.footer p { opacity: .65; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Contract */
.contract { max-width: 720px; margin: 0 auto; padding: 8px 24px 64px; text-align: center; }
.contract__lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 0 auto 24px; max-width: 560px; }
.contract__meta { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
