:root {
  --forest:       #1d4d35;
  --forest-mid:   #276646;
  --charcoal:     #222820;
  --charcoal-mid: #3a3a36;
  --emerald-pale: #a8ccb5;
  --bg:           #f5f4ef;
  --white-soft:   #fefefe;
  --text:         #1e1e1e;
  --text-muted:   #595959;
  --border:       #d6d5cb;
}

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

html { font-size: 17px; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--forest) 0%, #163d28 60%, var(--charcoal) 100%);
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 3.25rem;
  border-bottom: 1px solid rgba(168, 204, 181, 0.2);
}

.nav-brand {
  color: var(--white-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-right: auto;
}

.nav-brand:hover { color: var(--emerald-pale); }

header nav a {
  color: var(--emerald-pale);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

header nav a:hover  { color: var(--white-soft); }
header nav a.active { color: var(--white-soft); font-weight: 600; }

/* ── Site banner ── */
.site-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.site-banner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 600px) {
  .site-banner img { height: 100px; }
}

/* ── Main ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: normal;
  color: var(--forest);
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ── Stats grid ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat {
  border-left: 3px solid var(--forest);
  padding: 0.6rem 1.25rem;
}

.stat-number {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--forest);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ── Typography ── */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--forest);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  font-size: 1.4375rem;
  color: var(--charcoal);
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-mid);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p   { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a   { color: var(--forest-mid); }
a:hover { color: var(--forest); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

section { margin-bottom: 2.75rem; }

/* ── Button ── */
.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--white-soft);
  padding: 0.75rem 1.875rem;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.btn:hover { background: var(--forest-mid); color: var(--white-soft); }

/* ── Article / white paper ── */
article {
  max-width: 680px;
}

article h2:first-of-type { margin-top: 0; }

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta p { margin-bottom: 0.25rem; }

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}

.data-table th {
  background: var(--charcoal);
  color: var(--white-soft);
  text-align: left;
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: rgba(168, 204, 181, 0.12); }

/* ── Callout ── */
.callout {
  background: rgba(29, 77, 53, 0.07);
  border-left: 3px solid var(--forest);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

/* ── Appendices ── */
.appendix {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.appendix h2 {
  font-size: 1.125rem;
  color: var(--charcoal-mid);
}

/* ── About page ── */
.about-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.about-portrait {
  float: right;
  width: 200px;
  margin: 0 0 1.5rem 2rem;
  shape-outside: border-box;
}

.about-portrait img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
}

@media (max-width: 600px) {
  .about-portrait {
    float: none;
    width: 160px;
    margin: 0 auto 1.5rem;
  }
}

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 1.5rem 2rem;
  text-align: center;
}

footer a { color: var(--emerald-pale); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── White paper listing ── */
.paper-listing {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  max-width: 680px;
}

.paper-listing h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.paper-listing h2 a {
  text-decoration: none;
  color: var(--forest);
}

.paper-listing h2 a:hover { color: var(--forest-mid); text-decoration: underline; }

.paper-description {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.paper-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  main  { padding: 2rem 1.25rem 4rem; }
  header nav { gap: 1.25rem; padding: 0 1.25rem; }
  .stats { grid-template-columns: 1fr; }
  article { max-width: 100%; }
}

/* ── Trademark mark ──
   Applied to the first or most prominent use of the mark on a surface only —
   the nav brand (site-wide) and the first body use on the homepage. Never on
   repeat mentions, page titles, or alt text. Sized down so it marks the brand
   without shouting; aria-hidden so screen readers don't announce "trademark"
   mid-sentence, which adds nothing legally and hurts the reading. */
.tm {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
}
