:root {
  --ink: #101014;
  --paper: #f2eadc;
  --muted: #70695f;
  --line: rgba(16, 16, 20, 0.15);
  --gold: #f4d36b;
  --teal: #27a6c7;
  --red: #c84a35;
  --green: #2f8064;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 16, 20, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 16, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 20, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 234, 220, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #37312b;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(16, 16, 20, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  min-height: calc(100vh - 82px);
  padding: clamp(28px, 6vw, 76px) clamp(18px, 4vw, 56px) 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7.1vw, 7rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.7vw, 5.15rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 780px;
  color: #2f2b26;
  font-size: clamp(1.08rem, 1.75vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 6px 6px 0 var(--ink);
}

.button.secondary {
  background: transparent;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin: auto 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  font-weight: 950;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f7df9d 0%, #e8a35c 34%, #247f9d 35%, #103b51 100%);
  box-shadow: var(--shadow);
}

#ship-canvas {
  width: min(100%, 720px);
  aspect-ratio: 1200 / 980;
}

.visual-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(16, 16, 20, 0.66);
  backdrop-filter: blur(12px);
}

.visual-caption span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 clamp(18px, 4vw, 56px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.signal-strip article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.signal-strip article:last-child {
  border-right: 0;
}

.signal-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
}

.section {
  padding: clamp(60px, 9vw, 118px) clamp(18px, 4vw, 56px);
}

.two-column,
.ocean-panel,
.editions,
.requirements {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.prose,
.ocean-copy,
.requirements p,
.edition-grid p {
  color: #302c27;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
}

.prose p:last-child,
.ocean-copy p:last-child,
.requirements p:last-child,
.edition-grid p:last-child {
  margin-bottom: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.details-grid article,
.edition-grid article,
.spec-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.ocean-panel {
  align-items: center;
  background: #ffffff;
}

.map-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(244, 211, 107, 0.32), transparent 18%),
    linear-gradient(150deg, #7ec8ce 0%, #226f8b 52%, #123b50 100%);
}

.map-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
}

.map-title {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.island,
.route,
.map-pin {
  position: absolute;
  z-index: 1;
}

.island {
  border: 2px solid var(--ink);
  border-radius: 56% 44% 62% 38%;
  background: #d6a65d;
  box-shadow: inset 0 0 0 12px rgba(47, 128, 100, 0.45);
}

.island-one {
  top: 28%;
  left: 16%;
  width: 118px;
  height: 84px;
}

.island-two {
  right: 18%;
  bottom: 18%;
  width: 150px;
  height: 102px;
  transform: rotate(-14deg);
}

.island-three {
  top: 20%;
  right: 18%;
  width: 82px;
  height: 58px;
}

.route {
  border-top: 4px dashed rgba(255, 255, 255, 0.72);
  transform-origin: left center;
}

.route-one {
  top: 42%;
  left: 28%;
  width: 300px;
  transform: rotate(-15deg);
}

.route-two {
  right: 26%;
  bottom: 37%;
  width: 230px;
  transform: rotate(28deg);
}

.map-pin {
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 950;
}

.havana {
  top: 25%;
  left: 29%;
}

.fort {
  top: 18%;
  right: 12%;
  background: var(--red);
  color: var(--white);
}

.wreck {
  right: 30%;
  bottom: 17%;
  background: var(--gold);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0.18em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.edition-grid,
.spec-grid {
  display: grid;
  gap: 14px;
}

.requirements {
  background: #ffffff;
}

.faq h2 {
  max-width: 980px;
}

details {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 900;
}

details p {
  max-width: 820px;
  padding-bottom: 22px;
  color: #343029;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: #403a32;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

#favicon-canvas {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

@media (max-width: 1050px) {
  .hero,
  .two-column,
  .ocean-panel,
  .editions,
  .requirements {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

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

  .signal-strip article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 5rem);
  }

  .hero-facts,
  .signal-strip,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .signal-strip article:last-child {
    border-bottom: 0;
  }

  .map-card {
    min-height: 430px;
  }

  .button {
    width: 100%;
  }
}
