@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Mirrors Colors.light / Colors.dark and Palette in src/constants/theme.ts. */
:root {
  color-scheme: light dark;
  --text: #000000;
  --background: #faf4f4;
  --surface: #f3e8e8;
  --rule: #ebdcdc;
  --text-secondary: #60646c;
  --accent: #ff5c82;
  --pink-deep: #e8476c;
  --heart: #f25075;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ffffff;
    --background: #2a1a1e;
    --surface: #3a2428;
    --rule: #4a3035;
    --text-secondary: #b0b4ba;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-deep);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

main {
  flex: 1;
  padding-bottom: 48px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 56px;
  text-align: center;
}

.wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 32px 0 8px;
  color: var(--pink-deep);
  font-size: clamp(36px, 11vw, 56px);
  font-weight: 400;
  letter-spacing: 2.2px;
  line-height: 1.1;
}

.wordmark-heart {
  width: 0.66em;
  height: auto;
  margin: 0 0.04em;
  fill: var(--heart);
  /* Puts the heart's point on the baseline, as on the app's start screen. */
  transform: translateY(-0.02em);
}

.wordmark-heart rect {
  animation: heart-layers 4.5s infinite;
  animation-delay: calc(var(--ring) * 90ms);
}

/* Lit most of the time; clears briefly and rebuilds from the centre. */
@keyframes heart-layers {
  0%, 74% { opacity: 1; }
  81%, 86% { opacity: 0.15; }
  95%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-heart rect {
    animation: none;
  }
}

.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 22px;
}

.lede {
  max-width: 460px;
  margin: 32px 0 0;
  color: var(--text-secondary);
}

.badge {
  display: inline-block;
  margin-top: 32px;
  padding: 10px 20px;
  border: 1.5px solid var(--pink-deep);
  border-radius: 999px;
  color: var(--pink-deep);
  font-size: 14px;
  font-weight: 500;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.prose {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

.prose h1 {
  margin: 24px 0 4px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.prose h2 {
  margin: 32px 0 8px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}

.prose .meta {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 14px;
}

.prose ul {
  padding-left: 20px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 13px;
}

.footer nav {
  display: flex;
  gap: 16px;
}

.footer a {
  color: var(--text-secondary);
}
