/* era.dating: the app's own look (src/theme) on the web. Fonts are copied in by
   scripts/build-site.mjs, so the site makes no third-party requests. */

@font-face { font-family: 'Poppins'; font-weight: 500; src: url('/fonts/Poppins_500Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700; src: url('/fonts/Poppins_700Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 400; src: url('/fonts/Inter_400Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 600; src: url('/fonts/Inter_600SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; src: url('/fonts/InstrumentSerif_400Regular_Italic.ttf') format('truetype'); font-display: swap; }

:root {
  --canvas: #FBF6EC;
  --surface: #FFFFFF;
  --text: #1A1410;
  --text-2: #5C534B;
  --text-3: #756B61;
  --line: rgba(26, 20, 16, 0.12);
  --accent: #FF5A1F;
  --on-accent: #1A1410;
  --pop: #FFD43B;
  --ink: #1A1410;
  --on-ink: #FFFBF4;
  --peach: #FFD9C4;
  --butter: #FFE9A6;
  --lilac: #E4DAFF;
  --mint: #CDEFDA;
  --paper: #FFF8EA;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0B0A09;
    --surface: #1C1917;
    --text: #FFF8EF;
    --text-2: #C2B8AD;
    --text-3: #8F857B;
    --line: rgba(255, 248, 239, 0.14);
    --ink: #171513;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.55 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Top bar: links either side, the wordmark in the middle */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-right { justify-self: end; }
.wordmark { font: 500 30px/1 'Poppins', sans-serif; letter-spacing: -0.02em; text-decoration: none; }
@media (max-width: 719px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav .nav-links { display: none; }
  .nav .wordmark { justify-self: start; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--text); color: var(--canvas);
  font: 600 15px/1 'Inter', sans-serif; text-decoration: none; white-space: nowrap;
}
.button.small { height: 40px; padding: 0 18px; font-size: 14px; }
.button.light { background: var(--surface); color: var(--text); }
.button[aria-disabled="true"] { cursor: default; }
.button .soon { font-weight: 400; opacity: 0.7; }

h1, h2 { font-family: 'Poppins', sans-serif; font-weight: 700; margin: 0; }
h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin: 0 0 14px; opacity: 0.75; }
.lede { font-size: clamp(18px, 2.2vw, 21px); margin: 20px 0 0; max-width: 34ch; }

/* Hero: the first welcome slide, floods with the accent like the app does */
.hero { background: var(--accent); color: var(--on-accent); border-radius: 32px; margin: 8px 0 0; overflow: hidden; }
.hero-inner { display: grid; gap: 40px; padding: 56px 24px 48px; }
.hero h1 .hl { color: #FFFFFF; }
.hero .stores { margin-top: 32px; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 96px 64px; }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chat-bubble stickers, slightly crooked, as if stuck on by hand */
.art { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bubble {
  display: inline-block; max-width: 300px; padding: 14px 20px; border-radius: 22px 22px 22px 6px;
  background: var(--surface); color: var(--text); font-size: 18px; font-weight: 600;
  box-shadow: 0 2px 0 rgba(26, 20, 16, 0.18);
  transform: rotate(var(--tilt, 0deg));
}
.bubble.mine { align-self: flex-end; border-radius: 22px 22px 6px 22px; background: var(--ink); color: var(--on-ink); }
.bubble.crossed span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.55; }
.hero .bubble { background: #FFFFFF; color: #1A1410; }
.hero .bubble.mine { background: #1A1410; color: #FFFBF4; }

/* Feature sections: eyebrow, big headline, one short line, art beside */
.feature { display: grid; gap: 32px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 0; }
.feature p.body { color: var(--text-2); font-size: 19px; margin: 18px 0 0; max-width: 36ch; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; align-items: center; padding: 104px 0; }
  .feature.flip .copy { order: 2; }
}
.panel { border-radius: 28px; padding: 40px 28px; display: flex; justify-content: center; min-height: 300px; align-items: center; }
.panel.lilac { background: var(--lilac); }
.panel.butter { background: var(--butter); }
.panel.mint { background: var(--mint); }
.panel .bubble { background: #FFFFFF; color: #1A1410; }
.panel .bubble.mine { background: #1A1410; color: #FFFBF4; }

/* A bio card with a heart, and a love note on cream paper */
.poster { position: relative; width: min(100%, 340px); }
.poster .card {
  background: #FFFFFF; color: #1A1410; border-radius: 22px; padding: 26px 24px 30px;
  font: 700 22px/1.3 'Poppins', sans-serif; letter-spacing: -0.01em;
}
.poster .card small { display: block; font: 600 13px/1 'Inter', sans-serif; color: #756B61; margin-bottom: 12px; letter-spacing: 0; }
.poster .heart {
  position: absolute; right: -10px; bottom: -18px; width: 56px; height: 56px; border-radius: 50%;
  background: #1A1410; display: grid; place-items: center;
}
.poster .note {
  margin: 34px 0 0 18px; background: var(--paper); color: #1A1410; padding: 16px 20px 18px; border-radius: 6px;
  font: italic 24px/1.25 'Instrument Serif', serif; transform: rotate(-3deg);
  box-shadow: 0 2px 0 rgba(26, 20, 16, 0.14); max-width: 280px;
}
.poster .note::before {
  content: ''; display: block; width: 64px; height: 18px; margin: -26px auto 10px;
  background: rgba(255, 212, 59, 0.75); transform: rotate(2deg);
}

.tips { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.tips li { background: var(--surface); border-radius: 18px; padding: 16px 20px; font-weight: 600; }
.tips li span { display: block; font-weight: 400; color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* Download band */
.download { text-align: center; padding: 96px 0 88px; }
.download .stores { justify-content: center; margin-top: 28px; }

/* Footer, in columns */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer h3 { font: 600 13px/1 'Inter', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal { color: var(--text-3); margin-top: 40px; font-size: 14px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Privacy and Terms */
.doc { max-width: 720px; padding: 32px 0 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc .updated { color: var(--text-3); font-size: 14px; margin: 14px 0 40px; }
.doc h2 { font: 600 19px/1.3 'Inter', sans-serif; letter-spacing: 0; margin: 36px 0 8px; }
.doc p { color: var(--text-2); margin: 0; }

.notfound { text-align: center; padding: 120px 0; }
.notfound p { color: var(--text-2); margin: 16px 0 32px; }
