/* ============================================================
   home.css
   ────────────────────────────────────────────────────────────
   Page-specific styles for the home page. Mostly:
     – Hero bento spacing and large display type sizing
     – "Today's special" row composition
     – Counters stat tile internal layout
     – Newsletter form
   ============================================================ */

/* ── 1. Hero bento spacing ─────────────────────────────────── */
.hero-bento {
  /* The hero gets a denser row height than other bento sections.
     This makes the hero feel like a "moment" rather than blending
     with the body. */
  grid-auto-rows: clamp(160px, 16vw, 240px);
  margin-bottom: var(--s-7);
}

/* The big filled hero tile */
.tile--hero-title {
  /* Override base padding for hero — more breathing room. */
  padding: clamp(28px, 2.4vw, 44px);
  gap: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* A subtle warm glow behind the title via a radial gradient. The
     fill is dark enough that the glow reads as ambient light, not
     a sticker. */
  background:
    radial-gradient(ellipse at 20% 80%, rgba(232,183,58,0.07), transparent 60%),
    radial-gradient(ellipse at 90% 10%, rgba(107,142,35,0.10), transparent 55%),
    var(--filled-bg);
}

/* The display wordmark. Two-line composition with the italic second
   line set in display italic and slightly indented. */
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 2.0rem + 7.0vw, 9.4rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--paper-bone);
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}
.hero-title__italic {
  font-style: italic;
  color: rgba(246,240,225,0.78);
  display: inline-block;
  /* The italic line pulls itself a tiny bit left so its optical
     left edge aligns with the first line. Looks much more typeset. */
  margin-left: -0.04em;
}

.hero-lede {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.18rem);
  color: rgba(246,240,225,0.78);
  max-width: 42ch;
  line-height: 1.5;
}
.hero-lede em {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(246,240,225,0.5);
  font-size: 1.08em;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-actions .btn--ghost {
  border-color: rgba(246,240,225,0.18);
  color: var(--paper-bone);
}
.hero-actions .btn--ghost:hover {
  background: var(--paper-bone);
  color: var(--ink-900);
  border-color: var(--paper-bone);
}

/* Three small metadata pairs at the bottom of the hero tile */
.hero-meta {
  display: flex;
  gap: var(--s-7);
  font-family: var(--font-ui);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(246,240,225,0.12);
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta dt {
  font-size: var(--t-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: rgba(246,240,225,0.45);
}
.hero-meta dd {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  color: var(--paper-bone);
  line-height: 1;
}

/* ── 2. Counters stat tile ─────────────────────────────────── */
.tile--counters {
  /* Composition: stat number on the left, list on the right. */
  justify-content: space-between;
}
.counters-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: center;
}
.counters-row .tile__stat-number {
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  line-height: 1;
  color: var(--paper-bone);
}
.counters-list {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: rgba(246,240,225,0.78);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  align-items: start;
}
.counters-list li::before {
  content: "·";
  color: rgba(246,240,225,0.4);
  margin-right: 6px;
}

/* ── 3. Featured row (today's special + categories + order) ── */
.featured-row {
  margin-bottom: var(--s-9);
  grid-auto-rows: clamp(180px, 17vw, 260px);
}

.tile--special {
  /* Today's special is a wide tile with an internal two-column
     split: text on the left, the dish image on the right. */
  padding: 0;
  overflow: hidden;
}
.tile--special .tile__eyebrow {
  padding: clamp(20px, 1.8vw, 28px) clamp(20px, 1.8vw, 28px) 0;
}
.special-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.special-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(8px, 0.8vw, 12px) clamp(20px, 1.8vw, 28px) clamp(20px, 1.8vw, 28px);
}
.special-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink-900);
  letter-spacing: var(--ls-tight);
}
.special-desc {
  font-size: 0.94rem;
  color: var(--ink-700);
  line-height: 1.45;
  max-width: 32ch;
  flex: 1;
}
.tile--special .tile__price {
  color: var(--matcha-700);
}
.special-image {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
}
.special-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-4) var(--ease-out);
}
.tile--special:hover .special-image img { transform: scale(1.05); }

/* Category cloud — wrapping chip cluster */
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--s-3) 0 auto;
}
.category-cloud .chip {
  background: rgba(255,255,255,0.5);
}

/* Order CTA tile (small filled) */
.tile--order {
  justify-content: space-between;
}
.order-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.0rem + 1.4vw, 2.2rem);
  line-height: 1;
  color: var(--paper-bone);
  font-style: italic;
}

/* ── 4. Sub-sections (menu preview, locations, voices, visit) ─ */
.page-section {
  margin-top: var(--s-9);
}
.page-section--no-bottom { margin-bottom: 0; }

.section-head {
  margin-bottom: var(--s-6);
}

/* ── 5. Voices mosaic — make sure pull-quotes have rhythm ───── */
.voices-mosaic .tile--quote .tile__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.voices-mosaic .tile--matcha.tile--quote .tile__title::before {
  color: var(--paper-bone);
}
.voices-mosaic .tile--matcha .tile__meta dt,
.voices-mosaic .tile--matcha .tile__meta dd { color: var(--paper-bone); }
.voices-mosaic .tile--matcha .tile__meta dt { color: rgba(246,240,225,0.65); }

.voices-mosaic .tile--filled .tile__title::before {
  color: var(--matcha-300);
}

/* ── 6. Newsletter form (in the visit row) ─────────────────── */
.newsletter {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.newsletter__label {
  font-size: var(--t-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: rgba(246,240,225,0.55);
}
.newsletter__field {
  display: flex;
  gap: var(--s-2);
  background: rgba(246,240,225,0.06);
  border: 1px solid rgba(246,240,225,0.12);
  border-radius: var(--r-pill);
  padding: 5px;
  transition: border-color var(--dur-2) var(--ease-out);
}
.newsletter__field:focus-within {
  border-color: var(--matcha-300);
}
.newsletter__field input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 16px;
  font-size: 0.94rem;
  color: var(--paper-bone);
}
.newsletter__field input::placeholder { color: rgba(246,240,225,0.4); }

/* ── 7. Contact list (in the visit row, paper tile) ─────────── */
.contact-list {
  display: grid;
  gap: var(--s-3);
  margin-top: auto;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--paper-edge);
}
.contact-list li:first-child { border-top: 0; }
.contact-list__label {
  font-size: var(--t-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-500);
}
.contact-list a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-900);
  line-height: 1.2;
  transition: color var(--dur-1) var(--ease-out);
}
.contact-list a:hover { color: var(--matcha-700); }

/* ── 8. Mobile collapse — relax tile spans on small viewports ─ */
@media (max-width: 720px) {
  .hero-title { font-size: clamp(3.4rem, 8vw, 5.8rem); }
  .hero-bento { grid-auto-rows: minmax(140px, auto); }
  .tile--hero-title { --r: 2; }
  .tile--counters { --r: 1; }

  .special-row { grid-template-columns: 1fr; }
  .special-image { min-height: 180px; }

  .counters-list { grid-template-columns: 1fr; }
}
