/* ============================================================
   AM2K — Site-wide Stylesheet
   Andy Meyer 2000, revived 2026
   ------------------------------------------------------------
   This is the single shared stylesheet for every page on the
   site. Link it from every HTML file:
     <link rel="stylesheet" href="/assets/css/styles.css">

   To change the secondary accent later (e.g. slate -> plum),
   edit ONE line: --secondary, below. Everything else updates
   automatically.
   ============================================================ */

/* ---------- Fonts ---------- */
/* Loaded via <link> in each page's <head>, e.g.:
   <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
   Archivo = primary display font. Fredoka = accent only (header badge). */

:root {
  /* ---- Color tokens ---- */
  --navy: #003464;        /* true logo color — primary brand */
  --navy-soft: #0F4676;   /* hover/lighter navy */
  --secondary: #3D4C5C;   /* deep slate blue-gray — subject to change later */
  --secondary-dark: #2C3844;
  --electric: #2B95E0;    /* accent — use sparingly: links, hovers, CTAs */
  --off-white: #F4F6F7;   /* panel / page background */
  --white: #FFFFFF;
  --charcoal: #1B222B;    /* body text */
  --charcoal-soft: #4B5563; /* secondary text */
  --hairline: #DCE3E6;    /* borders/dividers */

  /* ---- Type tokens ---- */
  --font-display: 'Archivo', system-ui, sans-serif;   /* primary headline/nav font */
  --font-accent: 'Fredoka', system-ui, sans-serif;     /* used sparingly — badge only, for now */
  --font-body: 'Inter', system-ui, sans-serif;

  /* ---- Layout tokens ---- */
  --content-max: 1100px;
  --radius: 10px;
  --radius-pill: 100px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.55;
}

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

a {
  color: var(--electric);
  text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.page-title { font-size: 2rem; }
.entry-title,
.section-title { font-size: 1.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.site-header .header-inner {
  padding-top: 28px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header .brand-home {
  display: flex;
  align-items: center;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.site-header .brand-home:hover { text-decoration: none; }

.site-header .logo-mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.site-header .wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header .site-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
  line-height: 1;
}

.site-header .site-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.site-header .site-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.02em;
}

.header-badge {
  margin-left: auto;
  background: var(--electric);
  color: var(--white);
  font-family: var(--font-accent); /* Fredoka lives here, and only here */
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 640px) {
  .site-header .header-inner { padding-top: 20px; padding-bottom: 20px; }
  .site-header .brand-home { gap: clamp(10px, 3.2vw, 16px); }
  .site-header .logo-mark { height: clamp(36px, 12vw, 52px); }
  .site-header .site-eyebrow { font-size: clamp(0.62rem, 2.2vw, 0.78rem); }
  .site-header .site-title { font-size: clamp(1.35rem, 6.5vw, 2.1rem); }
  .header-badge { margin-left: 0; }
}

/* ============================================================
   STATUS STRIP  (the "Today is ___" ticker)
   ============================================================ */
.status-strip {
  background: var(--secondary);
  color: var(--off-white);
}

.status-strip .status-inner {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.status-strip .status-date { font-weight: 600; }
.status-strip .status-quip { font-style: italic; opacity: 0.92; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav { background: var(--navy); }

.site-nav .nav-inner {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--electric);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  text-decoration: none;
}

.site-nav a.active {
  border-bottom-color: var(--electric);
  color: var(--white);
}

.site-nav .external-mark {
  color: var(--electric);
  font-size: 0.82em;
  vertical-align: 0.08em;
}

@media (max-width: 640px) {
  .site-nav .nav-inner { overflow-x: auto; flex-wrap: nowrap; }
}

/* ============================================================
   CALLOUT BOX  (Stone Biscuit-style sidebar/inline callouts)
   ============================================================ */
.callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--white);
  border-left: 4px solid var(--secondary);
  border-top: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.callout .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 4px;
  display: block;
}

.callout p:last-child { margin-bottom: 0; }

.callout-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.callout-row .callout { flex: 1 1 220px; }

/* Electric-accent variant, for the one thing per page that should pop */
.callout--accent { border-left-color: var(--electric); }
.callout--accent .eyebrow { color: var(--electric); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { text-decoration: none; }

.btn--primary {
  background: var(--electric);
  color: var(--white);
}
.btn--primary:hover { background: #2483C8; }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   DATED ENTRY  (blog/log style posts, homepage + archive)
   ============================================================ */
.entry {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.entry:last-child { border-bottom: none; }

.entry .entry-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}

.content-column > .page-title { margin-bottom: 0; }
.entry .entry-title { margin-top: 0; margin-bottom: 0.4em; }
.entry .section-title { margin-top: 32px; }

.entry .entry-body { color: var(--charcoal); }
.entry .entry-body p:last-child { margin-bottom: 0; }

/* ============================================================
   PULL-QUOTE
   ============================================================ */
.pullquote {
  border-top: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  padding: 20px 0;
  margin: 32px 0;
  text-align: center;
}

.pullquote p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.35;
}

.pullquote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--off-white);
  margin-top: 48px;
}

.site-footer .footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}

.site-footer .footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--white);
}

.site-footer .footer-fine-print {
  font-size: 0.78rem;
  color: rgba(244, 246, 247, 0.7);
}

.site-footer a {
  color: var(--off-white);
  text-decoration: underline;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 780px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .two-col > aside {
    padding-bottom: 24px;
    border-bottom: 2px solid var(--hairline);
  }
}

.stack { display: flex; flex-direction: column; gap: 16px; }


/* ============================================================
   POLL WIDGET  (Pit Fights)
   Add this block to the shared assets/css/styles.css — it uses
   only existing color/type/radius tokens, no new ones introduced.
   ============================================================ */
.poll-widget {
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--hairline);
  margin: 24px 0;
}

.poll-widget .poll-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.poll-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.poll-choice:hover,
.poll-choice:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.poll-choice:disabled {
  cursor: default;
  opacity: 0.7;
}

.poll-choice--result {
  border: 1px solid var(--hairline);
  cursor: default;
}

.poll-choice--yours { border-color: var(--electric); }

.poll-choice-label { flex: 0 0 auto; min-width: 120px; }

.poll-choice-bar {
  flex: 1;
  height: 10px;
  background: var(--off-white);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.poll-choice-fill {
  display: block;
  height: 100%;
  background: var(--electric);
  border-radius: var(--radius-pill);
}

.poll-choice-pct {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  width: 40px;
  text-align: right;
}

.poll-meta {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

.poll-status {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}
