/* ==========================================================================
   Hunt: Open Flame Society
   Mobile-first. Sections in page order; tokens first.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens (colors sampled from the photos) ---------------------- */
:root {
  --bg: #0f0c09;          /* oven shadows */
  --bg-raised: #1b1612;   /* leather placemat */
  --line: #3a2a1c;        /* corten / dark bronze */
  --ember: #d35400;       /* brand orange (menu site). Fills only, not small text */
  --ember-hover: #e8823a;
  --ember-text: #e8823a;  /* orange for text: ~7:1 on --bg */
  --ochre: #b46524;       /* cave-wall pigment, decorative */
  --oxblood: #4a1605;     /* lamp glow, overlays */
  --text: #ede3d6;        /* stone off-white: ~15:1 on --bg */
  --text-muted: #a8998a;  /* dusty stone: ~7:1 on --bg */
  --on-ember: #0f0c09;    /* text on --ember: ~4.7:1 (white would only reach ~4:1) */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type: min at 360px, max around 1440px */
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-3: clamp(2.5rem, 1.8rem + 2.8vw, 3.75rem);

  --gutter: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  --section: clamp(5rem, 3.5rem + 7vw, 9.5rem);   /* vertical rhythm between sections */
  --max: 76rem;
  --radius: 2px;          /* nearly square: stone, not plastic */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  /* Fine grain so flat areas feel like stone rather than a screen. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em; /* this Fraunces cut is display-tight; open it slightly */
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--ember-text); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

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

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

/* Visually hidden but read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Shared pieces ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small uppercase label above headings, with a short ember rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--ember-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--ember);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary { background: var(--ember); color: var(--on-ember); }
.btn--primary:hover { background: var(--ember-hover); color: var(--on-ember); }

.btn--ghost { border-color: rgb(237 227 214 / .35); color: var(--text); }
.btn--ghost:hover { border-color: var(--ember-text); color: var(--text); }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;     /* svh: ignores the mobile URL bar */
  background: var(--bg);  /* flat (no grain) so the photo's fade-out has no visible seam */
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Phones: logo sits in the dark top of the arch, actions on the darkened
   reflection at the bottom, flames stay clear in the middle. The photo is
   shifted down a little so the flames start below the lede on tall phones;
   the strip it leaves at the top is plain --bg, same as the photo's dark top. */
@media (max-width: 55.99em) {
  .hero__media { top: 7%; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(15 12 9 / .85) 0%, rgb(15 12 9 / .6) 30%, rgb(15 12 9 / 0) 48%),
    linear-gradient(to top, var(--bg) 0%, rgb(15 12 9 / .9) 24%, rgb(15 12 9 / 0) 48%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding-block: clamp(3rem, 9svh, 5.5rem) 2.25rem;
}

.hero__title img {
  width: min(58vw, 15rem);
}

.hero__lede {
  max-width: 22ch;
  margin-top: 1.25rem;
  color: var(--text);
  font-size: var(--step-1);
  line-height: 1.4;
  text-shadow: 0 1px 14px rgb(15 12 9 / .9);  /* keeps it legible over any glow */
}

/* Phones: buttons stacked, full width. Wider: two equal columns. */
.hero__actions {
  display: grid;
  gap: 0.75rem;
}
.hero__actions .btn {
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero__phone {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.hero__phone a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgb(237 227 214 / .4);
}
.hero__phone a:hover { color: var(--ember-text); }

@media (min-width: 36em) {
  .hero__actions {
    grid-template-columns: 1fr 1fr;
    max-width: 30rem;
  }
}

/* Wide screens: photo fills the right ~62%, text sits on plain dark stone to the left. */
@media (min-width: 56em) {
  .hero__media {
    left: auto;
    width: 62%;
    object-position: 50% 50%;
  }
  .hero::after {
    left: auto;
    width: 62%;
    background:
      linear-gradient(90deg, var(--bg) 0%, rgb(15 12 9 / .6) 18%, rgb(15 12 9 / 0) 45%),
      linear-gradient(to top, var(--bg) 0%, rgb(15 12 9 / 0) 25%);
  }
  .hero__content {
    --hero-w: clamp(20rem, 34vw, 32rem);  /* logo width = button row width */
    justify-content: center;
    gap: 3rem;
    padding-block: 7rem;
  }
  .hero__intro,
  .hero__cta { width: var(--hero-w); }
  .hero__title img { width: 100%; }
  /* Two equal buttons spanning the logo's width; they stack (still equal)
     when the column is too narrow for both side by side. */
  .hero__actions {
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  }
}

/* --- Shared section rhythm ----------------------------------------------- */
.section { padding-block: var(--section); }

.section h2 {
  font-size: var(--step-3);
  margin-bottom: 1.5rem;
}

.section p + p { margin-top: 1rem; }

/* Photos: slight darkening + warm tint so they sit in the page, lifted on hover. */
figure { margin: 0; }
.about__photo,
.menu__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.about__photo img,
.menu__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.92) saturate(.95);
  transition: filter .6s var(--ease), transform 1.2s var(--ease);
}
.about__photo:hover img,
.menu__photo:hover img { filter: none; transform: scale(1.02); }

/* ==========================================================================
   2. About
   ========================================================================== */
.about__inner {
  display: grid;
  gap: 3rem;
}

.about__text { max-width: 34rem; }
.about__text p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; }
.about__text p:first-of-type:not(.eyebrow) { color: var(--text); }

/* Even 2x2 photo grid */
.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.about__photo { aspect-ratio: 2 / 3; }

@media (min-width: 56em) {
  .about__inner {
    grid-template-columns: 5fr 7fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  /* Text stays in view while the photos scroll past. */
  .about__text { position: sticky; top: 6rem; padding-top: 2rem; }

  .about__gallery { gap: 1rem; }
}

/* ==========================================================================
   3. Menu
   ========================================================================== */
.menu { background: var(--bg-raised); border-block: 1px solid var(--line); }

.menu__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.menu__photo { aspect-ratio: 4 / 5; }
.menu__photo img { object-position: 50% 55%; }

.menu__text p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: var(--step-1);
}

@media (min-width: 56em) {
  .menu__inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
  }
  .menu__photo { aspect-ratio: 3 / 4; }
}

/* ==========================================================================
   4. Hours and contact
   ========================================================================== */
.visit__grid {
  display: grid;
  margin-top: 2.5rem;   /* clear gap so the heading doesn't read as the first row */
  border-top: 1px solid var(--line);
}

.visit__item {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.visit__item h3 {
  margin-bottom: 0.75rem;
  color: var(--ember-text);
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Numbers read more clearly in the body font than in the display serif. */
.visit__big {
  margin-top: 0.25rem;
  color: var(--text);
  /* Kept clearly smaller than the section heading, especially on phones. */
  font-size: clamp(1.3rem, 0.9rem + 1.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.visit__big a { color: inherit; text-decoration: none; }
.visit__big a:hover { color: var(--ember-text); }

address { font-style: normal; }

.visit__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 48em) {
  .visit__grid { grid-template-columns: repeat(3, 1fr); }
  .visit__item { padding: 2.25rem 2rem 2.25rem 0; }
  .visit__item + .visit__item { padding-left: 2rem; border-left: 1px solid var(--line); }
}

/* ==========================================================================
   5. Map
   ========================================================================== */
.map__frame {
  width: 100%;
  height: clamp(20rem, 55vh, 32rem);
  border: 0;
  /* Dark map to match the page. Hue-rotate keeps water/parks roughly their usual colors after invert. */
  filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95);
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.footer {
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__brand img:first-child { width: 2.5rem; }
.footer__brand img:last-child { width: 6.5rem; }

.footer__social { color: var(--text); text-decoration: none; }
/* Inline links need more than color to stand out from surrounding text. */
.footer__line a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgb(237 227 214 / .4);
}
.footer__line a:hover,
.footer__social:hover { color: var(--ember-text); }

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;      /* comfortable tap target */
}
.footer__social svg { width: 1.25rem; height: 1.25rem; }

.footer__small { font-size: 0.8rem; }

/* ==========================================================================
   Scroll reveal (only when main.js has opted in; see js/main.js)
   ========================================================================== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
