/* ============================================================
   THE BEN FANTASY FOOTBALL NEWSLETTER
   Brand tokens
   ============================================================ */
:root {
  --bone:        #F4F1E9;
  --ink:         #14120F;
  --klein:       #002FA7;
  --klein-light: #3D62E0;
  --rule:        #D6D0C2;
  --muted:       #6B6558;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --wrap-narrow: 680px;

  --space: clamp(2rem, 5vw, 4.5rem);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--klein); text-decoration: none; }
a:hover { color: var(--klein-light); }

:focus-visible {
  outline: 2px solid var(--klein);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

/* The Fantasy accent — the single load-bearing brand rule */
.accent {
  font-family: var(--serif);
  font-style: italic;
  color: var(--klein);
  font-weight: 400;
}

/* Shared hairline */
.rule-line {
  display: block;
  height: 1px;
  background: var(--rule);
  width: 100%;
  margin: 1.75rem 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--klein);
  margin: 0 0 0.75rem;
}

/* ============================================================
   Site header + compact BEN/FFL mark
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.mark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.mark:hover { color: var(--ink); }

/* Ghost navigation */
.nav { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.nav a:hover { color: var(--klein); }

/* ============================================================
   Hub hero + single-line masthead
   ============================================================ */
.hub-hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.nameplate {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.06;
  color: var(--ink);
  margin: 0 auto;
}
.nameplate .accent { font-size: 1em; }

/* ============================================================
   Featured / latest issue
   ============================================================ */
.featured {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.featured__link { display: block; color: var(--ink); }
.featured__link:hover { color: var(--ink); }
.featured__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.04;
  margin: 0 0 0.75rem;
  color: var(--ink);
  transition: color 0.18s ease;
}
.featured__link:hover .featured__title { color: var(--klein); }
.featured__excerpt {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}
.featured__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured__cta { color: var(--klein); font-weight: 600; }

/* ============================================================
   Archive
   ============================================================ */
.archive { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.archive__head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.archive__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin: 0;
  white-space: nowrap;
}
.archive__head .rule-line { margin: 0; flex: 1; }

.issue-list { list-style: none; margin: 0; padding: 0; }
.issue { border-bottom: 1px solid var(--rule); }
.issue:first-child { border-top: 1px solid var(--rule); }
.issue__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding-block: 1.6rem;
  color: var(--ink);
  align-items: baseline;
}
.issue__link:hover { color: var(--ink); }
.issue__date {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35em;
}
.issue__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.1;
  margin: 0;
  transition: color 0.18s ease;
}
.issue__link:hover .issue__title { color: var(--klein); }
.issue__excerpt {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 62ch;
  grid-column: 2;
}
.issue--empty { padding: 2rem 0; color: var(--muted); border-top: 1px solid var(--rule); }
.issue--empty p { margin: 0; }
.archive__intro { margin-bottom: 2.5rem; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.pagination a { font-weight: 600; }
.pagination .page-number { color: var(--muted); }

/* ============================================================
   Single issue
   ============================================================ */
.issue-single { padding-bottom: clamp(3rem, 7vw, 5rem); }
.issue-single__header { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.issue-single__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.03;
  margin: 0.5rem 0 0;
  color: var(--ink);
}
.issue-single__standfirst {
  font-family: var(--sans);
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
  max-width: 60ch;
}
.issue-single__feature {
  margin: clamp(2rem, 5vw, 3rem) 0;
}
.issue-single__feature img { width: 100%; }
.issue-single__feature figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
}
.issue-single__footer { margin-top: clamp(2.5rem, 6vw, 4rem); }
.back-link { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; }

/* ============================================================
   Ghost content (the writing)
   ============================================================ */
.post-content {
  font-size: 1.14rem;
  line-height: 1.72;
}
.post-content > * { margin-block: 0 1.5rem; }
.post-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.12;
  margin-block: 2.75rem 1rem;
}
.post-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-block: 2.25rem 0.85rem;
}
.post-content h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-block: 2rem 0.75rem;
}
.post-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--rule); }
.post-content a:hover { text-decoration-color: var(--klein-light); }
.post-content strong { font-weight: 700; }
.post-content ul, .post-content ol { padding-left: 1.35rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--klein);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--ink);
}
.post-content hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 3rem 0;
}
.post-content img { border-radius: 2px; }
.post-content figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
}
.post-content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0,47,167,0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
/* Ghost cards */
.kg-bookmark-card,
.kg-bookmark-container {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.kg-callout-card {
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}
.kg-width-wide { max-width: 900px; margin-inline: auto; }
.kg-width-full { max-width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  margin-top: clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.site-footer__mark {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.site-footer__meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .issue__link { grid-template-columns: 1fr; gap: 0.4rem; }
  .issue__excerpt { grid-column: 1; }
  .archive__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .archive__head .rule-line { width: 100%; }
}

/* ============================================================
   Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
