/* Gridiron Strategies — design system.
   Palette: GS field-green identity, charcoal ink, gold + red accents.
   Goal: fast, readable, magazine-grade typography for 20 years of archives. */
:root {
  --c-bg: #f5f6f4;
  --c-surface: #ffffff;
  --c-ink: #1a2218;
  --c-muted: #5d6b5a;
  --c-green: #1c7a3e;        /* primary brand */
  --c-green-2: #12592d;      /* darker / gradient partner */
  --c-green-3: #0d3f20;      /* header bottom */
  --c-red: #c8102e;          /* CTA / accents */
  --c-red-2: #a30d26;
  --c-gold: #f2a900;         /* premium / highlight */
  --c-line: #dde2d9;
  --c-line-2: #e9ede6;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 40, 20, 0.12);
  --shadow-lg: 0 8px 28px rgba(20, 50, 25, 0.16);
  --container: 1180px;
  --font-head: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
}
a { color: var(--c-green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--c-ink); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.1rem; }
.muted { color: var(--c-muted); }
.empty { padding: 3rem 0; text-align: center; color: var(--c-muted); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 0.5rem; background: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(160deg, var(--c-green) 0%, var(--c-green-2) 55%, var(--c-green-3) 100%);
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  flex-wrap: wrap;
  padding: 0.55rem 1.1rem;
}
.brand { display: flex; align-items: center; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .logo { height: 50px; width: auto; display: block; }
.main-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.main-nav a { color: #eaf3ea; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.3px; text-transform: uppercase; }
.main-nav a:hover { color: var(--c-gold); text-decoration: none; }
.search-form { display: flex; margin-left: auto; }
.search-form input {
  border: 1px solid rgba(255,255,255,0.3); border-radius: 6px 0 0 6px;
  padding: 0.5rem 0.75rem; min-width: 190px; font-size: 0.92rem; background: rgba(255,255,255,0.95);
}
.search-form button {
  border: none; border-radius: 0 6px 6px 0; padding: 0.5rem 0.9rem;
  background: var(--c-gold); color: #2a2300; font-weight: 800; cursor: pointer; font-family: var(--font-head);
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-align: center;
  border-radius: 8px; font-weight: 800; padding: 0.7rem 1.4rem; font-size: 1rem;
  font-family: var(--font-head); letter-spacing: 0.3px; transition: background .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-green); color: #fff; }
.btn-primary:hover { background: var(--c-green-2); }
.btn-red { background: var(--c-red); color: #fff; }
.btn-red:hover { background: var(--c-red-2); }
.btn-outline { background: transparent; color: var(--c-green-2); border: 2px solid var(--c-green); }
.btn-outline:hover { background: var(--c-green); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--c-green-3), var(--c-green-2));
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 84px);
  pointer-events: none;
}
.hero-inner { max-width: 760px; padding: 3.2rem 1.4rem; position: relative; z-index: 1; }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; color: var(--c-gold); font-weight: 700; margin: 0 0 0.6rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; color: #fff; }
.hero h1 span { color: var(--c-gold); }
.hero-sub { font-size: 1.12rem; color: #e7efe7; margin: 0 0 1.6rem; max-width: 620px; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--c-green-2); }

/* ---------- Blocks / sections ---------- */
.block { margin: 0 0 2.6rem; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--c-green); padding-bottom: 0.45rem; margin-bottom: 1.2rem; }
.block-head h2 { font-size: 1.5rem; margin: 0; text-transform: uppercase; font-family: var(--font-head); letter-spacing: 0.4px; }
.block-link { font-weight: 700; color: var(--c-red); white-space: nowrap; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.45rem;
  transition: box-shadow .15s, transform .1s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--c-green); }
.card-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--c-green-2); background: #e7f3ea; padding: 0.15rem 0.5rem; border-radius: 4px; }
.card-tag:hover { text-decoration: none; background: var(--c-green); color: #fff; }
.card-title { font-size: 1.12rem; margin: 0.1rem 0 0; font-weight: 800; line-height: 1.25; }
.card-title a { color: var(--c-ink); }
.card-title a:hover { color: var(--c-green-2); text-decoration: none; }
.card-excerpt { font-size: 0.92rem; color: var(--c-muted); margin: 0; }
.card-meta { font-size: 0.82rem; color: var(--c-muted); margin: auto 0 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card-meta .card-date::before { content: "· "; }

/* ---------- 2-column layout ---------- */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 2.2rem; align-items: start; }
.col-side { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 96px; }
.side-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.side-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--c-green-2); margin: 0 0 0.7rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--c-line); font-family: var(--font-head); }
.side-cta { background: linear-gradient(160deg, #143f22, #0d2f18); color: #eaf3ea; border: none; }
.side-cta .side-title { color: var(--c-gold); border-color: rgba(255,255,255,0.15); }
.side-cta p { font-size: 0.92rem; margin: 0 0 0.9rem; }
.rank-list { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; }
.rank-list li { font-weight: 600; }
.rank-list a { color: var(--c-ink); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list a { display: inline-flex; align-items: center; gap: 0.35rem; background: #eef3ec; color: var(--c-green-2); padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.tag-list a:hover { background: var(--c-green); color: #fff; text-decoration: none; }
.tag-list .count { background: rgba(0,0,0,0.12); border-radius: 999px; padding: 0 0.4rem; font-size: 0.72rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--c-line-2); }
.link-list li:last-child { border-bottom: none; }

/* ---------- Article ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--c-muted); margin: 1rem 0 0.8rem; }
.breadcrumbs a { color: var(--c-green-2); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--c-line); }
.article-narrow { max-width: 760px; margin: 0 auto; }
.page-head { margin: 0.4rem 0 1.6rem; }
.page-kicker, .article-kicker { text-transform: uppercase; letter-spacing: 1px; font-size: 0.78rem; font-weight: 800; color: var(--c-red); margin: 0 0 0.4rem; }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 0.4rem; }
.article-head { margin-bottom: 1.4rem; border-bottom: 1px solid var(--c-line); padding-bottom: 1rem; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 0.5rem; }
.article-subtitle { font-size: 1.2rem; color: var(--c-muted); margin: 0 0 0.6rem; font-weight: 500; }
.article-byline { font-size: 0.95rem; color: var(--c-muted); margin: 0; }
.article-byline a { color: var(--c-green-2); font-weight: 600; }
.article-body { font-size: 1.075rem; line-height: 1.75; color: #232e20; }
.article-body p { margin: 0 0 1.15rem; }
.article-intro { font-size: 1.2rem; font-weight: 500; color: var(--c-ink); }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; }
.article-body h3 { font-size: 1.25rem; margin: 1.6rem 0 0.6rem; }
.article-body img { border-radius: 8px; margin: 0.6rem 0; height: auto; }
.article-body a { color: var(--c-green-2); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 1.15rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body table { max-width: 100%; border-collapse: collapse; margin: 1rem 0; height: auto !important; }
.article-body table td, .article-body table th { padding: 0.4rem 0.6rem; vertical-align: top; }
.article-body blockquote { border-left: 4px solid var(--c-green); margin: 1.2rem 0; padding: 0.4rem 1.2rem; color: var(--c-muted); font-style: italic; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0; }
.tag { background: #eef3ec; color: var(--c-green-2); padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.tag:hover { background: var(--c-green); color: #fff; text-decoration: none; }
.related { margin-top: 2.4rem; }
.author-name { font-weight: 800; font-size: 1.05rem; margin: 0; }

/* ---------- Topic / issue / author / play grids ---------- */
.topic-grid, .author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.topic-card, .author-card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem; box-shadow: var(--shadow); transition: transform .1s, box-shadow .15s, border-color .15s;
}
.topic-card:hover, .author-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--c-green); text-decoration: none; }
.topic-name, .author-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--c-ink); text-transform: uppercase; }
.topic-count, .author-count, .author-title { font-size: 0.85rem; color: var(--c-muted); }
.author-title { font-weight: 600; color: var(--c-green-2); }

.issue-archive { display: flex; flex-direction: column; }
.archive-year { font-family: var(--font-head); font-size: 1.6rem; color: var(--c-green-2); margin: 1.6rem 0 0.6rem; text-transform: uppercase; border-bottom: 2px solid var(--c-line); padding-bottom: 0.3rem; }
.issue-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; margin-bottom: 0.5rem; }
.issue-row:hover { border-color: var(--c-green); text-decoration: none; }
.issue-title { font-weight: 700; color: var(--c-ink); }
.issue-count { font-size: 0.85rem; color: var(--c-muted); }

.play-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.play-card { background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-red); border-radius: 8px; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.play-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.play-title { font-weight: 800; color: var(--c-ink); }
.play-date { font-size: 0.82rem; color: var(--c-muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 2.2rem 0 1rem; }
.pagination a { background: var(--c-green); color: #fff; padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 700; font-family: var(--font-head); }
.pagination a:hover { background: var(--c-green-2); text-decoration: none; }
.page-status { color: var(--c-muted); font-size: 0.9rem; }

/* ---------- Search page ---------- */
.search-page-form { display: flex; gap: 0.5rem; margin: 1rem 0; max-width: 600px; }
.search-page-form input { flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--c-line); border-radius: 8px; font-size: 1rem; }

/* ---------- Ad slots ---------- */
.ad-slot { margin: 1.6rem auto; text-align: center; min-height: 90px; max-width: 970px; background: #eef0ec; border: 1px dashed var(--c-line); border-radius: 8px; padding: 0.4rem; }
.ad-slot .ad-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: #9aa597; margin-bottom: 0.2rem; }

/* ---------- Message pages ---------- */
.message-page { text-align: center; padding: 4rem 1rem; }
.big-number { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--c-green); margin: 0; line-height: 1; }
.message-page h1 { font-size: 2rem; margin: 0.5rem 0 0.8rem; }
.message-page .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-green-3); color: #cfe0d2; margin-top: 3rem; padding: 2.4rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-brand p { font-size: 0.92rem; margin: 0.4rem 0 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer a { color: #cfe0d2; font-size: 0.92rem; }
.site-footer a:hover { color: var(--c-gold); }
.footer-label { text-transform: uppercase; letter-spacing: 1px; font-size: 0.72rem; color: var(--c-gold); font-weight: 700; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.6rem; padding-top: 1rem; font-size: 0.82rem; color: #9fb6a4; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0.2rem; padding-top: 0.5rem; }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .search-form { order: 3; flex-basis: 100%; margin-left: 0; }
  .search-form input { flex: 1; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-inner { padding: 2.4rem 1.1rem; }
}
