/*
Theme Name: ALPR Misuse
Theme URI: https://alprmisuse.com
Author: alprmisuse.com
Description: Newspaper-style theme for a public-interest ALPR misuse archive. Pairs with the ALPR Misuse Tracker plugin's [alpr_map], [alpr_landing], and [alpr_states] shortcodes.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: alprmisuse
*/

:root {
  --ink: #14181F;
  --paper: #EDE8DD;
  --paper-dim: #E1DBCB;
  --alert: #B3261E;
  --amber: #C6912F;
  --steel: #5B6472;
  --steel-light: #8B93A0;
  --rule: #C9C2AE;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
}

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

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ============= MASTHEAD ============= */
.masthead {
  text-align: center;
  padding: 30px 5vw 18px;
  border-bottom: 4px double var(--ink);
}

.masthead .dateline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.masthead .sitename {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
}

.masthead .sitename span { color: var(--alert); }

.masthead .tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 8px;
}

/* ============= NAV ============= */
.site-nav {
  background: var(--ink);
  border-bottom: 1px solid #2A3140;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 0;
  padding: 14px 5vw;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
}
.site-nav a:hover { opacity: 1; }

/* ============= LAYOUT ============= */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw;
}

.content-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 46px;
  padding: 50px 0 70px;
}

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ============= HOMEPAGE MAP HERO ============= */
.map-hero {
  padding: 46px 5vw 0;
}

.map-hero .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.map-hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 40px);
  max-width: 760px;
  margin: 0 0 14px;
  line-height: 1.2;
}

.map-hero p {
  max-width: 620px;
  color: var(--steel);
  margin: 0 0 26px;
}

.map-hero .alpr-map-wrap,
#alpr-map {
  border: 1px solid var(--rule);
}

/* ============= NEWSPAPER COLUMNS (post grid) ============= */
.headline-rule {
  border: none;
  border-top: 3px double var(--ink);
  margin: 60px 0 30px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.post-card .byline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.post-card h3 {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--alert); }

.post-card .excerpt {
  font-size: 14.5px;
  color: #333;
}

.post-card .excerpt::first-letter {
  font-family: 'Newsreader', serif;
  font-size: 2.4em;
  float: left;
  line-height: 0.8;
  padding-right: 6px;
  color: var(--alert);
}

/* ============= SIDEBAR ============= */
.sidebar .widget {
  margin-bottom: 40px;
}

.sidebar .widget-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* state index styling inherits from plugin, lightly themed here */
.sidebar .alpr-states-index { max-width: 100%; }
.sidebar .alpr-state-group summary { font-size: 0.95em; }

/* ============= SINGLE / PAGE CONTENT ============= */
.single-article {
  padding: 50px 0 70px;
  max-width: 760px;
  margin: 0 auto;
}

.single-article .byline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}

.single-article h1.entry-title {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 16px;
}

.single-article .entry-content {
  font-size: 17px;
  line-height: 1.75;
}

.single-article .entry-content p:first-of-type::first-letter {
  font-family: 'Newsreader', serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--alert);
}

/* ============= FOOTER ============= */
.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 34px 5vw;
  margin-top: 40px;
  border-top: 4px double #2A3140;
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ============= MISC ============= */
.pagination {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px 0 60px;
}
.pagination a { text-decoration: none; border-bottom: 1px solid var(--ink); }
