/* Typelican — typelican.com. Built by site/tools (README).  Light theme only (decision 24.10). Tokens: Typelican design system v3.1 + level tokens (design-handoff.md v3.6). */
@font-face {
  font-family: "Fraunces Typelican";
  src: url("/assets/fonts/fraunces-soft-wonk.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #EFF6F5;
  --paper-raised: #FFFFFF;
  --paper-sunk: #DFECEA;
  --line: #D0E3E0;
  --line-strong: #6E8F8C;
  --ink: #0F2D2C;
  --ink-muted: #3F5F5D;
  --ink-faint: #9FB5B3;
  --accent: #0B6E6A;
  --accent-pressed: #095B58;
  --on-accent: #FFFFFF;
  --accent-ink: #0A625E;
  --accent-soft: #D3EFEC;
  --level-easy: #DFECEA;
  --level-medium: #EEE6CC;
  --level-hard: #EFDDD6;
  --serif: "Fraunces Typelican", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 1px 2px rgba(15,45,44,.06), 0 8px 24px rgba(15,45,44,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-pressed); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main { flex: 1 0 auto; width: 100%; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper-raised); padding: 8px 12px; border-radius: 8px; }

/* ---------- top bar (inner pages) ---------- */
.topbar { padding: 16px 0; }
.topbar .wrap { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--level-easy); box-shadow: 0 0 0 3px #fff; }
.brand span { font: 620 22px/1 var(--serif); letter-spacing: -0.01em; }

/* ---------- home hero ---------- */
.hero { text-align: center; padding-top: 28px; padding-bottom: 8px; }
.hero-mascot {
  width: min(260px, 68vw); aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; background: var(--level-easy);
  display: grid; place-items: center; overflow: visible;
}
.hero-mascot img { width: 108%; max-width: none; margin-top: -8%; }
.hero h1 {
  margin: 20px 0 0;
  font: 620 46px/1.05 var(--serif); letter-spacing: -0.015em;
}
.tagline { margin: 12px 0 0; font: 620 clamp(24px, 7vw, 28px)/1.2 var(--serif); letter-spacing: -0.01em; }
.tagline span { white-space: nowrap; }
.tagline .part2 { color: var(--accent-ink); }
.lede { margin: 10px auto 0; max-width: 30ch; text-wrap: balance; color: var(--ink-muted); font-size: 17px; }

/* store button: one switch on <body data-store="soon|live"> */
.store { margin: 24px 0 0; display: flex; justify-content: center; }
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--paper-raised); border: 1.5px solid var(--line-strong);
  color: var(--ink); font: 600 17px/1 var(--sans);
}
.store-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.store-live { display: inline-block; }
.store-live .badge { display: block; width: 162px; height: 54px; background: url("/assets/app-store-badge.svg") center / contain no-repeat; }
body[data-store="soon"] .store-live { display: none; }
body[data-store="live"] .store-soon { display: none; }

/* ---------- examples ---------- */
.examples { padding-top: 36px; padding-bottom: 8px; }
.examples h2 { margin: 0 0 4px; text-align: center; font: 620 22px/28px var(--serif); color: var(--ink-muted); }
.ex-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.ex {
  display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px;
  background: var(--paper-raised); border-radius: 24px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-card);
}
.ex-mat { border-radius: 16px; aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.ex-mat.easy { background: var(--level-easy); }
.ex-mat.medium { background: var(--level-medium); }
.ex-mat.hard { background: var(--level-hard); }
.ex-words { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 20px; }
.ex-blend { margin: 4px 0 0; font: 620 28px/1.1 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ex-blend mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 0 2px; }
.rule { text-wrap: balance; margin: 18px auto 0; max-width: 36ch; text-align: center; color: var(--ink-muted); font-size: 15px; line-height: 20px; }

/* ---------- reading pages ---------- */
.doc { padding-top: 8px; padding-bottom: 40px; }
.doc-inner { max-width: 65ch; margin: 0 auto; }
.doc h1 { font: 620 36px/1.1 var(--serif); letter-spacing: -0.01em; margin: 16px 0 8px; }
.doc .meta { color: var(--ink-muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font: 620 22px/28px var(--serif); margin: 32px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0 0 6px; }
.doc .card { background: var(--paper-raised); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow-card); margin: 0 0 8px; }
.doc .card h2 { margin-top: 0; }
.doc .card ul { margin-bottom: 0; }
.mail-cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font: 600 17px/1 var(--sans); text-decoration: none; margin: 4px 0 8px; }
.mail-cta:hover { background: var(--accent-pressed); color: var(--on-accent); }

/* ---------- small centered pages (/a, /r, 404) ---------- */
.center { text-align: center; padding-top: 40px; padding-bottom: 32px; }
.center .mascot-circle { width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; background: var(--level-easy); overflow: hidden; box-shadow: 0 0 0 4px #fff; }
.center h1 { font: 620 32px/1.15 var(--serif); margin: 22px 0 8px; letter-spacing: -0.01em; }
.center p { color: var(--ink-muted); margin: 0 auto; max-width: 32ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 600 17px/1 var(--sans); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-pressed); color: var(--on-accent); }
.center .actions { margin-top: 24px; display: flex; justify-content: center; }
.center .store { margin-top: 24px; }

/* ---------- footer ---------- */
.foot { padding-top: 28px; padding-bottom: 32px; color: var(--ink-muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.foot a { color: var(--ink-muted); }
.foot .sep { color: var(--ink-faint); }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-mascot { width: 300px; }
  .hero h1 { font-size: 64px; }
  .tagline { font-size: 34px; }
  .lede { max-width: none; }
  .ex-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ex { grid-template-columns: 1fr; padding: 14px 14px 20px; text-align: center; gap: 12px; }
  .ex-blend { font-size: 30px; }
  .doc h1 { font-size: 44px; margin-top: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mascot, .hero h1, .tagline, .lede, .store { animation: rise .5s ease-out both; }
  .hero h1 { animation-delay: .08s; } .tagline { animation-delay: .16s; } .lede { animation-delay: .22s; } .store { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
