/* Pitch Perfect — website styles. "Football almanac" per DESIGN.md.
   Editorial / almanac: warm paper, ink, turf-green accent, ochre highlight.
   Fraunces (display/wordmark) + Instrument Sans (body/UI).
   Type and palette match the iOS app's canon. Light (paper) canonical. */

:root {
  --paper:    #F3EFE6;   /* warm cream background */
  --surface:  #FBF9F3;   /* card / panel */
  --surface2: #F1ECE0;   /* recessed callout */
  --ink:      #1B1A17;   /* primary text */
  --dim:      #6E6A5F;   /* muted text */
  --line:     #D9D3C5;   /* hairline rules */
  --turf:     #1F6B3B;   /* .correct — turf green (accent) */
  --turf-deep:#185730;
  --ochre:    #C8922B;   /* .present — ochre */
  --brick:    #A8412B;   /* error / danger */
  --on-accent:#FBF9F3;   /* cream letters on colored tiles */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper grain + warm tone — almanac page, no heavy shadows/gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

a { color: var(--turf); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---- Masthead (almanac cover line) ---- */

.masthead {
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark .dot { color: var(--turf); }
.tagline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
  font-weight: 600;
}
.nav { margin-top: 16px; font-size: 13px; letter-spacing: 0.03em; font-weight: 600; }
.nav a {
  color: var(--ink);
  margin-right: 18px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--turf);
}
.nav a:hover { text-decoration: none; color: var(--turf); }

/* ---- Hero ---- */

.hero { text-align: center; padding: 54px 0 26px; }
.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turf);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  font-weight: 600;
}
.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.hero-title em { color: var(--turf); font-style: italic; }
.hero-sub {
  font-size: 18px;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Wordle tile motif ---- */

.tiles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.tiles .tile {
  width: 50px; height: 50px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.tiles .tile.correct { background: var(--turf); border-color: var(--turf); color: var(--on-accent); }
.tiles .tile.present { background: var(--ochre); border-color: var(--ochre); color: var(--on-accent); }
.tiles .tile.absent  { background: #B6B1A6; border-color: #B6B1A6; color: var(--on-accent); }

/* ---- Cards ---- */

main { padding: 28px 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 22px;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 12px;
}

h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
h2 { font-size: 23px; font-weight: 700; margin: 28px 0 10px; }
h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 600; color: var(--ink); }

.lede { font-size: 18px; color: var(--dim); }
.updated {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 18px;
  font-weight: 600;
}

/* ---- Feature rows ---- */

.feature {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature .ico {
  font-size: 22px;
  flex: none;
  width: 30px;
  text-align: center;
  color: var(--turf);
  line-height: 1.3;
}
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Callout ---- */

.callout {
  background: var(--surface2);
  border-left: 3px solid var(--turf);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- FAQ ---- */

.faq-q { font-weight: 600; color: var(--ink); margin-top: 20px; margin-bottom: 4px; }

/* ---- CTA ---- */

.cta {
  display: inline-block;
  background: var(--turf);
  color: var(--on-accent);
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
}
.cta:hover { text-decoration: none; background: var(--turf-deep); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 24px 0 44px;
}
.footer p { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.footer .nav-foot { letter-spacing: 0.03em; font-weight: 600; }
.footer .nav-foot a { color: var(--ink); margin-right: 14px; }
.footer .copy {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}

/* ---- Responsive ---- */

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 20px; }
  .hero-title { font-size: 34px; }
  .card { padding: 20px; }
  h1 { font-size: 26px; }
  .nav a { margin-right: 12px; }
  .tiles .tile { width: 42px; height: 42px; font-size: 22px; }
}
