:root {
  color-scheme: light;
  --iron: #132333;
  --iron-soft: #2c4050;
  --iron-faint: rgba(19, 35, 51, 0.08);
  --vellum: #efe7d5;
  --vellum-deep: #e5dac3;
  --sheet: #fbf7ed;
  --oxblood: #7f2330;
  --oxblood-bright: #a6414d;
  --brass: #a47832;
  --moss: #526459;
  --rule: rgba(19, 35, 51, 0.24);
  --rule-light: rgba(239, 231, 213, 0.24);
  --shadow: 0 28px 80px rgba(19, 35, 51, 0.16);
  --display: "Iowan Old Style", Baskerville, "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Gill Sans", "Segoe UI", sans-serif;
  --label: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--body);
  background: var(--vellum);
  color: var(--iron);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 13% 18%, rgba(127, 35, 48, 0.045), transparent 20rem),
    radial-gradient(circle at 82% 10%, rgba(169, 126, 53, 0.055), transparent 25rem),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(19, 35, 51, 0.012) 5px 6px),
    var(--vellum);
  color: var(--iron);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  background: var(--iron);
  color: var(--sheet);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 2rem;
  width: min(1360px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  text-decoration: none;
}

.brand-nib {
  width: 2rem;
  height: 2.7rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wordmark-copy {
  display: grid;
  gap: 0.1rem;
}

.wordmark-copy strong {
  font-family: var(--display);
  font-size: 1.24rem;
  letter-spacing: -0.015em;
}

.wordmark-copy small {
  font-family: var(--label);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0;
  text-decoration: none;
  font-size: 0.83rem;
}

nav a span {
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 700;
}

nav a:hover {
  box-shadow: 0 1px 0 var(--iron);
}

.header-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-status > span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--oxblood);
  box-shadow: 0 0 0 3px rgba(127, 35, 48, 0.12);
  transform: rotate(45deg);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  width: min(1260px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.15rem 0 5.75rem;
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(2rem, 8vw, 7.5rem);
  width: 1px;
  background: rgba(127, 35, 48, 0.22);
  content: "";
  pointer-events: none;
}

.hero-register-line,
.dialog-register-line {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--label);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.72fr);
  gap: clamp(3.5rem, 8vw, 8rem);
  align-items: center;
  min-height: 720px;
  padding: 4.75rem 0 1rem clamp(2rem, 8vw, 7.5rem);
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #d4ac66;
}

h1,
h2,
.card-name,
.record-name {
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 7.5rem);
  letter-spacing: -0.055em;
  line-height: 0.82;
}

h1 em {
  color: var(--oxblood);
  font-weight: 400;
}

.hero-deck {
  max-width: 640px;
  margin: 2.25rem 0 0;
  color: var(--iron-soft);
  font-size: clamp(1.04rem, 1.45vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--iron);
  border-radius: 0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.button-primary {
  background: var(--iron);
  color: var(--sheet);
}

.button-primary span {
  color: #d4ac66;
  font-size: 1rem;
}

.button-secondary {
  background: rgba(251, 247, 237, 0.4);
}

.button:hover {
  box-shadow: inset 0 -3px 0 var(--oxblood);
}

.curator-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  max-width: 620px;
  margin: 3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--iron-soft);
  font-family: var(--display);
  font-size: 0.97rem;
  font-style: italic;
  line-height: 1.55;
}

.curator-rule span {
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specimen-folio {
  position: relative;
  padding: 1.15rem;
  border: 1px solid var(--iron);
  background: var(--sheet);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  transform: rotate(0.8deg);
}

.specimen-folio::after {
  position: absolute;
  inset: 0.45rem;
  border: 1px solid var(--rule);
  content: "";
  pointer-events: none;
}

.folio-topline,
.folio-identification,
.results-line,
.rights-book-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.folio-topline {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0.3rem 0.85rem;
}

.folio-topline span:last-child {
  color: var(--moss);
}

.pen-plate {
  position: relative;
  z-index: 1;
  margin: 0 0.3rem;
  background: var(--iron);
  color: var(--vellum);
}

.pen-plate svg {
  display: block;
  width: 100%;
  height: auto;
}

.pen-plate text {
  fill: rgba(239, 231, 213, 0.62);
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 1.4px;
}

.plate-guides {
  fill: none;
  stroke: rgba(239, 231, 213, 0.2);
  stroke-width: 1;
}

.pen-drawing {
  fill: none;
  stroke: var(--vellum);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.folio-identification {
  position: relative;
  z-index: 1;
  align-items: end;
  margin: 1.4rem 0.3rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.folio-identification p {
  margin: 0;
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: none;
}

.folio-identification p span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.folio-status {
  color: var(--moss);
}

.specimen-folio dl {
  position: relative;
  z-index: 1;
  margin: 0 0.3rem;
}

.specimen-folio dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.specimen-folio dt {
  color: var(--iron-soft);
  font-size: 0.73rem;
}

.specimen-folio dd {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
}

.blocked-value {
  color: var(--oxblood);
}

.evidence-seal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin: 1.1rem 0.3rem 0 auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(127, 35, 48, 0.5);
  color: var(--oxblood);
  transform: rotate(-4deg);
}

.evidence-seal svg {
  width: 1.1rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.evidence-seal span {
  font-family: var(--label);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.register-status {
  display: grid;
  grid-template-columns: 1.1fr 3fr;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  background: rgba(251, 247, 237, 0.38);
}

.status-intro {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  padding: 2rem max(1.5rem, calc((100vw - 1260px) / 2));
  border-right: 1px solid var(--iron);
}

.status-intro span,
.register-status dt {
  font-family: var(--label);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-intro strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
}

.register-status dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

.register-status dl div {
  display: flex;
  min-height: 140px;
  flex-direction: column-reverse;
  justify-content: center;
  padding: 1.4rem clamp(1rem, 2.6vw, 2.5rem);
  border-right: 1px solid var(--rule);
}

.register-status dl div:last-child {
  border-right: 0;
}

.register-status dd {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.9;
}

.register-status dt {
  color: var(--iron-soft);
}

.register-status .status-held {
  background: var(--iron);
  color: var(--vellum);
}

.register-status .status-held dd {
  color: #d8a4a8;
  font-style: italic;
}

.register-status .status-held dt {
  color: rgba(239, 231, 213, 0.65);
}

.catalog-section,
.method-section {
  width: min(1260px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0;
}

.section-index {
  display: grid;
  grid-template-columns: 4rem auto;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 2.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--label);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-index span:first-child {
  color: var(--oxblood);
}

.section-index-light {
  border-color: var(--rule-light);
  color: var(--vellum);
}

.section-index-light span:first-child {
  color: #d4ac66;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.section-heading > p,
.method-manifesto > p:not(.eyebrow) {
  margin: 0;
  color: var(--iron-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.catalog-lookup {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0 1.1rem;
  margin: 4rem 0 1.3rem;
  padding: 1.25rem 1.4rem 1.35rem 0;
  border: 1px solid var(--iron);
  background: rgba(251, 247, 237, 0.58);
  box-shadow: 7px 7px 0 rgba(19, 35, 51, 0.08);
}

.lookup-number {
  grid-row: 1 / 3;
  display: grid;
  place-items: start center;
  align-self: stretch;
  padding-top: 0.2rem;
  border-right: 1px solid var(--rule);
  color: var(--oxblood);
  font-family: var(--display);
  font-size: 2rem;
}

.search-field {
  display: grid;
  gap: 0.3rem;
}

.search-field span {
  font-family: var(--label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--iron);
  border-radius: 0;
  background: transparent;
  color: var(--iron);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
}

.search-field input::placeholder {
  color: rgba(44, 64, 80, 0.38);
}

.maker-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1rem;
}

.filter-button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--rule);
  border-right: 0;
  border-radius: 0;
  background: transparent;
  color: var(--iron-soft);
  cursor: pointer;
  font-family: var(--label);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.filter-button:last-child {
  border-right: 1px solid var(--rule);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--iron);
  background: var(--iron);
  color: var(--sheet);
}

.results-line {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--iron);
  color: var(--iron-soft);
}

.catalog-register {
  min-height: 260px;
}

.maker-chapter {
  display: grid;
  grid-template-columns: 12rem 1fr;
  border-bottom: 1px solid var(--iron);
}

.maker-chapter-heading {
  padding: 2rem 1.4rem 2rem 0;
  border-right: 1px solid var(--rule);
}

.maker-chapter-heading span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.maker-chapter-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.maker-chapter-heading p {
  margin: 0.8rem 0 0;
  color: var(--iron-soft);
  font-family: var(--label);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.maker-records {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.family-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.9rem;
  min-height: 168px;
  align-items: start;
  padding: 1.4rem;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--iron);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.family-card:nth-child(2n) {
  border-right: 0;
}

.family-card:hover {
  background: rgba(251, 247, 237, 0.78);
  box-shadow: inset 4px 0 0 var(--oxblood);
}

.card-index {
  padding-top: 0.3rem;
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 700;
}

.card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: stretch;
}

.card-maker {
  color: var(--iron-soft);
  font-family: var(--label);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-name {
  margin: 0.35rem 0 auto;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.05;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.8rem;
  color: var(--iron-soft);
  font-family: var(--label);
  font-size: 0.55rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-arrow {
  color: var(--brass);
  font-size: 1.1rem;
}

.empty-state {
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--iron);
  text-align: center;
}

.source-gate {
  padding: 6.5rem max(1.5rem, calc((100vw - 1260px) / 2));
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(239, 231, 213, 0.06) 11% calc(11% + 1px), transparent calc(11% + 1px)),
    var(--iron);
  color: var(--vellum);
}

.rights-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  gap: clamp(3.5rem, 8vw, 8rem);
}

.gate-copy h2 {
  font-size: clamp(3.1rem, 5.7vw, 5.7rem);
}

.gate-copy > p:not(.eyebrow) {
  max-width: 630px;
  color: rgba(239, 231, 213, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.gate-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gate-state strong {
  color: #d8a4a8;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
}

.gate-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid #d8a4a8;
  transform: rotate(45deg);
}

.rights-book {
  align-self: start;
  border: 1px solid var(--rule-light);
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.13);
}

.rights-book-heading {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule-light);
  color: rgba(239, 231, 213, 0.58);
}

.source-list > p {
  margin: 0;
  padding: 1.2rem;
}

.source-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--rule-light);
}

.source-row:last-child {
  border-bottom: 0;
}

.source-index {
  color: #d4ac66;
  font-family: var(--label);
  font-size: 0.58rem;
}

.source-row strong,
.source-row span {
  display: block;
}

.source-row strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
}

.source-row .source-use {
  margin-top: 0.32rem;
  color: rgba(239, 231, 213, 0.54);
  font-size: 0.7rem;
  line-height: 1.4;
}

.source-status {
  align-self: center;
  padding: 0.38rem 0.48rem;
  border: 1px solid rgba(216, 164, 168, 0.55);
  color: #e3b7ba;
  font-family: var(--label);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.method-manifesto {
  position: relative;
  padding: 2.2rem;
  border: 1px solid var(--iron);
  background: var(--sheet);
  box-shadow: 8px 8px 0 var(--iron-faint);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.method-manifesto h2 {
  font-size: clamp(3rem, 5vw, 5rem);
}

.method-manifesto > p:not(.eyebrow) {
  margin-top: 1.5rem;
}

.signature-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--iron);
  border-left: 1px solid var(--iron);
  list-style: none;
}

.method-grid li {
  min-height: 245px;
  padding: 1.6rem;
  border-right: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
}

.method-grid span {
  color: var(--oxblood);
  font-family: var(--display);
  font-size: 1.3rem;
}

.method-grid strong {
  display: block;
  margin-top: 4rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--iron-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.detail-dialog {
  width: min(820px, calc(100% - 2rem));
  max-height: min(820px, calc(100vh - 2rem));
  padding: 0;
  border: 1px solid var(--iron);
  border-radius: 0;
  background: var(--sheet);
  color: var(--iron);
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(19, 35, 51, 0.78);
  backdrop-filter: blur(3px);
}

.dialog-register-line {
  padding: 0.75rem 1.6rem;
  border-color: var(--rule);
  color: var(--iron-soft);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem;
  border-bottom: 1px solid var(--rule);
}

.dialog-header h2 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.dialog-close {
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--iron);
  border-radius: 0;
  background: transparent;
  color: var(--iron);
  cursor: pointer;
  font-family: var(--label);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-close span {
  margin-left: 0.35rem;
  font-family: var(--body);
  font-size: 1rem;
}

#detail-content {
  padding: 1.7rem;
}

.detail-permalink {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin: -0.4rem 0 1.5rem;
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-underline-offset: 0.3em;
}

.detail-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.7rem;
  border-top: 1px solid var(--iron);
  border-left: 1px solid var(--iron);
}

.detail-status div {
  padding: 1rem;
  border-right: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
}

.detail-status span,
.detail-section h3 {
  color: var(--iron-soft);
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-status strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.detail-section {
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
}

.detail-section h3 {
  margin: 0 0 1rem;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  list-style: none;
}

.variant-list li {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rule);
  border-right: 0;
  font-family: var(--label);
  font-size: 0.59rem;
  text-transform: uppercase;
}

.variant-list li:last-child {
  border-right: 1px solid var(--rule);
}

.related-folio-list li {
  padding: 0;
}

.related-folio-list a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  color: var(--oxblood);
  text-underline-offset: 0.25em;
}

.evidence-list {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.evidence-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(130px, 0.6fr) minmax(240px, 1.4fr);
  gap: 1rem;
  padding: 0.9rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
}

.evidence-list a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-family: var(--display);
  font-size: 0.93rem;
  font-weight: 600;
}

.evidence-list span {
  color: var(--iron-soft);
  font-size: 0.7rem;
  line-height: 1.5;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem max(1.5rem, calc((100vw - 1260px) / 2));
  border-top: 1px solid var(--iron);
  background: var(--sheet);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

footer p {
  margin: 0;
  line-height: 1.5;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 1.25rem;
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  text-underline-offset: 0.25rem;
}

.footer-note,
.footer-edition {
  color: var(--iron-soft);
  font-size: 0.69rem;
}

.footer-note {
  grid-column: 1;
}

.footer-edition {
  justify-self: end;
  font-family: var(--label);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

noscript {
  display: block;
  padding: 1rem;
  background: var(--oxblood);
  color: var(--sheet);
  text-align: center;
}

/* Legal and correspondence folios */

.legal-site-header nav {
  gap: 1.25rem;
}

.legal-site-header nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  box-shadow: 0 1px 0 var(--oxblood);
}

.legal-main {
  width: min(1260px, calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: 7rem;
}

.record-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.5rem;
  color: var(--iron-soft);
  font-family: var(--label);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.record-breadcrumb a {
  color: var(--oxblood);
  text-underline-offset: 0.25em;
}

.record-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.record-facts div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.record-facts dt {
  color: var(--iron-soft);
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-facts dd {
  margin: 0.45rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.record-return {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-underline-offset: 0.28em;
}

.legal-hero {
  position: relative;
  padding: 1rem 0 5.5rem 2.5rem;
  border-left: 1px solid var(--rule);
}

.legal-hero::before {
  position: absolute;
  top: 0;
  left: -0.32rem;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--oxblood);
  content: "";
  transform: rotate(45deg);
}

.legal-hero .hero-register-line {
  margin-bottom: 5rem;
}

.legal-hero h1 {
  max-width: 950px;
  margin: 1rem 0 1.5rem;
  font-size: clamp(4.6rem, 10vw, 8.8rem);
}

.legal-deck {
  max-width: 760px;
  margin: 0;
  color: var(--iron-soft);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1050px;
  margin: 3.5rem 0 0;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
}

.legal-meta div {
  min-width: 0;
  padding: 1.1rem 1rem;
  border-right: 1px solid var(--rule);
}

.legal-meta div:last-child {
  border-right: 0;
}

.legal-meta dt,
.legal-section-number,
.margin-note span,
.public-email span,
.contact-list code {
  color: var(--oxblood);
  font-family: var(--label);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 0.45rem 0 0;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 3.5rem;
  align-items: start;
}

.legal-sheet {
  border-top: 4px solid var(--iron);
  background: var(--sheet);
  box-shadow: var(--shadow);
}

.legal-sheet section {
  padding: 3.2rem clamp(1.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

.legal-sheet section:last-child {
  border-bottom: 0;
}

.legal-sheet h2 {
  max-width: 760px;
  margin: 0.7rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.legal-sheet p,
.legal-sheet li {
  max-width: 760px;
  color: var(--iron-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.legal-sheet p:last-child {
  margin-bottom: 0;
}

.legal-sheet ul {
  padding-left: 1.3rem;
}

.legal-sheet a,
.contact-ledger a,
.contact-boundary a {
  color: var(--oxblood);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
}

.legal-sheet code,
.contact-list code {
  overflow-wrap: anywhere;
  background: var(--vellum-deep);
}

.legal-sheet code {
  padding: 0.15rem 0.3rem;
  font-family: var(--label);
  font-size: 0.8em;
}

.legal-margin {
  display: grid;
  gap: 1rem;
}

.margin-note {
  padding: 1.5rem;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--rule);
}

.margin-note:nth-child(2n) {
  background: rgba(251, 247, 237, 0.56);
}

.margin-note p {
  margin: 0.75rem 0 0;
  color: var(--iron-soft);
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.55;
}

.legal-email-button {
  width: fit-content;
  margin-top: 2rem;
}

.public-email {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1.2rem 0 0;
  overflow-wrap: anywhere;
  color: var(--iron-soft);
}

.contact-ledger {
  padding: 5.5rem 0 0;
  border-top: 1px solid var(--iron);
}

.contact-list {
  margin: 3rem 0 0;
  padding: 0;
  border-top: 4px solid var(--iron);
  background: var(--sheet);
  box-shadow: var(--shadow);
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(180px, 0.38fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-number {
  color: var(--brass);
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
}

.contact-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
}

.contact-list p {
  max-width: 650px;
  margin: 0.7rem 0 1rem;
  color: var(--iron-soft);
  line-height: 1.65;
}

.contact-list a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.contact-list code {
  display: block;
  padding: 0.9rem;
  color: var(--iron);
  line-height: 1.5;
  text-transform: none;
}

.contact-boundary {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding: 3rem;
  background: var(--iron);
  color: var(--vellum);
}

.contact-boundary h2 {
  margin: 0.6rem 0 0;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.05;
}

.contact-boundary p {
  margin: 0;
  color: var(--vellum);
  line-height: 1.7;
}

.contact-boundary a {
  color: #d4ac66;
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .specimen-folio {
    width: min(100%, 610px);
    margin-left: auto;
    transform: none;
  }

  .register-status {
    grid-template-columns: 1fr;
  }

  .status-intro {
    padding: 1.2rem 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--iron);
  }

  .rights-layout,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .rights-book {
    width: 100%;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-margin {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-boundary {
    grid-template-columns: 1fr 1fr;
  }

  .contact-boundary > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .catalog-section,
  .method-section,
  .legal-main {
    width: min(100% - 2rem, 1260px);
  }

  .legal-hero {
    padding: 1rem 0 4rem 1rem;
  }

  .legal-hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.5rem);
  }

  .legal-hero .hero-register-line {
    margin-bottom: 3.5rem;
  }

  .legal-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-meta div:nth-child(2) {
    border-right: 0;
  }

  .legal-meta div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .legal-margin {
    grid-template-columns: 1fr;
  }

  .contact-list li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 2rem 1.5rem;
  }

  .contact-list code {
    grid-column: 2;
  }

  .contact-boundary {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .contact-boundary > div {
    grid-column: 1;
  }

  .wordmark-copy small {
    display: none;
  }

  .header-status {
    font-size: 0.54rem;
  }

  .hero-register-line span:last-child,
  .dialog-register-line span:last-child {
    display: none;
  }

  .hero::before {
    left: 1rem;
  }

  .hero-layout {
    padding: 3.5rem 0 0 1rem;
  }

  h1 {
    font-size: clamp(3.8rem, 16vw, 6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .curator-rule {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .register-status dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .register-status dl div:nth-child(2) {
    border-right: 0;
  }

  .register-status dl div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .catalog-lookup {
    grid-template-columns: 2.8rem 1fr;
    padding-right: 0.85rem;
  }

  .maker-filters {
    gap: 0.4rem;
  }

  .filter-button,
  .filter-button:last-child {
    border: 1px solid var(--rule);
  }

  .results-line span:last-child {
    display: none;
  }

  .maker-chapter {
    grid-template-columns: 1fr;
  }

  .maker-chapter-heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: baseline;
    padding: 1.3rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .maker-chapter-heading span,
  .maker-chapter-heading p {
    margin: 0;
  }

  .maker-records {
    grid-template-columns: 1fr;
  }

  .family-card,
  .family-card:nth-child(2n) {
    border-right: 0;
  }

  .source-gate {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .rights-layout {
    gap: 3rem;
  }

  .source-row {
    grid-template-columns: 1.5rem 1fr;
  }

  .source-status {
    grid-column: 2;
    justify-self: start;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid li {
    min-height: 190px;
  }

  .method-grid strong {
    margin-top: 2.5rem;
  }

  .evidence-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }

  .footer-note,
  .footer-edition {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .wordmark-copy strong {
    font-size: 1.05rem;
  }

  .header-status {
    max-width: 5.8rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 4.2rem);
  }

  .register-status dl {
    grid-template-columns: 1fr;
  }

  .register-status dl div,
  .register-status dl div:nth-child(2) {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .register-status dl div:last-child {
    border-bottom: 0;
  }

  .specimen-folio {
    padding: 0.85rem;
  }

  .folio-identification {
    align-items: start;
    flex-direction: column;
  }

  .folio-identification p {
    font-size: 1.75rem;
  }

  .section-index {
    grid-template-columns: 2rem auto;
  }

  h2,
  .gate-copy h2,
  .method-manifesto h2 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .catalog-lookup {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .lookup-number {
    display: none;
  }

  .family-card {
    grid-template-columns: 2rem 1fr auto;
    padding: 1.1rem 0.75rem;
  }

  .detail-status {
    grid-template-columns: 1fr;
  }

  .legal-meta {
    grid-template-columns: 1fr;
  }

  .legal-meta div,
  .legal-meta div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .legal-meta div:last-child {
    border-bottom: 0;
  }

  .contact-list li {
    grid-template-columns: 1fr;
  }

  .contact-list code {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
