/* ===================================================================
   THE FIELD RECORD — front-page typesetting
   -------------------------------------------------------------------
   Loaded after strata.css, and only used by the home page.

   The brief was that the front page read hand-made rather than
   generated. Concretely that meant removing four things, each of which
   is a tell:

     1. Rows of enormous numbers in equal boxes. A number in a box
        asserts and cannot be qualified. Numbers here sit inside
        sentences, where they can carry a caveat.
     2. Numbered feature cards (01 / 02 / 03). Replaced with running
        prose and a drawn figure.
     3. Symmetric grids of identical tiles. Replaced with one wide
        column and a narrow marginal rail — the way a monograph sets
        annotations, and deliberately unbalanced.
     4. Placeholder-shaped content. The specimen label quotes a real
        dossier verbatim; the index lists the real roster.

   Everything below serves those four decisions. Where a rule looks
   fussy — leader dots, hanging indents, small-caps ticks — it is
   because typesetting detail is most of what separates "laid out" from
   "designed by a person".
   =================================================================== */

/* ── masthead ──────────────────────────────────────────────────── */

.record__masthead { padding-bottom: 1rem; }

.masthead { max-width: 62rem; }

.masthead__rule {
  height: 1px;
  background: var(--glass-line);
  opacity: 0.5;
}
.masthead__rule--double {
  height: 3px;
  background: linear-gradient(
    to bottom,
    var(--glass-line) 0 1px,
    transparent 1px 2px,
    var(--glass-line) 2px 3px
  );
  opacity: 0.55;
}

.masthead__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0.55rem 0 1.4rem;
}

.masthead__title {
  font-family: var(--font-display);
  font-weight: 600;
  /* Tight and large: a masthead, not a hero headline. */
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}
.masthead__colon { color: var(--accent); }

.masthead__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 0.9rem + 0.55vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 44ch;
  margin: 0 0 1.4rem;
}

/* ── the asymmetric spread ─────────────────────────────────────── */

.record {
  display: grid;
  gap: clamp(1.4rem, 3vw, 3.2rem);
  /* Deliberately uneven: a wide text column and a narrow rail. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  align-items: start;
}
@media (max-width: 860px) {
  .record { grid-template-columns: 1fr; }
}

.record__body p {
  font-size: clamp(1rem, 0.96rem + 0.24vw, 1.12rem);
  line-height: 1.78;
  max-width: 64ch;
  margin: 0 0 1.15em;
}

/* Drop cap. The single clearest signal that a page was set rather than
   assembled — and it only works on a first paragraph with real prose
   behind it, which is why the copy came first. */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.5em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
  font-weight: 600;
}

.record__margin {
  border-left: 1px solid var(--glass-line-dim);
  padding-left: clamp(0.9rem, 1.6vw, 1.4rem);
}
@media (max-width: 860px) {
  .record__margin {
    border-left: 0;
    border-top: 1px solid var(--glass-line-dim);
    padding: 1.2rem 0 0;
  }
}

.marginal {
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--ink-dim);
  margin: 0 0 1.1rem;
}
.marginal b { color: var(--ink); font-weight: 600; }
.marginal--hand {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-faint);
}

.record__aside {
  font-size: 0.92rem;
  color: var(--ink-dim);
  border-left: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
  padding-left: 1rem;
  margin-top: 1.4rem;
  max-width: 62ch;
}
.record__aside a { color: var(--accent); text-decoration: none; }
.record__aside a:hover { text-decoration: underline; }

.record__h {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  margin: 0 0 0.35em;
}
.record__standfirst {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 54ch;
  margin: 0 0 1.8rem;
}

/* ── Fig. 1 — the drawn core log ───────────────────────────────── */

.figure {
  margin: 0;
  display: grid;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 800px) {
  .figure { grid-template-columns: 1fr; }
}

.figure__plate {
  border: 1px solid var(--glass-line-dim);
  border-radius: 4px;               /* nearly square: a plate, not a card */
  padding: 1.2rem;
  background: color-mix(in oklab, var(--rock-2) 55%, transparent);
}

.corelog { width: 100%; height: auto; color: var(--accent); }
.corelog__tick,
.corelog__note,
.corelog__label {
  font-family: var(--font-mono);
  fill: currentColor;
}
.corelog__tick  { font-size: 9px; opacity: 0.55; }
.corelog__note  { font-size: 8.5px; opacity: 0.6; letter-spacing: 0.06em; }
.corelog__label { font-size: 10px; letter-spacing: 0.18em; opacity: 0.95; }

.figure figcaption {
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--ink-dim);
  max-width: 46ch;
}
.figure figcaption b { color: var(--ink); }

/* ── specimen label ────────────────────────────────────────────── */

.specimen {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 800px) { .specimen { grid-template-columns: 1fr; } }

/* A museum label: squared corners, ruled, monospaced catalogue number. */
.specimen__label {
  border: 1px solid var(--glass-line);
  border-radius: 3px;
  padding: 1.1rem 1.2rem;
  background: color-mix(in oklab, var(--rock-1) 60%, transparent);
}
.specimen__cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin: 0 0 0.7rem;
}
.specimen__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.1;
}
.specimen__meta {
  font-size: 0.76rem;
  color: var(--ink-dim);
  margin: 0.3rem 0 0.9rem;
  text-transform: capitalize;
}
.specimen__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
  border-top: 1px solid var(--glass-line-dim);
  padding-top: 0.8rem;
}
.specimen__facts dt {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.specimen__facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.specimen__quote { margin: 0; }
.specimen__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
  line-height: 1.62;
  color: var(--ink);
  margin: 0 0 0.9rem;
  max-width: 54ch;
  /* Hanging opening quote, set in the margin. */
  text-indent: -0.42em;
}
.specimen__quote p::before { content: "\201C"; color: var(--accent); }
.specimen__quote p::after  { content: "\201D"; color: var(--accent); }
.specimen__quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ── the index ─────────────────────────────────────────────────── */

.index {
  columns: 2;
  column-gap: clamp(1.6rem, 4vw, 3.6rem);
}
@media (max-width: 760px) { .index { columns: 1; } }

.index__group {
  break-inside: avoid;
  margin: 0 0 1.7rem;
}

.index__tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--glass-line-dim);
  padding-bottom: 0.35rem;
  margin: 0 0 0.55rem;
}
.index__tier span { color: var(--ink-faint); }

.index__list { list-style: none; margin: 0; padding: 0; }
.index__list li + li { margin-top: 0.1rem; }

.index__list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.22rem 0;
  color: var(--ink);
  transition: color 160ms var(--ease);
}
.index__list a:hover { color: var(--accent); }

.index__name { white-space: nowrap; font-size: 0.95rem; }
.index__dag { color: var(--accent); font-size: 0.7em; }

/* Leader dots — the detail that makes this read as a set index rather
   than a list of links. */
.index__leader {
  flex: 1;
  border-bottom: 1px dotted var(--glass-line);
  transform: translateY(-0.22em);
  opacity: 0.65;
  min-width: 1.5rem;
}

.index__fact {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ── almanac ───────────────────────────────────────────────────── */

.almanac { list-style: none; margin: 0; padding: 0; counter-reset: none; }

.almanac__row {
  display: grid;
  grid-template-columns: 2.6rem 1px minmax(0, 1fr) minmax(0, 12rem);
  gap: 0 clamp(0.8rem, 2vw, 1.6rem);
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--glass-line-dim);
}
.almanac__row:last-child { border-bottom: 1px solid var(--glass-line-dim); }
@media (max-width: 780px) {
  .almanac__row { grid-template-columns: 2.2rem 1px minmax(0, 1fr); }
  .almanac__thrive { grid-column: 3; }
}

.almanac__no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding-top: 0.15rem;
}
.almanac__mark {
  align-self: stretch;
  background: var(--swatch);
  opacity: 0.85;
}
.almanac__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  color: var(--swatch);
}
.almanac__sum {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.almanac__eff {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.almanac__thrive {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-align: right;
}
@media (max-width: 780px) { .almanac__thrive { text-align: left; margin-top: .5rem; } }

/* ── colophon ──────────────────────────────────────────────────── */

.colophon { max-width: 56ch; }
.colophon__rule {
  height: 3px;
  margin-bottom: 1.4rem;
  background: linear-gradient(
    to bottom,
    var(--glass-line) 0 1px,
    transparent 1px 2px,
    var(--glass-line) 2px 3px
  );
  opacity: 0.55;
}
.colophon p { font-size: 1rem; line-height: 1.75; }
.colophon__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}
.colophon__foot {
  font-size: 0.78rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--glass-line-dim);
  padding-top: 1rem;
  line-height: 1.7;
}

/* ── print ─────────────────────────────────────────────────────── */

@media print {
  .record { grid-template-columns: 1fr; }
  .index { columns: 2; }
  .index__list a { color: #000; }
}
