:root {
  --bg: #050505;
  --ink: #f6f1e8;
  --muted: #c0b6a8;
  --soft: #8f8678;
  --line: rgba(246, 241, 232, 0.16);
  --panel: rgba(13, 13, 13, 0.88);
  --panel-solid: #111111;
  --accent: #c5a469;
  --accent-2: #76999b;
  --blood: #8b1717;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.95)),
    linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%),
    var(--bg);
  background-size: cover, 94px 164px, 94px 164px, cover;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

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

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

.hero {
  min-height: calc(88vh - 72px);
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background-position: center top;
  background-size: cover;
}

.hero-home,
.cta {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.72) 44%, rgba(5, 5, 5, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.34) 34%, rgba(5, 5, 5, 0.56) 100%),
    url("IMG_2696.jpeg");
  background-position: center top;
  background-size: cover;
}

.hero-black-oaths {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.74) 44%, rgba(5, 5, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.34) 36%, rgba(5, 5, 5, 0.5) 100%),
    url("images/black-oaths/black-oaths-hero.jpg");
  background-position: center 42%;
  background-size: cover;
}

.hero-oaths {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.72) 46%, rgba(5, 5, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.36) 36%, rgba(5, 5, 5, 0.52) 100%),
    url("images/oaths-and-banners/oaths-banners-warband.jpg");
  background-position: center 48%;
  background-size: cover;
}

.hero-einvigi {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.76) 43%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.26) 44%, rgba(5, 5, 5, 0.58) 100%),
    url("images/einvigi/einvigi-cover.png");
  background-position: center 46%;
  background-size: cover;
}

.hero-inner,
.wrap,
.footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  padding: clamp(48px, 7vw, 92px) 0 46px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.tag,
.kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(20px, 3.2vw, 29px);
  line-height: 1.38;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

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

.centered {
  justify-content: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.48);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  border-color: var(--accent);
  color: #090909;
  background: var(--accent);
}

.button:hover,
.button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.button.primary:hover,
.button.primary:focus-visible {
  color: #090909;
  background: #e1c17e;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  transform: translateY(1px);
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 18px 60px var(--shadow);
}

.status-item {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.status-item:last-child {
  border-right: 0;
}

.status-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 19px;
}

.status-item span {
  color: var(--muted);
  font-size: 15px;
}

.status-item:hover,
.status-item:focus-visible {
  background: rgba(255, 255, 255, 0.045);
}

section {
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 8vw, 104px) 0;
  background: rgba(5, 5, 5, 0.68);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.split-grid,
.feature-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: stretch;
}

.feature-media {
  min-height: 520px;
  border: 1px solid var(--line);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    url("IMG_2696.jpeg");
  background-position: center top;
  background-size: cover;
  box-shadow: 0 24px 70px var(--shadow);
}

.black-oaths-media {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
    url("images/black-oaths/black-oaths-hero.jpg");
  background-position: center center;
  background-size: cover;
}

.feature-copy {
  display: grid;
  align-content: center;
  padding: 8px 0;
}

.feature-copy p,
.card p,
.panel p {
  color: var(--muted);
  font-size: 17px;
}

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

.card,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel-solid);
  box-shadow: 0 20px 54px var(--shadow);
}

.card {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
}

.panel {
  min-height: 240px;
  padding: 24px;
}

.card-meta,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-meta {
  margin-top: 18px;
}

.pill-row {
  margin: 20px 0 2px;
}

.meta,
.pill {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.downloads {
  background:
    linear-gradient(rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.92)),
    radial-gradient(circle at top left, rgba(118, 153, 155, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(139, 23, 23, 0.18), transparent 38%),
    #080808;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.36);
}

.download-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.download-item span {
  color: var(--muted);
}

.badge {
  padding: 6px 10px;
  border: 1px solid rgba(197, 164, 105, 0.45);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta {
  text-align: center;
}

.narrow {
  max-width: 850px;
}

.game-intro {
  background: rgba(5, 5, 5, 0.76);
}

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

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

.gallery-grid-four {
  margin-bottom: 34px;
}

.gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  box-shadow: 0 20px 54px var(--shadow);
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card-wide img {
  aspect-ratio: 16 / 9;
}

.gallery-card figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 15px;
}

footer {
  padding: 36px 0;
  color: var(--muted);
  background: #050505;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    white-space: normal;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 14px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-home,
  .cta {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.54) 0%, rgba(5, 5, 5, 0.88) 58%, rgba(5, 5, 5, 0.98) 100%),
      url("IMG_2696.jpeg");
    background-position: center top;
    background-size: cover;
  }

  .hero-black-oaths {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.78) 58%, rgba(5, 5, 5, 0.98) 100%),
      url("images/black-oaths/black-oaths-hero.jpg");
    background-position: center top;
    background-size: cover;
  }

  .hero-oaths {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.24) 0%, rgba(5, 5, 5, 0.78) 58%, rgba(5, 5, 5, 0.98) 100%),
      url("images/oaths-and-banners/oaths-banners-warband.jpg");
    background-position: center top;
    background-size: cover;
  }

  .hero-einvigi {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.14) 0%, rgba(5, 5, 5, 0.72) 62%, rgba(5, 5, 5, 0.98) 100%),
      url("images/einvigi/einvigi-cover.png");
    background-position: center top;
    background-size: cover;
  }

  .hero-inner {
    padding-top: 230px;
  }

  .status-strip,
  .section-head,
  .split-grid,
  .feature-grid,
  .cards,
  .lore-grid,
  .gallery-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .status-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .feature-media {
    min-height: 620px;
  }

  .download-item {
    grid-template-columns: 1fr;
  }

  .badge {
    width: fit-content;
  }

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

@media (max-width: 540px) {
  .hero-inner,
  .wrap,
  .nav,
  .status-strip,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding-top: 90px;
  }

  .button {
    width: 100%;
  }

  .feature-media {
    min-height: 460px;
  }

  .card,
  .panel {
    padding: 22px;
  }
}
