/* LoveLapse pages — colours and type from the app's design tokens.
   Fonts are served from this folder, so the pages make no third-party requests. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/Manrope-Regular.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/Manrope-Bold.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("fonts/Manrope-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype"); }

:root {
  --paper: #F7F2EC;
  --surface: #FFFFFF;
  --sand: #F1EAE2;
  --line: #E2D8CD;
  --hairline: #F0E9E1;
  --ink: #1B1613;
  --ink-2: #5E544D;
  --ink-3: #736860;
  --heart: #D7263D;
  --heart-text: #B01C31;
  --blush: #FBE1E1;
  --on-blush: #5E3A3C;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15110F;
    --surface: #221C19;
    --sand: #2E2622;
    --line: #3A302B;
    --hairline: #2E2622;
    --ink: #F4ECE6;
    --ink-2: #CBBFB5;
    --ink-3: #A99C91;
    --heart-text: #FF7A8B;
    --blush: #3A1B21;
    --on-blush: #F4C9CE;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 28px 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 400 26px/1 "Instrument Serif", Georgia, serif; }
.site-nav { display: flex; gap: 20px; margin-top: 18px; font-weight: 800; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--heart); }
.site-nav a:hover { color: var(--ink); }

/* Type */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 40px 0 8px; }
h1 { font: 400 clamp(44px, 9vw, 64px)/1.02 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; margin: 0 0 16px; }
h1 em, .hero-title em { font-style: italic; color: var(--heart-text); }
h2 { font: 400 32px/1.15 "Instrument Serif", Georgia, serif; margin: 48px 0 12px; }
h3 { font-size: 17px; font-weight: 800; margin: 28px 0 6px; }
p, li { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }
a { color: var(--heart-text); text-underline-offset: 3px; }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0; }
.meta { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* Cards */
.card { background: var(--surface); border-radius: 22px; padding: 22px 24px; margin: 28px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.blush { background: var(--blush); }
.card.blush p, .card.blush li { color: var(--on-blush); }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--hairline); margin: 0; }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts li::before { content: "♥"; color: var(--heart); font-size: 13px; flex: none; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--hairline); color: var(--ink-2); }
th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 0; }
td:first-child { color: var(--ink); font-weight: 700; }

/* FAQ */
details { background: var(--surface); border-radius: 16px; margin: 10px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 800; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 16px; }
details > div > :first-child { margin-top: 0; }
details > div > :last-child { margin-bottom: 0; }

/* Buttons */
.button { display: inline-block; background: var(--heart); color: #fff; font-weight: 800; text-decoration: none; padding: 14px 24px; border-radius: 999px; }
.button:hover { filter: brightness(1.05); }
.button.secondary { background: var(--sand); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Home */
.hero { padding: 48px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 32px rgba(215, 38, 61, .22); }
.hero-title { font: 400 clamp(52px, 12vw, 80px)/1 "Instrument Serif", Georgia, serif; margin: 28px 0 14px; }

/* Footer */
.site-footer { margin: 64px 0 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.site-footer p { color: var(--ink-3); margin: 4px 0; }
.site-footer a { color: var(--ink-2); }

:focus-visible { outline: 3px solid var(--heart); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card { padding: 18px; }
  th, td { padding: 10px; }
}
