/* === CiteBet — Sports Betting Legality by State === */
/* Statute-first. Read the law before you place the bet. */

:root {
  --ink: #0b1120;
  --paper: #f5f1e8;
  --accent: #c9a227;
  --rule: #d4c9a8;
  --muted: #5a4a2a;
  --warn: #8b1e1e;
  --ok: #2d5016;
  --radius: 4px;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--ink); }

/* === Layout === */
.container { max-width: 740px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }

/* === Nav === */
.nav-bar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px double var(--accent);
  font-family: var(--sans);
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}
.nav-brand::before { content: "§ "; color: var(--accent); }
.nav-sep { color: var(--accent); }
.nav-topic { color: var(--muted); }
.nav-sites { margin-left: auto; display: flex; gap: 0.85rem; flex-wrap: wrap; }
.nav-site { color: var(--paper); text-decoration: none; opacity: 0.7; }
.nav-site:hover { color: var(--accent); opacity: 1; }

/* === Hero === */
.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-kicker::before { content: "— "; }
.hero h1 {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-sub {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2.25rem;
  max-width: 36ch;
}
.hero-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.hero-cta:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero-meta {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* === Sections === */
section { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
section h2 {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
section h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.85rem;
}
section p { margin-bottom: 1.25rem; }
section ul, section ol { margin: 0 0 1.5rem 1.5rem; }
section li { margin-bottom: 0.5rem; }
section a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
section a:hover { background: var(--accent); }

/* === Verdict Banner === */
.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--ink);
  background: white;
}
.verdict--illegal { border-left-color: var(--warn); }
.verdict--legal { border-left-color: var(--ok); }
.verdict--gray { border-left-color: var(--accent); }
.verdict-mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
}
.verdict-mark--illegal { color: var(--warn); }
.verdict-mark--legal { color: var(--ok); }
.verdict-mark--gray { color: var(--accent); }
.verdict-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.verdict-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
}

/* === Statute Block === */
.statute {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
}
.statute-cite {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

/* === State Table === */
.state-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
}
.state-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid var(--ink);
}
.state-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.state-table tr:hover td { background: rgba(201, 162, 39, 0.07); }
.state-table a { color: var(--ink); text-decoration: none; font-weight: 500; }
.state-table a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.state-name { font-family: var(--serif); font-weight: 600; }
.status-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  border: 1px solid;
}
.status-pill--legal { color: var(--ok); border-color: var(--ok); }
.status-pill--illegal { color: var(--warn); border-color: var(--warn); }
.status-pill--gray { color: var(--accent); border-color: var(--accent); }
.status-pill--pending { color: var(--muted); border-color: var(--muted); }
.status-pill--limited { color: var(--ink); border-color: var(--ink); }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.faq-q {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.faq-a {
  font-family: var(--sans);
  color: var(--ink);
}

/* === Footer === */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-brand::before { content: "§ "; color: var(--accent); }
.footer-tagline { font-style: italic; color: rgba(245, 241, 232, 0.7); margin-bottom: 1rem; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245, 241, 232, 0.6);
}

/* === Reading progress (replaced for legibility) === */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* === Print === */
@media print {
  .nav-bar, footer, .reading-progress, .hero-cta { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .verdict, .statute { border: 1px solid black; }
}

/* === Responsive === */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1.1rem; }
  .verdict { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem; }
  .verdict-mark { font-size: 2.5rem; }
}
