@import url("/shared/brand.css?v=20260807a");

:root {
  --ink: #1a1917;
  --ink-raised: #22211e;
  --ink-soft: #2b2925;
  --paper: #e7e1d5;
  --paper-soft: #afa89a;
  --muted: #7b766d;
  --line: rgba(231, 225, 213, 0.12);
  --line-strong: rgba(231, 225, 213, 0.25);
  --accent: #91836d;
  --accent-soft: rgba(145, 131, 109, 0.12);
  --shadow: 8px 10px 0 rgba(0, 0, 0, 0.24);
  --radius: 2px;
  --radius-sm: 1px;
}

html[data-theme="light"] {
  --ink: #e9e5dc;
  --ink-raised: #f3efe7;
  --ink-soft: #ddd7cc;
  --paper: #2a2925;
  --paper-soft: #565248;
  --muted: #777168;
  --line: rgba(42, 41, 37, 0.12);
  --line-strong: rgba(42, 41, 37, 0.25);
  --accent: #6f634f;
  --accent-soft: rgba(111, 99, 79, 0.1);
  --shadow: 8px 10px 0 rgba(62, 55, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

/* site chrome: shared/brand.css */

.archive-view {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 138px) 0 90px;
}

.archive-intro {
  max-width: 800px;
  margin-bottom: 64px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.archive-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

.archive-tools label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.archive-tools input,
.archive-tools select {
  height: 40px;
  padding: 0 12px;
  background: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 13px;
}

.archive-tools input:focus,
.archive-tools select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.result-count {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.record-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 28px;
  background: var(--ink-raised);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.record-card:hover,
.record-card:focus-visible {
  z-index: 1;
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-1px);
}

.record-number {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.record-card h2 {
  margin: 48px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
}

.record-card .deck {
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.8;
  word-break: keep-all;
}

.record-open {
  margin-top: 20px;
  color: var(--paper);
  font-size: 12px;
}

.record-open::after {
  content: "  →";
  color: var(--accent);
}

.empty-state {
  padding: 70px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

.archive-note {
  max-width: 680px;
  margin-top: 54px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
}

.archive-note p {
  margin: 0;
}

.case-view {
  display: grid;
  width: min(1180px, calc(100% - 44px));
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(54px, 8vw, 110px);
  justify-content: center;
  margin: 0 auto;
  padding: 70px 0 120px;
}

.case-rail {
  align-self: start;
  position: sticky;
  top: 104px;
}

.back-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

.back-link::before {
  content: "←  ";
}

.case-index {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-index p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.case-index ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-index a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  color: var(--paper-soft);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.case-index a:hover,
.case-index a:focus-visible {
  color: var(--accent);
}

.case-index span {
  color: var(--muted);
}

.case-header {
  padding: 38px 0 64px;
  border-bottom: 1px solid var(--line-strong);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.case-meta span {
  padding: 5px 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}

.case-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.case-header > p {
  margin: 28px 0 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.9;
  word-break: keep-all;
}

.case-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.case-actions button {
  padding: 9px 11px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper-soft);
  font-size: 12px;
  cursor: pointer;
}

.case-actions button:hover,
.case-actions button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.case-actions span {
  color: var(--muted);
  font-size: 11px;
}

.document-stack {
  counter-reset: record-document;
}

.record-document {
  counter-increment: record-document;
  padding: 76px 0;
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: 86px;
}

.document-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.document-label::before {
  content: counter(record-document, decimal-leading-zero);
  color: var(--muted);
}

.record-document h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 11px;
}

.document-body {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 2;
}

.document-body p {
  margin: 0;
  text-align: justify;
  text-justify: inter-character;
  word-break: normal;
  overflow-wrap: break-word;
}

.document-body p + p {
  margin-top: 1.5em;
}

.case-footer {
  padding-top: 58px;
}

.case-footer a {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-card {
    min-height: 330px;
  }

  .case-view {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-rail {
    position: static;
  }

  .case-index {
    display: none;
  }
}

@media (max-width: 620px) {
  .archive-view,
  .case-view {
    width: min(100% - 32px, 720px);
  }

  .archive-view {
    padding-top: 64px;
  }

  .archive-intro {
    margin-bottom: 46px;
  }

  .archive-intro h1 br {
    display: none;
  }

  .archive-tools {
    grid-template-columns: 1fr;
  }

  .record-card {
    min-height: 0;
    padding: 24px;
  }

  .record-card h2 {
    margin-top: 34px;
  }

  .case-view {
    padding-top: 36px;
  }

  .case-header {
    padding-top: 28px;
  }

  .record-document {
    padding: 58px 0;
  }

  .document-body p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* 2026 editorial reframe */
.archive-intro h1,
.record-card h2,
.case-header h1,
.record-document h2,
.related-content h2,
.related-card strong {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.archive-intro h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.15;
}

.record-card {
  box-shadow: inset 0 2px 0 var(--accent);
}
