/* ============================================================
   EMBER & OAK — candlelit editorial
   near-black / amber / cream · Fraunces + Inter
   ============================================================ */

:root {
  --ink: #0d0a08;
  --ink-2: #120e0b;
  --panel: #171110;
  --panel-2: #1c1410;
  --hairline: rgba(243, 234, 217, 0.14);
  --hairline-soft: rgba(243, 234, 217, 0.08);
  --amber: #c8722a;
  --gold: #e8a34e;
  --cream: #f3ead9;
  --cream-70: rgba(243, 234, 217, 0.72);
  --cream-50: rgba(243, 234, 217, 0.52);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --section-gap: clamp(6rem, 12vw, 11rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--ink); }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.desk-only { display: none; }
@media (min-width: 700px) { .desk-only { display: inline; } }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.section { padding: 0 var(--pad); margin-top: var(--section-gap); }

.section-head { max-width: 64rem; margin: 0 auto; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-top: 1.4rem;
}
.title-soft { color: var(--cream-50); font-style: italic; }

.section-note {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: var(--cream-70);
  font-size: 0.95rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.1rem;
  border: 1px solid var(--amber);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-solid { background: var(--amber); color: var(--ink); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost { color: var(--cream); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--amber); color: var(--gold); }
.btn-lg { padding: 1.2rem 3rem; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 10, 8, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline-soft);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-amp { color: var(--amber); font-style: italic; }

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.site-nav a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-70);
  transition: color 0.2s ease;
  padding: 0.3rem 0;
}
.site-nav a:hover { color: var(--gold); }

.header-cta { padding: 0.65rem 1.4rem; }

@media (max-width: 700px) {
  .site-nav { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--pad) 6rem;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(200, 114, 42, 0.28) 0%, rgba(200, 114, 42, 0.08) 38%, transparent 68%),
    radial-gradient(90% 60% at 50% 0%, #14100c 0%, transparent 70%),
    var(--ink);
}

.hero-art { position: absolute; inset: 0; pointer-events: none; }

/* full-bleed photograph behind the display type */
.hero-photo { position: absolute; inset: 0; display: block; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

/* candlelit scrim — keeps the cream Fraunces at AAA over the photo */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 52% at 50% 46%, rgba(13, 10, 8, 0.5) 0%, rgba(13, 10, 8, 0.18) 55%, transparent 78%),
    linear-gradient(180deg, rgba(13, 10, 8, 0.78) 0%, rgba(13, 10, 8, 0.38) 26%, rgba(13, 10, 8, 0.42) 58%, rgba(13, 10, 8, 0.9) 100%),
    linear-gradient(rgba(200, 114, 42, 0.05), rgba(200, 114, 42, 0.05));
}

.hero-glow {
  position: absolute;
  left: 50%; bottom: -14vh;
  width: min(70vw, 780px);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 163, 78, 0.22) 0%, rgba(200, 114, 42, 0.1) 45%, transparent 72%);
  animation: glow-breathe 7s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* ember particles (spans injected by script.js) */
.embers { position: absolute; inset: 0; overflow: hidden; }
.embers span {
  position: absolute;
  bottom: -2vh;
  left: var(--x, 50%);
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  filter: blur(0.4px);
  box-shadow: 0 0 6px 1px rgba(232, 163, 78, 0.55);
  animation: ember-rise var(--t, 9s) linear var(--w, 0s) infinite;
}
@keyframes ember-rise {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  8% { opacity: var(--o, 0.7); }
  60% { opacity: var(--o, 0.7); }
  100% { transform: translate3d(var(--dx, 2vw), -105vh, 0) scale(0.3); opacity: 0; }
}

.hero-content { position: relative; max-width: 60rem; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 14.5vw, 12.5rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 1.8rem 0 2rem;
}
.hero-title .line { display: block; }
.amp { color: var(--amber); font-style: italic; font-weight: 300; }

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--cream-70);
  max-width: 34rem;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.hero-secondary {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-70);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.35rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-secondary:hover { color: var(--gold); border-color: var(--amber); }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.cue-label {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-50);
}
.cue-line {
  position: relative;
  width: 1px;
  height: 52px;
  background: var(--hairline);
  overflow: hidden;
}
.cue-dot {
  position: absolute;
  left: -1.5px; top: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue-fall 2.4s ease-in-out infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(-6px); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(54px); opacity: 0; }
}

/* ---------- story ---------- */

.story-grid {
  max-width: 64rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.story-copy p + p { margin-top: 1.5rem; }
.story-copy { color: var(--cream-70); max-width: 36rem; }

.story-lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--cream);
}
.story-lead::first-letter {
  font-size: 2.2em;
  line-height: 0.9;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--gold);
  font-style: italic;
}

.story-panel {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 55%, #120c09 100%);
  border: 1px solid var(--hairline-soft);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 45% at 50% 78%, rgba(200, 114, 42, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.panel-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.panel-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* warm dark wash so the photo sits in the candlelit palette */
.panel-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 10, 8, 0.45) 0%, transparent 42%),
    linear-gradient(rgba(200, 114, 42, 0.05), rgba(200, 114, 42, 0.05));
  pointer-events: none;
}

.panel-caption {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cream-50);
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-soft);
}

/* svg line-art vocabulary */
.ln { stroke: rgba(243, 234, 217, 0.55); stroke-width: 1.3; }
.ln.thick { stroke-width: 1.6; }
.ln.soft { stroke: rgba(243, 234, 217, 0.28); stroke-width: 1; }
.ln.amber { stroke: var(--amber); stroke-width: 1.4; }
.ln.amber-soft { stroke: rgba(232, 163, 78, 0.55); stroke-width: 1; }
.ln.steam { stroke: rgba(232, 163, 78, 0.4); stroke-width: 1; }
.dot { fill: var(--gold); stroke: none; opacity: 0.8; }

.story-facts {
  max-width: 64rem;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.fact {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fact + .fact { border-left: 1px solid var(--hairline-soft); }
.fact-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.fact-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-50);
}

@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-panel { max-width: 26rem; }
  .story-facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: none; border-top: 1px solid var(--hairline-soft); }
  .fact { flex-direction: row; align-items: baseline; gap: 1.2rem; }
}

/* ---------- menu ---------- */

.menu-list {
  max-width: 46rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.menu-group + .menu-group { margin-top: clamp(3rem, 5vw, 4.5rem); }

.course-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}
.course-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-soft);
}

.dish {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.dish:last-child { border-bottom: none; }

.dish-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.dish-desc {
  margin-top: 0.5rem;
  color: var(--cream-70);
  font-size: 0.95rem;
  max-width: 34rem;
}

.menu-foot {
  max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--cream-50);
}

/* ---------- gallery / mosaic ---------- */

.mosaic {
  max-width: 72rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

.tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--panel-2) 0%, var(--panel) 60%, #110b08 100%);
  border: 1px solid var(--hairline-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 45% at 50% 85%, rgba(200, 114, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.tile-hearth { grid-column: span 3; aspect-ratio: 4 / 3; }
.tile-pass   { grid-column: span 3; grid-row: span 2; aspect-ratio: auto; }
.tile-type   { grid-column: span 3; aspect-ratio: 4 / 3; background: linear-gradient(150deg, #201409 0%, var(--panel) 70%); }
.tile-cellar { grid-column: span 3; aspect-ratio: 4 / 3; }
.tile-table  { grid-column: span 3; aspect-ratio: 4 / 3; padding: 0; }

.tile-art { width: 100%; height: auto; max-height: 100%; flex: 1; min-height: 0; }
.tile-wood { position: absolute; inset: 0; width: 100%; height: 100%; }

/* photographic tiles */
.tile-photo { padding: 0; }
.tile-photo picture { position: absolute; inset: 0; display: block; }
.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* warm dark grade + caption scrim over photos */
.tile-photo::after {
  background:
    linear-gradient(to top, rgba(13, 10, 8, 0.85) 0%, rgba(13, 10, 8, 0.28) 30%, transparent 52%),
    linear-gradient(rgba(200, 114, 42, 0.05), rgba(200, 114, 42, 0.05));
}

.tile-caption {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-70);
  padding-top: 1rem;
  width: 100%;
  border-top: 1px solid var(--hairline-soft);
}
.tile-table .tile-caption,
.tile-photo .tile-caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 1rem clamp(1.2rem, 2.5vw, 2rem) 1.2rem;
  background: linear-gradient(to top, rgba(13, 10, 8, 0.92), transparent);
  border-top: none;
}
.tile-num { color: var(--amber); font-size: 0.68rem; letter-spacing: 0.2em; }

.tile-motto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  align-self: flex-start;
}
.tile-motto span { display: block; }
.motto-amber { color: var(--gold); }

.gallery-note {
  max-width: 40rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: center;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--cream-50);
}

@media (max-width: 820px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile-hearth, .tile-pass, .tile-type, .tile-cellar, .tile-table { grid-column: span 1; grid-row: span 1; }
  .tile-pass { aspect-ratio: 1 / 1; }
}

/* ---------- visit ---------- */

.visit {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  margin-top: var(--section-gap);
  background:
    radial-gradient(110% 80% at 50% 115%, rgba(200, 114, 42, 0.16) 0%, transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.visit.section { margin-top: var(--section-gap); }

.visit-inner { max-width: 64rem; margin: 0 auto; }

.visit-grid {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.visit-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.visit-block p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.4;
}
.visit-block .visit-fine {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--cream-50);
  margin-top: 0.8rem;
  line-height: 1.6;
}
.visit-mail {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.2s ease, border-color 0.2s ease;
  font-size: 1.05rem;
  word-break: break-all;
}
.visit-mail:hover { color: var(--gold); border-color: var(--amber); }

.visit-cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.cta-fine { font-style: italic; margin-top: 1.4rem; font-size: 0.85rem; color: var(--cream-50); }

@media (max-width: 820px) {
  .visit-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) 2.5rem;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}

.monogram { display: block; width: 64px; height: 64px; margin-bottom: 1.2rem; }

.footer-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}
.footer-tag {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cream-50);
  margin-top: 0.3rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-70);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold); }

.footer-base {
  max-width: 64rem;
  margin: 3.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  font-size: 0.78rem;
  color: var(--cream-50);
}
.vyntra-line a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 163, 78, 0.4);
}
.vyntra-line a:hover { border-bottom-color: var(--gold); }

/* ---------- reveals ---------- */

/* reveals only engage when JS is present (html.js set by script.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* no-JS and reduced-motion: content always visible, no animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .cue-dot, .embers span { animation: none !important; }
  .embers { display: none; }
}
