/* ============================================================
   Fern & Ash — concept site for Karbon Consulting
   Dark editorial. Cormorant Garamond display over Jost UI,
   ember palette, hairline rules, art-directed SVG in place of
   photography. Vanilla CSS, no build step, no dependencies.
   ============================================================ */

:root {
  --ink:      #0b0c0a;
  --ink-2:    #101210;
  --ink-3:    #171916;
  --line:     rgba(233, 226, 212, 0.12);
  --line-2:   rgba(233, 226, 212, 0.22);
  --cream:    #ece6da;
  --cream-2:  #b7b0a3;
  --cream-3:  #7d776c;
  --ember:    #c9762f;
  --ember-2:  #f0b263;
  --moss:     #4a5b45;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 1140px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

/* fine grain so the large flat fields don't band */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9;
  pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ember); color: #100c07; }

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

.shell { width: min(var(--shell), calc(100% - 2.6rem)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--cream); color: var(--ink); padding: .7rem 1.1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------- shared type ---------------- */
.eyebrow {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ember); font-weight: 500; margin-bottom: 1.1rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 em, h1 em { font-style: italic; color: var(--ember-2); }
.body { color: var(--cream-2); font-size: 1.02rem; max-width: 58ch; }
.body + .body { margin-top: 1.1rem; }
.body.wide { max-width: 64ch; }
.body.center { margin-inline: auto; }
.fine { font-size: .8rem; color: var(--cream-3); letter-spacing: .01em; }
.sec-head { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.sec-head.center { text-align: center; }
.sec-head h2 { margin-bottom: 1.2rem; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .95rem 1.7rem; border: 1px solid transparent;
  font-family: var(--sans); font-size: .78rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; background: none; color: var(--cream);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ember); color: #120c06; font-weight: 500; }
.btn-solid:hover { background: var(--ember-2); }
.btn-ghost, .btn-line { border-color: var(--line-2); }
.btn-ghost:hover, .btn-line:hover { border-color: var(--ember); color: var(--ember-2); }
.btn-line { padding: .7rem 1.3rem; }

/* ---------------- concept ribbon ---------------- */
.concept-ribbon {
  position: fixed; z-index: 50; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1rem; border-radius: 999px; text-decoration: none;
  background: rgba(12, 13, 11, .86); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: .72rem; letter-spacing: .04em; color: var(--cream-2);
  box-shadow: 0 18px 44px -22px #000;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.concept-ribbon:hover { border-color: var(--ember); color: var(--cream); }
.cr-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); flex: none; }
.cr-text b { font-weight: 500; color: var(--cream); }
.cr-back { color: var(--cream-3); border-left: 1px solid var(--line); padding-left: .7rem; }
@media (max-width: 620px) { .cr-back { display: none; } }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 12, 10, .82); border-bottom-color: var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav-in { display: flex; align-items: center; gap: 2rem; padding: 1.15rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; color: var(--ember); flex: none; }
.brand-word {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; line-height: 1;
}
.brand-word i { font-style: italic; color: var(--ember); padding: 0 .1em; }
.brand-word.big { font-size: 2.4rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cream-2); position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ember); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; width: 40px; height: 34px; border: 0; background: none; cursor: pointer; }
.nav-burger span { display: block; height: 1px; background: var(--cream); margin: 5px auto; width: 22px; transition: transform .3s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mnav { display: none; flex-direction: column; padding: .5rem 1.3rem 1.4rem; border-bottom: 1px solid var(--line); background: rgba(11,12,10,.96); }
.mnav a { padding: .8rem 0; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.mnav a:last-child { border-bottom: 0; color: var(--ember-2); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-in .btn-line { display: none; }
  .mnav { display: flex; }
}

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 5rem; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(58% 42% at 22% 78%, rgba(201, 118, 47, .3), transparent 68%),
    radial-gradient(40% 34% at 78% 30%, rgba(74, 91, 69, .28), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(240, 178, 99, .16), transparent 70%);
  filter: blur(24px);
  animation: breathe 16s var(--ease) infinite alternate;
}
@keyframes breathe { to { transform: translate3d(0, -2.5%, 0) scale(1.06); opacity: .82; } }
.hero-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; }

.kicker { display: flex; align-items: center; gap: 1rem; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 2rem; }
.kicker .rule { width: 3.4rem; height: 1px; background: linear-gradient(90deg, var(--ember), transparent); }

.display { font-size: clamp(2.9rem, 8.4vw, 6.6rem); margin-bottom: 2rem; }
.d-l { display: block; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--cream-2); max-width: 46ch; margin-bottom: 2.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 4rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 2.6rem 3.4rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.hero-meta dt { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .4rem; }
.hero-meta dd { font-family: var(--serif); font-size: 1.28rem; display: flex; align-items: center; gap: .55rem; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 0 0 rgba(240,178,99,.6); animation: pulse 2.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(240,178,99,0); } 100% { box-shadow: 0 0 0 0 rgba(240,178,99,0); } }

/* drifting embers */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers span {
  position: absolute; bottom: -6%; width: 3px; height: 3px; border-radius: 50%;
  background: var(--ember-2); opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(.5); }
  12%  { opacity: .8; }
  70%  { opacity: .5; }
  100% { opacity: 0; transform: translate3d(var(--dx, 30px), -92vh, 0) scale(1.1); }
}
.embers span:nth-child(1) { left: 8%;  --dx: 40px;  animation-duration: 15s; animation-delay: 0s; }
.embers span:nth-child(2) { left: 19%; --dx: -30px; animation-duration: 19s; animation-delay: 2.5s; }
.embers span:nth-child(3) { left: 31%; --dx: 55px;  animation-duration: 13s; animation-delay: 5s; }
.embers span:nth-child(4) { left: 44%; --dx: -46px; animation-duration: 21s; animation-delay: 1.2s; }
.embers span:nth-child(5) { left: 55%; --dx: 26px;  animation-duration: 17s; animation-delay: 7s; }
.embers span:nth-child(6) { left: 66%; --dx: -58px; animation-duration: 14s; animation-delay: 3.4s; }
.embers span:nth-child(7) { left: 74%; --dx: 34px;  animation-duration: 22s; animation-delay: 9s; }
.embers span:nth-child(8) { left: 83%; --dx: -22px; animation-duration: 16s; animation-delay: 6s; }
.embers span:nth-child(9) { left: 91%; --dx: 48px;  animation-duration: 18s; animation-delay: 11s; }
.embers span:nth-child(10){ left: 97%; --dx: -36px; animation-duration: 20s; animation-delay: 4s; }
@media (prefers-reduced-motion: reduce) { .embers { display: none; } .hero-glow { animation: none; } }

/* ---------------- ticker ---------------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 1rem 0; background: var(--ink-2); }
.ticker-row { display: flex; gap: 2.6rem; width: max-content; animation: slide 42s linear infinite; }
.ticker-row span { font-family: var(--serif); font-size: 1.5rem; color: var(--cream-2); white-space: nowrap; }
.ticker-row i { color: var(--ember); font-style: normal; font-size: .7rem; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-row { animation: none; } }

/* ---------------- sections ---------------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.menu-sec { background: var(--ink-2); border-block: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.fire { border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-3), var(--ink)); padding: 1.6rem; }
.fire svg { width: 100%; height: auto; }
.flame { transform-origin: 150px 320px; }
.f1 { animation: lick 3.1s ease-in-out infinite alternate; }
.f2 { animation: lick 2.3s ease-in-out infinite alternate-reverse; }
.f3 { animation: lick 2.7s ease-in-out infinite alternate; }
@keyframes lick { from { transform: scaleY(.94) scaleX(1.03) translateY(3px); } to { transform: scaleY(1.06) scaleX(.97) translateY(-3px); } }
.spark { animation: float 4s ease-in infinite; opacity: 0; }
.s2 { animation-duration: 5.2s; animation-delay: 1.4s; }
.s3 { animation-duration: 6s; animation-delay: 2.8s; }
@keyframes float { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px); } }
@media (prefers-reduced-motion: reduce) { .flame, .spark { animation: none; } }

.split-main h2 { margin-bottom: 1.6rem; }
.marks { list-style: none; margin: 2.4rem 0; border-top: 1px solid var(--line); }
.marks li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.marks b { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--cream); }
.marks span { color: var(--cream-3); font-size: .92rem; }
@media (max-width: 560px) { .marks li { grid-template-columns: 1fr; gap: .2rem; } }
.sig { display: flex; align-items: baseline; gap: .8rem; }
.sig span { font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.sig em { font-style: normal; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-3); }

/* ---------------- menu ---------------- */
.courses { border-top: 1px solid var(--line); }
.course {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.course:hover { background: rgba(201, 118, 47, .045); }
.c-num { font-family: var(--serif); font-size: 1.6rem; color: var(--ember); letter-spacing: .06em; padding-top: .1rem; }
.c-body h3 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); margin-bottom: .5rem; }
.c-body p { color: var(--cream-3); max-width: 62ch; font-size: .96rem; }
@media (max-width: 560px) { .course { grid-template-columns: 3rem 1fr; gap: .9rem; } }

.menu-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; margin-top: 3rem; }
.price { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; }
.price span { font-family: var(--sans); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); margin-left: .4rem; }
.mf-price .fine { margin-top: .7rem; }

/* ---------------- visit ---------------- */
.visit-grid { display: grid; grid-template-columns: 1fr minmax(0, .92fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.visit h2 { margin-bottom: 1.5rem; }
.hours { margin: 2.4rem 0; border-top: 1px solid var(--line); }
.hours > div { display: flex; justify-content: space-between; gap: 1.4rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--cream-2); font-size: .92rem; }
.hours dd { font-family: var(--serif); font-size: 1.2rem; }
.hours .off dt, .hours .off dd { color: var(--cream-3); opacity: .65; }
address { font-style: normal; color: var(--cream-2); font-size: .95rem; line-height: 1.9; }
address a { color: var(--ember-2); text-decoration: none; border-bottom: 1px solid rgba(240,178,99,.35); }

.map-card { border: 1px solid var(--line); background: var(--ink-3); }
.map { aspect-ratio: 4 / 3.4; overflow: hidden; }
.map svg { width: 100%; height: 100%; }
.pin { animation: bob 3.4s ease-in-out infinite; transform-origin: 155px 130px; }
@keyframes bob { 50% { transform: scale(1.12); } }
.map-cap { padding: .9rem 1.1rem; border-top: 1px solid var(--line); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); }

/* ---------------- reservation ---------------- */
.book { background: var(--ink-2); border-top: 1px solid var(--line); }
.res { max-width: 720px; margin-inline: auto; }
.res-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .res-row { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 1.2rem; }
.field > span { display: block; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; background: var(--ink); color: var(--cream);
  border: 1px solid var(--line); font-family: var(--sans); font-size: .95rem; font-weight: 300;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #55514a; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); background: var(--ink-3); outline: none; }
.field textarea { resize: vertical; }
.party { border: 0; margin-bottom: 1.2rem; }
.party legend { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .55rem; }
.party-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.pz {
  flex: 1 1 3.2rem; padding: .75rem .5rem; background: var(--ink); color: var(--cream-2);
  border: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; cursor: pointer;
  transition: all .3s var(--ease);
}
.pz:hover { border-color: var(--line-2); color: var(--cream); }
.pz.is-on { background: var(--ember); border-color: var(--ember); color: #120c06; }
.res-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1.6rem; }
.res-ok {
  margin-top: 1.4rem; padding: 1rem 1.2rem; border: 1px solid rgba(240,178,99,.4);
  background: rgba(201,118,47,.1); color: var(--ember-2); font-size: .92rem;
}

/* ---------------- footer ---------------- */
.foot { padding: clamp(3.5rem, 7vw, 5.5rem) 0 6rem; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 2rem; }
.foot-brand p { color: var(--cream-3); font-size: .88rem; margin-top: .6rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.foot-links a { text-decoration: none; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-2); }
.foot-links a:hover { color: var(--ember-2); }
.foot-fine { font-size: .78rem; color: var(--cream-3); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.foot-fine a { color: var(--ember-2); }

/* ---------------- reveal ----------------
   Every reveal animates *to* the resting state, so with no JS,
   no observer support, or reduced motion the content simply sits
   where it belongs. .r only becomes hidden once JS confirms it. */
.js .r { opacity: 0; transform: translateY(22px); }
.js .r.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js .r { opacity: 1; transform: none; } }

/* Anchor targets clear the fixed header rather than sliding under it. */
[id] { scroll-margin-top: 92px; }
