/* ============================================================================
   The Pudding Society — Coming Soon
   Design language: black & white, like the packaging. Sharp edges, hard
   rules, generous whitespace, editorial typography.

   Magazine-cover hero: full-bleed image on top, copy below.
   ============================================================================ */

:root {
  /* Black & white — matches the packaging. */
  --white: #ffffff;
  --paper: #fafafa;        /* very subtle off-white for card backgrounds */
  --ink: #0a0a0a;          /* near-black for text + frames */
  --ink-soft: #2a2a2a;     /* secondary text */
  --ink-faint: #6b6b6b;    /* tertiary, fineprint */
  --rule: rgba(10, 10, 10, 0.12);
  --rule-strong: rgba(10, 10, 10, 0.6);

  /* Geometric, sharp edges — packaging aesthetic */
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;

  --max-w: 1180px;
  --serif: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover {
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: 100%;
  overflow-x: hidden;
}

/* ============================================================================
   HERO — two-column: copy left, product right (the version that worked)

   Two product shots stacked with a small offset, both in hard 1.5px black
   borders. Picture 1 is primary (front, larger), Picture 3 is secondary
   (peeking from behind, slightly rotated).
   ============================================================================ */

.hero {
  background: var(--white);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
  border-bottom: 1.5px solid var(--ink);
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

/* Two stacked product frames — the secondary peeks from behind the primary */

.product-frame {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}

.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-frame--primary {
  width: 75%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-3deg);
}

.product-frame--secondary {
  width: 55%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  bottom: 0;
  right: 0;
  z-index: 1;
  transform: rotate(6deg);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px;
}

.eyebrow-center { text-align: center; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}

.display .ital {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 36px;
}

/* ===== Email capture form ===== */

.waitlist {
  margin: 0 0 16px;
  max-width: 520px;
}

.waitlist-row {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--ink);
  padding: 6px 6px 6px 22px;
  transition: border-color 0.2s ease;
}

.waitlist-row:focus-within {
  border-width: 2px;
  padding: 5.5px 5.5px 5.5px 21.5px;
}

.waitlist-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  text-align: left;
}

.waitlist-row input::placeholder {
  color: var(--ink-faint);
}

.waitlist-row button {
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.waitlist-row button:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.waitlist-row button:active {
  transform: translateY(0);
}

.waitlist-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.waitlist-row button:hover .btn-arrow {
  transform: translateX(3px);
}

.form-status {
  font-size: 14px;
  margin: 14px 4px 0;
  color: var(--ink-faint);
  min-height: 20px;
}

.form-status.success {
  color: var(--ink);
  font-weight: 500;
}

.form-status.error {
  color: var(--ink);
  font-weight: 500;
}

.fineprint {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 4px 0 0;
}

/* ============================================================================
   TICKER — black band with inverted type
   ============================================================================ */

.ticker {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 22px 0;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
}

.ticker-track span:not(.dot) {
  padding: 0 8px;
}

.ticker .dot {
  color: var(--ink-faint);
  font-size: 0.7em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============================================================================
   STORY
   ============================================================================ */

.story {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px);
  background: var(--white);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.story-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  color: var(--ink);
}

.h2 .ital {
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.story-body {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.story-body:last-child { margin-bottom: 0; }
.story-body.center { text-align: center; }

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */

.how {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px);
  background: var(--white);
  border-top: 1.5px solid var(--ink);
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-grid {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
}

.how-step {
  padding: 40px 32px;
  border-right: 1.5px solid var(--ink);
}

.how-step:last-child { border-right: 0; }

.how-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 18px;
}

.how-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.how-step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================================
   ALLERGENS
   ============================================================================ */

.allergens {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px);
  background: var(--white);
  border-top: 1.5px solid var(--ink);
}

.allergens-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.h2.center {
  text-align: center;
  margin-bottom: 16px;
}

.story-body.center {
  margin: 0 auto 48px;
  text-align: center;
  max-width: 540px;
}

.allergen-table {
  border: 1.5px solid var(--ink);
}

.allergen-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.7fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1.5px solid var(--ink);
  align-items: center;
}

.allergen-row:last-child { border-bottom: 0; }

.allergen-row.allergen-head {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
}

.allergen-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.allergen-name strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.allergen-sub {
  font-size: 13px;
  color: var(--ink-faint);
}

.allergen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.allergen-diet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.dot-veg {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
}

.allergen-note {
  margin: 32px 4px 0;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

.allergen-note a {
  color: var(--ink);
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px);
  background: var(--white);
  border-top: 1.5px solid var(--ink);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 48px;
  border-top: 1.5px solid var(--ink);
}

.faq-item {
  border-bottom: 1.5px solid var(--ink);
}

.faq-item summary {
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { padding-bottom: 12px; }

.faq-item p {
  margin: 0 4px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================================
   CTA
   ============================================================================ */

.cta {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px);
  background: var(--white);
  text-align: center;
  border-top: 1.5px solid var(--ink);
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-body {
  margin: 0 auto 40px;
  max-width: 540px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px clamp(20px, 5vw, 64px);
}

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

.footer-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.footer-tag {
  font-size: 14px;
  opacity: 0.7;
}

.footer-meta {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.trust-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer a {
  color: inherit;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.footer a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.footer-dot { opacity: 0.5; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-art {
    order: -1;
    min-height: 460px;
  }

  .allergen-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 24px;
  }

  .allergen-row.allergen-head { display: none; }

  .how-grid { grid-template-columns: 1fr; }

  .how-step {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }

  .how-step:last-child { border-bottom: 0; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 540px) {
  .display { font-size: 40px; }

  .hero-copy { padding-top: 48px; padding-bottom: 48px; }

  .waitlist-row {
    flex-direction: column;
    padding: 8px;
    gap: 6px;
    align-items: stretch;
  }

  .waitlist-row input {
    padding: 12px 14px;
    text-align: center;
  }

  .waitlist-row button {
    justify-content: center;
    padding: 14px 20px;
    width: 100%;
  }

  .allergen-row { padding: 20px 18px; }

  .allergen-name strong { font-size: 20px; }
}
