/* Durham Rare & Brief — web expression of the Strategic Framework visual system.
   Tokens are canonical; do not drift. 60/30/10: cream paper, navy structure, warm accent. */

:root {
  --navy: #00467F;
  --deep-navy: #0A3A66;
  --clay: #8E443F;
  --red: #D23B40;
  --gold: #E3A12A;
  --bright-gold: #FFD24F;
  --cream: #F7F1E6;
  --ink: #2B2C31;
  --cool: #E9EEF3;
  --sand: #EFE7D6;
  --rule: #DBD3C2;
  --muted: #847B68;

  --spine: 16px;
  --measure: 42rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-left: var(--spine);
  background: var(--cream);
  color: var(--ink);
  font-family: 'Libre Franklin', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* The spine — the brand's most recognizable structural mark, on every page. */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--spine);
  background: var(--navy);
  z-index: 10;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: var(--measure); }

a { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Type ---------- */
h1, h2, h3, .serif {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 400;               /* never bold the serif */
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 .5rem; }

h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 2.75rem 0 1rem;
  padding-bottom: .5rem;
  position: relative;
}
h2::after {                        /* the short gold underline rule */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--gold);
}

h3 {
  font-family: 'Libre Franklin', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  margin: 1.75rem 0 .35rem;
}

.eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .5rem;
}

.lead {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 1.25rem;
}

.meta {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

p { margin: 0 0 1.15rem; }

/* ---------- Masthead ---------- */
.masthead { background: var(--navy); color: #fff; }
.masthead .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.masthead .kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bright-gold); margin: 0 0 .75rem;
}
.masthead h1, .masthead .title {
  color: #fff;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 .75rem;
}
.masthead .title a { color: #fff; text-decoration: none; }
.masthead .tagline { color: var(--cool); font-size: .95rem; margin: 0; }
.masthead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.masthead img.motif { width: 130px; height: auto; flex: none; }

/* ---------- Breadcrumb bar ---------- */
.bar { border-bottom: 1px solid var(--rule); background: var(--cream); }
.bar .wrap {
  padding-top: .9rem; padding-bottom: .9rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.bar a { color: var(--clay); text-decoration: none; font-weight: 700; }
.bar a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
main { padding: 2.5rem 0 3.5rem; }
article p, article ul, article ol { max-width: var(--measure); }

/* ---------- Download button ---------- */
.download {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  margin: .25rem 0 2rem;
}
.download:hover { background: var(--deep-navy); }

/* ---------- Callout: sand, red left border ---------- */
.callout {
  background: var(--sand);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Pull quote on navy ---------- */
.pullquote {
  background: var(--deep-navy);
  padding: 1.75rem 2rem;
  margin: 2.25rem 0;
  max-width: var(--measure);
}
.pullquote p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 .9rem;
}
.pullquote .mark { color: var(--bright-gold); }
.pullquote cite {
  display: block;
  font-family: 'Libre Franklin', sans-serif;
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bright-gold);
}

/* ---------- Stat cards ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0; max-width: var(--measure); }
.stat {
  flex: 1 1 10rem;
  background: var(--cool);
  padding: 1.15rem 1rem;
  border-bottom: 3px solid var(--navy);
}
.stat.gold { border-bottom-color: var(--gold); }
.stat.clay { border-bottom-color: var(--clay); }
.stat .n {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--navy);
}
.stat .label {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
  padding-top: .35rem;
}

/* ---------- Diamond bullets ---------- */
ul.diamond { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
ul.diamond li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; }
ul.diamond li::before {
  content: "\25C6";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-size: .7rem;
  line-height: 1.9;
}

/* ---------- Table ---------- */
table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 1.25rem 0 1.75rem; border: 1px solid var(--rule); font-size: .9rem; }
th { background: var(--navy); color: #fff; text-align: left; padding: .65rem .85rem; font-size: .78rem; }
td { padding: .65rem .85rem; vertical-align: top; }
tbody tr:nth-child(odd) td { background: var(--cream); }
tbody tr:nth-child(even) td { background: var(--cool); }

/* ---------- Library index ---------- */
.shelf { margin: 0 0 3rem; }
.shelf > .eyebrow { margin-bottom: 1rem; }
.card {
  display: block;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  background: #FDFBF6;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-left-color .15s ease, transform .15s ease;
}
.card:hover { border-left-color: var(--red); transform: translateX(2px); }
.card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 .4rem;
}
.card p { margin: 0 0 .6rem; font-size: .92rem; color: var(--ink); max-width: none; }
.card .stamp {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.intro { max-width: var(--measure); margin: 2.5rem 0 3rem; }

/* ---------- Figure ---------- */
figure { margin: 2rem 0; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: #fff; }
figcaption { font-size: .78rem; color: var(--muted); padding-top: .6rem; }

/* ---------- Back panel footer ---------- */
footer.backpanel { background: var(--deep-navy); color: var(--cool); margin-top: 3rem; }
footer.backpanel .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; text-align: center; }
footer.backpanel img { width: 140px; height: auto; margin: 0 auto 1.25rem; display: block; }
footer.backpanel .tag {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 1rem;
}
footer.backpanel .rule { width: 48px; height: 2px; background: var(--gold); margin: 0 auto 1.25rem; }
footer.backpanel p { font-size: .8rem; margin: 0 0 .4rem; }
footer.backpanel a { color: var(--bright-gold); }
footer.backpanel .fine {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .masthead-top { flex-direction: column-reverse; align-items: flex-start; gap: 1.25rem; }
  .masthead img.motif { width: 100px; }
  .stat { flex: 1 1 100%; }
  /* Wide data tables (milestones, reduction targets) scroll rather than break the page. */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
