/* Ember & Thyme – sample website by WebStudioNova (fictional restaurant). Dark, editorial, wood-fired. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-variable-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --night: #120f0d;
  --char: #1b1714;
  --char-2: #241f1b;
  --ember: #e2703a;
  --ember-soft: #f19a62;
  --flame: #f1c27d;
  --brass: #b89466;
  --cream: #f1e7d8;
  --smoke: #b9ab99;
  --line: rgba(241, 231, 216, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--flame); text-underline-offset: 4px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0 0 .45em; color: var(--cream); }
h1 { font-size: clamp(3rem, 8.2vw, 7.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.015em; }
h3 { font-size: 1.5rem; }
h1 em, h2 em { font-style: italic; color: var(--ember-soft); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--ember); color: var(--night); z-index: 3000; }
.skip-link:focus { top: 48px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 120px 0; position: relative; }
.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 22px; }
.lead { font-size: 1.18rem; color: var(--smoke); max-width: 560px; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.btn-ember { background: var(--ember); color: var(--night); box-shadow: 0 0 0 0 rgba(226, 112, 58, 0); }
.btn-ember:hover { background: var(--flame); color: var(--night); box-shadow: 0 0 40px -6px rgba(241, 154, 98, .8); }
.btn-ghost { border-color: rgba(241, 231, 216, .5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: var(--cream); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header: transparent over the hero, solid once you scroll (restaurant.js adds .is-solid) */
.site-header { position: sticky; top: 0; z-index: 900; transition: background-color .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(18, 15, 13, .92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.inner-page .site-header { background: rgba(18, 15, 13, .96); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-style: italic; letter-spacing: -.01em; }
.brand-name span { color: var(--ember-soft); font-style: normal; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--cream); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .nav-cta a { border: 1px solid var(--ember); color: var(--ember-soft); margin-left: 10px; padding: 11px 20px; }
.main-nav .nav-cta a::after { display: none; }
.main-nav .nav-cta a:hover { background: var(--ember); color: var(--night); }
.nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(241, 231, 216, .5); background: transparent; color: var(--cream); font: 700 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars { display: inline-grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 1px; background: currentColor; }

/* Hero */
.hero { margin-top: -85px; position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 160px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 15, 13, .55) 0%, rgba(18, 15, 13, .35) 40%, rgba(18, 15, 13, .96) 100%), linear-gradient(90deg, rgba(18, 15, 13, .8), transparent 70%); }
.hero::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; bottom: -30vmax; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(226, 112, 58, .45), rgba(226, 112, 58, 0) 65%); filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: end; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { color: var(--cream); opacity: .85; margin-bottom: 36px; }
.hero-card { border: 1px solid var(--line); background: rgba(18, 15, 13, .6); backdrop-filter: blur(6px); padding: 28px; }
.hero-card dl { margin: 0; display: grid; gap: 14px; }
.hero-card dt { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.hero-card dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.15rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--smoke); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--ember), transparent); }

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--char); }
.ticker-track { display: flex; width: max-content; gap: 0; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); white-space: nowrap; padding: 0 28px; color: var(--cream); }
.ticker-track span::after { content: "✦"; font-style: normal; color: var(--ember); margin-left: 56px; font-size: .7em; vertical-align: middle; }

/* Editorial intro */
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.intro .big { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.3; color: var(--cream); }
.intro .big em { color: var(--ember-soft); }
.intro-text { columns: 2; column-gap: 40px; color: var(--smoke); }
.intro-text p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 4.4rem; line-height: .8; padding: 8px 12px 0 0; color: var(--ember); }
.signature { margin-top: 26px; font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.2rem; }

/* Collage */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 90px; gap: 18px; margin-top: 70px; }
.collage figure { margin: 0; position: relative; overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.collage figure:hover img { transform: scale(1.05); }
.collage figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; background: var(--night); color: var(--brass); }
.c1 { grid-column: 1 / 5; grid-row: 1 / 6; }
.c2 { grid-column: 5 / 10; grid-row: 2 / 5; }
.c3 { grid-column: 10 / 13; grid-row: 1 / 5; }
.c4 { grid-column: 5 / 9; grid-row: 5 / 8; }
.c5 { grid-column: 9 / 13; grid-row: 5 / 8; }

/* Menu highlights and full menu */
.section-char { background: var(--char); }
.menu-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; }
.dish { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dish-line { display: flex; align-items: baseline; gap: 12px; }
.dish-name { font-family: var(--serif); font-size: 1.35rem; }
.dish-line::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted rgba(241, 231, 216, .35); transform: translateY(-5px); }
.dish-price { order: 3; font-family: var(--serif); color: var(--flame); font-size: 1.15rem; }
.dish p { margin: 6px 0 0; color: var(--smoke); font-size: .95rem; }
.tag { display: inline-block; margin-left: 8px; font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; font-weight: 700; color: var(--brass); border: 1px solid rgba(184, 148, 102, .5); padding: 1px 6px; vertical-align: middle; }
.menu-section + .menu-section { margin-top: 72px; }
.menu-section { scroll-margin-top: 170px; }
.menu-section > h2 { display: flex; align-items: center; gap: 24px; font-size: clamp(2rem, 4vw, 3rem); }
.menu-section > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-note { color: var(--smoke); font-size: .92rem; margin-top: 56px; padding: 20px 24px; border: 1px solid var(--line); }
.menu-jump { position: sticky; top: 84px; z-index: 50; background: rgba(27, 23, 20, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.menu-jump ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.menu-jump a { display: block; padding: 16px 16px; text-decoration: none; color: var(--smoke); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.menu-jump a:hover { color: var(--flame); }

/* Feature band */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--char-2); }
.feature-media { position: relative; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* The private dining photo: keep the table (lower part of the photo) in view whatever the box shape. */
.collage img.focus-table, .feature-media img.focus-table { object-position: 50% 72%; }
.feature-copy { padding: 100px 72px; display: flex; flex-direction: column; justify-content: center; }
.feature.reverse .feature-media { order: 2; }
.facts { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 12px; color: var(--smoke); }
.facts li::before { content: "—"; color: var(--ember); margin-right: 12px; }

/* Visit */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.visit > div { background: var(--night); padding: 40px 34px; }
.visit h3 { font-size: 1.6rem; }
.visit p { color: var(--smoke); margin: 0 0 6px; }
.visit-contact { grid-template-columns: 1fr 1fr; }
.visit-contact > div { padding: 30px 28px; }
.visit-contact > div:last-child { grid-column: 1 / -1; }
.visit-contact .eyebrow { display: block; margin-bottom: 10px; }
.visit-contact a[href^="tel:"] { white-space: nowrap; }
.visit-contact a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Inner page hero */
.page-hero { position: relative; padding: 110px 0 90px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 50vmax; height: 50vmax; right: -20vmax; top: -25vmax; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(226, 112, 58, .32), transparent 65%); }
.page-hero .lead { margin: 0; }

/* Reservation form */
.reserve { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.reserve.reserve-center { align-items: center; }
.reserve-card { background: var(--char); border: 1px solid var(--line); padding: 44px; position: relative; }
.reserve-card::before { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 3px; background: linear-gradient(var(--ember), var(--flame)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--cream); background: transparent; border: 0; border-bottom: 1px solid rgba(241, 231, 216, .35); padding: 10px 0; border-radius: 0; color-scheme: dark; }
.field select option { background: var(--char); color: var(--cream); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ember); box-shadow: 0 1px 0 var(--ember); }
.was-checked .field :invalid { border-bottom-color: #ff7b6b; }
.form-note { font-size: .88rem; color: var(--smoke); margin: 16px 0 0; }
.reserve-card .btn { margin-top: 30px; }
.wsn-demo-message { background: rgba(241, 231, 216, .06); color: var(--cream); border-color: rgba(241, 154, 98, .5); }
.wsn-demo-message.is-error { background: rgba(255, 123, 107, .08); color: #ffd2cb; border-color: rgba(255, 123, 107, .5); }

/* About */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.values .num { font-family: var(--serif); font-style: italic; font-size: 3.6rem; color: var(--ember); line-height: 1; display: block; margin-bottom: 18px; }
.values p { color: var(--smoke); }

.map-placeholder { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 24px; border: 1px solid var(--line); color: var(--smoke); font-size: .95rem; background: radial-gradient(circle at 60% 40%, rgba(226, 112, 58, .25), transparent 40%), repeating-linear-gradient(45deg, var(--char) 0 18px, var(--char-2) 18px 36px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 96px 0 32px; background: var(--night); position: relative; overflow: hidden; }
.footer-sign { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 11vw, 9.5rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(241, 231, 216, .22); margin-bottom: 64px; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--smoke); }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--flame); }
.site-footer p { color: var(--smoke); margin: 0 0 8px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--smoke); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: slowZoom 18s ease-out both; }
  .hero-copy > * { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .24s; }
  .hero-copy > *:nth-child(4) { animation-delay: .36s; }
  .hero-card { animation: rise 1.1s .5s cubic-bezier(.2, .7, .2, 1) both; }
  .hero::after, .page-hero::after { animation: flicker 6s ease-in-out infinite alternate; }
  .ticker-track { animation: ticker 38s linear infinite; }
  .page-hero .wrap > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .page-hero .wrap > *:nth-child(2) { animation-delay: .1s; }
  .page-hero .wrap > *:nth-child(3) { animation-delay: .2s; }
  .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  @keyframes slowZoom { from { transform: scale(1.15); } to { transform: scale(1.04); } }
  @keyframes flicker { 0% { opacity: .7; transform: scale(1); } 50% { opacity: 1; } 100% { opacity: .8; transform: scale(1.08); } }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Tablet */
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(18, 15, 13, .98); border-bottom: 1px solid var(--line); display: none; padding: 16px 24px 28px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
  .site-header:has(.main-nav.is-open) { background: rgba(18, 15, 13, .98); }
  .hero-grid, .intro, .reserve, .feature { grid-template-columns: 1fr; }
  .intro { gap: 40px; }
  .feature-media { min-height: 380px; }
  .feature-media:has(.focus-table) { min-height: 0; aspect-ratio: 5 / 4; }
  .feature.reverse .feature-media { order: 0; }
  .feature-copy { padding: 64px 32px; }
  .menu-cols { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .collage { grid-auto-rows: 70px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 80px; }
  .scroll-cue { display: none; }
  .intro-text { columns: 1; }
  .collage { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; gap: 10px; }
  .c1 { grid-column: 1 / 2; grid-row: 1 / 4; }
  .c2 { grid-column: 2 / 3; grid-row: 1 / 3; }
  .c3 { grid-column: 2 / 3; grid-row: 3 / 5; }
  .c4 { grid-column: 1 / 2; grid-row: 4 / 6; }
  .c5 { grid-column: 2 / 3; grid-row: 5 / 6; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .reserve-card { padding: 30px 22px; }
  .brand-name { font-size: 1.3rem; }
  .menu-jump { top: 84px; }
}
