/* site.css - Over the Page. Fonts are hosted here (/fonts); no outside styles or fonts.
   Fonts are trimmed to Latin characters and the weights used (Bricolage 400-700, Newsreader 400).
   They are cached for a year (vercel.json): give a changed font a new file name. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F5F1EA;
  --ink: #17161C;
  --navy: #16183A;
  --navy-hover: #2B2F6B;
  --mint: #94E6D6;
  --rule: #E2DCD0;
  --muted: #3A3942;
  --body-soft: #2D2C33;
  --on-navy: #D9D7E4;
  --mint-fold: #6FCFBC;
  --card-navy: #1F2250;
  --card-edge: #353A78;
  --pad: clamp(20px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: block; width: clamp(170px, 46vw, 230px); overflow: visible; }
.logo-link { display: block; text-decoration: none; }
.site-header .ig { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center;
  padding-top: clamp(16px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 28px); }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(44px, 11vw, 88px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; max-width: 12ch; }
.hero .lead { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; font-weight: 500; max-width: 540px; text-wrap: pretty; }
.hero .body { margin: 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; max-width: 540px; text-wrap: pretty; }
.hero .ages { margin: 0; font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--body-soft); max-width: 540px; }

/* signup card */
.signup { position: relative; overflow: hidden; background: var(--mint); color: var(--navy); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px;
  box-shadow: 10px 14px 0 var(--navy); margin-right: 10px; margin-bottom: 14px; }
/* folded page corner */
.signup::before { content: ''; position: absolute; top: 0; right: 0; width: 64px; height: 64px; background: linear-gradient(225deg, var(--paper) 50%, var(--mint-fold) 50%); border-bottom-left-radius: 14px; pointer-events: none; }
.signup h2 { max-width: 15ch; margin: 0; font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.signup-intro { display: flex; flex-direction: column; gap: 10px; }
.signup-intro p { margin: 0; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.signup form { display: flex; flex-direction: column; gap: 12px; }
.signup label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.signup input[type=text], .signup input[type=email] { height: 54px; padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 14px; background: #FFFFFF;
  font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); width: 100%; outline: none; }
.signup input:focus-visible { box-shadow: 0 0 0 3px var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border: none; border-radius: 999px; background: var(--navy);
  color: var(--paper); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-hover); color: var(--paper); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.signup .btn { width: 100%; margin-top: 4px; }
.signup [data-msg] { margin: 0; padding: 12px 14px; background: #FFFFFF; color: #9B1C1C; border-left: 4px solid #C62828; border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.signup [data-msg]:empty { display: none; }
.signup .small { margin: 0; font-size: 14px; text-align: center; }
.signup .small a { color: var(--navy); }
/* shown by signup.js after a successful signup */
.signup-sent { background: #FFFFFF; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.signup-sent p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--body-soft); }
.signup-sent .signup-sent-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
/* Honeypot: off screen, 1x1, invisible, not clickable. Not display:none - some bots skip hidden fields. */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* two perspectives */
.dark { background: var(--navy); color: var(--paper); }
.dark .wrap { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }
.dark h2 { margin: 0; max-width: 720px; font-weight: 700; font-size: clamp(32px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 3vw, 40px); }
.cols { gap: clamp(16px, 2vw, 24px); }
.col { position: relative; overflow: hidden; background: var(--card-navy); border: 1px solid var(--card-edge); border-radius: 16px; padding: 30px 28px 38px; display: flex; flex-direction: column; gap: 10px; }
.col::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; background: linear-gradient(315deg, var(--navy) 50%, var(--card-edge) 50%); }
.col .num { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--mint); }
.col h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.col h3 span { font-weight: 400; color: var(--mint); }
.col p { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: 18px; line-height: 1.55; color: var(--on-navy); text-wrap: pretty; }

/* why we started */
.story { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.story-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.letter { grid-column: span 2; background: #FFFFFF; border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 var(--rule), 0 12px 32px rgba(22, 24, 58, 0.06); }
@media (max-width: 899px) { .letter { grid-column: auto; } }
.story h2 { color: var(--navy); margin: 0; font-weight: 700; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.05; letter-spacing: -0.025em; }
.story p { margin: 0; font-family: 'Newsreader', Georgia, serif; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.55; text-wrap: pretty; }
.sign { display: flex; align-items: center; gap: 12px; }
.initials { display: flex; flex: none; }
.initials span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.initials .p { background: var(--navy); color: var(--paper); }
.initials .a { background: var(--mint); color: var(--navy); margin-left: -14px; border: 3px solid var(--paper); }
.sign strong { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; font-size: 20px; color: var(--navy); }

/* footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer .ig { font-weight: 500; }
.site-footer nav { display: flex; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer .btn { color: var(--paper); }

/* privacy page */
.doc { max-width: 720px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); font-size: 17px; line-height: 1.6; }
.doc h1 { margin: 0 0 8px; font-weight: 700; font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.doc .meta { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 12px; font-weight: 700; font-size: 24px; letter-spacing: -0.015em; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 0 0 8px; }

/* Desktop: everything about 15% smaller than the design's maximum sizes (Paz, 14 Nov 2026). Phone sizes unchanged. */
@media (min-width: 900px) {
  .logo { width: 200px; }
  .site-header .ig, .site-footer { font-size: 14px; }
  .hero h1 { font-size: 75px; }
  .hero .lead { font-size: 20px; }
  .hero .body { font-size: 17px; }
  .hero .ages { font-size: 18px; }
  .signup { padding: 38px; }
  .signup h2 { font-size: 32px; }
  .signup-intro p { font-size: 15.5px; }
  .signup label { font-size: 14px; }
  .signup input[type=text], .signup input[type=email] { height: 48px; font-size: 16px; }
  .btn { height: 50px; font-size: 16px; padding: 0 24px; }
  .signup .small { font-size: 13px; }
  .signup-sent .signup-sent-title { font-size: 19px; }
  .signup-sent p { font-size: 15px; }
  .dark h2 { font-size: 48px; }
  .col h3 { font-size: 19px; }
  .col p { font-size: 16px; }
  .story h2 { font-size: 38px; }
  .story p { font-size: 20.5px; }
  .sign strong { font-size: 18px; }
  .initials span { width: 36px; height: 36px; font-size: 14px; }
  .doc { font-size: 16px; }
  .doc h1 { font-size: 54px; }
  .doc h2 { font-size: 21px; }
}
