/* The Common Wild — the single stylesheet.
   Cream/bone stock, one earth accent, an old system serif, generous margins,
   almost no ornament. Printed by someone who makes things by hand and means them. */

:root {
  --paper: #f5f1e8;      /* cream / bone stock */
  --ink: #211c17;        /* warm near-black */
  --ink-soft: #5b524740; /* hairline rules, muted marks */
  --ink-muted: #6f665b;  /* metadata, secondary text */
  --accent: #8a3b1e;     /* one earth color: burnt sienna / rust */
  --accent-deep: #6e2f17;

  --measure: 36rem;      /* prose line length */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           "Hoefler Text", Georgia, serif;

  /* Self-hosting hook: to add EB Garamond / Crimson later, @font-face it here
     (self-hosted files, never a CDN) and prepend to --serif. Nothing else changes. */
}

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

html {
  font-size: 112.5%; /* ~18px base */
}

body {
  margin: 0;
  padding: 2rem 1.5rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Everything sits on a centered, roomy column. */
.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
}

/* --- Header / masthead --- */
.site-header {
  margin-bottom: 2.5rem;
}

.site-title {
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-tagline {
  margin: 0.15rem 0 1rem;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 1.05rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* --- Links --- */
a {
  color: var(--accent);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-deep);
}

/* --- Prose --- */
.prose {
  font-size: 1.05rem;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.6rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.4rem;
}

p {
  margin: 0 0 1.1rem;
}

blockquote {
  margin: 1.4rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-muted);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-size: 0.95rem;
  text-align: right;
  color: var(--ink-muted);
}

blockquote cite::before {
  content: "— ";
}

hr {
  border: 0;
  border-top: 1px solid var(--ink-soft);
  margin: 2.5rem 0;
}

.entry-meta {
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0;
}

/* --- Home --- */
.lede {
  font-size: 1.2rem;
  color: var(--ink-muted);
}

/* --- Section index lists (Field Notes, Offices) --- */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--ink-soft);
}

.entry-list li:first-child {
  border-top: 0;
}

.entry-list h2,
.entry-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.entry-list a {
  color: var(--ink);
  text-decoration: none;
}

.entry-list a:hover {
  color: var(--accent);
}

.entry-list p {
  margin: 0.15rem 0 0;
  color: var(--ink-muted);
}

/* --- Offices --- */
.office-links .download {
  font-weight: 600;
}

/* --- Footer --- */
.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-soft);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

/* --- Print: booklet-friendly, ink on paper --- */
@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .site-nav,
  .site-tagline,
  .site-footer {
    display: none;
  }
}
