/* ============================================================
   jeremymace.com — site stylesheet
   Tokens are 1:1 with DESIGN.md. Production fonts: futura-pt +
   itc-giovanni via Adobe Fonts kit nao1gqd (loaded per-page).
   Fallbacks: Jost, Alegreya (Google Fonts). Kit has Futura PT
   400/700 only — "Medium" roles are set at 700.
   ============================================================ */

:root {
  --blue: #00A3D9;
  --blue-hover: #0086B8;
  --ink: #17323E;
  --ink-muted: #4E6B78;
  --paper: #F5F3E4;
  --paper-white: #FFFFFF;
  --map-tint: #CFE8F5;
  --grid: rgba(0, 163, 217, 0.14);
  --accent: #E8604A;
  --on-blue: #FFFFFF;
  --hairline: rgba(23, 50, 62, 0.30);

  --font-head: "futura-pt", "Jost", Futura, sans-serif;
  --font-body: "itc-giovanni", "Alegreya", Georgia, serif;

  --sp-xxs: 4px; --sp-xs: 8px; --sp-sm: 16px; --sp-md: 24px;
  --sp-lg: 32px; --sp-xl: 48px; --sp-2xl: 64px; --sp-3xl: 96px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
}

img { max-width: 100%; }

.graph {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(0,163,217,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,217,0.22) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-md); }
section { padding: var(--sp-3xl) 0; }
.measure { max-width: 68ch; }

/* ---------- type ---------- */
.display-xl, .display, .heading, .eyebrow, .btn, .nav-links a {
  font-family: var(--font-head); text-transform: uppercase;
}
.display-xl { font-size: 56px; font-weight: 700; line-height: 1.1;  letter-spacing: .14em; }
.display    { font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: .12em; }
.heading    { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: .10em; }
.eyebrow    { font-size: 14px; font-weight: 700; letter-spacing: .28em; color: var(--blue); }
.body-sm    { font-size: 15px; line-height: 1.6; }
.muted      { color: var(--ink-muted); }
p + p { margin-top: var(--sp-sm); }

a { color: var(--blue-hover); }
a:hover { color: var(--blue); }

.section-label { margin-bottom: var(--sp-lg); }
.section-label:after { content: ""; display: block; width: 64px; border-bottom: 3px solid var(--blue); margin-top: var(--sp-xs); }

/* ---------- nav ---------- */
.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-sm) 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); }
.nav-links { display: flex; gap: var(--sp-lg); list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; font-weight: 700; letter-spacing: .24em;
  color: var(--ink); text-decoration: none; padding-bottom: 4px;
}
.nav-links a.active { border-bottom: 2px solid var(--blue); }
.nav-links a:hover { color: var(--blue-hover); }
.mark { display: flex; align-items: center; }
.mark img { height: 40px; width: auto; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-size: 15px; font-weight: 700;
  letter-spacing: .18em; border-radius: 2px; cursor: pointer;
  text-decoration: none; transition: all .15s ease;
}
.btn-primary   { background: var(--blue); color: var(--on-blue) !important; border: none; padding: 14px 28px; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); padding: 12px 26px; }
.btn-secondary:hover { background: var(--ink); color: var(--paper) !important; }
.btn-icon { height: 1.6em; width: auto; vertical-align: -0.35em; margin-right: 10px; }

/* ---------- components ---------- */
.page-frame {
  border: 2px solid var(--blue);
  margin: var(--sp-md);
  padding: var(--sp-3xl) var(--sp-md);
  text-align: center;
}

.boxed-text {
  background: var(--paper-white);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  padding: var(--sp-md) var(--sp-lg);
  margin: 8px;
}

.legend-row {
  display: flex; align-items: flex-start; gap: var(--sp-md);
  padding: var(--sp-md) 0; border-bottom: 1px solid var(--hairline);
}
.legend-row:first-child { border-top: 1px solid var(--hairline); }
.legend-icon { flex: 0 0 40px; height: 40px; margin-top: 4px; }
.legend-icon svg { width: 100%; height: 100%; stroke: var(--ink); fill: none; stroke-width: 2; }
.legend-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.legend-icon-lg { flex: 0 0 72px; height: 72px; margin-top: 0; align-self: center; }
.legend-icon-lg img { width: 100%; height: 100%; object-fit: contain; display: block; }

.stat-block {
  background: var(--map-tint);
  border: 2px solid var(--ink);
  padding: var(--sp-lg);
}
.stat-block .heading { border-bottom: 2px solid var(--ink); padding-bottom: var(--sp-xs); margin-bottom: var(--sp-sm); }
.stat-row { display: flex; justify-content: space-between; gap: var(--sp-sm); padding: var(--sp-xs) 0;
            border-bottom: 1px solid var(--ink); font-size: 15px; }
.stat-row:last-child { border-bottom: none; }
.stat-row .label { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em;
                   text-transform: uppercase; font-size: 13px; white-space: nowrap; }
.stat-row .val { text-align: right; }

.cover-band { background: var(--blue); color: var(--on-blue); text-align: center; }
.cover-band .eyebrow { color: var(--on-blue); opacity: .85; }

.input-group { margin-bottom: var(--sp-sm); }
.input-group label {
  display: block; font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; margin-bottom: var(--sp-xs);
}
.input-group input, .input-group textarea {
  width: 100%; background: var(--paper-white); border: 1px solid var(--ink);
  border-radius: 2px; padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
  color: var(--ink);
}
.input-group input:focus, .input-group textarea:focus {
  border-color: var(--blue); outline: 3px solid var(--grid);
}

.footer { background: var(--ink); color: var(--paper); padding: var(--sp-2xl) 0 var(--sp-xl); font-size: 15px; }
.footer a { color: var(--map-tint); text-decoration: none; }
.footer a:hover { color: var(--on-blue); }
.footer .cols { display: flex; justify-content: space-between; gap: var(--sp-lg); flex-wrap: wrap; }
.footer .eyebrow { color: var(--paper); }
.footer ul { list-style: none; }
.footer li { margin-bottom: var(--sp-xs); }
.footer .legal { margin-top: var(--sp-xl); padding-top: var(--sp-sm); border-top: 1px solid rgba(245,243,228,.25);
                 font-size: 13px; opacity: .7; }

/* placeholder image block — swap for real art */
.img-placeholder {
  background: var(--map-tint);
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted);
  text-align: center; padding: var(--sp-sm);
}

/* sample-content flag — remove when copy is approved */
.sample-flag {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px;
  margin-bottom: var(--sp-xs);
}

/* layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); align-items: start; }
.tinted  { background: var(--map-tint); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .display-xl { font-size: 32px; }
  .display { font-size: 26px; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-frame { margin: var(--sp-sm); padding: var(--sp-2xl) var(--sp-sm); }
  section { padding: var(--sp-2xl) 0; }
}
