:root {
  --bg: #F8F6F2;          /* warm ivory page background */
  --surface: #EFE8DE;     /* soft cards / sections */
  --ink: #2B2A28;         /* main text */
  --muted: #6E6A63;       /* secondary text */
  --line: #DDD6CC;        /* borders */
  --primary: #B06A4A;     /* terracotta — CTAs, active states */
  --secondary: #7A8560;   /* olive — tags, hovers, subtle accents */
  --gold: #C7A96B;        /* fine details only */
  --error: #B94A48;
  --success: #708B67;
  --sidebar-w: 232px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.12; }
.accent { color: var(--primary); }

/* Legacy glow classes — neutralized in the light theme */
.glow, .glow-text { position: relative; }
.glow::before, .glow-text::before { content: none; }

/* Reveal-on-scroll fade */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  padding: 2.4rem 1.6rem 1.6rem 2rem;
  display: flex; flex-direction: column; gap: 1.8rem;
  overflow-y: auto; z-index: 40;
  background: var(--bg);
  border-right: 1px solid var(--line);
}
.logo { display: flex; flex-direction: column; line-height: 1.05; }
.logo-the { font-size: .68rem; letter-spacing: .38em; text-transform: uppercase; color: var(--primary); }
.logo-main { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.45rem; color: var(--ink); }
.side-tag { font-size: .64rem; letter-spacing: .18em; color: var(--muted); line-height: 1.7; }
.side-nav { display: flex; flex-direction: column; gap: 1.9rem; }
.side-nav a {
  font-size: .82rem; font-weight: 400; letter-spacing: .05em;
  color: var(--muted); width: fit-content;
}
.side-nav a:hover { color: var(--primary); }
.side-nav a.active { color: var(--ink); border-bottom: 1px solid var(--primary); }
.side-pages { padding-top: 1.9rem; border-top: 1px solid var(--line); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.side-social { display: flex; flex-direction: row; gap: 1rem; }
.side-social a { color: var(--muted); display: inline-flex; }
.side-social a:hover { color: var(--primary); }
.side-social svg { display: block; }
.copyright { font-size: .64rem; letter-spacing: .1em; color: #9a938a; text-transform: uppercase; line-height: 1.7; }
.nav-toggle { display: none; position: fixed; top: 1rem; right: 1rem; z-index: 60; background: var(--bg); border: 1px solid var(--line); padding: .6rem .55rem; cursor: pointer; border-radius: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Content ---------- */
.content { margin-left: var(--sidebar-w); padding: 2.4rem 2.4rem 4rem; min-height: 100vh; }
.page-pad { max-width: 1200px; }

/* Groups on the landing feed */
.group { margin-bottom: 3.6rem; }
.group-head {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: .76rem; letter-spacing: .3em; text-transform: uppercase;
  text-align: right; color: var(--ink);
  margin-bottom: 1rem; padding-right: .2rem;
}
.group-head::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--gold); margin-left: .8rem; vertical-align: middle; }

/* ---------- Justified grid (no holes, natural aspect ratios) ---------- */
.jgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.jgrid::after { content: ""; flex-grow: 1000000; }
.g-item { position: relative; display: block; overflow: hidden; background: var(--surface); min-width: 170px; border-radius: 3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .6s ease; }
.g-item:hover img { transform: scale(1.025); }
.g-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, rgba(43,42,40,.16), transparent 55%);
  transition: opacity .4s;
}
.g-item:hover::after { opacity: 1; }

/* ---------- Lightbox with white frame ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(43,42,40,.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.lb-frame {
  background: #fff;
  padding: clamp(14px, 2.6vw, 34px);
  max-width: 90vw; max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.985);
  transition: opacity .5s ease, transform .5s ease;
  box-shadow: 0 30px 80px rgba(43,42,40,.45);
}
.lb-frame.loaded { opacity: 1; transform: none; }
.lightbox img {
  max-width: calc(90vw - 2 * clamp(14px, 2.6vw, 34px));
  max-height: calc(92vh - 2 * clamp(14px, 2.6vw, 34px));
  object-fit: contain;
}
.lightbox button {
  position: absolute; z-index: 2; background: none; border: 0; color: #F8F6F2; font-size: 2.6rem;
  cursor: pointer; opacity: .75; padding: 1rem; line-height: 1; transition: opacity .2s;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Page head ---------- */
.page-head { padding: 1.5rem 0 2rem; max-width: 46rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-head p { margin-top: .7rem; color: var(--muted); font-size: 1.05rem; }
.page-head time { color: var(--primary); letter-spacing: .15em; text-transform: uppercase; font-size: .78rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: var(--bg);
  padding: .85rem 2.3rem; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  border: 1px solid var(--ink); cursor: pointer; font-family: inherit; border-radius: 3px;
  transition: background .25s, border-color .25s;
}
.btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--ink);
  padding: .85rem 2.3rem; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem;
  border: 1px solid var(--secondary); cursor: pointer; font-family: inherit; border-radius: 3px;
  transition: background .25s;
}
.btn-secondary:hover { background: var(--surface); }

/* ---------- Who we are? (story page) ---------- */
.story { max-width: 1200px; }
.story-hero { position: relative; overflow: hidden; height: min(78vh, 720px); background: var(--surface); border-radius: 4px; }
.story-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43,42,40,.72), rgba(43,42,40,.08) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
}
.story-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #E8CBA9; margin-bottom: .8rem; }
.story-hero-overlay h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: #F8F6F2; }
.story-sub { margin-top: .9rem; font-size: 1.15rem; color: #EFE8DE; }

.story-block { padding: 4.5rem clamp(1rem, 4vw, 3rem); max-width: 54rem; }
.story-lead { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.45; color: var(--ink); }
.story-lead strong { font-weight: 600; color: var(--primary); }
.story-quote {
  margin: 2.5rem 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--ink);
  border-left: 2px solid var(--gold); padding-left: 1.4rem;
}

.story-split {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 3rem; align-items: center;
  padding: 2.5rem clamp(1rem, 4vw, 3rem); background: var(--surface); border-radius: 6px;
}
.story-portrait img { width: 100%; border-radius: 4px; }
.story-portrait figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.story-split-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.story-split-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }

.story-why { padding: 3.5rem clamp(1rem, 4vw, 3rem) 1rem; }
.story-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.story-trio figure { position: relative; overflow: hidden; border-radius: 4px; }
.story-trio img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s ease; }
.story-trio figure:hover img { transform: scale(1.03); }
.story-trio figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: #F8F6F2;
  background: linear-gradient(to top, rgba(43,42,40,.65), transparent);
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; max-width: 1100px; }
.post-card {
  border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column;
  border-radius: 6px; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: 0 12px 32px rgba(43,42,40,.10); transform: translateY(-3px); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.3rem 1.4rem 1.6rem; }
.post-card time { color: var(--primary); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; }
.post-card h3 { margin: .4rem 0 .5rem; font-size: 1.5rem; color: var(--ink); }
.post-card p { color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); grid-column: 1/-1; padding: 2rem 0; }

.blog-post { max-width: 46rem; }
.post-cover { width: 100%; margin-bottom: 2.5rem; border-radius: 4px; }
.post-body { font-size: 1.08rem; color: #45423d; }
.post-body.ql-editor { padding: 0; overflow: visible; white-space: normal; }
.post-body h2, .post-body h3 { margin: 2rem 0 .8rem; color: var(--ink); }
.post-body p { margin-bottom: 1.1rem; }
.post-body img { margin: 1.5rem auto; border-radius: 4px; }
.post-body a { color: var(--primary); }
.post-body blockquote { border-left: 2px solid var(--gold); padding-left: 1.2rem; color: var(--muted); font-style: italic; margin: 1.5rem 0; }
.post-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-footer a { color: var(--primary); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1000px; }
.contact-wrap h2 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.cal-panel { background: var(--surface); padding: 1.6rem; border-radius: 6px; align-self: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-head span { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.3rem; }
.cal-head button { background: var(--bg); border: 1px solid var(--line); width: 2.2rem; height: 2.2rem; font-size: 1.3rem; cursor: pointer; color: var(--ink); border-radius: 4px; }
.cal-head button:hover { border-color: var(--primary); color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: .72rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding: .35rem 0; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  cursor: pointer; font-family: inherit; border-radius: 4px;
}
.cal-day:disabled { color: #B9B2A6; background: transparent; cursor: default; border-color: transparent; }
.cal-day.booked { background: #E4DBCE; color: #A39A8B; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.cal-day.free:hover { border-color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-legend { display: flex; gap: 1.2rem; margin-top: 1rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; }
.dot.free { background: var(--bg); border: 1px solid var(--muted); }
.dot.booked { background: #E4DBCE; border: 1px solid var(--line); }
.dot.selected { background: var(--primary); }
.cal-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* Timeslot strip */
.slot-title { margin: 1.2rem 0 .6rem; font-size: .85rem; color: var(--ink); letter-spacing: .04em; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot {
  padding: .55rem 0; font: inherit; font-size: .9rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 4px;
}
.slot:hover:not(:disabled) { border-color: var(--primary); }
.slot.taken { background: #E4DBCE; color: #A39A8B; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

form label { display: block; margin-bottom: 1rem; font-size: .9rem; letter-spacing: .05em; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap */
form input, form select, form textarea {
  width: 100%; margin-top: .3rem; padding: .7rem .85rem; font: inherit;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 4px;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--primary); }
.picked-date {
  background: var(--surface); border: 1px dashed var(--primary); color: var(--ink);
  padding: .6rem .9rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; border-radius: 4px;
}
.picked-date[hidden] { display: none; } /* the hidden attribute must beat display:flex */
.picked-date button { margin-left: auto; background: none; border: 0; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
#form-status { margin-top: .8rem; font-size: .95rem; }
#form-status.ok { color: var(--success); }
#form-status.err { color: var(--error); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .sidebar {
    transform: translateX(-100%); transition: transform .3s ease;
    background: var(--bg); width: min(78vw, 300px);
    box-shadow: 0 0 40px rgba(43,42,40,.12);
  }
  body.nav-open .sidebar { transform: none; }
  .content { margin-left: 0; padding: 3.6rem 1rem 3rem; }
  .contact-wrap, .story-split { grid-template-columns: 1fr; }
  .story-trio { grid-template-columns: 1fr; }
  .story-hero { height: 60vh; }
  .jgrid { gap: 8px; }
}
