/* Brigandine Abyss independent guide site
   Official-adjacent navy / steel / teal. Mobile-first responsive. */

:root {
  --navy: #0f1a3b;
  --steel: #34476e;
  --teal: #5997a4;
  --nav-theme: 199 30% 50%;
  --nav-theme-light: 190 32% 62%;
  --bg: #0f1a3b;
  --bg-soft: #152246;
  --card: #1a2a4a;
  --border: #34476e;
  --text: #e8eef4;
  --text-dim: #9eb0c0;
  --link: #7eb8c4;
  --ink-on-accent: #0f1a3b;
  --display: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgb(89 151 164 / .12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid hsl(48 80% 60%);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: .2px;
}
.brand:hover { text-decoration: none; }
.brand .accent { color: hsl(var(--nav-theme)); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-left: auto;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-dim);
  font-size: .95rem;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- layout ---------- */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}
.breadcrumbs {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ---------- hero ---------- */
.hero {
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(165deg, rgb(15 26 59 / .88), rgb(21 34 70 / .94)),
    url("diagrams/hex-wash.svg");
  background-size: auto, 84px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgb(89 151 164 / .22);
  padding: 34px 24px;
  margin-bottom: 28px;
}
.hero .eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
  font-weight: 600;
}
.hero h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: 2.35rem;
  line-height: 1.12;
}
.hero p.lead { color: var(--text-dim); font-size: 1.05rem; max-width: 640px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
  gap: 24px;
  align-items: center;
}
.hero-grid .hero-copy { min-width: 0; }
.quick-answer {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 16px;
  align-items: start;
  margin: -12px 0 30px;
  padding: 16px 18px;
  border: 1px solid rgb(89 151 164 / .4);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #152246, var(--card));
  box-shadow: inset 0 1px 0 rgb(89 151 164 / .14);
}
.quick-answer .label {
  margin: 2px 0 0;
  color: hsl(var(--nav-theme-light));
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.quick-answer p:last-child { margin: 0; }
.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: .83rem;
}
.evidence {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid hsl(144 35% 40% / .7);
  border-radius: 999px;
  background: hsl(144 28% 16%);
  color: hsl(144 50% 73%);
  font-weight: 600;
}
.evidence.verify {
  border-color: hsl(48 65% 45% / .8);
  background: hsl(48 30% 15%);
  color: hsl(48 80% 72%);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.hero-stats .stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--text-dim);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--teal);
  color: var(--ink-on-accent);
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .95rem;
}
.btn:hover { background: #7eb8c4; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: hsl(var(--nav-theme)); }

/* ---------- visual media ---------- */
.video-card {
  margin: 0;
  min-width: 0;
}
.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(89 151 164 / .55);
  border-radius: 12px;
  background: #0b1228;
  box-shadow: 0 14px 35px hsl(220 30% 5% / .35);
}
.video-shell button {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: #0b1228;
  cursor: pointer;
}
.video-shell button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, hsl(220 30% 5% / .8));
}
.video-shell img,
.video-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.play-mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: hsl(12 78% 52% / .94);
  box-shadow: 0 8px 25px hsl(220 30% 5% / .45);
}
.play-mark::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 15px;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.video-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 14px;
  text-align: left;
  font-size: .86rem;
  font-weight: 650;
  text-shadow: 0 2px 8px #000;
}
.video-card figcaption,
.diagram figcaption {
  color: var(--text-dim);
  font-size: .82rem;
  margin-top: 8px;
}
.video-card figcaption a,
.diagram figcaption a,
.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-dim);
  text-decoration: underline;
}
.diagram {
  margin: 18px 0 6px;
}
.diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #152246;
}

/* ---------- sections & cards ---------- */
section.block { margin: 30px 0; }
h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 14px;
  border-left: 4px solid var(--teal);
  padding-left: 10px;
}
h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: 20px 0 8px;
}
p { margin: 0 0 12px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}
.card-art {
  display: block;
  width: calc(100% + 32px);
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  margin: -16px -16px 13px;
  border-bottom: 1px solid var(--border);
  background: #152246;
}
.card .num {
  color: var(--teal);
  font-weight: 700;
  font-size: .85rem;
  display: block;
  margin-bottom: 4px;
}
.card h3 { margin: 0 0 6px; }
.card h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.card p { color: var(--text-dim); font-size: .92rem; margin: 0; }

table.facts {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0;
}
table.facts th, table.facts td {
  text-align: left;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: .93rem;
}
table.facts th { background: var(--bg-soft); color: var(--text-dim); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding: 10px 0 10px 42px;
  border-bottom: 1px dashed var(--border);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 10px;
  width: 28px; height: 28px;
  background: var(--teal);
  color: var(--ink-on-accent);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.checklist input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 12px 0 0;
  accent-color: hsl(var(--nav-theme));
}
.checklist label {
  display: block;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- callouts ---------- */
.callout {
  border-left: 4px solid hsl(48 80% 60%);
  background: hsl(48 30% 14%);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 16px 0;
  font-size: .95rem;
}
.callout.warn {
  border-left-color: hsl(12 75% 60%);
  background: hsl(12 30% 14%);
}
.callout .tag {
  display: block;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}

/* ---------- sources ---------- */
.sources ul { padding-left: 18px; }
.sources li { font-size: .9rem; color: var(--text-dim); margin: 6px 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 26px 16px;
  color: var(--text-dim);
  font-size: .88rem;
}
.site-footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
}
.site-footer .col { max-width: 340px; }
.site-footer .footer-heading { color: var(--text); margin: 0 0 8px; font-size: .95rem; font-weight: 700; }
.site-footer a { color: var(--text-dim); }
.site-footer p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: .35rem;
}
.site-footer p a + a { margin-left: .35rem; }
.site-footer .fine { font-size: .8rem; margin-top: 14px; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 24px 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-nav { margin-left: 0; width: 100%; }
  .page { padding-top: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  table.facts th, table.facts td { overflow-wrap: anywhere; }
  .evidence-row { gap: 6px; }
  .quick-answer { grid-template-columns: 1fr; gap: 4px; margin-top: -10px; }
  .play-mark { width: 60px; height: 46px; }
  .play-mark::after { left: 25px; top: 13px; border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
