:root {
  color-scheme: light;
  --ink: #171112;
  --ink-soft: #5E5049;
  --paper: #FAF5EA;
  --cream: #F1E8D6;
  --cream-line: #E4DAC4;
  --red: #B11226;
  --theater: #0E0B0C;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.fraunces {
  font-family: "Fraunces", Georgia, serif;
}

/* ---------- page shell ---------- */

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html.overture-pending .page {
  opacity: 0;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}




/* Canonical Popcorn wordmark: Fraunces wght 800 at opsz 144 — must match the
   app's feed-header wordmark (apps/mobile/assets/popcorn-wordmark-*.png).
   Without the explicit opsz, the variable font falls back to the chunky
   small-optical-size cut. Keep in sync with .brand-wordmark in site.css. */
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-variation-settings: "opsz" 144;
  font-size: 31px;
  letter-spacing: -0.04em;
}

/* ---------- hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 44px 0 72px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-body {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-store-badge {
  width: 168px;
  height: auto;
}

.app-store-link {
  display: inline-block;
  transition: transform 160ms ease;
}

.app-store-link:hover {
  transform: translateY(-2px);
}

.hero-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- device ---------- */

.stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  width: min(320px, 78vw);
  aspect-ratio: 1290 / 2680;
  border-radius: 52px;
  border: 10px solid var(--ink);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 36px 90px rgba(23, 17, 18, 0.22);
  position: relative;
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.device::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  border-radius: 14px;
  background: var(--ink);
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: auto;
}

.footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
}

.footer-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-variation-settings: "opsz" 144;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(241, 232, 214, 0.75);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-fine {
  font-size: 12px;
  color: #98897D;
}

/* body wrapper so footer spans full width while page content is constrained */
.footer-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ---------- overture ---------- */

.overture {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
}

html:not(.overture-pending) .overture {
  display: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 0 56px;
    text-align: center;
  }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .stage {
    order: 2;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-store-link {
    transition: none;
  }
}
