*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #0d1b2a;
  --ink-2: #13283d;
  --ink-3: #18364f;
  --fog: #f3ecdc;
  --paper: #e1d4bd;
  --muted: #aeb6ae;
  --rust: #b94f28;
  --rust-light: #d96542;
  --line: rgba(243, 236, 220, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --hero-image: url("arctic-viking-cover-2400x1600.webp");
  --hero-min-height: 72vh;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
}

body.hero-court { --hero-min-height: 68vh; }
body.hero-launch { --hero-min-height: 72vh; }
body.capsize-page { --hero-min-height: 82vh; }
body.derkacz-page { --hero-min-height: 80vh; }
body.return-page { --hero-min-height: 78vh; }
body.inquiry-page { --hero-min-height: 80vh; }
body.boyd-page { --hero-min-height: 76vh; }
body.stability-page { --hero-min-height: 78vh; }
body.waddy-page { --hero-min-height: 78vh; }
body.wreck-page { --hero-min-height: 78vh; }
body.commemoration-page { --hero-min-height: 78vh; }
body.gallery-page { --hero-min-height: 70vh; }
body.research-page { --hero-min-height: 68vh; }
body.launch-page { --hero-min-height: 74vh; }
body.chapter-page { --hero-min-height: 78vh; }

img {
  max-width: 100%;
  display: block;
}

a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  background: rgba(13, 27, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.primary-nav {
  min-height: 82px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--fog);
  white-space: nowrap;
}

.brand span { color: var(--rust-light); }

.primary-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  list-style: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}

.primary-nav a:hover { color: var(--fog); }

.primary-nav a[aria-current="page"] {
  color: var(--fog);
  text-decoration: underline;
  text-decoration-color: var(--rust-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fog);
  transition: transform 240ms ease, opacity 160ms ease;
}

.primary-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.primary-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.primary-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.page-nav {
  position: sticky;
  z-index: 9;
  top: 82px;
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px max(40px, calc((100% - 1120px) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(7, 17, 27, 0.88);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-nav-label {
  color: var(--rust-light);
  white-space: nowrap;
}

.page-nav ul {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  list-style: none;
}

.page-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.page-nav a:hover { color: var(--fog); }

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero {
  min-height: 100vh;
  padding: 132px 32px 88px;
  align-items: center;
}

.page-hero {
  min-height: var(--hero-min-height);
  padding: 120px 32px 76px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.24) 0%, rgba(13, 27, 42, 0.64) 58%, rgba(13, 27, 42, 0.96) 100%),
    linear-gradient(90deg, rgba(13, 27, 42, 0.90), rgba(13, 27, 42, 0.36)),
    var(--hero-image) center / cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(0deg, var(--ink), transparent);
}

.hero-inner,
.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 56px;
  align-items: start;
}

.page-hero .hero-inner { display: block; }

.eyebrow,
.section-label,
.fact-label,
.timeline time,
.caption,
.card-label,
.kicker,
.count-label {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--rust-light);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: #d3d2c6;
  font-size: 1.08rem;
}

section {
  padding: 88px 32px;
  border-top: 1px solid var(--line);
}

.intro-grid,
.split {
  display: grid;
  gap: 56px;
  align-items: start;
}

.intro-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.42fr); }
.split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.narrow { width: min(900px, 100%); }

.section-title {
  margin-bottom: 22px;
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
}

.rule {
  width: 52px;
  height: 1px;
  margin: 22px 0 28px;
  background: var(--rust-light);
}

.prose p { color: #c5cbbf; }

.prose .lead {
  color: var(--paper);
  font-size: 1.14rem;
  line-height: 1.78;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(217, 101, 66, 0.55);
  color: var(--fog);
  background: rgba(185, 79, 40, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.manifest,
.fact-panel {
  padding: 28px;
  background: var(--ink-2);
  border-left: 3px solid var(--rust);
  box-shadow: 0 22px 60px var(--shadow);
}

.manifest-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

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

.stat,
.count {
  display: block;
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.stat-label,
.count-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fog);
}

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

.fact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--rust-light);
  font-size: 0.66rem;
}

.book-panel {
  display: grid;
  gap: 0;
}

.book-cover-row img {
  width: min(100%, 320px);
  margin: 0;
  border: 1px solid rgba(243, 236, 220, 0.20);
  box-shadow: 0 28px 70px var(--shadow);
}

.feature,
.cod-war,
.service,
.technical,
.disclaimer,
.list-band,
.split-section {
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.96), rgba(19, 40, 61, 0.84)),
    url("av-logo.jpg") right center / contain no-repeat;
}

.court,
.judgement {
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.96), rgba(19, 40, 61, 0.84)),
    url("court-of-enquiry.webp") center / cover;
}

.cod-war-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 48px;
  align-items: start;
}

.incident-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fog);
}

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

.image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #08121c;
  box-shadow: 0 28px 70px var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image {
  margin: 0 0 30px;
}

.caption {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.timeline {
  position: relative;
  margin-top: 38px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--line);
}

.event {
  position: relative;
  padding: 0 0 32px 30px;
}

.event::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rust);
}

.event.loss::before { background: var(--rust-light); }

.event h3 {
  margin: 6px 0 8px;
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.event p {
  margin-bottom: 0;
  color: #c5cbbf;
}

.quote-band {
  background: var(--ink-3);
  padding: 66px 32px;
}

blockquote {
  width: min(940px, 100%);
  margin: 0 auto;
  padding-left: 32px;
  border-left: 3px solid var(--rust-light);
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-style: italic;
  line-height: 1.45;
}

blockquote cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-grid,
.archive-grid,
.cards,
.crew-grid {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.chapter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cards {
  gap: 28px;
  background: transparent;
  border: 0;
}

.diagram-section {
  background: var(--ink-2);
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.stability-diagram {
  margin: 0;
  background: rgba(7, 17, 27, 0.46);
  border: 1px solid rgba(243, 236, 220, 0.16);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.stability-diagram svg {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 13;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.54), rgba(7, 17, 27, 0.92)),
    radial-gradient(circle at 50% 86%, rgba(217, 101, 66, 0.16), transparent 44%);
}

.stability-diagram figcaption {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.stability-diagram figcaption strong {
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.22;
}

.stability-diagram figcaption span:last-child {
  color: #bac3b8;
  line-height: 1.58;
}

.ship-hull {
  fill: rgba(225, 212, 189, 0.84);
  stroke: rgba(243, 236, 220, 0.88);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ship-hull line {
  stroke: rgba(13, 27, 42, 0.58);
  stroke-width: 3;
}

.sea-line {
  fill: none;
  stroke: #7eb6bf;
  stroke-width: 4;
  stroke-linecap: round;
}

.sea-line.danger {
  stroke: var(--rust-light);
}

.sea-fill {
  fill: rgba(126, 182, 191, 0.18);
}

.sea-fill.danger {
  fill: rgba(217, 101, 66, 0.18);
}

.diagram-arrow,
.flow-arrow,
.support-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.diagram-arrow {
  marker-end: none;
}

.diagram-arrow.weight {
  stroke: var(--rust-light);
}

.diagram-arrow.buoyancy,
.flow-arrow,
.support-line.active {
  stroke: #7eb6bf;
}

.support-line {
  stroke: rgba(174, 182, 174, 0.44);
  stroke-dasharray: 6 7;
}

.flow-arrow {
  marker-end: none;
}

.diagram-label,
.diagram-callout {
  fill: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

.diagram-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-callout {
  font-size: 15px;
}

.crew-grid {
  gap: 28px;
  background: transparent;
  border: 0;
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  background: transparent;
  border: 0;
}

.chapter-card,
.archive-card,
.card,
.crew-card {
  background: var(--ink-2);
}

.chapter-card {
  min-height: 260px;
  padding: 24px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.chapter-card:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
}

.chapter-card h3,
.archive-card h3,
.card h3,
.crew-card h3 {
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
}

.chapter-card h3 { margin-bottom: 12px; font-size: 1.28rem; }
.archive-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.card h3 { margin: 10px 0 12px; font-size: 1.25rem; }
.crew-card h3 { margin-bottom: 8px; font-size: 1.22rem; }

.chapter-card p,
.archive-card p,
.card p,
.crew-card p {
  color: #bac3b8;
}

.chapter-card p,
.card p,
.crew-card p { margin-bottom: 0; }

.card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(243, 236, 220, 0.16);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.card p {
  line-height: 1.62;
}

.archive-card {
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(243, 236, 220, 0.18);
  background: rgba(19, 40, 61, 0.86);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
}

.archive-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(243, 236, 220, 0.12);
}

.archive-card div {
  padding: 22px 8px 8px;
  border-top: 0;
}

.archive-card p {
  margin-bottom: 0;
  line-height: 1.62;
}

.crew-section { background: var(--ink-2); }

.crew-card {
  min-height: 188px;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(243, 236, 220, 0.16);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.crew-card.lost {
  border-left: 3px solid rgba(217, 101, 66, 0.78);
  background: linear-gradient(180deg, rgba(24, 54, 79, 0.92), rgba(13, 27, 42, 1));
}

a.crew-card {
  display: block;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

a.crew-card:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
  border-color: rgba(217, 101, 66, 0.46);
}

.role,
.lost-marker,
.card-link {
  color: var(--rust-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role { margin-bottom: 16px; }
.lost-marker { font-size: 0.66rem; }
.card-link { display: inline-block; margin-top: 18px; }

.name-columns {
  columns: 2;
  column-gap: 48px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.name-columns li {
  break-inside: avoid;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
}

.name-columns span {
  display: block;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
}

section.source-note { background: var(--ink-3); }

p.source-note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.7;
}

.ship-journey-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.journey-link {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 20px 32px;
  align-content: center;
  background: var(--ink-2);
  color: var(--fog);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.journey-link:hover {
  background: var(--ink-3);
  color: var(--paper);
}

.journey-link.next {
  text-align: right;
}

.journey-label {
  color: var(--rust-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journey-link strong {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.bibliography-page .page-hero::before {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.22) 0%, rgba(13, 27, 42, 0.66) 58%, rgba(13, 27, 42, 0.96) 100%),
    linear-gradient(90deg, rgba(13, 27, 42, 0.90), rgba(13, 27, 42, 0.42)),
    var(--hero-image) center / cover;
}

.bibliography-group {
  margin-top: 46px;
}

.bibliography-group:first-of-type {
  margin-top: 0;
}

.bibliography-group h3,
.bibliography-card h3 {
  margin: 0 0 14px;
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.source-intro {
  max-width: 860px;
  color: #c5cbbf;
}

.source-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(7, 17, 27, 0.48);
  -webkit-overflow-scrolling: touch;
}

.source-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #c5cbbf;
  font-size: 0.94rem;
}

.source-table th,
.source-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.source-table th {
  color: var(--rust-light);
  background: rgba(7, 17, 27, 0.74);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.source-table tr:last-child td {
  border-bottom: 0;
}

.source-table td:first-child,
.source-table td:nth-child(2) {
  color: var(--paper);
  white-space: nowrap;
}

.source-table td:last-child,
.file-ref {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
  word-break: break-word;
}

.bibliography-grid,
.repository-grid {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bibliography-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bibliography-card {
  min-height: 220px;
  padding: 24px;
  background: var(--ink-2);
}

.bibliography-card p {
  margin-bottom: 12px;
  color: #c5cbbf;
}

.bibliography-card p:last-child {
  margin-bottom: 0;
}

.repository-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.repository-grid a {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 22px;
  background: var(--ink-2);
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.16rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.repository-grid a:hover {
  background: var(--ink-3);
}

.note {
  padding: 28px;
  background: rgba(13, 27, 42, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px var(--shadow);
}

.obsidian-logo {
  width: 92px;
  margin: 0 0 24px;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--rust-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-form {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.check-field {
  color: var(--fog);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(243, 236, 220, 0.24);
  border-radius: 4px;
  background: rgba(13, 27, 42, 0.72);
  color: var(--fog);
  font: inherit;
  padding: 13px 14px;
}

.form-field textarea {
  min-height: 220px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--rust-light);
  outline-offset: 2px;
  border-color: transparent;
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--rust-light);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  margin: 26px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--rust-light);
  background: rgba(243, 236, 220, 0.08);
  color: var(--fog);
  font-family: Arial, Helvetica, sans-serif;
}

.form-status.success { border-left-color: #65a66f; }
.form-status.error { border-left-color: var(--rust); }

footer {
  padding: 44px 32px;
  background: #07111b;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--fog);
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  font-weight: 400;
}

.footer-subtitle {
  display: block;
}

.copyright-notice {
  margin: 12px auto 0;
  max-width: 760px;
  color: #8f9a91;
  font-size: 0.72rem;
  line-height: 1.55;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--fog); }

@media (max-width: 980px) {
  .page-nav { padding: 12px 20px; }
  .hero-inner,
  .intro-grid,
  .split,
  .cod-war-panel { grid-template-columns: 1fr; }
  .crew-grid,
  .diagram-grid,
  .cards { grid-template-columns: 1fr; }
  .chapter-grid,
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .bibliography-grid,
  .repository-grid { grid-template-columns: 1fr; }
  .name-columns { columns: 1; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }

  .primary-nav { padding: 0 24px; }

  .primary-nav ul {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--rust);
  }

  .primary-nav.nav-open ul { display: flex; }

  .primary-nav ul li { width: 100%; }

  .primary-nav ul li a {
    display: block;
    padding: 16px 28px;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav ul li:last-child a { border-bottom: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-nav { padding: 10px 20px; font-size: 0.7rem; }
  .hero { min-height: 92vh; padding: 140px 20px 48px; }
  .page-hero { min-height: var(--hero-min-height); padding: 130px 20px 54px; }
  section { padding: 64px 20px; }
  .quote-band { padding: 48px 20px; }
  blockquote { padding-left: 22px; }
  h1 { font-size: clamp(2.55rem, 15vw, 4.2rem); }
  .research-page .eyebrow,
  .research-page h1,
  .research-page .hero-copy { max-width: 330px; }
  .research-page h1 { font-size: 3.45rem; }
  .bibliography-page h1 { font-size: 3rem; }
  .bibliography-page main { overflow-x: hidden; }
  .bibliography-page .source-table-wrap {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
  .ship-journey-nav { grid-template-columns: 1fr; }
  .journey-link {
    min-height: 82px;
    padding: 18px 20px;
  }
  .journey-link.next { text-align: left; }
  .source-table { font-size: 0.88rem; }
  .source-table th,
  .source-table td { padding: 12px 14px; }
  .capsize-page h1 { font-size: 2.65rem; }
  .derkacz-page .eyebrow,
  .derkacz-page h1,
  .derkacz-page .hero-copy { max-width: 330px; }
  .derkacz-page .eyebrow { font-size: 0.58rem; }
  .derkacz-page h1 { font-size: 2rem; }
  .return-page .eyebrow,
  .return-page h1,
  .return-page .hero-copy { max-width: 330px; }
  .return-page h1 { font-size: 3.15rem; }
  .inquiry-page .eyebrow,
  .inquiry-page h1,
  .inquiry-page .hero-copy { max-width: 330px; }
  .inquiry-page .eyebrow { font-size: 0.58rem; }
  .inquiry-page h1 { font-size: 3.45rem; }
  .boyd-page .eyebrow,
  .boyd-page h1,
  .boyd-page .hero-copy { max-width: 330px; }
  .boyd-page h1 { font-size: 3.15rem; }
  .stability-page .eyebrow,
  .stability-page h1,
  .stability-page .hero-copy { max-width: 330px; }
  .stability-page .eyebrow { font-size: 0.58rem; }
  .stability-page h1 { font-size: 3.35rem; }
  .stability-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .waddy-page .eyebrow,
  .waddy-page h1,
  .waddy-page .hero-copy { max-width: 330px; }
  .waddy-page .eyebrow { font-size: 0.58rem; }
  .waddy-page h1 { font-size: 3.1rem; }
  .waddy-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .wreck-page .eyebrow,
  .wreck-page h1,
  .wreck-page .hero-copy { max-width: 330px; }
  .wreck-page .eyebrow { font-size: 0.58rem; }
  .wreck-page h1 { font-size: 2.75rem; }
  .wreck-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .commemoration-page .eyebrow,
  .commemoration-page h1,
  .commemoration-page .hero-copy { max-width: 330px; }
  .commemoration-page .eyebrow { font-size: 0.58rem; }
  .commemoration-page h1 { font-size: 2.75rem; }
  .commemoration-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .gallery-page .eyebrow,
  .gallery-page h1,
  .gallery-page .hero-copy { max-width: 330px; }
  .gallery-page .eyebrow { font-size: 0.58rem; }
  .gallery-page h1 { font-size: 3.2rem; }
  .john-page .eyebrow,
  .john-page h1,
  .john-page .hero-copy { max-width: 330px; }
  .john-page .eyebrow { font-size: 0.58rem; }
  .john-page h1 { font-size: 2.5rem; }
  .john-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .craft-page .eyebrow,
  .craft-page h1,
  .craft-page .hero-copy { max-width: 330px; }
  .craft-page .eyebrow { font-size: 0.58rem; }
  .craft-page h1 { font-size: 3.25rem; }
  .craft-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .kent-page .eyebrow,
  .kent-page h1,
  .kent-page .hero-copy { max-width: 330px; }
  .kent-page .eyebrow { font-size: 0.54rem; }
  .kent-page h1 { font-size: 3.2rem; }
  .kent-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .lound-page .eyebrow,
  .lound-page h1,
  .lound-page .hero-copy { max-width: 330px; }
  .lound-page .eyebrow { font-size: 0.58rem; }
  .lound-page h1 { font-size: 3.15rem; }
  .lound-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .dodsley-page .eyebrow,
  .dodsley-page h1,
  .dodsley-page .hero-copy { max-width: 330px; }
  .dodsley-page .eyebrow { font-size: 0.58rem; }
  .dodsley-page h1 { font-size: 2.85rem; }
  .dodsley-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .bartle-page .eyebrow,
  .bartle-page h1,
  .bartle-page .hero-copy { max-width: 330px; }
  .bartle-page .eyebrow { font-size: 0.54rem; }
  .bartle-page h1 { font-size: 2.5rem; }
  .bartle-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .dodsworth-page .eyebrow,
  .dodsworth-page h1,
  .dodsworth-page .hero-copy { max-width: 330px; }
  .dodsworth-page .eyebrow { font-size: 0.54rem; }
  .dodsworth-page h1 { font-size: 2.65rem; }
  .dodsworth-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .bailey-page .eyebrow,
  .bailey-page h1,
  .bailey-page .hero-copy { max-width: 330px; }
  .bailey-page .eyebrow { font-size: 0.58rem; }
  .bailey-page h1 { font-size: 3.15rem; }
  .bailey-page .section-title {
    max-width: 320px;
    font-size: 1.95rem;
  }
  .form-grid { grid-template-columns: 1fr; }
  .chapter-grid,
  .archive-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: auto; }
}
