:root {
  color-scheme: dark;
  --ink: #0d0b08;
  --leather: #18110d;
  --gold: #c49a59;
  --gold-bright: #e7dcc2;
  --parchment: #eee5d3;
  --muted: #c1b59d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--parchment);
  font-family: Georgia, "Times New Roman", serif;
  background-color: var(--ink);
  overflow-x: hidden;
}

.wiki-link {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 5;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 0.72rem 1rem;
  color: var(--gold-bright);
  background: rgb(13 11 8 / 72%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.wiki-link:hover,
.wiki-link:focus-visible { color: var(--ink); background: var(--gold); }
.wiki-link:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

.landing-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 5.5rem);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-shell::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(5 9 18 / 52%) 0%, rgb(5 9 18 / 28%) 44%, transparent 70%),
    linear-gradient(180deg, rgb(5 9 18 / 14%), transparent 36%, rgb(5 9 18 / 20%));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(36rem, 48vw);
  text-shadow: 0 3px 20px rgb(0 0 0 / 74%);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold-bright);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--parchment);
  font-size: clamp(4.3rem, 9vw, 8rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgb(0 0 0 / 80%);
}

.title-prefix {
  display: block;
  color: var(--gold-bright);
  font-size: 0.46em;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

.title-word {
  white-space: nowrap;
}

.title-atlas-t {
  margin-left: -0.02em;
}

.title-atlas-l {
  margin-left: -0.01em;
}

.title-atlas-a {
  margin-left: 0.02em;
}

.description {
  max-width: 28rem;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  color: var(--parchment);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-width: 10.5rem;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.button-primary {
  color: var(--ink);
  background: var(--gold-bright);
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f2e7cc;
}

.button-secondary {
  color: var(--gold-bright);
  background: rgb(13 11 8 / 72%);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: var(--gold);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

.status span {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 0.52rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(196 154 89 / 14%);
}

.pillars {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--leather), var(--ink) 72%);
  padding: clamp(3.25rem, 6.5vw, 5.75rem) clamp(1.25rem, 6vw, 5rem);
}

.pillars-inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.pillars h2,
.pillar h3 {
  margin: 0;
  color: var(--parchment);
  font-weight: 500;
  text-transform: uppercase;
}

.pillars > .pillars-inner > h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.1rem, 4vw, 3.75rem);
  border-top: 1px solid rgb(196 154 89 / 55%);
  border-bottom: 1px solid rgb(196 154 89 / 55%);
}

.pillar {
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.pillar:nth-child(even) {
  border-left: 1px solid rgb(196 154 89 / 40%);
}

.pillar:nth-child(-n + 2) {
  border-bottom: 1px solid rgb(196 154 89 / 40%);
}

.pillar h3 {
  color: var(--gold-bright);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: 0.08em;
}

.pillar p,
.atlas-closing p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

.pillar p {
  max-width: 31rem;
  margin-top: 0.9rem;
  font-size: 1rem;
}

.atlas-closing {
  max-width: 52rem;
  margin-top: clamp(3rem, 5.5vw, 5rem);
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.atlas-closing h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  letter-spacing: 0.025em;
  line-height: 1.12;
}

.atlas-closing p {
  max-width: 46rem;
  margin-top: 1rem;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .hero-art img {
    object-position: 70% center;
  }

  .landing-shell::after {
    background:
      linear-gradient(90deg, rgb(5 9 18 / 62%) 0%, rgb(5 9 18 / 28%) 72%, transparent 100%),
      linear-gradient(180deg, rgb(5 9 18 / 38%) 0%, rgb(5 9 18 / 12%) 62%, rgb(5 9 18 / 36%) 100%);
  }

  .landing-shell {
    align-items: flex-start;
    padding: clamp(2.5rem, 7svh, 4rem) clamp(1.3rem, 6vw, 3rem) 2rem;
  }

  .hero-copy {
    width: min(36rem, 100%);
  }
}

@media (max-width: 520px) {
  .landing-shell {
    padding-inline: 1.3rem;
  }

  .hero-copy {
    max-width: 22rem;
  }

  .eyebrow {
    margin-bottom: 0.9rem;
  }

  h1 {
    font-size: clamp(3.7rem, 21vw, 5.4rem);
  }

  .description {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .actions {
    display: grid;
    gap: 0.7rem;
    width: min(15rem, 100%);
    margin-top: 1.6rem;
  }

  .button {
    width: 100%;
    min-height: 3.25rem;
  }

  .status {
    margin-top: 1rem;
  }

  .pillars {
    padding-block: 3rem;
  }

  .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2.1rem;
  }

  .pillar {
    padding: 1.25rem 0;
  }

  .pillar:nth-child(even) {
    border-left: 0;
  }

  .pillar:nth-child(-n + 3) {
    border-bottom: 1px solid rgb(196 154 89 / 40%);
  }

  .pillar p {
    max-width: none;
  }

  .atlas-closing {
    margin-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
