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

:root {
  --bg:       #f5f0e8;
  --paper:    #fdfaf4;
  --ink:      #1a1a18;
  --muted:    #6b6657;
  --border:   #d8d0be;
  --honey:    #d4820a;
  --honey-lt: #f0a832;
  --green:    #3a6b4a;
  --red:      #b03a2e;
  --blue:     #1a5276;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid #2a2a28;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Bitter', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--honey-lt);
  letter-spacing: 0.02em;
}
.header-nav { display: flex; gap: 2rem; }
.header-nav a {
  color: #9a9080;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--honey-lt); }

/* ── Hero ── */
.hero {
  background: var(--ink);
  color: var(--bg);
  padding: 5rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,130,10,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey-lt);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Bitter', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
}
.hero h1 em {
  font-style: italic;
  color: var(--honey-lt);
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: #9a9080;
  max-width: 500px;
  line-height: 1.6;
}

/* ── Shared section styles ── */
.section-header {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}
.section-header h2 {
  font-family: 'Bitter', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
}

/* ── Map ── */
.map-section {
  padding: 4rem 0 3rem;
  background: var(--bg);
}
.map-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
#chartdiv {
  width: 100%;
  height: 520px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.map-hint {
  text-align: center;
  margin-top: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── Stats ── */
.stats-section {
  padding: 4rem 0 3rem;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.stat-card {
  background: var(--paper);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-icon { font-size: 1.4rem; }
.stat-value {
  font-family: 'Bitter', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-top: 0.2rem;
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.3rem;
}
.stat-card.accent-honey .stat-value { color: var(--honey); }
.stat-card.accent-green .stat-value  { color: var(--green); }
.stat-card.accent-red .stat-value    { color: var(--red); }
.stat-card.accent-blue .stat-value   { color: var(--blue); }

.stats-updated {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: right;
}

/* ── Subscribe ── */
.subscribe-section {
  padding: 5rem 0;
  background: var(--bg);
}
.subscribe-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.subscribe-text h2 {
  font-family: 'Bitter', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.subscribe-text p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
}
.subscribe-bullets {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.subscribe-bullets li {
  font-size: 0.88rem;
  color: var(--ink);
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-card input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-card input[type="email"]:focus {
  border-color: var(--honey);
}
.form-card button {
  width: 100%;
  padding: 0.8rem;
  background: var(--honey);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.form-card button:hover { background: var(--honey-lt); }
.form-note {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
.form-msg {
  font-size: 0.8rem;
  text-align: center;
  min-height: 1rem;
}
.form-msg.success { color: var(--green); }
.form-msg.error   { color: var(--red); }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: #9a9080;
  padding: 2rem;
  border-top: 1px solid #2a2a28;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Bitter', serif;
  font-size: 1rem;
  color: var(--honey-lt);
}
.footer-note { font-size: 0.78rem; }
.footer-note a { color: var(--honey); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .subscribe-inner { grid-template-columns: 1fr; gap: 2rem; }
  .header-nav { display: none; }
  #chartdiv { height: 320px; }
}
