:root {
  color-scheme: dark;
  --ink: #fff8de;
  --muted: #f8df9a;
  --dim: #b67832;
  --panel: #264f75;
  --panel-strong: #136f5f;
  --line: rgba(255, 248, 222, 0.24);
  --sea: #22b7d2;
  --coral: #f05a32;
  --brass: #ffd447;
  --grass: #5abf48;
  --deep: #12335f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #12335f 0%, #1f6d81 52%, #12513f 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(20, 58, 98, 0.94);
  border-bottom: 4px solid rgba(255, 212, 71, 0.9);
  box-shadow: 0 4px 0 rgba(19, 51, 95, 0.75);
}

.brand,
.nav-links,
.hero-actions,
.follow-links,
.post-meta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-size: 0.95rem;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid rgba(255, 248, 222, 0.65);
  background: var(--coral);
  color: var(--brass);
  font-weight: 850;
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a:hover,
.follow-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 6px solid #ffd447;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 51, 95, 0.78) 0%, rgba(18, 51, 95, 0.32) 46%, rgba(18, 51, 95, 0.05) 100%),
    linear-gradient(0deg, rgba(18, 51, 95, 0.46) 0%, rgba(18, 51, 95, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 130px 0 clamp(76px, 12vh, 130px);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  overflow-wrap: normal;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.25rem, 9vw, 8rem);
  font-weight: 920;
  text-shadow: 5px 5px 0 #12335f;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 850;
  text-shadow: 3px 3px 0 rgba(18, 51, 95, 0.85);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #fff8de;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 650;
  text-shadow: 2px 2px 0 rgba(18, 51, 95, 0.9);
  overflow-wrap: anywhere;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 3px solid rgba(18, 51, 95, 0.9);
  border-radius: 8px;
  box-shadow: 0 5px 0 rgba(18, 51, 95, 0.9);
  font-weight: 850;
}

.button-primary {
  background: var(--brass);
  border-color: transparent;
  color: #12335f;
}

.button-secondary {
  background: var(--sea);
  color: #12335f;
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.follow-band {
  padding: clamp(62px, 10vw, 116px) 0;
  background:
    linear-gradient(180deg, rgba(90, 191, 72, 0.9), rgba(19, 111, 95, 0.95)),
    #136f5f;
}

.two-column,
.follow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
}

.body-copy {
  color: #fff8de;
  font-size: 1.06rem;
  overflow-wrap: anywhere;
}

.body-copy p {
  margin: 0;
}

.body-copy p + p {
  margin-top: 18px;
}

.devlog-section {
  padding: clamp(64px, 10vw, 122px) 0;
}

.section-heading {
  margin-bottom: 30px;
}

.devlog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  min-height: 270px;
  background: var(--panel);
  border: 4px solid rgba(255, 248, 222, 0.72);
  border-radius: 8px;
  box-shadow: 0 7px 0 rgba(18, 51, 95, 0.75);
}

.post-card a {
  min-height: 270px;
  display: block;
  padding: 22px;
}

.post-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 42px;
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 850;
}

.post-card p {
  margin: 18px 0 0;
  color: #fff8de;
  overflow-wrap: anywhere;
}

.follow-band {
  background:
    linear-gradient(90deg, rgba(255, 212, 71, 0.24), rgba(240, 90, 50, 0.22)),
    var(--panel-strong);
  border-block: 6px solid rgba(255, 212, 71, 0.85);
}

.listing-page,
.post-page {
  padding-top: 70px;
}

.page-kicker {
  padding: clamp(96px, 14vw, 150px) 0 clamp(44px, 7vw, 72px);
  background:
    linear-gradient(90deg, rgba(18, 51, 95, 0.8), rgba(34, 183, 210, 0.34)),
    url("/assets/images/shellbound-hero.png") center / cover;
  border-bottom: 6px solid var(--brass);
}

.page-kicker h1 {
  max-width: 720px;
}

.page-kicker p {
  max-width: 620px;
  color: #fff8de;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(18, 51, 95, 0.9);
}

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

.post-shell {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 132px) 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brass);
  font-weight: 850;
}

.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 6rem);
}

.post-header time {
  display: inline-flex;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
}

.post-hero-image {
  display: block;
  width: 100%;
  margin: 0 0 36px;
  border: 4px solid rgba(255, 248, 222, 0.72);
  border-radius: 8px;
  box-shadow: 0 7px 0 rgba(18, 51, 95, 0.75);
}

.post-content {
  color: #fff8de;
  font-size: 1.12rem;
  font-weight: 550;
}

.post-content p,
.post-content ul {
  margin: 0 0 22px;
}

.post-content h2 {
  margin: 42px 0 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.post-content li + li {
  margin-top: 8px;
}

.follow-links {
  flex-wrap: wrap;
  gap: 12px;
}

.follow-links a {
  min-width: 112px;
  padding: 14px 18px;
  border: 3px solid rgba(255, 248, 222, 0.72);
  border-radius: 8px;
  background: rgba(18, 51, 95, 0.72);
  text-align: center;
  font-weight: 850;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 48px);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
    gap: clamp(26px, 12vw, 54px);
  }

  .hero {
    min-height: 88svh;
  }

  .hero-art {
    object-position: 66% center;
  }

  .hero-content {
    width: min(100% - 36px, 1120px);
    padding-top: 160px;
  }

  h1,
  .hero-copy {
    max-width: 340px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(18, 51, 95, 0.82) 0%, rgba(18, 51, 95, 0.38) 100%),
      linear-gradient(0deg, rgba(18, 51, 95, 0.5) 0%, rgba(18, 51, 95, 0.05) 54%);
  }

  .two-column,
  .follow-grid,
  .devlog-list,
  .devlog-list-wide {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: auto;
  }

  .post-card a {
    min-height: auto;
  }

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