/* ============================================================
   Y FFLAM — Open-fire dining, Swansea
   styles.css
   ============================================================ */

:root {
  --charcoal: #131210;
  --charcoal-2: #1a1815;
  --ember: #D8642B;
  --gold: #C9A557;
  --smoke: #8A8580;
  --bone: #EDE8E1;
  --hairline: rgba(237, 232, 225, 0.14);
  --hairline-gold: rgba(201, 165, 87, 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

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

html {
  background: var(--charcoal);
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--ember); color: var(--charcoal); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75em 1.25em;
  background: var(--charcoal);
  border: 1px solid var(--gold);
  font: 500 0.7rem/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(-300%);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- Primitives ---------- */

.container {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.micro {
  font: 500 0.68rem/1.6 var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--smoke);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.section-label::after {
  content: "";
  flex: 1;
  max-width: 9rem;
  height: 1px;
  background: var(--hairline-gold);
}

.section-label--light { color: rgba(237, 232, 225, 0.75); }

.btn {
  display: inline-block;
  font: 500 0.7rem/1 var(--font-ui);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 1.15em 2.4em;
  border: 1px solid var(--hairline-gold);
  background: transparent;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  background-color: var(--ember);
  border-color: var(--ember);
  color: var(--charcoal);
}

.btn--solid {
  background-color: var(--ember);
  border-color: var(--ember);
  color: var(--charcoal);
}

.btn--solid:hover {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: linear-gradient(rgba(19, 18, 16, 0.85), rgba(19, 18, 16, 0));
  will-change: transform;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.nav-brand-sub {
  font: 500 0.58rem/1 var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--smoke);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.nav-links a {
  font: 500 0.68rem/1 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 0.5em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover { color: var(--ember); border-color: var(--ember); }

.btn--nav { padding: 0.95em 1.8em; }

/* ---------- 1. Hero ---------- */

.hero { overflow: hidden; background: var(--charcoal); }

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--charcoal);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 110%, rgba(19, 18, 16, 0.82), transparent 55%),
    radial-gradient(140% 90% at 50% -10%, rgba(19, 18, 16, 0.75), transparent 52%),
    linear-gradient(rgba(19, 18, 16, 0.2), rgba(19, 18, 16, 0.25));
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem var(--gutter) clamp(2rem, 5vh, 3.5rem);
  max-width: 90rem;
  margin-inline: auto;
  width: 100%;
}

.hero-kicker { color: rgba(237, 232, 225, 0.72); }

.hero-title {
  margin: auto 0;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(3.4rem, 17vw, 15rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-word { display: block; will-change: transform, opacity; }

.hero-word--ember {
  color: var(--ember);
  font-style: italic;
  margin-left: clamp(2.5rem, 24vw, 24rem);
}

.hero-end {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-end-copy { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }

.hero-strap { color: var(--gold); }

.hero-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: rgba(237, 232, 225, 0.6);
}

.hint-line {
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(var(--ember), transparent);
}

.hero-loader {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  background: var(--ember);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}

/* ---------- 2. Story ---------- */

.story {
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.ember-pulse {
  position: absolute;
  width: clamp(20rem, 48vw, 44rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 100, 43, 0.16), transparent 62%);
  pointer-events: none;
  will-change: transform, opacity;
}

.ember-pulse--a { top: 8%; left: -12%; }
.ember-pulse--b { bottom: -6%; left: 26%; background: radial-gradient(circle, rgba(201, 165, 87, 0.1), transparent 62%); }

.story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  align-items: center;
}

.story-copy { grid-column: 1 / 7; }

.story-heading {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.3rem, 5.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 14em;
}

.story-body {
  margin-top: clamp(1.75rem, 4vh, 3rem);
  max-width: 34rem;
  display: grid;
  gap: 1.25rem;
  color: var(--smoke);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.story-panel {
  grid-column: 8 / 13;
  position: relative;
  height: min(76svh, 46rem);
  margin-top: clamp(2rem, 9vh, 6rem);
  overflow: hidden;
}

.story-panel img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.story-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  color: rgba(237, 232, 225, 0.85);
}

/* ---------- 3. Tasting menu ---------- */

.menu { border-top: 1px solid var(--hairline); background: var(--charcoal); }

.menu-inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5.5rem, 12vh, 8rem) clamp(2.5rem, 7vh, 5rem);
}

.menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.menu-head .section-label { margin-bottom: 0; }

.menu-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--smoke);
}

.menu-price { color: var(--gold); font-style: normal; margin-left: 0.75rem; }

.menu-stack {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding-block: clamp(2rem, 6vh, 4rem);
}

html.motion-ok .menu-stack { display: grid; align-items: center; }
html.motion-ok .course { grid-area: 1 / 1 / 2 / 2; will-change: transform, opacity; }

.course-index { color: var(--gold); margin-bottom: clamp(0.8rem, 2vh, 1.4rem); }

.course-name {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.1rem, 6.8vw, 6.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 11em;
}

.course-desc {
  margin-top: clamp(1rem, 2.6vh, 1.75rem);
  max-width: 33rem;
  color: var(--smoke);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
}

.menu-progress {
  position: relative;
  height: 1px;
  background: var(--hairline);
}

#menu-bar {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--gold);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- 4 & 7. Media sections (Fire / Room) ---------- */

.media-section {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-top: 1px solid var(--hairline);
}

.media-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  bottom: -15%;
}

.media-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.flicker {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(75% 60% at 50% 72%, rgba(216, 100, 43, 0.4), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.08;
  pointer-events: none;
  will-change: opacity;
}

.media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(19, 18, 16, 0.35), rgba(19, 18, 16, 0.1) 35%, rgba(19, 18, 16, 0.88)),
    linear-gradient(100deg, rgba(19, 18, 16, 0.55), transparent 55%);
  pointer-events: none;
}

.media-scrim--room {
  background:
    linear-gradient(rgba(19, 18, 16, 0.35), rgba(19, 18, 16, 0.1) 35%, rgba(19, 18, 16, 0.88)),
    linear-gradient(-100deg, rgba(19, 18, 16, 0.55), transparent 55%);
}

.media-copy-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(4rem, 11vh, 7rem);
}

.media-copy { max-width: 38rem; }

.media-copy-wrap--right .media-copy { margin-left: auto; }

.media-heading {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.media-body {
  margin-top: 1.25rem;
  color: rgba(237, 232, 225, 0.82);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  max-width: 32rem;
}

/* ---------- 5. Drinks marquee ---------- */

.drinks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(5.5rem, 13vh, 8rem) clamp(3.5rem, 9vh, 6rem);
  border-top: 1px solid var(--hairline);
  background: var(--charcoal-2);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: clamp(2rem, 6vh, 4rem);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-right: clamp(2rem, 5vw, 4.5rem);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.marquee-group .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--smoke);
}

@supports not (-webkit-text-stroke: 1px black) {
  .marquee-group .outline { color: var(--smoke); }
}

.marquee-group .sep,
.marquee-group .sep-dot { color: var(--ember); font-size: 0.5em; }

.drinks-foot { display: flex; justify-content: flex-end; }

.wine-note {
  max-width: 36rem;
  color: var(--smoke);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.75;
  border-left: 1px solid var(--hairline-gold);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---------- 6. Word ---------- */

.word {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--hairline);
}

.word-inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5.5rem, 12vh, 8rem);
}

.quote-mark {
  width: clamp(3.25rem, 7vw, 5.5rem);
  height: auto;
  margin-bottom: clamp(1.5rem, 4vh, 2.75rem);
}

.quote-mark path {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.quote-stack { position: relative; }

html.motion-ok .quote-stack { display: grid; }
html.motion-ok .quote-blk { grid-area: 1 / 1 / 2 / 2; will-change: transform, opacity; }

.quote-blk + .quote-blk { margin-top: clamp(2.5rem, 7vh, 4.5rem); }
html.motion-ok .quote-blk + .quote-blk { margin-top: 0; }

.quote-text {
  font-family: var(--font-display);
  font-weight: 360;
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22em;
}

.quote-cite {
  display: inline-block;
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
  color: var(--gold);
  font-style: normal;
}

.quote-cite::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 2.5rem;
  height: 1px;
  background: var(--hairline-gold);
  margin-right: 1rem;
}

/* ---------- 8. Reservations / footer ---------- */

.reserve {
  border-top: 1px solid var(--hairline);
  background: var(--charcoal-2);
}

.reserve-inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 8vh, 5rem);
  padding-block: clamp(6rem, 14vh, 9rem) 0;
}

.reserve-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.8rem, 9.5vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 8.5em;
}

.reserve-sub {
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
  max-width: 34rem;
  color: var(--smoke);
}

.reserve-actions {
  margin-top: clamp(1.75rem, 4.5vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-label { color: var(--gold); margin-bottom: 1.1rem; }

.footer-list {
  list-style: none;
  font-style: normal;
  color: var(--smoke);
  font-size: 0.92rem;
  line-height: 1.7;
  display: grid;
  gap: 0.85rem;
}

.footer-list a { color: var(--bone); border-bottom: 1px solid var(--hairline-gold); transition: color 0.3s ease; }
.footer-list a:hover { color: var(--ember); }

.footer-quiet { color: rgba(138, 133, 128, 0.7); font-style: italic; }

.footer-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--hairline);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { grid-column: auto; }
  .story-panel { grid-column: auto; height: min(58svh, 30rem); margin-top: clamp(2.5rem, 6vh, 4rem); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 540px) {
  .hero-end { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .hero-hint { flex-direction: row; align-items: center; }
  .hint-line { width: 3.4rem; height: 1px; background: linear-gradient(90deg, var(--ember), transparent); }
  .hero-word--ember { margin-left: clamp(1.5rem, 14vw, 5rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .drinks-foot { justify-content: flex-start; }
}
