:root {
  --bg: #0b1411;
  --bg-soft: #111e19;
  --panel: #16241e;
  --gold: #c6a75d;
  --ivory: #f2ead8;
  --muted: #b9ad97;
  --line: rgba(198, 167, 93, .28);
  --forest: #233b2f;
  --ink: #080d0b;
  --shadow: rgba(0, 0, 0, .45);
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(198, 167, 93, .55);
  text-underline-offset: .24em;
}

a:hover {
  color: var(--gold);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(242, 234, 216, .08);
  background: rgba(11, 20, 17, .72);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .93rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 36, 30, .75);
  color: var(--ivory);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.section-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.image-band::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 20, 17, .35), rgba(11, 20, 17, .14) 38%, rgba(11, 20, 17, .88)),
    linear-gradient(90deg, rgba(11, 20, 17, .72), rgba(11, 20, 17, .08) 55%, rgba(11, 20, 17, .42));
  content: "";
}

.hero-content {
  align-self: end;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 128px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(4.25rem, 12vw, 9.8rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2.3rem, 6vw, 5rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

p {
  margin: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 20px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 36, 30, .68);
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
}

.button.primary {
  border-color: rgba(198, 167, 93, .75);
  background: var(--gold);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: clamp(70px, 10vw, 130px) 0;
}

.section.soft {
  background: var(--bg-soft);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 840px;
}

.lead {
  max-width: 820px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 3rem);
  line-height: 1.25;
}

.copy {
  max-width: 720px;
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 22px;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.companion-card {
  display: grid;
  min-height: 580px;
  grid-template-rows: 1fr auto;
}

.portrait-frame {
  min-height: 420px;
  background: var(--forest);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.card-body {
  padding: 22px;
}

.card-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .98rem;
}

.card-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.image-band {
  position: relative;
  min-height: clamp(600px, 80svh, 860px);
  overflow: hidden;
  isolation: isolate;
}

.image-band .container {
  display: grid;
  min-height: inherit;
  align-items: end;
  padding: 96px 0;
}

.band-copy {
  max-width: 680px;
}

.band-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.2;
}

.gallery-card {
  display: grid;
  min-height: 330px;
  grid-template-rows: minmax(230px, 1fr) auto;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.gallery-card .card-body {
  padding: 16px;
}

.gallery-card h3 {
  font-size: 1.2rem;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 59, 47, .9), rgba(22, 36, 30, .92)),
    var(--panel);
}

.form {
  display: flex;
  gap: 10px;
}

input[type="email"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(242, 234, 216, .18);
  border-radius: 999px;
  background: rgba(11, 20, 17, .56);
  color: var(--ivory);
  padding: 0 18px;
  font: inherit;
}

input[type="email"]::placeholder {
  color: rgba(185, 173, 151, .75);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #08100d;
  color: var(--muted);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero {
  padding: 150px 0 70px;
  background:
    linear-gradient(180deg, rgba(11, 20, 17, .3), var(--bg)),
    var(--forest);
}

.page-hero .copy {
  margin-top: 20px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.feature-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stack > * + * {
  margin-top: 18px;
}

.wiki-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wiki-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 36, 30, .7);
  text-decoration: none;
}

.hero-image {
  object-position: center 45%;
}

.forest-image {
  object-position: center 52%;
}

.city-image {
  object-position: center 58%;
}

.traveler-image {
  object-position: center 18%;
}

.dawneblade-image {
  object-position: center 14%;
}

.wayfarer-image {
  object-position: center 12%;
}

.wasteland-image {
  object-position: center 60%;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 20, 17, .96);
  }

  .nav-links.is-open {
    display: grid;
  }

  .section-head,
  .newsletter,
  .feature {
    grid-template-columns: 1fr;
  }

  .three,
  .four,
  .two {
    grid-template-columns: 1fr;
  }

  .companion-card {
    min-height: 0;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 520px;
  }

  .form {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero-content {
    padding-bottom: 58px;
  }

  .button {
    width: 100%;
  }

  .portrait-frame,
  .portrait-frame img {
    min-height: 440px;
  }

  .gallery-card {
    min-height: 0;
  }
}
