:root {
  --ink: #211f1b;
  --muted: #716c63;
  --paper: #fffdf8;
  --background: #f2efe7;
  --line: #d8d1c5;
  --red: #ad1515;
  --red-dark: #821010;
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  line-height: 1.55;
}
a {
  color: var(--red-dark);
}
a:focus-visible {
  outline: 3px solid #e2a52b;
  outline-offset: 3px;
}
.static-header {
  min-height: 62px;
  padding: 12px clamp(16px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #171714;
  color: #fff;
}
.static-header a {
  color: inherit;
  text-decoration: none;
}
.brand-link {
  font-weight: 850;
  letter-spacing: 0.015em;
}
.index-link,
.static-header > a:last-child:not(:first-child) {
  font-size: 14px;
  color: #e7e1d6;
}
.record-page,
.work-index {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}
.record-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(36, 29, 20, 0.12);
}
.record-media {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #20201d;
}
.record-media a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.record-media img {
  display: block;
  max-width: 100%;
  max-height: 700px;
  object-fit: contain;
}
.record-content {
  padding: clamp(24px, 5vw, 58px);
  align-self: center;
}
.record-id {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 9px;
  border: 1px solid #d8aaa1;
  border-radius: 999px;
  background: #f3dfda;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.075em;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.03;
}
.record-lead {
  margin: 0 0 18px;
  color: var(--muted);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #45433f;
  font-size: 12px;
}
.tag.identification {
  background: #f2eee5;
}
.tag.date {
  background: #edf1f5;
}
.tag.source {
  border-color: #b9cfbd;
  background: #e7f0e8;
  color: #285735;
}
.context {
  margin: 0 0 28px;
  font-size: 17px;
}
.primary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.primary-action:hover {
  background: var(--red-dark);
}
.record-section {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.record-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}
.section-note {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.transcription {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.transcription-zone {
  padding: 16px;
  border: 1px solid #e4ddd1;
  border-radius: 9px;
  background: #faf7f0;
}
.transcription-zone h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}
.transcribed-text {
  margin: 0;
  white-space: pre-line;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.transcription-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.source-list {
  margin: 0;
  padding-left: 21px;
}
.source-list li + li {
  margin-top: 10px;
}
.source-list a {
  font-weight: 750;
}
.source-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.citation-section p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.record-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.record-navigation a {
  display: flex;
  flex-direction: column;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  text-decoration: none;
}
.record-navigation a:last-child {
  text-align: right;
}
.record-navigation span {
  color: var(--muted);
  font-size: 12px;
}
.static-footer {
  padding: 24px 16px;
  background: #171714;
  color: #d9d3c8;
  text-align: center;
  font-size: 13px;
}
.work-index h1 {
  margin: 8px 0;
  font-size: clamp(36px, 6vw, 62px);
}
.index-intro {
  margin: 0 0 34px;
  color: var(--muted);
}
.index-category {
  margin-top: 34px;
}
.index-category h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 28px;
}
.index-category ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.index-category li {
  border-bottom: 1px solid var(--line);
}
.index-category li a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 5px;
  color: inherit;
  text-decoration: none;
}
.index-category li a:hover span {
  color: var(--red);
}
.index-category small {
  color: var(--muted);
}
@media (max-width: 760px) {
  .static-header {
    min-height: 54px;
    padding: 10px 14px;
  }
  .record-page,
  .work-index {
    width: min(100% - 24px, 1180px);
    padding-top: 14px;
  }
  .record-shell {
    grid-template-columns: 1fr;
  }
  .record-media {
    min-height: 48vh;
    padding: 12px;
  }
  .record-media img {
    max-height: 54vh;
  }
  .record-content {
    padding: 22px 18px 26px;
  }
  h1 {
    font-size: clamp(29px, 9vw, 42px);
  }
  .record-section {
    padding: 20px 17px;
  }
  .transcription {
    grid-template-columns: 1fr;
  }
  .index-category li a {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .index-category small {
    grid-column: 2;
  }
}
