/* =========================================================================
   paper.css · the shape the four written pages share

   About, CV, Archive and the Atlas are four pages of prose and records with
   nothing running on them. They were nearly given four stylesheets and
   would have drifted apart within a week, so they share one shape: a head,
   then sections, each with a small mono heading, and records inside them.

   Nothing here is decorative. A record is a name, its provenance in a mono
   line, and what it is for, in that order, because that is the order a
   reader reads a citation in.
   ========================================================================= */

body.paper-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pg {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vh, 2.6rem) clamp(0.9rem, 4vw, 2.4rem) 0;
}

/* ----------------------------------------------------------------------
   THE HEAD
   ---------------------------------------------------------------------- */
.pg-head {
  max-width: 52rem;
  padding-bottom: clamp(1.2rem, 4vh, 2rem);
  border-bottom: 1px solid var(--rule);
}

.pg-eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-far);
}

.pg-h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.pg-lede {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: var(--ink-soft);
}

.pg-do {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
}

.pg-note {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-far);
}
.pg-head .pg-note { border-left: 2px solid var(--rule); padding-left: 0.8rem; }


/* ----------------------------------------------------------------------
   A SECTION
   ---------------------------------------------------------------------- */
.pg-sec {
  margin: clamp(1.8rem, 5vh, 3rem) 0 0;
  scroll-margin-top: 5rem;
}

.pg-sec-h {
  margin: 0 0 1rem;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.pg-say {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.pg-cols { display: grid; gap: 1.4rem; }
@media (min-width: 900px) {
  .pg-cols { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
}
.pg-cols p { max-width: 60ch; }
.pg-cols p:first-child { margin-top: 0; }

.pg-side {
  padding: 1rem 1.1rem;
  background: var(--soft-blue);
  border-radius: var(--radius-lg);
}
.pg-side-h {
  margin: 0 0 0.7rem;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-far);
}
.pg-side-say {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pg-side-say:last-child { margin-bottom: 0; }

.pg-facts { margin: 0; display: grid; gap: 0.1rem; }
.pg-facts dt {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-far);
}
.pg-facts dd {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.pg-facts dd:last-child { margin-bottom: 0; }


/* ----------------------------------------------------------------------
   RECORDS

   A name, its provenance, and what it is for. Nothing is a card, because a
   citation is not a card and dressing one up as a card makes it harder to
   read rather than easier.
   ---------------------------------------------------------------------- */
.rec { margin: 0; padding: 0; list-style: none; }
.rec > li {
  padding: 0 0 1.1rem 0.95rem;
  margin-bottom: 1.1rem;
  border-left: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule-soft);
}
.rec > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rec-tight > li { padding-bottom: 0.7rem; margin-bottom: 0.7rem; }

.rec-name {
  margin: 0;
  max-width: 60ch;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
}
.rec-name a { color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--rule); }
.rec-name a:hover { border-color: var(--brand); }

.rec-meta {
  margin: 0.3rem 0 0;
  font-size: 9.5px;
  letter-spacing: 0.11em;
  color: var(--ink-far);
  line-height: 1.6;
}

.rec-say {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.rec-sub {
  margin: 0.7rem 0 0;
  padding: 0 0 0 0.9rem;
  list-style: none;
  border-left: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.3rem;
}
.rec-sub li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.rec-sub .mono { font-size: 9px; letter-spacing: 0.11em; color: var(--ink-far); }


/* ----------------------------------------------------------------------
   THE RESEARCH INTERESTS BLOCK

   Built by pg.js from map.js on the About and CV pages, so an interest
   cannot be listed that has nothing behind it.
   ---------------------------------------------------------------------- */
.pg-topics ul { margin: 0; padding-left: 1.2rem; max-width: 60ch; }
.pg-topics li { margin-bottom: 0.45rem; }

.pg-topic-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.pg-topic {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.pg-topic:hover { border-color: var(--brand); background: var(--brand-wash); }
.pg-topic-name {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}
.pg-topic-q {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.pg-topic-n {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-far);
}
.pg-topic[data-accent="lavender"] { border-left-color: var(--lavender-ink); }
.pg-topic[data-accent="orchid"]   { border-left-color: var(--orchid-ink); }
.pg-topic[data-accent="gold"]     { border-left-color: var(--gold-ink); }


/* ----------------------------------------------------------------------
   THE SCANS, AS ARTEFACTS
   ---------------------------------------------------------------------- */
.arch-scans {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.arch-scans a {
  display: block;
  height: 100%;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.arch-scans a:hover { border-color: var(--brand); }
.arch-scans img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  background: var(--paper-deep);
}
.arch-scan-kind {
  display: block;
  margin: 0.5rem 0 0;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: var(--orchid-ink);
}
.arch-scan-name {
  display: block;
  margin: 0.2rem 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink);
}


/* ----------------------------------------------------------------------
   THE CV IMAGE
   ---------------------------------------------------------------------- */
.pg-cv { margin: 0; max-width: 34rem; }
.pg-cv img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.pg-cv figcaption {
  margin-top: 0.5rem;
  font-size: 9.5px;
  letter-spacing: 0.11em;
  color: var(--ink-far);
}
.pg-links { margin: 1.2rem 0 0; font-size: 11px; letter-spacing: 0.05em; }


/* ----------------------------------------------------------------------
   THE FOOT
   ---------------------------------------------------------------------- */
.pg-foot {
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 1.4rem clamp(0.9rem, 4vw, 2.4rem);
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-far);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.pg-foot p { margin: 0; }
