/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
svg { display: block; width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Tokens ---------- */
:root {
  --radius-soft: 20px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --ink-soft: rgba(23, 24, 28, 0.62);
  --hairline: rgba(23, 24, 28, 0.12);
  --nav-bg: rgba(250, 249, 247, 0.82);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121214;
    --ink: #f2f1ee;
    --ink-soft: rgba(242, 241, 238, 0.64);
    --hairline: rgba(242, 241, 238, 0.14);
    --nav-bg: rgba(18, 18, 20, 0.78);
  }
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.nav-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
  font-size: 22px;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 10px 24px -8px var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Mobile nav sheet ---------- */
.mobile-sheet {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 39;
  background: var(--paper);
  padding: 32px 24px;
  display: none;
}
.mobile-sheet.is-open { display: block; }
.mobile-sheet ul { display: flex; flex-direction: column; gap: 20px; font-size: 1.4rem; font-family: "Cormorant Garamond", serif; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-copy p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media {
  position: relative;
  border-radius: var(--radius-soft);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { aspect-ratio: 4 / 3; order: -1; }
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 28px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 24px;
  border-left: 1px solid var(--hairline);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-icon {
  font-size: 22px; flex: none; color: var(--accent);
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 2px; }
.stat-value { font-weight: 600; font-size: 1.02rem; }

@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr; gap: 18px; }
  .stat { border-left: none; border-top: 1px solid var(--hairline); padding: 18px 0 0; }
  .stat:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Section shells ---------- */
.section { padding-block: 88px; }
.section-head { margin-bottom: 40px; max-width: 60ch; }
.section-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 20px;
}

/* ---------- Gallery (bento) ---------- */
/* auto-fit (not a fixed repeat(4,...)) so a gallery with only 1-2 photos
   doesn't leave empty grid tracks: unused tracks collapse and existing
   photos expand to fill the row instead of leaving a void. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-soft);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-grid figure.is-large { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.gallery-grid a { display: block; width: 100%; height: 100%; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-grid a:hover img { transform: scale(1.05); }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .gallery-grid figure.is-large { grid-row: span 1; aspect-ratio: 16/10; }
}

/* ---------- Hours ---------- */
.hours-list { border-top: 1px solid var(--hairline); }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}
.hours-row .day { color: var(--ink-soft); }
.hours-row.is-today { color: var(--ink); font-weight: 700; }
.hours-row.is-today .day { color: var(--accent); font-weight: 700; }
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 28px;
}
.open-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #59d18f; }
.open-badge.is-closed .dot { background: #e2665a; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-soft);
  margin-inline: 24px;
  padding: 64px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--accent-ink); font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { color: var(--accent-ink); opacity: 0.82; margin-bottom: 32px; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-ghost { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.cta-band .btn-ghost:hover { border-color: var(--accent-ink); }

@media (max-width: 640px) {
  .cta-band { margin-inline: 0; border-radius: 0; padding: 48px 24px; }
}

/* ---------- Footer ---------- */
footer { padding-block: 48px; border-top: 1px solid var(--hairline); }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
footer .foot-name { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
footer a:hover { color: var(--ink); }
.foot-disclosure { font-size: 0.78rem; color: var(--ink-soft); margin-top: 24px; max-width: 60ch; }
.foot-credit-link { text-decoration: underline; text-underline-offset: 2px; }
.foot-credit-link:hover { color: var(--accent); }

/* ---------- Scroll reveal ----------
   Hidden-until-revealed state only applies once html.js-ready is present
   (set by an inline script at the top of body). If JS is blocked or fails,
   .reveal content stays fully visible by default: no permanently-invisible
   sections. */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  html.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

  .hero-copy > * { opacity: 0; animation: rise 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-media { opacity: 0; animation: rise 0.9s cubic-bezier(0.16,1,0.3,1) forwards; animation-delay: 0.2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-copy > *, .hero-media { opacity: 1; transform: none; animation: none; }
}
