/*
Theme Name: FPL HELPS
Theme URI: https://fplhelps.online
Author: FPL HELPS
Description: Lightweight editorial theme for FPL HELPS.
Version: 1.0.0
Text Domain: fpl-helps
*/

:root {
  --fpl-purple: #37003c;
  --fpl-purple-dark: #17172b;
  --fpl-green: #00ff87;
  --fpl-black: #111111;
  --fpl-white: #ffffff;
  --fpl-background: #f5f5f7;
  --fpl-border: #e4e4ea;
  --fpl-text: #18181b;
  --fpl-muted: #6b6b76;
  --content-width: 760px;
  --site-width: 1180px;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(23, 23, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fpl-background);
  color: var(--fpl-text);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { height: auto; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fpl-purple); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--fpl-green); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 6vw, 4.75rem); margin: 0; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.screen-reader-text:focus { background: #fff; clip: auto; clip-path: none; color: #000; display: block; height: auto; left: 5px; padding: 1rem; top: 5px; width: auto; z-index: 9999; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.wrap { width: min(calc(100% - 2rem), var(--site-width)); margin: 0 auto; }
.site-header { background: var(--fpl-purple-dark); color: var(--fpl-white); border-bottom: 3px solid var(--fpl-green); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--fpl-white); text-decoration: none; white-space: nowrap; }
.brand-name { font-size: 1.42rem; font-weight: 900; letter-spacing: -.06em; }
.brand-byline { color: var(--fpl-green); font-size: .73rem; font-weight: 700; }
.menu-toggle { display: none; background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; font-weight: 800; padding: .65rem; }
.primary-nav .menu { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--fpl-green); }
.header-cta { background: var(--fpl-green); color: var(--fpl-purple-dark); border-radius: 999px; font-size: .82rem; font-weight: 850; padding: .57rem .85rem; text-decoration: none; white-space: nowrap; }
.header-cta:hover { color: var(--fpl-purple-dark); filter: brightness(.94); }
.hero { background: var(--fpl-purple); color: #fff; overflow: hidden; padding: clamp(3.5rem, 8vw, 7.5rem) 0 4rem; position: relative; }
.hero::after { background: var(--fpl-green); content: ""; height: 20rem; opacity: .9; position: absolute; right: -10rem; top: -12rem; transform: rotate(35deg); width: 12rem; }
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.eyebrow { color: var(--fpl-green); font-size: .8rem; font-weight: 850; letter-spacing: .1em; margin: 0 0 1rem; text-transform: uppercase; }
.hero .tagline { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -.03em; margin: 1rem 0; }
.hero-copy { font-size: 1.12rem; max-width: 680px; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button { background: var(--fpl-green); border: 2px solid var(--fpl-green); border-radius: 999px; color: var(--fpl-purple-dark); display: inline-block; font-size: .92rem; font-weight: 850; padding: .75rem 1.15rem; text-decoration: none; }
.button:hover { color: var(--fpl-purple-dark); transform: translateY(-1px); }
.button--ghost { background: transparent; color: #fff; }
.button--ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.6rem; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--fpl-purple); font-size: .9rem; font-weight: 800; }
.article-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.article-card { background: #fff; border: 1px solid var(--fpl-border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 100%; overflow: hidden; }
.article-card__image { aspect-ratio: 16 / 8; background: linear-gradient(120deg, var(--fpl-purple-dark), var(--fpl-purple)); display: block; object-fit: cover; width: 100%; }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.article-category { color: var(--fpl-purple); font-size: .72rem; font-weight: 900; letter-spacing: .08em; margin: 0 0 .65rem; text-transform: uppercase; }
.article-card h3 { font-size: 1.35rem; margin: 0 0 .7rem; }
.article-card h3 a { text-decoration: none; }
.article-card__summary { color: var(--fpl-muted); font-size: .94rem; margin: 0 0 1.2rem; }
.article-meta { color: var(--fpl-muted); font-size: .77rem; font-weight: 650; margin-top: auto; }
.empty-state { background: #fff; border: 1px dashed var(--fpl-border); border-radius: var(--radius); color: var(--fpl-muted); padding: 2rem; }
.archive-header { background: #fff; border-bottom: 1px solid var(--fpl-border); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.archive-header h1 { color: var(--fpl-purple); font-size: clamp(2.3rem, 5vw, 4rem); }
.archive-grid { padding-top: 2rem; }
.article { background: #fff; padding: clamp(2rem, 6vw, 5rem) 0; }
.article-header, .article-content, .article-source { margin-left: auto; margin-right: auto; max-width: var(--content-width); }
.article-header h1 { color: var(--fpl-purple); font-size: clamp(2.25rem, 5.5vw, 4.25rem); margin-bottom: 1.35rem; }
.article-header .article-meta { font-size: .9rem; margin-bottom: 2rem; }
.quick-summary { background: #edfff5; border-left: 5px solid var(--fpl-green); border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem auto; max-width: var(--content-width); padding: 1.25rem 1.35rem; }
.quick-summary h2 { font-size: 1.25rem; margin: 0 0 .55rem; }
.article-content { font-size: 1.08rem; }
.article-content h2 { color: var(--fpl-purple); font-size: 1.8rem; margin-top: 2.6rem; }
.article-content > *:first-child { margin-top: 0; }
.article-source { border-top: 1px solid var(--fpl-border); margin-top: 3rem; padding-top: 1.25rem; }
.article-source strong { color: var(--fpl-purple); }
.site-footer { background: var(--fpl-purple-dark); color: #e8e7ed; margin-top: auto; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr repeat(2, 1fr); }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer h2 { font-size: 1.4rem; }
.site-footer h3 { font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer p, .site-footer li { color: #cbc9d1; font-size: .87rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .45rem; }
.footer-menu a { color: inherit; }
.donation-link { color: var(--fpl-green); font-weight: 800; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); color: #aaa8b4; font-size: .78rem; margin-top: 2.4rem; padding-top: 1.2rem; }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pagination .page-numbers { background: #fff; border: 1px solid var(--fpl-border); border-radius: .4rem; padding: .4rem .65rem; text-decoration: none; }
.pagination .current { background: var(--fpl-purple); color: #fff; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } .header-cta { display: none; } }
@media (max-width: 700px) {
  .header-inner { min-height: 64px; }
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; left: 0; position: absolute; right: 0; top: 64px; z-index: 10; }
  .primary-nav.is-open { background: var(--fpl-purple-dark); display: block; padding: 0 1rem 1rem; }
  .primary-nav .menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: .7rem 0; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3.5rem; }
}
