/* Black Sails landing — storm, tavern amber, parchment charts. */
:root {
  --bg: #07080c;
  --bg-elevated: #100e0c;
  --panel: #1a1612;
  --text: #f3ead8;
  --muted: #b7aa96;
  --gold: #e7c98a;
  --gold-dim: #a89062;
  --gold-bright: #f0d7a2;
  --ember: #8e2428;
  --blood: #6e1618;
  --pvp: #c4473a;
  --pvp-glow: rgba(142, 36, 40, 0.45);
  --parchment: #e6d2b0;
  --parchment-ink: #2a2118;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Spectral", "Palatino Linotype", Palatino, serif;
  --radius: 4px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

.ld-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Nav ── */
.ld-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(to bottom, rgba(7, 8, 12, 0.88), transparent);
  transition: background 0.3s, border-color 0.3s;
}

.ld-nav.is-scrolled {
  background: rgba(7, 8, 12, 0.94);
  border-bottom: 1px solid rgba(231, 201, 138, 0.16);
}

.ld-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.ld-logo img {
  height: 58px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.ld-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ld-nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  transition: color 0.2s;
}

.ld-nav-links a:hover {
  color: var(--gold-bright);
}

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
}

.ld-btn--primary {
  background: linear-gradient(180deg, #9d2c2e 0%, var(--blood) 100%);
  color: #f8ecd4;
  border-color: #e7c98a;
  box-shadow: 0 8px 28px var(--pvp-glow);
}

.ld-btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #b53638 0%, #7c1c1e 100%);
  color: #fff8ea;
}

.ld-btn--ghost {
  background: rgba(7, 8, 12, 0.35);
  border-color: rgba(230, 210, 176, 0.45);
  color: var(--parchment);
}

.ld-btn--ghost:hover {
  background: rgba(230, 210, 176, 0.1);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ── Hero ── */
.ld-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #14060a;
}

.ld-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
}

.ld-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 8, 12, 0.94) 0%, rgba(7, 8, 12, 0.55) 32%, rgba(7, 8, 12, 0.15) 58%, rgba(7, 8, 12, 0.28) 100%),
    linear-gradient(to right, rgba(7, 8, 12, 0.55) 0%, transparent 46%);
}

#life,
#ship,
#crew,
#play {
  scroll-margin-top: 4.75rem;
}

.ld-hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 7.5rem 1.5rem 4.2rem;
  margin-left: max(1.5rem, calc((100% - var(--max-w)) / 2));
}

.ld-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #f4efe6;
  margin: 0 0 1rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

.ld-hero-lead {
  margin: 0 0 0.7rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--parchment);
}

.ld-hero-copy {
  margin: 0;
  max-width: 38rem;
  color: rgba(243, 234, 216, 0.86);
  font-size: 1.05rem;
}

.ld-hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.ld-hero-stats {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.ld-stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.ld-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 210, 176, 0.72);
}

/* ── Shared ── */
.ld-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ld-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.6rem;
}

.ld-section-head h2,
.ld-ship-copy h2,
.ld-cta-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.ld-section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: var(--parchment-ink);
}

.ld-section-head p,
.ld-ship-copy p,
.ld-cta-content p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.ld-section-head p {
  color: #4a3b2c;
}

.ld-section-head--light h2 {
  color: var(--parchment);
}

.ld-section-head--light p,
.ld-section-head--light .ld-kicker {
  color: var(--gold);
}

.ld-section-head--light p {
  color: var(--muted);
}

.ld-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ld-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Tavern wall of prints ── */
.ld-wall {
  padding: 5rem 1.5rem 4.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 248, 230, 0.45), transparent 55%),
    linear-gradient(180deg, #efe0c4 0%, var(--parchment) 40%, #d7c09a 100%);
  color: var(--parchment-ink);
}

.ld-prints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.ld-print h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin: 0.9rem 0 0.4rem;
}

.ld-print p {
  margin: 0;
  color: #4e3d2e;
  font-size: 0.98rem;
}

.ld-print-frame {
  background: #1a120c;
  padding: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 18px 40px rgba(60, 30, 10, 0.28);
}

.ld-print-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ld-print:nth-child(1) .ld-print-frame img {
  object-position: 32% 58%;
}

.ld-print:nth-child(3) .ld-print-frame img {
  object-position: 36% center;
}

/* ── Ship / blueprint ── */
.ld-ship {
  padding: 4.5rem 1.5rem 5rem;
  background:
    linear-gradient(180deg, #d7c09a 0%, #cbb489 18%, #1a140f 18.2%);
}

.ld-ship-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: start;
}

.ld-ship-copy {
  background: #f3e6cb;
  color: var(--parchment-ink);
  padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid rgba(70, 46, 22, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  margin-top: -2.2rem;
}

.ld-ship-copy .ld-kicker {
  color: var(--blood);
}

.ld-ship-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--parchment-ink);
}

.ld-ship-copy p {
  color: #3f3226;
}

.ld-articles {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ld-articles li {
  display: grid;
  grid-template-columns: 8.4rem 1fr;
  gap: 0.7rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(70, 46, 22, 0.15);
  font-size: 0.95rem;
  color: #4a3b2c;
}

.ld-articles span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blood);
  padding-top: 0.15rem;
}

.ld-blueprint {
  margin: 0;
}

.ld-blueprint img {
  width: 100%;
  border: 10px solid #efe2c8;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.ld-blueprint figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

/* ── Crew models ── */
.ld-crew {
  padding: 4.5rem 0 0;
  background: #0c0b0a;
}

.ld-crew .ld-container {
  padding: 0 1.5rem;
}

.ld-crew-stage {
  position: relative;
  margin-top: 0.5rem;
  min-height: 640px;
  overflow: hidden;
  background: #1a120c url("assets/posts/dice.jpg") center 42% / cover no-repeat;
}

.ld-crew-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 46%;
  transform: scale(1.18);
  transform-origin: 22% 42%;
}

.ld-crew-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 8, 12, 0.2) 0%, rgba(7, 8, 12, 0.05) 30%, rgba(7, 8, 12, 0.35) 100%);
}

.ld-crew-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.2rem;
  min-height: 640px;
  padding: 2rem 1rem 0;
}

.ld-crew-row figure {
  margin: 0;
  text-align: center;
}

.ld-crew-row img {
  width: auto;
  height: min(520px, 62vh);
  margin: 0 auto;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.65));
}

.ld-crew-row figcaption {
  margin-top: -0.2rem;
  padding-bottom: 1.4rem;
}

.ld-crew-row strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--parchment);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.ld-crew-row span {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(243, 234, 216, 0.8);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ── Beta ── */
.ld-cta {
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(142, 36, 40, 0.18), transparent 42%),
    var(--bg);
}

.ld-cta-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.ld-beta {
  margin: 0;
  padding: 0.7rem;
  background:
    linear-gradient(180deg, #f4e7cc, #d9c29a);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.ld-beta img {
  width: 100%;
}

.ld-cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--parchment);
}

.ld-cta-content p {
  color: var(--muted);
  max-width: 34rem;
}

.ld-cta-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(183, 170, 150, 0.7);
}

.ld-cta-note code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
}

/* ── Footer ── */
.ld-footer {
  padding: 2rem 1.5rem 2.4rem;
  border-top: 1px solid rgba(231, 201, 138, 0.12);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: #07080c;
}

.ld-footer-nav,
.ld-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-bottom: 1rem;
}

.ld-footer-social a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.ld-footer-social a:hover,
.ld-footer-nav a:hover {
  color: var(--gold-bright);
}

.ld-footer-nav a {
  color: var(--muted);
}

.ld-footer-copy {
  margin: 0.8rem 0 0;
}

.ld-footer-payments {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: var(--max-w);
  margin: 0.4rem auto 0;
}

.ld-footer-pay-badge {
  background: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  display: inline-flex;
  line-height: 0;
}

.ld-footer-pay-badge img {
  height: 14px;
  width: auto;
}

@media (max-width: 980px) {
  .ld-prints,
  .ld-ship-grid,
  .ld-cta-layout {
    grid-template-columns: 1fr;
  }

  .ld-ship {
    background: #1a140f;
    padding-top: 0;
  }

  .ld-ship-copy {
    margin-top: 0;
  }

  .ld-crew-stage,
  .ld-crew-row {
    min-height: 0;
  }

  .ld-crew-row {
    flex-wrap: wrap;
    padding-top: 12rem;
  }

  .ld-crew-row img {
    height: 320px;
  }

  .ld-nav-links a:not(.ld-btn) {
    display: none;
  }

  .ld-hero-content {
    margin-left: 0;
    padding-inline: 1.25rem;
  }

  .ld-hero-img {
    object-position: 36% 58%;
  }
}

@media (max-width: 640px) {
  .ld-articles li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .ld-hero h1 {
    font-size: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-reveal {
    animation: none !important;
    transition: none !important;
  }

  .ld-reveal {
    opacity: 1;
    transform: none;
  }
}
