/* MenuGallery — flat stylesheet
   Mobile-first. Breakpoints: sm 640px / md 768px / lg 1024px.
   Order: @font-face -> :root -> base -> motifs -> layout -> components. */

/* ---------- @font-face ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- :root ---------- */
:root {
  --paper: #F4F4F2;
  --ink: #2E2E2E;
  --ink-muted: #8A8A8A;
  --accent: #F09A4B;
  --accent-soft: #FBE3CB;
  --card: #FFFFFF;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 1rem;
  --radius-band: 1.5rem;
  --radius-phone: 2.75rem;
  --container: 72rem;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}

/* ---------- motifs (ported from globals.css) ---------- */

/* Paper grain — fixed full-viewport SVG noise overlay, zero external assets */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Menu price-leader — the recurring dotted rule threading name to price */
.dot-leader {
  flex: 1 1 3rem;
  margin-inline: 0.6rem;
  align-self: flex-end;
  height: 3px;
  transform: translateY(-0.35em);
  background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.5px);
  background-size: 12px 3px;
  background-repeat: repeat-x;
}

/* Reveal-on-scroll states (driven by main.js) */
[data-reveal] {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
  }
  [data-reveal="pending"] {
    opacity: 1;
    transform: none;
  }
}

/* Smooth scroll, but only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

::selection {
  background-color: var(--accent-soft);
  color: var(--ink);
}

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}

.hero {
  padding: 3.5rem 0 5rem;
}
@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 7rem;
  }
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.story-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- components ---------- */

/* Wordmark (hero) */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.wordmark svg {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
}
.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.wordmark-accent {
  color: var(--accent);
}

/* Brand (footer + legal header) */
.brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
}

/* Hero copy */
.hero-title {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-title span {
  display: block;
}
.hero-title-accent {
  color: var(--accent);
}
.hero-lede {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--ink-muted);
}
.hero-badges {
  margin-top: 2rem;
}
.hero-media {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero-media {
    justify-content: flex-end;
  }
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store-badges--center {
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.625rem 1.25rem;
  opacity: 0.6;
  user-select: none;
}
.badge-glyph {
  flex-shrink: 0;
}
.badge-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.badge-small {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.025em;
}
.badge-big {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Phone frame */
.phone {
  width: 17rem;
  border-radius: 2.75rem;
  background: var(--ink);
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(46, 46, 46, 0.10),
    0 30px 60px -20px rgba(46, 46, 46, 0.45);
}
@media (min-width: 640px) {
  .phone {
    width: 19rem;
  }
}
@media (min-width: 1024px) {
  .phone {
    width: 22rem;
  }
}
@media (min-width: 640px) {
  .phone--tilt {
    transform: rotate(2deg);
  }
}
.phone-screen {
  overflow: hidden;
  border-radius: 2rem;
  background: var(--card);
}
.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Story sections */
.story-media {
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .story-media {
    justify-content: flex-end;
  }
  .story--flip .story-text {
    order: 2;
  }
  .story--flip .story-media {
    order: 1;
    justify-content: flex-start;
  }
}
.story-title,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title--narrow {
  max-width: 42rem;
}
.story-body {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(46, 46, 46, 0.8);
}
.story-caption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Eyebrow (legal pages) */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
}

/* Features */
.feature-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-reveal {
  height: 100%;
}
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(46, 46, 46, 0.1);
  background: var(--card);
  padding: 1.5rem;
}
.feature-icon {
  color: var(--accent);
}
.feature-card h3 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

/* CTA band */
.cta-band {
  border-radius: 1.5rem;
  background: var(--accent-soft);
  padding: 3.5rem 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-band {
    padding-block: 4rem;
  }
}
.cta-sub {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgba(46, 46, 46, 0.8);
}
.cta-badges {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px dotted rgba(46, 46, 46, 0.2);
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 2.5rem;
}
@media (min-width: 640px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}
.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--ink);
}

/* ---------- legal pages (privacy / terms) ---------- */
.legal-header {
  border-bottom: 1px dotted rgba(46, 46, 46, 0.2);
}
.legal-header .container {
  padding-block: 1.5rem;
}
.legal {
  max-width: 42rem;
  margin-inline: auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
  .legal {
    padding-block: 6rem;
  }
}
.legal h1 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .legal h1 {
    font-size: 3rem;
  }
}
.legal h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.legal p,
.legal ul {
  margin-bottom: 1rem;
  color: rgba(46, 46, 46, 0.8);
  line-height: 1.625;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.legal li + li {
  margin-top: 0.5rem;
}
.legal strong {
  color: var(--ink);
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  text-decoration: none;
}
.legal-meta {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.legal-intro {
  margin-top: 2.5rem;
}
