:root {
  --ink: #10191c;
  --ink-deep: #081113;
  --paper: #ebe5d8;
  --ivory: #f1ede4;
  --muted: #abb4ad;
  --line: rgba(241, 237, 228, 0.2);
  --line-dark: rgba(16, 25, 28, 0.22);
  --accent: #6f3038;
  --accent-bright: #8a3d47;
  --gilt: #b5a386;
  --button-bg: #f1ede4;
  --button-hover: #d9cfbb;
  --button-text: #10191c;
  --header-height: 74px;
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--ivory);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

section,
.domain-step a {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.is-reduced-motion,
body.is-reduced-motion html {
  scroll-behavior: auto;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--ivory);
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(150px, 250px) 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 52px);
  padding: 12px clamp(16px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: #10191c;
  backdrop-filter: blur(14px);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: clamp(148px, 18vw, 228px);
  aspect-ratio: 4.5 / 1;
  overflow: hidden;
}

.brand-mark img,
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  min-height: 48px;
}

.main-nav a,
.discord-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.main-nav a {
  color: rgba(241, 237, 228, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.main-nav a:hover {
  color: var(--ivory);
}

.discord-link {
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  border: 1px solid rgba(181, 163, 134, 0.72);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 3px 12px rgba(8, 17, 19, 0.2);
  transition: background 180ms ease, border-color 180ms ease;
}

.discord-link:hover {
  background: var(--button-hover);
  border-color: rgba(241, 237, 228, 0.92);
}

.discord-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  flex: 0 0 auto;
}

.hero,
.community-section {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero {
  padding: calc(var(--header-height) + clamp(34px, 6vh, 84px)) clamp(22px, 4vw, 64px) clamp(74px, 12vh, 132px);
  background: var(--ink);
}

.community-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.community-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: object-position 700ms ease, transform 900ms ease;
}

.hero-media {
  position: absolute;
  inset: var(--header-height) 0 0 43%;
  margin: 0;
  z-index: 0;
  display: grid;
  align-items: end;
  justify-items: end;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transition: transform 900ms ease;
}

.hero-shade,
.community-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 41%, rgba(16, 25, 28, 0.86) 50%, rgba(16, 25, 28, 0.22) 62%, rgba(16, 25, 28, 0) 78%),
    linear-gradient(180deg, rgba(8, 17, 19, 0.08), rgba(8, 17, 19, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
}

.hero h1,
.game-section h2,
.domain-section h2,
.community-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  display: grid;
  gap: clamp(22px, 3vw, 42px);
  font-size: clamp(3.1rem, 4.7vw, 5.85rem);
  max-width: 10.8ch;
}

.hero-logo {
  display: block;
  width: min(610px, 43vw);
  aspect-ratio: 4.5 / 1;
  overflow: hidden;
  background: var(--ink);
  mix-blend-mode: normal;
}

.hero p,
.game-copy > p:last-child,
.lead,
.community-copy p:last-child {
  margin: 22px 0 0;
  color: rgba(241, 237, 228, 0.82);
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  max-width: 64ch;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(18px, 3vw, 36px);
  margin: 0;
  color: rgba(241, 237, 228, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.game-section {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  gap: clamp(38px, 7vw, 112px);
  padding: clamp(82px, 12vw, 148px) clamp(22px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(235, 229, 216, 0.98), rgba(235, 229, 216, 0.94)),
    var(--paper);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-section h2 {
  max-width: 8.5ch;
  color: #071115;
  font-size: clamp(4.5rem, 10vw, 10.5rem);
}

.game-copy > p:last-child {
  color: rgba(16, 25, 28, 0.9);
}

.game-list {
  display: grid;
  align-content: center;
}

.feature-line {
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line-dark);
}

.feature-line:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.feature-line h3 {
  margin: 0 0 6px;
  color: #071115;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.feature-line p {
  max-width: 48ch;
  margin: 0;
  color: rgba(16, 25, 28, 0.86);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
}

.domain-section {
  display: grid;
  grid-template-columns: minmax(360px, 58vw) minmax(320px, 1fr);
  min-height: 148svh;
  background: var(--ink);
  color: var(--ivory);
  border-top: 1px solid var(--line);
}

.domain-visual {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100svh - var(--header-height));
  min-height: 620px;
  overflow: hidden;
  background: var(--ink-deep);
}

.domain-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--domain-x, 50%) var(--domain-y, 44%);
  transition: object-position 720ms ease, transform 900ms ease;
}

.domain-visual p {
  position: absolute;
  inset: auto auto 22px 28px;
  margin: 0;
  color: rgba(241, 237, 228, 0.92);
  font-size: 0.85rem;
}

.domain-copy {
  padding: 12svh clamp(22px, 5vw, 80px) 12svh;
  align-self: start;
}

.domain-section h2 {
  max-width: 10.8ch;
  font-size: clamp(3.2rem, 5.8vw, 6.8rem);
}

.domain-copy > .eyebrow {
  color: var(--gilt);
}

.lead {
  color: rgba(241, 237, 228, 0.88);
}

.domain-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: clamp(46px, 6vw, 74px) 0 0;
  padding: 0 0 0 48px;
  list-style: none;
  color: var(--muted);
}

.domain-steps::before {
  content: "";
  position: absolute;
  inset: 14px auto 22px 13px;
  width: 1px;
  background: rgba(241, 237, 228, 0.54);
}

.domain-step {
  position: relative;
  min-height: 21svh;
  padding: 0 0 22px;
}

.domain-step::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 10px;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  background: var(--ink);
  border-radius: 999px;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.domain-step.is-current {
  color: var(--ivory);
}

.domain-step.is-current::before {
  background: var(--accent);
  border-color: var(--accent-bright);
  transform: scale(1.12);
}

.domain-step a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.domain-step span {
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
}

.domain-step p {
  max-width: 43ch;
  margin: 4px 0 0;
  color: rgba(241, 237, 228, 0.68);
}

.community-section {
  min-height: 94svh;
  padding: calc(var(--header-height) + 68px) clamp(22px, 5vw, 72px) 38px;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
}

.community-media img {
  object-position: 50% 78%;
}

.community-shade {
  background:
    linear-gradient(180deg, rgba(8, 17, 19, 0.96) 0%, rgba(8, 17, 19, 0.64) 42%, rgba(8, 17, 19, 0.34) 100%),
    linear-gradient(90deg, rgba(8, 17, 19, 0.7), rgba(8, 17, 19, 0.12), rgba(8, 17, 19, 0.7));
}

.community-copy {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  margin: 0 auto;
}

.community-copy .eyebrow {
  color: rgba(241, 237, 228, 0.72);
}

.community-section h2 {
  font-size: clamp(4rem, 9vw, 10.2rem);
}

.community-copy p:last-child {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  position: absolute;
  z-index: 2;
  inset: auto clamp(22px, 5vw, 72px) 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 237, 228, 0.5);
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  text-align: left;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-domain-focus="manor"] {
  --domain-x: 50%;
  --domain-y: 18%;
}

body[data-domain-focus="gardens"] {
  --domain-x: 50%;
  --domain-y: 39%;
}

body[data-domain-focus="square"] {
  --domain-x: 50%;
  --domain-y: 66%;
}

body[data-domain-focus="homes"] {
  --domain-x: 50%;
  --domain-y: 86%;
}

@media (max-width: 940px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: clamp(132px, 38vw, 190px);
  }

  .main-nav {
    display: none;
  }

  .discord-link {
    justify-self: end;
    padding: 0 14px;
  }

  .hero {
    min-height: 92svh;
    padding: calc(var(--header-height) + 38px) 20px 64px;
  }

  .hero-media {
    inset: var(--header-height) 0 26% 0;
    align-items: start;
    justify-items: center;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 17, 19, 0.66) 0%, rgba(8, 17, 19, 0.42) 32%, #10191c 47%, #10191c 68%, rgba(8, 17, 19, 0.96) 100%),
      linear-gradient(90deg, rgba(8, 17, 19, 0.74), rgba(8, 17, 19, 0.12));
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.85rem);
    gap: 30px;
  }

  .hero-logo {
    width: min(440px, 86vw);
  }

  .hero-caption {
    display: none;
  }

  .game-section {
    grid-template-columns: 1fr;
    padding: 80px 22px;
  }

  .game-section h2 {
    max-width: 9ch;
    font-size: clamp(4rem, 17vw, 7.4rem);
  }

  .domain-section {
    display: block;
    min-height: 0;
  }

  .domain-visual {
    position: relative;
    top: auto;
    height: min(122vw, 720px);
    min-height: 420px;
  }

  .domain-visual img {
    object-position: 50% 54%;
  }

  .domain-copy {
    padding: 74px 22px 86px;
  }

  .domain-step {
    min-height: 0;
  }

  .domain-section h2,
  .community-section h2 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 14vw, 6.4rem);
  }

  .community-section {
    min-height: 86svh;
    padding: calc(var(--header-height) + 52px) 22px 72px;
  }

  .community-media img {
    object-position: 50% 83%;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: minmax(120px, auto) 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand {
    min-height: 44px;
  }

  .brand-mark {
    width: clamp(124px, 39vw, 166px);
  }

  .discord-link {
    justify-self: end;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 32px);
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.4rem);
  }

  .hero p,
  .game-copy > p:last-child,
  .lead,
  .community-copy p:last-child {
    font-size: 1.08rem;
  }

  .game-section h2 {
    font-size: clamp(3.65rem, 18vw, 5.25rem);
  }

  .feature-line h3 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .domain-steps {
    padding-left: 34px;
  }

  .domain-steps::before {
    left: 8px;
  }

  .domain-step::before {
    left: -32px;
  }

  .domain-section h2,
  .community-section h2 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .site-footer {
    inset-inline: 22px;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .discord-link {
    font-size: 0.92rem;
  }

  .hero h1,
  .game-section h2,
  .domain-section h2,
  .community-section h2 {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
