/* ═══════════════════════════════════════════════════════════════════════════
   v49 · Field Notes index, in the reading register.

   Loaded after field-notes-register.css, on the index only. Every selector
   is prefixed `fn-` (or scoped under one), so nothing collides with the
   shared `.section` / `.card` / `.series-*` rules.
   ═══════════════════════════════════════════════════════════════════════════ */

:root { --fn-meta: rgba(var(--text-rgb), .64); --fn-rule: var(--border); }

/* ── Masthead ───────────────────────────────────────────────────────────── */
.fn-mast {
  position: relative;
  padding: clamp(40px, 6.5vw, 96px) 0 clamp(22px, 2.6vw, 32px);
  border-bottom: 2px solid var(--fn-ink-rule);
}
/* The one decorative move: a field-notebook grid behind the nameplate,
   fading out before it reaches the reading area. */
.fn-mast::before {
  content: ''; position: absolute; z-index: -1;
  inset: 0 0 -2px;
  background-image:
    linear-gradient(var(--fn-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--fn-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 0% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 0% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.fn-mast { isolation: isolate; }
.fn-mast h1 {
  max-width: 13ch !important;
  font-size: clamp(44px, 7.2vw, 100px) !important;
  font-weight: 800 !important;
  line-height: .96 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}
.fn-mast-foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 40px; margin-top: clamp(22px, 2.6vw, 34px);
}
.fn-mast .hero-copy { max-width: 46ch !important; margin: 0 !important; color: var(--dim); }
.fn-hero-status {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--fn-meta);
}

/* ── Labels (readout tier: they classify a block) ──────────────────────── */
.fn-label {
  margin: 0 0 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text-sm);
}

/* ── Plates ─────────────────────────────────────────────────────────────── */
.fn-plate {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  background: var(--fn-plate);
}
.fn-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fn-plate--square img { object-position: center 30%; }
.fn-plate--type {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8%;
  background: #070A08; border-color: #070A08;
}
.fn-plate--type b {
  font-size: clamp(30px, 4.6vw, 64px); font-weight: 800; line-height: .9;
  letter-spacing: -.04em; color: #00EF82; font-variant-numeric: tabular-nums;
}
.fn-plate--type small {
  margin-top: .7em; font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.66);
}

/* ── Latest ─────────────────────────────────────────────────────────────── */
.fn-latest-band, .fn-library-band, .quiet-cta { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.fn-latest-band { padding: clamp(32px, 4.4vw, 56px) 0; border-bottom: 1px solid var(--border-bright); }
.fn-latest { display: grid; gap: 26px; }
@media (min-width: 900px) {
  .fn-latest { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 60px); align-items: center; }
}
.fn-latest > * { min-width: 0; }
.fn-latest-plate-link { display: block; border-radius: 10px; }
.fn-latest-plate { transition: border-color .2s linear; }
.fn-latest-plate-link:hover .fn-latest-plate { border-color: var(--accent-text); }
.fn-latest-copy { display: flex; flex-direction: column; align-items: flex-start; }
.fn-latest-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.032em; text-wrap: balance;
}
.fn-latest-title a { color: inherit; }
.fn-latest-title a:hover { color: var(--accent-text); }
.fn-latest-dek { max-width: 44ch; margin: 0 0 20px; font-size: 19px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.fn-latest .fn-meta { margin: 12px 0 24px; }

/* ── Readout row ───────────────────────────────────────────────────────── */
.fn-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; line-height: 1.5;
  letter-spacing: .07em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--fn-meta);
}
.fn-meta > * + *::before {
  content: ''; display: inline-block; width: 1px; height: .95em;
  margin: 0 10px; vertical-align: -.12em; background: var(--border-bright);
}
.fn-meta .fn-topic { color: var(--accent-text-sm); }

/* ── Library ────────────────────────────────────────────────────────────── */
.fn-library-band { padding-top: clamp(32px, 4.4vw, 56px); }
.fn-library { display: grid; gap: 48px; }
.fn-library > * { min-width: 0; }
@media (min-width: 1024px) {
  .fn-library { grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(40px, 5vw, 80px); align-items: start; }
  .fn-aside { position: sticky; top: 80px; }
}
.fn-library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.fn-library-head h2 {
  margin: 0; font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 800;
  line-height: 1.1; letter-spacing: -.025em;
}
.fn-count { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fn-meta); font-variant-numeric: tabular-nums; }

/* Filter buttons need the script; without it the bar carries the name only. */
html:not(.fn-js) .fn-filters { display: none; }

.fn-year + .fn-year { margin-top: 20px; }
.fn-year-label {
  display: flex; align-items: center; gap: 14px;
  margin: 0; padding: 22px 0 2px;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; color: var(--white);
}
.fn-year-label::after { content: ''; flex: 1; height: 1px; background: var(--border-bright); }
.fn-list { list-style: none; margin: 0; padding: 0; }

.fn-entry > a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 176px;
  gap: 0 clamp(18px, 2.4vw, 32px); align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--fn-rule);
  color: inherit;
}
.fn-entry:last-child > a { border-bottom: 0; }
.fn-entry-date {
  padding-top: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--fn-meta);
}
.fn-entry-main { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.fn-entry-title {
  font-size: clamp(20px, 2vw, 25px); font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em; text-wrap: balance;
  transition: color .2s var(--ease-out);
}
.fn-entry-dek { max-width: 62ch; font-size: 16.5px; line-height: 1.62; color: var(--dim); text-wrap: pretty; }
.fn-entry .fn-meta { margin-top: 3px; }
.fn-entry .fn-plate { border-radius: 8px; transition: border-color .2s linear; }
.fn-entry .fn-plate--type b { font-size: 30px; }
.fn-entry .fn-plate--type small { display: none; }
.fn-entry > a:hover .fn-entry-title { color: var(--accent-text); }
.fn-entry > a:hover .fn-plate { border-color: var(--accent-text); }
.fn-entry > a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 4px; }
.fn-entry[hidden], .fn-year[hidden] { display: none; }
.fn-empty { padding: 28px 0; font-size: 16px; color: var(--dim); }
.fn-empty[hidden] { display: none; }

/* ── Aside ──────────────────────────────────────────────────────────────── */
.fn-aside-block { padding-top: 18px; border-top: 2px solid var(--fn-ink-rule); }
.fn-aside-block + .fn-aside-block { margin-top: 36px; }
.fn-aside h2 { font-size: 21px !important; font-weight: 800; line-height: 1.2 !important; letter-spacing: -.015em; margin: 0 0 8px; }
.fn-aside p:not(.fn-label) { font-size: 15px; line-height: 1.6; color: var(--dim); margin: 0; }
.fn-path { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: fn-step; }
.fn-path li { position: relative; counter-increment: fn-step; }
.fn-path a {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px;
  padding: 11px 0; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  color: var(--white);
}
.fn-path a::before {
  content: counter(fn-step, decimal-leading-zero); padding-top: 2px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-text-sm); font-variant-numeric: tabular-nums;
}
/* This content is a sequence, so a rail joins the steps. */
.fn-path li:not(:last-child)::after {
  content: ''; position: absolute; left: 8px; top: 34px; bottom: -8px;
  width: 1px; background: var(--border-bright);
}
.fn-path a:hover { color: var(--accent-text); }
.fn-follow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fn-follow a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border-bright); border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--white);
  transition: border-color .18s linear;
}
.fn-follow a:hover { border-color: var(--accent-text); }

/* ── Small screens ─────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .fn-mast-foot { display: block; }
  .fn-hero-status { margin-top: 16px; }
  .fn-entry > a { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px 16px; padding: 22px 0; }
  .fn-entry-date { grid-column: 1 / -1; padding-top: 0; }
  .fn-entry-main { grid-column: 1; }
  .fn-entry .fn-plate { grid-column: 2; grid-row: 2; aspect-ratio: 1 / 1; }
  .fn-entry .fn-plate--type b { font-size: 24px; }
  .fn-entry-dek { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .fn-meta { gap: 4px 14px; }
  .fn-meta > * + *::before { content: none; }
  .fn-latest-dek { font-size: 17px; }
}
@media (max-width: 480px) {
  .fn-entry > a { grid-template-columns: minmax(0, 1fr) 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .fn-entry-title, .fn-plate, .fn-latest-plate { transition: none; }
}
@media (max-width: 899px) { .fn-latest-plate-link { order: 2; } }
