html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Marlowe &amp; Ember · Wood-fired kitchen</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
  :root{
    --char:#1b1714;
    --char-2:#241e1a;
    --cream:#f5ecdc;
    --cream-dim:#c9bca6;
    --ember:#e0662b;
    --ember-hot:#f08a4b;
    --line:rgba(245,236,220,.12);
    --serif:"Fraunces", Georgia, serif;
    --sans:"Inter", system-ui, sans-serif;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{
    background:var(--char);color:var(--cream);
    font-family:var(--sans);line-height:1.6;font-size:16px;
    -webkit-font-smoothing:antialiased;
  }
  img,svg{display:block;max-width:100%}
  a{color:inherit;text-decoration:none}
  .wrap{width:min(1120px,92vw);margin-inline:auto}
  h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.1;letter-spacing:-.01em}
  h2{font-size:clamp(2.1rem,4.5vw,3.2rem)}
  .eyebrow{
    font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;
    color:var(--ember-hot);font-weight:600;margin-bottom:1rem;display:block;
  }
  .btn{
    display:inline-flex;align-items:center;gap:.5rem;
    padding:.9rem 1.5rem;border-radius:999px;font-weight:600;font-size:.95rem;
    border:1px solid transparent;cursor:pointer;transition:transform .2s ease, background .2s ease, color .2s ease;
    font-family:var(--sans);
  }
  .btn-primary{background:var(--ember);color:#1b1714}
  .btn-primary:hover{background:var(--ember-hot);transform:translateY(-2px)}
  .btn-ghost{border-color:var(--line);color:var(--cream)}
  .btn-ghost:hover{border-color:var(--cream);transform:translateY(-2px)}
  .btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,button:focus-visible{
    outline:2px solid var(--ember-hot);outline-offset:3px;
  }

  /* NAV */
  header{
    position:fixed;inset:0 0 auto 0;z-index:50;
    transition:background .3s ease, backdrop-filter .3s ease, padding .3s ease;
    padding:1.25rem 0;
  }
  header.scrolled{background:rgba(27,23,20,.85);backdrop-filter:blur(12px);padding:.85rem 0;border-bottom:1px solid var(--line)}
  .nav{display:flex;align-items:center;justify-content:space-between;gap:2rem}
  .logo{font-family:var(--serif);font-size:1.45rem;font-weight:600;letter-spacing:-.01em}
  .logo span{color:var(--ember)}
  .nav-links{display:flex;gap:2rem;list-style:none;font-size:.9rem;color:var(--cream-dim)}
  .nav-links a{transition:color .2s}
  .nav-links a:hover{color:var(--cream)}
  .nav-cta{padding:.6rem 1.2rem;font-size:.85rem}
  .menu-toggle{display:none;background:none;border:0;color:var(--cream);cursor:pointer;padding:.5rem}
  .menu-toggle svg{width:24px;height:24px}

  /* HERO */
  .hero{
    min-height:100vh;min-height:100svh;position:relative;display:flex;align-items:center;
    padding:8rem 0 5rem;overflow:hidden;isolation:isolate;
  }
  .hero-bg{
    position:absolute;inset:0;z-index:-2;
    background:
      radial-gradient(ellipse 60% 50% at 75% 40%, rgba(224,102,43,.35), transparent 70%),
      radial-gradient(ellipse 50% 60% at 10% 90%, rgba(224,102,43,.18), transparent 70%),
      linear-gradient(180deg, #1b1714 0%, #140f0c 100%);
  }
  .embers{position:absolute;inset:0;z-index:-1;pointer-events:none}
  .ember{
    position:absolute;bottom:-10px;width:4px;height:4px;border-radius:50%;
    background:var(--ember-hot);box-shadow:0 0 10px 2px rgba(240,138,75,.6);
    opacity:0;animation:rise linear infinite;
  }
  @keyframes rise{
    0%{transform:translateY(0) translateX(0);opacity:0}
    10%{opacity:.9}
    100%{transform:translateY(-100vh) translateX(var(--drift));opacity:0}
  }
  .hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:4rem;align-items:center}
  .hero h1{font-size:clamp(3.2rem,8vw,6.4rem);font-weight:400}
  .hero h1 em{font-style:italic;color:var(--ember-hot);font-weight:300}
  .hero-lede{margin-top:1.75rem;max-width:34rem;color:var(--cream-dim);font-size:1.1rem}
  .hero-actions{margin-top:2.5rem;display:flex;gap:1rem;flex-wrap:wrap}
  .hero-meta{margin-top:3rem;display:flex;gap:2.5rem;color:var(--cream-dim);font-size:.85rem;flex-wrap:wrap}
  .hero-meta strong{display:block;font-family:var(--serif);font-size:1.6rem;color:var(--cream);font-weight:500}
  .hero-visual{position:relative;aspect-ratio:4/5}
  .hero-art{position:absolute;inset:0;border-radius:220px 220px 24px 24px;overflow:hidden;
    background:linear-gradient(160deg,#3a2a20,#120d0a);border:1px solid var(--line);
    box-shadow:0 40px 80px -30px rgba(224,102,43,.35)}
  .hero-art svg{width:100%;height:100%}
  .flame{transform-origin:50% 100%;animation:flicker 2.8s ease-in-out infinite}
  .flame.b{animation-duration:2.1s;animation-delay:-.6s}
  @keyframes flicker{
    0%,100%{transform:scaleY(1) scaleX(1)}
    50%{transform:scaleY(1.08) scaleX(.94)}
  }
  .badge{
    position:absolute;left:-1.5rem;bottom:2.5rem;background:var(--cream);color:var(--char);
    padding:1rem 1.25rem;border-radius:14px;font-size:.8rem;box-shadow:0 20px 40px -10px rgba(0,0,0,.5);
    max-width:12rem;
  }
  .badge b{font-family:var(--serif);font-size:1.1rem;display:block;font-weight:600}

  /* MENU */
  section{padding:7rem 0}
  .menu{background:var(--char-2);border-block:1px solid var(--line)}
  .section-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap;margin-bottom:3.5rem}
  .section-head p{max-width:26rem;color:var(--cream-dim)}
  .tabs{display:flex;gap:.5rem;margin-bottom:2.5rem;flex-wrap:wrap}
  .tab{
    background:none;border:1px solid var(--line);color:var(--cream-dim);
    padding:.55rem 1.2rem;border-radius:999px;cursor:pointer;font:500 .9rem var(--sans);
    transition:all .2s ease;
  }
  .tab:hover{color:var(--cream);border-color:var(--cream-dim)}
  .tab[aria-selected="true"]{background:var(--cream);color:var(--char);border-color:var(--cream)}
  .dishes{display:grid;grid-template-columns:repeat(2,1fr);gap:0 4rem}
  .dish{
    display:flex;justify-content:space-between;gap:1.5rem;padding:1.5rem 0;border-bottom:1px solid var(--line);
    animation:fadeUp .5s ease both;
  }
  .dish:nth-child(2){animation-delay:.05s}.dish:nth-child(3){animation-delay:.1s}.dish:nth-child(4){animation-delay:.15s}
  .dish:nth-child(5){animation-delay:.2s}.dish:nth-child(6){animation-delay:.25s}
  .dish h3{font-size:1.4rem;margin-bottom:.35rem}
  .dish p{color:var(--cream-dim);font-size:.92rem}
  .dish .price{font-family:var(--serif);font-size:1.25rem;color:var(--ember-hot);white-space:nowrap;padding-top:.15rem}
  .dish .tag{display:inline-block;margin-top:.6rem;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cream-dim);border:1px solid var(--line);padding:.2rem .6rem;border-radius:999px}
  @keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

  /* ABOUT */
  .about-grid{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center}
  .about p{color:var(--cream-dim);margin-top:1.25rem;font-size:1.05rem}
  .about blockquote{
    margin-top:2rem;padding-left:1.5rem;border-left:2px solid var(--ember);
    font-family:var(--serif);font-style:italic;font-size:1.4rem;color:var(--cream);font-weight:300;
  }
  .about blockquote cite{display:block;margin-top:.75rem;font-family:var(--sans);font-style:normal;font-size:.8rem;color:var(--cream-dim);letter-spacing:.08em;text-transform:uppercase}
  .stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:20px;overflow:hidden}
  .stat{background:var(--char);padding:2.5rem 2rem}
  .stat b{display:block;font-family:var(--serif);font-size:3rem;font-weight:400;color:var(--cream)}
  .stat span{color:var(--cream-dim);font-size:.9rem}

  /* RESERVE */
  .reserve{background:linear-gradient(180deg,var(--char) 0%,#2a1d15 100%);text-align:center}
  .reserve h2{max-width:14ch;margin-inline:auto}
  .reserve > .wrap > p{color:var(--cream-dim);margin:1.25rem auto 0;max-width:32rem}
  form.book{
    margin:3rem auto 0;max-width:820px;display:grid;grid-template-columns:repeat(4,1fr) auto;gap:.75rem;
    background:rgba(245,236,220,.04);border:1px solid var(--line);padding:.75rem;border-radius:20px;
  }
  form.book label{display:block;text-align:left}
  form.book label span{display:block;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--cream-dim);padding:.5rem .75rem 0}
  form.book input,form.book select{
    width:100%;background:transparent;border:0;color:var(--cream);font:500 .95rem var(--sans);
    padding:.35rem .75rem .6rem;color-scheme:dark;
  }
  form.book .btn{justify-content:center;border-radius:14px;padding:.95rem 1.6rem}
  .form-note{margin-top:1rem;min-height:1.5em;font-size:.9rem;color:var(--ember-hot)}

  /* VISIT */
  .visit-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem}
  .hours{list-style:none;margin-top:2rem}
  .hours li{display:flex;justify-content:space-between;padding:.9rem 0;border-bottom:1px solid var(--line);color:var(--cream-dim)}
  .hours li b{color:var(--cream);font-weight:500}
  .hours li.today{color:var(--cream)}
  .hours li.today::after{content:"Today";font-size:.65rem;letter-spacing:.14em;text-transform:uppercase;color:var(--char);background:var(--ember-hot);padding:.15rem .5rem;border-radius:999px;margin-left:.6rem;align-self:center}
  .address{margin-top:2rem;font-family:var(--serif);font-size:1.5rem;line-height:1.35}
  .address small{display:block;font-family:var(--sans);font-size:.9rem;color:var(--cream-dim);margin-top:.5rem}
  .map{
    position:relative;border-radius:20px;overflow:hidden;border:1px solid var(--line);min-height:340px;
    background:
      linear-gradient(var(--line) 1px, transparent 1px) 0 0/40px 40px,
      linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/40px 40px,
      #201913;
  }
  .map::before{content:"";position:absolute;inset:0;background:
    linear-gradient(115deg, transparent 47%, rgba(245,236,220,.08) 48%, rgba(245,236,220,.08) 52%, transparent 53%),
    linear-gradient(20deg, transparent 62%, rgba(245,236,220,.06) 63%, rgba(245,236,220,.06) 66%, transparent 67%);}
  .pin{position:absolute;left:52%;top:46%;transform:translate(-50%,-100%);text-align:center}
  .pin-dot{width:18px;height:18px;margin:0 auto;border-radius:50%;background:var(--ember);box-shadow:0 0 0 0 rgba(224,102,43,.6);animation:pulse 2.4s infinite}
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgba(224,102,43,.6)}70%{box-shadow:0 0 0 22px rgba(224,102,43,0)}100%{box-shadow:0 0 0 0 rgba(224,102,43,0)}}
  .pin-label{margin-top:.6rem;background:var(--cream);color:var(--char);font-size:.75rem;font-weight:600;padding:.3rem .7rem;border-radius:999px;white-space:nowrap}

  /* FOOTER */
  footer{padding:3rem 0;border-top:1px solid var(--line);color:var(--cream-dim);font-size:.85rem}
  .foot{display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap}
  .foot nav{display:flex;gap:1.5rem}
  .foot a:hover{color:var(--cream)}

  /* REVEAL */
  .reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease, transform .8s ease}
  .reveal.in{opacity:1;transform:none}

  /* RESPONSIVE */
  @media (max-width:900px){
    .hero-grid,.about-grid,.visit-grid{grid-template-columns:1fr;gap:3rem}
    .hero-visual{max-width:420px;margin-inline:auto;width:100%}
    .badge{left:0}
    .dishes{grid-template-columns:1fr}
    form.book{grid-template-columns:1fr 1fr}
    form.book .btn{grid-column:1/-1}
    .nav-links{display:none}
    .menu-toggle{display:block}
    .nav-links.open{
      display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;
      background:var(--char);padding:1.5rem 4vw;gap:1.2rem;border-bottom:1px solid var(--line);
    }
    section{padding:5rem 0}
  }
  @media (max-width:520px){
    form.book{grid-template-columns:1fr}
    .hero-meta{gap:1.5rem}
    .stats{grid-template-columns:1fr 1fr}
    .stat b{font-size:2.3rem}
  }
  @media (prefers-reduced-motion:reduce){
    *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
    .reveal{opacity:1;transform:none}
    .ember{display:none}
  }
</style>
</head>
<body>

<header id="top-bar">
  <div class="wrap nav">
    <a href="#" class="logo">Marlowe <span>&amp;</span> Ember</a>
    <ul class="nav-links" id="nav-links">
      <li><a href="#menu">Menu</a></li>
      <li><a href="#story">Our Story</a></li>
      <li><a href="#visit">Visit</a></li>
      <li><a href="#reserve">Reservations</a></li>
    </ul>
    <div style="display:flex;align-items:center;gap:1rem">
      <a href="#reserve" class="btn btn-primary nav-cta">Book a table</a>
      <button class="menu-toggle" id="menu-toggle" aria-label="Open menu" aria-expanded="false" aria-controls="nav-links">
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><path d="M4 7h16M4 12h16M4 17h16"/></svg>
      </button>
    </div>
  </div>
</header>

<!-- HERO -->
<section class="hero">
  <div class="hero-bg"></div>
  <div class="embers" id="embers" aria-hidden="true"></div>
  <div class="wrap hero-grid">
    <div>
      <span class="eyebrow">Wood-fired · Seasonal · Neighborhood kitchen</span>
      <h1>Cooked over <em>live</em> fire.</h1>
      <p class="hero-lede">Marlowe &amp; Ember is a small dining room on Tanner Street, cooking with oak and cherry wood from a single hearth. The menu changes with the market, the wine list leans toward small growers, and the room is always a little warm.</p>
      <div class="hero-actions">
        <a href="#reserve" class="btn btn-primary">Reserve a table</a>
        <a href="#menu" class="btn btn-ghost">See the menu</a>
      </div>
      <div class="hero-meta">
        <div><strong>4.9</strong>Guest rating</div>
        <div><strong>38</strong>Seats</div>
        <div><strong>Since 2014</strong>On Tanner St.</div>
      </div>
    </div>
    <div class="hero-visual">
      <div class="hero-art" aria-hidden="true">
      <svg viewBox="0 0 400 500" preserveAspectRatio="xMidYMid slice">
        <defs>
          <radialGradient id="glow" cx="50%" cy="85%" r="60%">
            <stop offset="0" stop-color="#f08a4b" stop-opacity=".9"/>
            <stop offset=".45" stop-color="#e0662b" stop-opacity=".35"/>
            <stop offset="1" stop-color="#e0662b" stop-opacity="0"/>
          </radialGradient>
          <linearGradient id="flameA" x1="0" y1="1" x2="0" y2="0">
            <stop offset="0" stop-color="#ffb566"/>
            <stop offset=".5" stop-color="#e0662b"/>
            <stop offset="1" stop-color="#7a2a10" stop-opacity=".2"/>
          </linearGradient>
        </defs>
        <rect width="400" height="500" fill="url(#glow)"/>
        <!-- hearth arch -->
        <path d="M70 430 L70 260 Q70 150 200 150 Q330 150 330 260 L330 430 Z" fill="#0d0907" stroke="#3a2a20" stroke-width="3"/>
        <path d="M100 430 L100 270 Q100 190 200 190 Q300 190 300 270 L300 430 Z" fill="#1a110d"/>
        <!-- flames -->
        <path class="flame" d="M170 420 C150 370 175 340 168 300 C190 330 185 350 200 330 C215 360 240 360 232 420 Z" fill="url(#flameA)"/>
        <path class="flame b" d="M195 420 C180 380 200 355 196 325 C212 350 224 368 222 420 Z" fill="#ffd08a" opacity=".85"/>
        <!-- logs -->
        <rect x="120" y="412" width="160" height="16" rx="8" fill="#4a2c1a"/>
        <rect x="140" y="400" width="130" height="14" rx="7" fill="#5c361f"/>
        <!-- counter -->
        <rect x="0" y="430" width="400" height="70" fill="#100b09"/>
        <!-- sparks -->
        <circle cx="150" cy="260" r="2" fill="#f08a4b" opacity=".8"/>
        <circle cx="250" cy="230" r="1.6" fill="#f08a4b" opacity=".6"/>
        <circle cx="210" cy="200" r="1.4" fill="#ffd08a" opacity=".7"/>
      </svg>
      </div>
      <div class="badge">
        <b>Tonight's oven</b>
        Oak &amp; cherry wood. Whole fish, bone marrow and a bread that takes two days.
      </div>
    </div>
  </div>
</section>

<!-- MENU -->
<section class="menu" id="menu">
  <div class="wrap">
    <div class="section-head reveal">
      <div>
        <span class="eyebrow">The menu</span>
        <h2>Small plates, <em style="font-style:italic;color:var(--ember-hot)">shared</em> plates.</h2>
      </div>
      <p>Built around what the hearth does best. Prices in USD. Let us know about allergies before you order.</p>
    </div>

    <div class="tabs reveal" role="tablist" aria-label="Menu sections">
      <button class="tab" role="tab" aria-selected="true" data-tab="dinner">Dinner</button>
      <button class="tab" role="tab" aria-selected="false" data-tab="snacks">Snacks</button>
      <button class="tab" role="tab" aria-selected="false" data-tab="drinks">Drinks</button>
    </div>

    <div class="dishes" id="dishes" role="tabpanel"></div>
  </div>
</section>

<!-- STORY -->
<section id="story">
  <div class="wrap about-grid">
    <div class="about reveal">
      <span class="eyebrow">Our story</span>
      <h2>A kitchen built around one hearth.</h2>
      <p>Chef Dana Okafor opened Marlowe &amp; Ember after a decade cooking in coastal kitchens, convinced that most restaurants had forgotten what fire can do. The room is simple: bare brick, a long communal table, and an open hearth at the back where everything that matters gets cooked.</p>
      <p>Everything is sourced from farms within a few hours' drive. Bread is baked each morning, and the cellar is stocked with wines that are still a little rough around the edges, in the best way.</p>
      <blockquote>
        "Fire doesn't follow a recipe. It follows the weather, the wood and the person standing in front of it."
        <cite>Dana Okafor, Chef &amp; Owner</cite>
      </blockquote>
    </div>
    <div class="stats reveal">
      <div class="stat"><b data-count="12">0</b><span>Farms we buy from</span></div>
      <div class="stat"><b data-count="2">0</b><span>Days to make our bread</span></div>
      <div class="stat"><b data-count="140">0</b><span>Bottles in the cellar</span></div>
      <div class="stat"><b data-count="11">0</b><span>Years on Tanner Street</span></div>
    </div>
  </div>
</section>

<!-- RESERVE -->
<section class="reserve" id="reserve">
  <div class="wrap reveal">
    <span class="eyebrow">Reservations</span>
    <h2>Pull up a chair by the fire.</h2>
    <p>Tables are held for 15 minutes past your booking. For parties of seven or more, please call the restaurant.</p>

    <form class="book" id="book-form" novalidate>
      <label><span>Date</span><input type="date" id="date" required></label>
      <label><span>Time</span>
        <select id="time" required>
          <option value="">Choose</option>
          <option>5:30 PM</option><option>6:00 PM</option><option>6:30 PM</option>
          <option>7:00 PM</option><option>7:30 PM</option><option>8:00 PM</option><option>8:30 PM</option>
        </select>
      </label>
      <label><span>Guests</span>
        <select id="guests">
          <option>1</option><option selected>2</option><option>3</option><option>4</option><option>5</option><option>6</option>
        </select>
      </label>
      <label><span>Name</span><input type="text" id="name" placeholder="Your name" autocomplete="name" required></label>
      <button class="btn btn-primary" type="submit">Request table</button>
    </form>
    <p class="form-note" id="form-note" role="status" aria-live="polite"></p>
  </div>
</section>

<!-- VISIT -->
<section id="visit">
  <div class="wrap visit-grid">
    <div class="reveal">
      <span class="eyebrow">Visit us</span>
      <h2>Open most nights.</h2>
      <p class="address">418 Tanner Street<br>Brightwater, Harbor District
        <small>Two blocks from the ferry landing · Street parking after 6 PM</small>
      </p>
      <ul class="hours" id="hours">
        <li data-day="1"><span>Monday</span><b>Closed</b></li>
        <li data-day="2"><span>Tuesday</span><b>5:30 – 10:00 PM</b></li>
        <li data-day="3"><span>Wednesday</span><b>5:30 – 10:00 PM</b></li>
        <li data-day="4"><span>Thursday</span><b>5:30 – 10:30 PM</b></li>
        <li data-day="5"><span>Friday</span><b>5:00 – 11:00 PM</b></li>
        <li data-day="6"><span>Saturday</span><b>5:00 – 11:00 PM</b></li>
        <li data-day="0"><span>Sunday</span><b>4:00 – 9:00 PM</b></li>
      </ul>
    </div>
    <div class="map reveal" role="img" aria-label="Map showing Marlowe and Ember at 418 Tanner Street">
      <div class="pin">
        <div class="pin-dot"></div>
        <div class="pin-label">Marlowe &amp; Ember</div>
      </div>
    </div>
  </div>
</section>

<footer>
  <div class="wrap foot">
    <div>© 2026 Marlowe &amp; Ember. A fictional restaurant for demo purposes.</div>
    <nav>
      <a href="#">Instagram</a>
      <a href="#">Gift cards</a>
      <a href="#">Private dining</a>
      <a href="#">Press</a>
    </nav>
  </div>
</footer>

<script>
  // Header state on scroll
  const header = document.getElementById('top-bar');
  const onScroll = () => header.classList.toggle('scrolled', window.scrollY > 40);
  window.addEventListener('scroll', onScroll, { passive: true });
  onScroll();

  // Mobile menu
  const toggle = document.getElementById('menu-toggle');
  const links = document.getElementById('nav-links');
  toggle.addEventListener('click', () => {
    const open = links.classList.toggle('open');
    toggle.setAttribute('aria-expanded', open);
  });
  links.querySelectorAll('a').forEach(a => a.addEventListener('click', () => {
    links.classList.remove('open');
    toggle.setAttribute('aria-expanded', 'false');
  }));

  // Menu data & tabs
  const menu = {
    dinner: [
      { name: 'Charred oysters', desc: 'Garlic butter, fennel pollen, lemon, grilled over oak.', price: '$19', tag: 'GF' },
      { name: 'Whole wood-fired trout', desc: 'Brown butter, sorrel, blistered shishitos.', price: '$34', tag: 'Signature' },
      { name: 'Cherry-smoked short rib', desc: 'Horseradish cream, pickled onion, rye crumb.', price: '$38', tag: '' },
      { name: 'Hearth carrots', desc: 'Whipped feta, dukkah, honey and mint.', price: '$17', tag: 'Vegetarian' },
      { name: 'Bone marrow toast', desc: 'Parsley salad, caper vinaigrette, grilled sourdough.', price: '$16', tag: '' },
      { name: 'Ember-roasted chicken', desc: 'Half bird, pan jus, charred lemon, watercress.', price: '$32', tag: '' }
    ],
    snacks: [
      { name: 'Sourdough & cultured butter', desc: 'Baked this morning. Sea salt and chive.', price: '$8', tag: 'Vegetarian' },
      { name: 'Smoked olives', desc: 'Orange peel, chili flake, warm oil.', price: '$7', tag: 'Vegan' },
      { name: 'Crispy potato skins', desc: 'Aged cheddar, scallion, smoked crème fraîche.', price: '$11', tag: '' },
      { name: 'Grilled padrón peppers', desc: 'Flaky salt, lime, a little bit of heat.', price: '$9', tag: 'GF' },
      { name: 'Chicken liver mousse', desc: 'Cherry mostarda, toasted brioche.', price: '$13', tag: '' },
      { name: 'Anchovy & egg', desc: 'Soft-cooked egg, herb oil, bread crisp.', price: '$12', tag: '' }
    ],
    drinks: [
      { name: 'Ember Negroni', desc: 'Gin, sweet vermouth, Campari, smoked orange.', price: '$15', tag: '' },
      { name: 'Oak Old Fashioned', desc: 'Bourbon stirred over a single oak chip.', price: '$16', tag: 'Signature' },
      { name: 'Glass of Jura red', desc: 'Light, cool, and very easy to drink. Ask your server.', price: '$14', tag: 'Wine' },
      { name: 'Cherry soda', desc: 'House-made with dried cherries and lime.', price: '$6', tag: 'Zero proof' },
      { name: 'Natural orange wine', desc: 'Skin-contact, from a small family estate.', price: '$13', tag: 'Wine' },
      { name: 'Espresso tonic', desc: 'Cold brew over tonic, orange twist.', price: '$9', tag: '' }
    ]
  };

  const dishesEl = document.getElementById('dishes');
  function renderMenu(key) {
    dishesEl.innerHTML = menu[key].map(d => `
      <article class="dish">
        <div>
          <h3>${d.name}</h3>
          <p>${d.desc}</p>
          ${d.tag ? `<span class="tag">${d.tag}</span>` : ''}
        </div>
        <div class="price">${d.price}</div>
      </article>`).join('');
  }
  document.querySelectorAll('.tab').forEach(tab => {
    tab.addEventListener('click', () => {
      document.querySelectorAll('.tab').forEach(t => t.setAttribute('aria-selected', 'false'));
      tab.setAttribute('aria-selected', 'true');
      renderMenu(tab.dataset.tab);
    });
  });
  renderMenu('dinner');

  // Today's hours highlight
  const today = new Date().getDay();
  document.querySelectorAll('#hours li').forEach(li => {
    if (Number(li.dataset.day) === today) li.classList.add('today');
  });

  // Date min = today
  const dateInput = document.getElementById('date');
  const pad = n => String(n).padStart(2, '0');
  const now = new Date();
  dateInput.min = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`;

  // Booking form
  document.getElementById('book-form').addEventListener('submit', e => {
    e.preventDefault();
    const note = document.getElementById('form-note');
    const date = dateInput.value;
    const time = document.getElementById('time').value;
    const guests = document.getElementById('guests').value;
    const name = document.getElementById('name').value.trim();
    if (!date || !time || !name) {
      note.textContent = 'Please add a date, time and name to request a table.';
      return;
    }
    const pretty = new Date(date + 'T00:00').toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric' });
    note.textContent = `Thanks, ${name}. We've requested a table for ${guests} on ${pretty} at ${time}. This is a demo, so nothing was actually booked.`;
    e.target.reset();
    dateInput.min = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`;
  });

  // Floating embers
  const embersEl = document.getElementById('embers');
  const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  if (!reduce) {
    for (let i = 0; i < 22; i++) {
      const s = document.createElement('span');
      s.className = 'ember';
      s.style.left = Math.random() * 100 + '%';
      s.style.setProperty('--drift', (Math.random() * 80 - 40) + 'px');
      s.style.animationDuration = (6 + Math.random() * 8) + 's';
      s.style.animationDelay = (-Math.random() * 12) + 's';
      s.style.width = s.style.height = (2 + Math.random() * 3) + 'px';
      embersEl.appendChild(s);
    }
  }

  // Reveal on scroll
  const revealEls = document.querySelectorAll('.reveal');
  if ('IntersectionObserver' in window && !reduce) {
    const io = new IntersectionObserver(entries => {
      entries.forEach(en => {
        if (en.isIntersecting) { en.target.classList.add('in'); io.unobserve(en.target); }
      });
    }, { threshold: 0.15 });
    revealEls.forEach(el => io.observe(el));
  } else {
    revealEls.forEach(el => el.classList.add('in'));
  }

  // Count-up stats
  const countEls = document.querySelectorAll('[data-count]');
  const countUp = el => {
    const target = Number(el.dataset.count);
    if (reduce) { el.textContent = target; return; }
    const dur = 1400, start = performance.now();
    const step = t => {
      const p = Math.min((t - start) / dur, 1);
      const eased = 1 - Math.pow(1 - p, 3);
      el.textContent = Math.round(target * eased);
      if (p < 1) requestAnimationFrame(step);
    };
    requestAnimationFrame(step);
  };
  const statIO = new IntersectionObserver(entries => {
    entries.forEach(en => {
      if (en.isIntersecting) { countUp(en.target); statIO.unobserve(en.target); }
    });
  }, { threshold: 0.5 });
  countEls.forEach(el => statIO.observe(el));
</script>
</body>
</html>