/* ------------------------------------------------------------------
   Noms — web design system
   Ported from the app's Theme.swift (cream/warm palette, orange-red
   accent, serif-italic headings). Keep these tokens in sync with the app.
   ------------------------------------------------------------------ */

:root {
  /* Colors (from Theme.swift) */
  --cream: #fdf5eb;        /* warm cream background */
  --cream-dark: #f5ebde;   /* slightly darker cream for cards/pills */
  --card-fill: #f2eee3;    /* beige card fill */
  --accent: #e8614d;       /* primary orange-red accent */
  --accent-dark: #d24f3c;
  --dark-bg: #14120f;      /* dark login-style background */
  --off-white: #f5f0e6;    /* off-white text on dark */
  --secondary-text: #8c857a;
  --dark-text: #1f1c1a;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --maxw: 1080px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark-text);
  line-height: 1.5;
  font-size: 17px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------- Wordmark */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark .mark {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--dark-text);
}

.wordmark .rule {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 28px 24px 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 28px 56px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--dark-text);
}

.hero__sub {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: rgba(31, 28, 26, 0.72);
  margin: 0 auto 32px;
  max-width: 30ch;
  line-height: 1.55;
}

/* Coming-soon badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(232, 97, 77, 0.28);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.hero__note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--secondary-text);
}

/* Food-photo backdrop: a grid that fills the top and fades into solid
   cream toward the middle — mirrors the app's login screen. */
.photo-grid {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px;
  filter: saturate(0.65) brightness(1.05);
  pointer-events: none;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

/* Hide the lower rows on short screens so the fade looks clean */
.photo-grid img:nth-child(n + 9) {
  display: none;
}

.photo-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(253, 245, 235, 0.32) 0%,
    rgba(253, 245, 235, 0) 14%,
    rgba(253, 245, 235, 0) 30%,
    rgba(253, 245, 235, 0.92) 47%,
    var(--cream) 55%,
    var(--cream) 100%
  );
}

/* ------------------------------------------------------- Content sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 28px;
}

.section--tight {
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--dark-text);
}

.section p.lead {
  font-size: 1.12rem;
  color: rgba(31, 28, 26, 0.78);
  max-width: 56ch;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature {
  background: var(--card-fill);
  border: 1px solid rgba(31, 28, 26, 0.06);
  border-radius: 20px;
  padding: 28px 24px;
}

.feature .ico {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(31, 28, 26, 0.7);
}

/* Closing band on dark, login-style background */
.band {
  background: var(--dark-bg);
  color: var(--off-white);
  text-align: center;
}

.band .inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 96px 28px;
}

.band img.mascot {
  width: 96px;
  margin: 0 auto 24px;
}

.band h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 14px;
  color: var(--off-white);
}

.band p {
  color: rgba(245, 240, 230, 0.7);
  margin: 0 0 28px;
}

/* ---------------------------------------------------------------- Footer */
.footer {
  background: var(--cream);
  border-top: 1px solid rgba(31, 28, 26, 0.08);
}

.footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer .copy {
  font-size: 0.85rem;
  color: var(--secondary-text);
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer nav a {
  font-size: 0.85rem;
  color: var(--secondary-text);
}

.footer nav a:hover {
  color: var(--dark-text);
}

/* --------------------------------------------------------- Legal / docs */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-text);
  margin-bottom: 36px;
}

.doc__back:hover {
  color: var(--accent);
  text-decoration: none;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 8px;
}

.doc .effective {
  color: var(--secondary-text);
  font-size: 0.95rem;
  margin: 0 0 40px;
}

.doc h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: rgba(31, 28, 26, 0.82);
  line-height: 1.65;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 10px;
}

.doc strong {
  color: var(--dark-text);
}

.doc hr {
  border: none;
  border-top: 1px solid rgba(31, 28, 26, 0.1);
  margin: 48px 0;
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-grid img:nth-child(n + 7) {
    display: none;
  }
  .section {
    padding: 64px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .badge .dot {
    animation: none;
  }
}
