:root {
  --ink: #111827;
  --muted: #4b5563;
  --line: #d7dce3;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warm: #9f1239;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.site-mark {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a,
.text-link {
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-underline-offset: 4px;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent-strong);
  text-decoration-color: var(--accent-strong);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 48px;
  width: min(1120px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  padding: 36px 0 68px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 3.4rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.32rem;
  line-height: 1.45;
}

.byline {
  margin-bottom: 30px;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-actions,
.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.cover-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 18px;
}

.cover-set figure {
  margin: 0;
}

.cover-set figure:first-child {
  transform: translateY(-22px);
}

.cover-set img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cover-set figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-band div {
  min-height: 112px;
  padding: 26px 24px;
  background: var(--surface);
  text-align: center;
}

.summary-band strong {
  display: block;
  color: var(--accent-strong);
  font-size: 2.1rem;
  line-height: 1;
}

.summary-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.quality h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.edition-card,
.citation-note,
.archive-steps,
.citation-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.edition-card,
.citation-note {
  padding: 24px;
}

.edition-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.edition-card p,
.citation-note p,
.archive-steps p,
.quality p {
  color: var(--muted);
  line-height: 1.65;
}

.edition-card p,
.citation-note p {
  margin-bottom: 18px;
}

.citation-note {
  grid-column: 2 / -1;
  max-width: 520px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.citation-block {
  grid-column: span 2;
  overflow: auto;
}

.citation-block pre {
  margin: 0;
  padding: 24px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.archive-steps {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-steps li {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.archive-steps li:last-child {
  border-right: 0;
}

.archive-steps span {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.archive-steps p {
  margin: 0;
}

.release-links {
  grid-column: 2 / -1;
}

.quality {
  display: grid;
  grid-template-columns: 0.72fr 2fr;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.quality p {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero,
  .section-grid,
  .quality {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 36px;
    padding-top: 18px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .subtitle {
    font-size: 1.15rem;
  }

  .cover-set {
    max-width: 580px;
  }

  .summary-band,
  .archive-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .citation-block,
  .citation-note,
  .archive-steps,
  .release-links {
    grid-column: auto;
  }

  .archive-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-steps li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .hero,
  .section-grid,
  .quality {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .cover-set {
    gap: 12px;
  }

  .summary-band,
  .archive-steps {
    grid-template-columns: 1fr;
  }

  .summary-band div {
    min-height: 96px;
  }

  .archive-steps li,
  .archive-steps li:nth-last-child(-n + 2) {
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }

  .archive-steps li:last-child {
    border-bottom: 0;
  }

  .button {
    width: 100%;
  }
}
