/* Letter Verse website. The palette, fonts and flat-card feel are lifted straight
   from the app's theme (lib/core/theme.dart) so the site reads as the same
   product in both light and dark. Warm ivory paper in light, warm charcoal in
   dark, a coral accent, a serif for words and a sans for everything else. No
   gradients: the warmth is the paper colour itself. */

/* ---- Theme tokens ------------------------------------------------------- */
:root {
  --bg: #FBF6EE;      /* warm ivory paper */
  --card: #FFFFFF;
  --edge: #EBE3D6;      /* hairline card edge */
  --fill: #F3ECE0;      /* input / chip fill */
  --accent: #E8574B;    /* warm coral */
  --ink: #2A2622;       /* warm near-black text */
  --soft: #6B6259;      /* secondary text */
  --faint: #B8AEA2;     /* tertiary text */
  --reward: #CF8E1E;    /* mustard gold */
  --shadow: 0 1px 0 rgba(42, 38, 34, 0.02);
  --site-max: 1140px;
  --site-gutter: 24px;
}

/* Follow the OS by default; the toggle can override via data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #211D19;
    --card: #2E2925;
    --edge: #413A32;
    --fill: #2F2A24;
    --accent: #FF7060;
    --ink: #F2ECE2;
    --soft: #B8AEA1;
    --faint: #766B5F;
    --reward: #F0BE4B;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #211D19;
  --card: #2E2925;
  --edge: #413A32;
  --fill: #2F2A24;
  --accent: #FF7060;
  --ink: #F2ECE2;
  --soft: #B8AEA1;
  --faint: #766B5F;
  --reward: #F0BE4B;
  --shadow: none;
}
:root[data-theme="light"] {
  /* --bg: #ffffff; */
  --bg: #FBF6EE;
  --card: #FFFFFF;
  --edge: #EBE3D6;
  --fill: #F3ECE0;
  --accent: #E8574B;
  --ink: #2A2622;
  --soft: #6B6259;
  --faint: #B8AEA2;
  --reward: #CF8E1E;
  --shadow: 0 1px 0 rgba(42, 38, 34, 0.02);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.narrow { max-width: 855px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--edge);
}
.site-header .bar {
  display: flex; align-items: center; gap: 16px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand .word { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; }
.tiles { display: inline-flex; gap: 4px; }
.tile {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 15px;
}
.tile.q { background: var(--reward); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--soft); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.theme-toggle {
  border: 1px solid var(--edge); background: var(--card); color: var(--ink);
  width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center; font-size: 17px; line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); }
@media (max-width: 620px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.96); }
.btn-outline { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn .sub { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.btn .big { display: block; font-size: 0.98rem; line-height: 1.1; }
.coming { color: var(--accent); font-size: 0.85rem; margin-top: 10px; }

.store-badge {
  display: inline-block;
  line-height: 0;
}
.store-badge:hover { text-decoration: none; opacity: 0.88; }
.store-badge img { height: 48px; width: auto; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 72px 0 4px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-media { display: flex; justify-content: center; align-items: center; }
.hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 28px;
}
.hero .lede { font-size: 1.1rem; color: var(--soft); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image { max-width: min(88vw, 420px); }
}

/* A word chain, the whole game in one line. */
.chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 28px 0 8px;
}
.chip {
  font-family: 'Fraunces', serif; font-weight: 700; letter-spacing: 2px;
  background: var(--card); border: 1px solid var(--edge);
  padding: 12px 16px; border-radius: 12px; font-size: 1.1rem;
}
.chip .lit { color: var(--accent); }
.chain .arrow { color: var(--faint); font-weight: 700; }

/* ---- Sections & cards --------------------------------------------------- */
section { padding: 40px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.75rem;
  font-weight: 700; color: var(--accent); margin: 0 0 10px;
}
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--edge); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p { color: var(--soft); margin-bottom: 0; font-size: 0.98rem; }
.dot {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; margin-bottom: 12px;
}

/* ---- Legal / prose pages ------------------------------------------------ */
.doc { padding: 56px 0 40px; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin-bottom: 8px; }
.doc h2 { margin-top: 2em; font-size: 1.4rem; }
.doc h3 { margin-top: 1.5em; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }
.callout {
  background: var(--fill); border: 1px solid var(--edge); border-radius: 14px;
  padding: 16px 18px; margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--edge); margin-top: 40px; padding: 40px 0; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; }
.site-footer .brand { margin-right: auto; }
.footlinks { display: flex; flex-direction: column; gap: 8px; }
.footlinks a { color: var(--soft); font-weight: 600; font-size: 0.95rem; }
.footlinks a:hover { color: var(--ink); }
.foot-legal { color: var(--faint); font-size: 0.85rem; margin-top: 26px; }
.foot-legal a { color: var(--faint); }


.logo {
  width: 32px;
  height: auto;
}