@font-face {
  font-family: "Bahast Caudex";
  src: url("wiki/assets/game/ui/fonts/Caudex-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Caudex";
  src: url("wiki/assets/game/ui/fonts/Caudex-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Caudex";
  src: url("wiki/assets/game/ui/fonts/Caudex-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Alegreya Sans";
  src: url("wiki/assets/game/ui/fonts/AlegreyaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Alegreya Sans";
  src: url("wiki/assets/game/ui/fonts/AlegreyaSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Alegreya Sans";
  src: url("wiki/assets/game/ui/fonts/AlegreyaSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Alegreya Sans";
  src: url("wiki/assets/game/ui/fonts/AlegreyaSans-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Alegreya Sans";
  src: url("wiki/assets/game/ui/fonts/AlegreyaSans-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Spectral";
  src: url("wiki/assets/game/ui/fonts/Spectral-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Spectral";
  src: url("wiki/assets/game/ui/fonts/Spectral-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Spectral";
  src: url("wiki/assets/game/ui/fonts/Spectral-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Bahast Spectral";
  src: url("wiki/assets/game/ui/fonts/Spectral-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-display: "Bahast Caudex", Caudex, Georgia, "Times New Roman", serif;
  --font-ui: "Bahast Alegreya Sans", "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --font-lore: "Bahast Spectral", Spectral, Georgia, "Times New Roman", serif;
  --font-numeric: "Bahast Alegreya Sans", "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --ink: #f6ead0;
  --muted: #6f5a36;
  --dim: #8d764d;
  --night: #20160c;
  --deep: #fff4d5;
  --deep-2: #f1dba7;
  --brass: #d6a64c;
  --brass-2: #8b5619;
  --tide: #007c86;
  --line: rgba(139, 86, 25, 0.22);
  --shadow: rgba(0, 0, 0, 0.65);
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5e1b5;
  color: #20160c;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 243, 211, 0), rgba(255, 238, 194, 0.22) 82%),
    url("assets/bahast-website-hero-ship-harbor-v3.png") center top / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 82% 42%, rgba(0, 124, 134, 0.1), transparent 28rem),
    linear-gradient(90deg, rgba(255, 242, 207, 0.42), rgba(255, 239, 199, 0.06) 48%, rgba(255, 229, 169, 0.14));
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem) 1.4rem;
  background:
    linear-gradient(180deg, rgba(246, 224, 177, 0) 78%, rgba(246, 224, 177, 0)),
    rgba(246, 224, 177, 0.8);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -3.85rem;
  left: 0;
  height: 3.85rem;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(246, 224, 177, 0.86), rgba(246, 224, 177, 0));
}

.brand-mark {
  display: inline-flex;
  width: clamp(7rem, 13vw, 11rem);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0.18rem 0.3rem rgba(72, 39, 10, 0.26));
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  color: #61491f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  color: #20160c;
  border-color: #9b611b;
}

.hero {
  position: relative;
  display: grid;
  min-height: 80vh;
  padding: clamp(6.25rem, 12vh, 8.5rem) clamp(1.25rem, 6vw, 6rem) 2.75rem;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 4rem auto 0 0;
  width: min(58rem, 76vw);
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 22% 34%, rgba(255, 239, 194, 0.78), rgba(255, 239, 194, 0.42) 42%, rgba(255, 239, 194, 0) 72%),
    linear-gradient(90deg, rgba(255, 239, 194, 0.5), rgba(255, 239, 194, 0));
}

.hero-content {
  position: relative;
  width: min(44rem, 100%);
}

h1 {
  margin: 0 0 1rem;
  color: #3a250d;
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  text-shadow:
    0 1px 0 rgba(255, 246, 214, 0.64),
    0 0.15em 0.28em rgba(119, 76, 19, 0.16);
}

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

h2 {
  max-width: 13ch;
  margin-bottom: 1.15rem;
  color: #3a250d;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
}

h3 {
  margin-bottom: 0.65rem;
  color: #4d310f;
  font-family: var(--font-display);
  font-size: 1.24rem;
}

p {
  color: var(--muted);
  font-family: var(--font-lore);
  font-size: 1rem;
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: #8b5619;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 35rem;
  color: #241607;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.5;
  text-shadow: 0 1px 0 rgba(255, 248, 224, 0.7);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(139, 86, 25, 0.44);
  background: linear-gradient(180deg, #ffe49b, #d59638);
  color: #241504;
  box-shadow: 0 1rem 2rem rgba(120, 72, 18, 0.2);
}

.button.secondary {
  background: rgba(255, 247, 224, 0.7);
  color: #4b310f;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-status span {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(139, 86, 25, 0.24);
  border-radius: 999px;
  background: rgba(255, 246, 221, 0.68);
  backdrop-filter: blur(10px);
}

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 6vw, 6rem);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(19rem, 0.68fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(255, 239, 199, 0.95), rgba(255, 245, 220, 0.98));
  border-top: 1px solid rgba(139, 86, 25, 0.14);
}

.section-copy {
  max-width: 46rem;
}

.section-copy p {
  max-width: 42rem;
}

.loop-list {
  display: grid;
  gap: 1rem;
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: loop;
}

.loop-list li {
  position: relative;
  min-height: 8rem;
  padding: 1.25rem 1.25rem 1.25rem 4.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 240, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  counter-increment: loop;
}

.loop-list li::before {
  position: absolute;
  top: 1.1rem;
  left: 1.15rem;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(139, 86, 25, 0.34);
  border-radius: 50%;
  color: #8b5619;
  content: counter(loop);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.loop-list strong,
.loop-list span {
  display: block;
}

.loop-list strong {
  margin-bottom: 0.4rem;
  color: #3a250d;
  font-size: 1.05rem;
}

.loop-list span {
  color: var(--muted);
  line-height: 1.55;
}

.systems-section {
  background:
    linear-gradient(90deg, rgba(255, 247, 223, 0.96), rgba(184, 237, 227, 0.65)),
    linear-gradient(180deg, rgba(255, 245, 220, 0.98), rgba(250, 225, 171, 0.92));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 15ch;
  margin-bottom: 0;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.system-grid article {
  min-height: 13rem;
  padding: 1.25rem;
  border: 1px solid rgba(139, 86, 25, 0.18);
  border-radius: 8px;
  background: rgba(255, 252, 241, 0.66);
}

.system-grid p {
  margin-bottom: 0;
}

.art-band {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 6vw, 6rem);
  background: #f3d898;
}

.art-band img {
  display: block;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  border: 1px solid rgba(139, 86, 25, 0.2);
  border-radius: 8px;
  box-shadow: 0 2rem 5rem rgba(125, 79, 20, 0.28);
}

.steam-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 243, 211, 0.94), rgba(255, 234, 176, 0.7)),
    url("assets/bahast-town-background.png") center bottom / cover no-repeat;
  border-top: 1px solid rgba(139, 86, 25, 0.14);
}

.steam-copy {
  max-width: 40rem;
}

.steam-copy p {
  margin-bottom: 1.5rem;
  color: #4b3515;
}

.steam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem clamp(1.25rem, 6vw, 6rem);
  border-top: 1px solid rgba(139, 86, 25, 0.14);
  background: rgba(255, 246, 221, 0.94);
  color: #6b5128;
  font-size: 0.8rem;
}

.site-footer nav {
  gap: 1rem;
  font-size: 0.72rem;
}

.legal-page::before {
  background:
    linear-gradient(180deg, rgba(255, 244, 218, 0.86), rgba(255, 246, 223, 0.98) 52%),
    url("assets/bahast-town-background.png") center top / cover no-repeat;
}

.legal-page::after {
  background:
    radial-gradient(circle at 82% 16%, rgba(0, 124, 134, 0.14), transparent 24rem),
    linear-gradient(90deg, rgba(255, 247, 224, 0.96), rgba(255, 242, 213, 0.78) 58%, rgba(255, 239, 201, 0.9));
}

.legal-shell {
  min-height: calc(100vh - 4.5rem);
  padding: clamp(7rem, 14vh, 9rem) clamp(1.25rem, 6vw, 6rem) clamp(3rem, 8vw, 6rem);
}

.legal-document {
  width: min(54rem, 100%);
}

.legal-document h1 {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.65rem;
  overflow: visible;
  clip: auto;
  color: #3a250d;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 8vw, 5.2rem);
  line-height: 0.98;
  white-space: normal;
}

.legal-updated {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: var(--dim);
  font-size: 0.88rem;
}

.legal-document section {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(139, 86, 25, 0.16);
}

.legal-document h2 {
  max-width: none;
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
}

.legal-document p {
  max-width: 48rem;
  color: #59411d;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document a {
  color: var(--brass-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.alpha-page::before {
  background:
    linear-gradient(180deg, rgba(255, 244, 218, 0.84), rgba(255, 246, 223, 0.98) 48%),
    url("assets/bahast-website-hero-ship-harbor-v3.png") center top / cover no-repeat;
}

.alpha-shell {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.alpha-document {
  width: min(68rem, 100%);
}

.alpha-hero-copy {
  max-width: 52rem;
}

.alpha-hero-copy p {
  max-width: 44rem;
  color: #4f3917;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.8rem, 5vw, 3rem);
  color: #4b310f;
  font-size: 0.74rem;
}

.alpha-nav a {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(139, 86, 25, 0.24);
  border-radius: 4px;
  background: rgba(255, 252, 241, 0.7);
  text-decoration: none;
}

.alpha-nav a[aria-current="page"],
.alpha-nav a:hover,
.alpha-nav a:focus-visible {
  border-color: rgba(139, 86, 25, 0.44);
  background: rgba(255, 229, 158, 0.72);
}

.alpha-section {
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;
  border-top: 1px solid rgba(139, 86, 25, 0.16);
  scroll-margin-top: 6rem;
}

.alpha-section-heading {
  max-width: 48rem;
  margin-bottom: 1.35rem;
}

.alpha-section-heading h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.alpha-document h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.75rem;
  color: #3a250d;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.alpha-document h4,
.alpha-document h5 {
  margin: 1.6rem 0 0.65rem;
  color: #4d310f;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.alpha-document ul,
.alpha-document ol {
  display: grid;
  gap: 0.5rem;
  max-width: 52rem;
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
  color: #59411d;
  line-height: 1.65;
}

.alpha-document li::marker {
  color: #8b5619;
  font-weight: 800;
}

.alpha-document code {
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(139, 86, 25, 0.18);
  border-radius: 4px;
  background: rgba(255, 252, 241, 0.72);
  color: #3d280f;
  font-size: 0.94em;
}

.alpha-document pre {
  max-width: 52rem;
  margin: 0 0 1.3rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(139, 86, 25, 0.2);
  border-radius: 8px;
  background: rgba(38, 25, 11, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.alpha-document pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8e8c1;
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre;
}

.table-wrap {
  max-width: 100%;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border: 1px solid rgba(139, 86, 25, 0.2);
  border-radius: 8px;
  background: rgba(255, 252, 241, 0.7);
}

.alpha-document table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

.alpha-document th,
.alpha-document td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(139, 86, 25, 0.14);
  color: #4f3917;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.alpha-document th {
  color: #3a250d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.alpha-document tr:last-child td {
  border-bottom: 0;
}

.alpha-support-note {
  max-width: 52rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(139, 86, 25, 0.2);
  border-radius: 8px;
  background: rgba(255, 252, 241, 0.72);
}

.alpha-support-note p {
  margin: 0;
  color: #4f3917;
}

.not-found-page::before {
  background:
    linear-gradient(180deg, rgba(255, 244, 218, 0.78), rgba(255, 246, 223, 0.95) 58%),
    url("assets/bahast-website-hero-ship-harbor-v3.png") center top / cover no-repeat;
}

.not-found-shell {
  display: grid;
  min-height: calc(100vh - 4.5rem);
  align-items: center;
}

.not-found-document {
  max-width: 48rem;
}

.not-found-copy {
  max-width: 38rem;
  color: #3f2a0f;
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.62;
}

.not-found-actions {
  margin-top: 1.8rem;
}

@media (max-width: 900px) {
  .split-section,
  .steam-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    gap: 0.7rem;
    font-size: 0.7rem;
  }

  .hero {
    min-height: 84vh;
    padding-top: 6.5rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-status {
    margin-top: 1rem;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-grid article {
    min-height: auto;
  }

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

  .legal-shell {
    padding-top: 6.5rem;
  }

  .alpha-nav,
  .alpha-nav a {
    width: 100%;
  }

  .alpha-document table {
    min-width: 36rem;
  }
}
