/* ============================================
   teachmefirstfree.com — design tokens
   Comic-panel meets scoreboard: bold ink lines,
   halftone texture, stat-block numerics.
   ============================================ */
:root {
  --ink:      #16151C;   /* comic ink black */
  --ink-soft: #232230;
  --paper:    #F5F2E9;   /* panel cream */
  --card:     #FFFFFF;
  --text:     #201F26;
  --text-dim: #6B6975;
  --red:      #E8384F;   /* bullseye red — primary accent */
  --amber:    #FFB627;   /* scoreboard amber — secondary accent */
  --blue:     #2F6FED;   /* stat blue — tertiary accent */
  --rule:     #E4DFCF;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* halftone texture, used behind heroes */
.halftone {
  background-image: radial-gradient(var(--rule) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 4px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  display: flex; align-items: center; gap: 8px;
}
.brand .target {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid var(--red);
  position: relative;
  display: inline-block;
}
.brand .target::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--red); border-radius: 50%;
}
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.nav-links a { text-decoration: none; color: var(--paper); opacity: 0.8; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { opacity: 1; border-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(245,242,233,0.3); color: var(--paper); width: 40px; height: 40px; border-radius: 6px; cursor: pointer; font-size: 18px; }
@media (max-width: 780px) {
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--ink); flex-direction: column; gap: 0; padding: 8px 20px 20px; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid rgba(245,242,233,0.12); }
  .nav-toggle { display: block; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--amber); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 50%; display: inline-block; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
  max-width: 16ch;
  text-transform: uppercase;
}
.hero h1 .pop { color: var(--red); -webkit-text-stroke: 2px var(--paper); }
.hero p.lede { font-size: 18px; color: rgba(245,242,233,0.78); max-width: 48ch; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 14px 26px; border-radius: 3px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(245,242,233,0.3); }

/* ============================================
   Sections
   ============================================ */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; border-bottom: 3px solid var(--ink); padding-bottom: 18px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
.section-head .tag { font-family: var(--font-mono); font-size: 12px; background: var(--amber); color: var(--ink); padding: 5px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-pill {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 16px; border: 2px solid var(--ink); border-radius: 30px; background: transparent; cursor: pointer;
}
.filter-pill.active { background: var(--ink); color: var(--paper); }

/* ============================================
   Post cards
   ============================================ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--ink); }
.post-thumb {
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 2px solid var(--ink);
}
.post-thumb.sport { background: var(--blue); }
.post-thumb.comic { background: var(--red); }
.post-category {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 3px;
}
.post-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.15; margin: 0; text-transform: uppercase; letter-spacing: 0.005em; }
.post-body p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.post-meta { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); display: flex; gap: 12px; }

/* Featured / stat strip */
.stat-strip { background: var(--ink); border-radius: 8px; padding: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-block { text-align: center; }
.stat-block .num { font-family: var(--font-mono); font-size: 30px; color: var(--amber); font-weight: 700; }
.stat-block .label { font-family: var(--font-body); font-size: 12px; color: rgba(245,242,233,0.65); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ============================================
   About-teaser / author strip
   ============================================ */
.author-strip {
  display: flex; align-items: center; gap: 24px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 28px 32px;
}
.author-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--red); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px;
  flex-shrink: 0; border: 3px solid var(--ink);
}
.author-strip h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; text-transform: uppercase; }
.author-strip p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ============================================
   Newsletter
   ============================================ */
.newsletter { background: var(--amber); border-radius: 8px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.newsletter h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; text-transform: uppercase; }
.newsletter p { margin: 0; font-size: 14px; color: var(--ink); opacity: 0.75; }
.newsletter form { display: flex; gap: 10px; flex: 1; min-width: 260px; max-width: 420px; }
.newsletter input[type="email"] { flex: 1; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 4px; font-family: var(--font-body); font-size: 14px; }
.newsletter .btn-primary { background: var(--ink); }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--ink); color: rgba(245,242,233,0.65); padding: 52px 0 28px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(245,242,233,0.15); margin-bottom: 22px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { max-width: 32ch; color: rgba(245,242,233,0.5); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { text-decoration: none; color: rgba(245,242,233,0.65); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: rgba(245,242,233,0.4); }

/* ============================================
   Inner pages (about / contact / legal / post)
   ============================================ */
.page-hero { background: var(--ink); color: var(--paper); padding: 60px 0 52px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: rgba(245,242,233,0.5); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.breadcrumb a { color: rgba(245,242,233,0.8); text-decoration: none; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); margin: 0; text-transform: uppercase; line-height: 1.05; }

.prose { max-width: 70ch; margin: 0 auto; padding: 60px 0; }
.prose p { font-size: 16.5px; margin: 0 0 20px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; margin: 40px 0 16px; text-transform: uppercase; }
.prose h3 { font-family: var(--font-body); font-weight: 700; font-size: 17px; margin: 28px 0 10px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-weight: 600; font-size: 18px; }
.prose .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 30px; }
.prose a { color: var(--blue); font-weight: 600; }

/* Contact form */
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 4px; font-family: var(--font-body); font-size: 15px; background: var(--card); }
.field textarea { resize: vertical; min-height: 140px; }
.confirm { display: none; background: var(--ink); color: var(--paper); padding: 16px 20px; border-radius: 6px; font-family: var(--font-mono); font-size: 13.5px; margin-bottom: 24px; }
.confirm.show { display: block; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 8px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { border: 2px solid var(--ink); border-radius: 6px; padding: 22px; }
.contact-card h5 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); margin: 0 0 8px; }
.contact-card p { margin: 0; font-size: 14.5px; }
.contact-card a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ============================================
   Reveal
   ============================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
