:root {
  --ink: #0c0a08;
  --ink-soft: #16120e;
  --bone: #e8dcc4;
  --bone-dim: #b8a88c;
  --accent: #c9a66b;
  --accent-hot: #d4b07a;
  --river: #3a5a62;
  --shadow: rgba(0, 0, 0, 0.55);
  --font-brand: "Yeseva One", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --space: clamp(1.25rem, 4vw, 3rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bone);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  will-change: transform;
}

.hero.is-ready .hero__bg {
  animation: ken 28s ease-in-out infinite alternate;
}

@keyframes ken {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.35) 0%, rgba(12, 10, 8, 0.55) 42%, rgba(12, 10, 8, 0.92) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(90, 50, 30, 0.35), transparent 50%);
}

.hero__inner {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: calc(var(--space) * 2.2) 0 calc(var(--space) * 1.6);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero.is-ready .hero__inner {
  opacity: 1;
  transform: none;
}

.hero__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 2px 24px var(--shadow);
  max-width: 14ch;
}

.hero__tagline {
  margin: 1rem 0 1.75rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-style: italic;
  color: var(--bone-dim);
  max-width: 28ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero__alt {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  color: var(--bone-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hot);
  color: #1a1208;
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(201, 166, 107, 0.65);
}

.btn--ghost:hover {
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}

.section {
  padding: calc(var(--space) * 2.2) var(--space);
}

.section__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: var(--space);
  align-items: center;
}

@media (min-width: 820px) {
  .section__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .section__grid--reverse .section__copy {
    order: 2;
  }

  .section__grid--reverse .section__art {
    order: 1;
  }
}

.section__copy h2,
.section__title,
.section--cta h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--bone);
}

.section__copy p,
.section__lead,
.section--cta p {
  margin: 0;
  color: var(--bone-dim);
  max-width: 38rem;
}

.section__art {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.section__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section__art--wide {
  width: min(100%, var(--max));
  margin: calc(var(--space) * 1.4) auto 0;
}

.section--world {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(58, 90, 98, 0.22), transparent 55%),
    var(--ink-soft);
}

.section--await {
  background: var(--ink);
}

.section--factions {
  background:
    radial-gradient(ellipse at 10% 80%, rgba(90, 50, 30, 0.25), transparent 50%),
    var(--ink-soft);
}

.section__title,
.section__lead {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section__lead {
  margin-bottom: calc(var(--space) * 1.1);
}

.factions {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, var(--max));
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .factions {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.faction {
  padding: 0;
  border-top: 1px solid rgba(201, 166, 107, 0.35);
  padding-top: 1rem;
}

.faction h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--bone);
}

.faction p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 1.1rem;
}

.faction--light {
  border-top-color: rgba(200, 190, 150, 0.55);
}

.faction--dark {
  border-top-color: rgba(120, 70, 70, 0.7);
}

.faction--gray {
  border-top-color: rgba(140, 140, 145, 0.55);
}

.section--cta {
  text-align: center;
  background:
    linear-gradient(180deg, var(--ink) 0%, #100c0a 100%);
  padding-bottom: calc(var(--space) * 2.6);
}

.section--cta .hero__cta {
  justify-content: center;
  margin-top: 1.5rem;
}

.section--cta p {
  margin-left: auto;
  margin-right: auto;
}

.footer {
  border-top: 1px solid rgba(184, 168, 140, 0.2);
  padding: 1.75rem var(--space) 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
  background: #070605;
}

.footer__brand {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--bone-dim);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer__nav a {
  color: var(--bone-dim);
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--accent-hot);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero.is-ready .hero__bg {
    animation: none;
  }

  .hero__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
