/* Center for Intergenerational Settlement
   Paper-white background, near-black text, one institutional accent. */

:root {
  --paper: #faf8f3;
  --ink: #0b0b0b;
  --quiet: #6a6862;
  --rule: #d8d4c9;
  --accent: #7a1f1f;
  --measure: 720px;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  font-family: 'Source Serif 4', 'Source Serif Pro', 'Tiempos Text', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'onum' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
}

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

a.accent {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

/* ---------- Institutional header ---------- */

.masthead {
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.masthead .mark {
  font-variant: small-caps;
  letter-spacing: 0.13em;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.masthead .mark a {
  text-decoration: none;
  color: inherit;
}

.masthead .mark a:hover {
  color: var(--accent);
}

.masthead .self-description {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--quiet);
  margin: 0.9rem auto 0;
  max-width: 30rem;
  line-height: 1.5;
}

.masthead .doctitle {
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 2rem;
  color: var(--quiet);
}

/* ---------- The Ledger (home) ---------- */

.ledger {
  margin-top: 2.5rem;
}

.counter {
  text-align: center;
  padding: 2.75rem 0 2.75rem;
  border-bottom: 1px solid var(--rule);
}

.counter:last-child {
  border-bottom: 0;
}

.counter .label {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.counter .reading {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.05;
  font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.counter .subtext {
  font-style: italic;
  color: var(--quiet);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.counter .caption {
  font-size: 0.78rem;
  color: var(--quiet);
  line-height: 1.5;
  margin-top: 0.9rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.counter .caption .src {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
}

/* ---------- Below the fold: interpretive ---------- */

.interpretive {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}

.interpretive h2 {
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--ink);
}

.interpretive .note {
  margin-bottom: 2rem;
}

.interpretive .note h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.interpretive .note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.interpretive .note p + p {
  margin-top: 0.5rem;
}

/* ---------- Coda ---------- */

.coda {
  text-align: center;
  margin: 4.5rem 0 1.5rem;
  font-style: italic;
  font-size: 1.05rem;
}

.coda a {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- Long-form pages (Proposal, Subject Files) ---------- */

.longform h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.longform .subtitle {
  font-style: italic;
  color: var(--quiet);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.4rem;
}

.longform .prelim {
  font-style: italic;
  color: var(--quiet);
  font-size: 0.92rem;
  line-height: 1.55;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  margin: 1.5rem 0 2.5rem;
}

.longform h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.6rem 0 0.9rem;
  letter-spacing: 0;
}

.longform h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}

.longform p {
  margin: 0 0 1rem;
}

.longform p em {
  font-style: italic;
}

.longform ul,
.longform ol {
  margin: 0 0 1.2rem;
  padding-left: 1.6rem;
}

.longform li {
  margin-bottom: 0.4rem;
}

.longform .dossier {
  font-size: 0.93rem;
  line-height: 1.7;
  border: 1px solid var(--rule);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0 2rem;
  background: rgba(255, 255, 255, 0.4);
}

.longform .dossier strong {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.longform .recommendation {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.6;
}

.footnotes {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--quiet);
  line-height: 1.55;
}

.footnotes ol {
  padding-left: 1.4rem;
}

.footnotes li {
  margin-bottom: 0.6rem;
}

.footnotes li:target {
  color: var(--ink);
}

sup a {
  text-decoration: none;
  font-size: 0.7em;
  padding: 0 0.15em;
  color: var(--accent);
}

sup a:hover {
  text-decoration: underline;
}

/* ---------- Index lists ---------- */

.dossier-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.dossier-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
}

.dossier-list li:last-child {
  border-bottom: 0;
}

.dossier-list a {
  text-decoration: none;
  display: block;
}

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

.dossier-list .number {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--quiet);
  margin-bottom: 0.25rem;
}

.dossier-list .name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.dossier-list .role {
  font-style: italic;
  color: var(--quiet);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}

/* ---------- Page footer ---------- */

.page-footer {
  margin-top: 5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--quiet);
  text-align: center;
}

.page-footer .address {
  font-style: italic;
  margin-bottom: 0.7rem;
}

.page-footer .committee {
  margin-bottom: 0.7rem;
}

.page-footer .committee span + span::before {
  content: ' · ';
  color: var(--rule);
}

.page-footer .nav a {
  margin: 0 0.55rem;
}

.page-footer .nav a.accent {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.page-footer .colophon {
  margin-top: 1.2rem;
  font-style: italic;
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .page-footer .nav,
  .coda {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .counter .reading {
    transition: none;
  }
}
