@font-face {
  font-family: 'Planewalker';
  src: url('/planewalker.ttf') format('truetype');
  font-display: swap;
}

:root {
  --background: #071310;
  --foreground: #f4ecd7;
  --card: #10201a;
  --card-foreground: #f4ecd7;
  --popover: #10201a;
  --popover-foreground: #f4ecd7;
  --primary: #d8a84e;
  --primary-foreground: #11160e;
  --secondary: #1a2b24;
  --secondary-foreground: #f4ecd7;
  --muted: #16251f;
  --muted-foreground: #b3aa94;
  --accent: #e4c475;
  --accent-foreground: #11160e;
  --destructive: #c94f45;
  --border: #675738;
  --input: #675738;
  --ring: #e4c475;
  --font-sans: Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

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

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #c5963c;
}

.btn-outline {
  background: transparent;
  border-color: #776540;
  color: #f4ecd7;
}

.btn-outline:hover {
  background: rgb(216 168 78 / 10%);
  border-color: #d8a84e;
  color: #e4c475;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem) 3rem;
  background:
    radial-gradient(circle at 72% 45%, rgb(50 101 75 / 22%), transparent 36rem),
    linear-gradient(140deg, #091814 0%, #07110f 55%, #101912 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-nav {
  height: 6rem;
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(216 168 78 / 30%);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font:
    1.25rem/1 Planewalker,
    Georgia,
    serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #d8a84e;
  color: #e4c475;
  font-size: 0.72rem;
  transform: rotate(45deg);
}

.wordmark-mark span {
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  color: #d4ccb8;
  font-size: 0.9rem;
}

.nav-links a {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #e4c475;
}

.nav-links svg {
  width: 1rem;
  height: 1rem;
}

.hero-grid {
  width: 100%;
  max-width: 90rem;
  min-height: calc(100svh - 10rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(30rem, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.hero-copy {
  padding: 3rem 0 5rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: #d8a84e;
  font: 0.77rem/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.5rem;
  height: 1px;
  background: #d8a84e;
}

h1 {
  margin: 0;
  font:
    clamp(4.4rem, 8.8vw, 9.2rem)/0.72 Planewalker,
    Georgia,
    serif;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 em {
  color: #e4c475;
  font-weight: inherit;
}

.hero-lede {
  max-width: 37rem;
  margin: 2.6rem 0 2rem;
  color: #c8c1ad;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.platforms {
  margin-top: 1.25rem;
  color: #817966;
  font: 0.72rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-frame {
  position: relative;
  aspect-ratio: 1.16;
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
  filter: drop-shadow(0 2.5rem 4rem rgb(0 0 0 / 50%));
}

.map-frame::before,
.map-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.map-frame::before {
  inset: -10px;
  border: 1px solid rgb(216 168 78 / 38%);
  clip-path: polygon(
    0 0,
    23% 0,
    23% 2px,
    77% 2px,
    77% 0,
    100% 0,
    100% 100%,
    77% 100%,
    77% calc(100% - 2px),
    23% calc(100% - 2px),
    23% 100%,
    0 100%
  );
}

.map-frame::after {
  inset: 0;
  box-shadow: inset 0 0 7rem 2rem #071310;
}

.map-crop {
  width: 100%;
  height: 100%;
  background: url('/images/shandalar-map.jpg') center / cover no-repeat;
  filter: saturate(0.78) sepia(0.08) contrast(1.05);
}

.map-caption {
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  bottom: -2.25rem;
  color: #8f846d;
  font: 0.66rem/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #8f846d;
  font: 0.68rem/1 var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  color: #d8a84e;
  font-size: 1rem;
}

.game-section {
  padding: clamp(6rem, 11vw, 11rem) clamp(1.25rem, 7vw, 8rem);
  background: #eee7d5;
  color: #15221b;
}

.section-intro {
  max-width: 84rem;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 0.6fr 1.2fr 0.8fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 7rem);
}

.section-number {
  margin: 0.7rem 0 0;
  color: #6e765f;
  font: 0.7rem/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-intro h2,
.source-copy h2,
.final-cta h2 {
  margin: 0;
  font:
    clamp(3rem, 6vw, 6.2rem)/0.88 Planewalker,
    Georgia,
    serif;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-intro > p:last-child {
  margin: 0.65rem 0 0;
  color: #566053;
  font-size: 1.08rem;
  line-height: 1.7;
}

.journey-grid {
  max-width: 84rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #9e9274;
}

.journey-grid article {
  min-height: 20rem;
  padding: 3rem clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid #9e9274;
}

.journey-grid article:last-child {
  border-right: 0;
}

.journey-grid article > span {
  color: #8a6b2f;
  font: 0.68rem/1 var(--font-mono);
  letter-spacing: 0.18em;
}

.journey-grid h3 {
  max-width: 15rem;
  margin: 4.5rem 0 1.1rem;
  font:
    1.65rem/1.1 Planewalker,
    Georgia,
    serif;
  text-transform: uppercase;
}

.journey-grid p {
  margin: 0;
  color: #5d6558;
  font-size: 1rem;
  line-height: 1.65;
}

.city-break {
  min-height: min(72vw, 48rem);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #532e24;
}

.city-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(7 19 16 / 12%),
    rgb(7 19 16 / 48%)
  );
}

.city-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(0.72) sepia(0.08) contrast(1.08);
}

.city-quote {
  position: relative;
  z-index: 1;
  width: min(92%, 61rem);
  text-align: center;
  text-shadow: 0 0.2rem 1.5rem rgb(0 0 0 / 55%);
}

.city-quote > span {
  display: block;
  height: 3.5rem;
  color: #e4c475;
  font: 6rem/1 Georgia, serif;
}

.city-quote blockquote {
  margin: 0;
  color: #fff8e6;
  font:
    clamp(2.2rem, 5.5vw, 5rem)/1.05 Planewalker,
    Georgia,
    serif;
  text-transform: uppercase;
}

.source-section {
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 11rem) clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(4rem, 10vw, 10rem);
  align-items: end;
}

.source-copy .section-number {
  color: #9b8e72;
  margin: 0 0 2rem;
}

.source-copy h2 em {
  color: #e4c475;
  font-weight: inherit;
}

.source-copy > p:not(.section-number) {
  max-width: 39rem;
  margin: 2.25rem 0;
  color: #b8af9a;
  font-size: 1.1rem;
  line-height: 1.75;
}

.source-details {
  border-top: 1px solid #665a3f;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid #413c2d;
}

.detail-line span {
  color: #817966;
  font: 0.68rem/1.4 var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-line strong {
  color: #d9d0bc;
  font-size: 0.95rem;
  font-weight: normal;
  text-align: right;
}

.final-cta {
  padding: clamp(6rem, 10vw, 9rem) 1.25rem;
  text-align: center;
  color: #172219;
  background: #d7a64d;
}

.final-cta > svg {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0 auto 1.5rem;
}

.final-cta > p {
  margin: 0 0 1.25rem;
  font: 0.72rem/1 var(--font-mono);
  letter-spacing: 0.18em;
}

.final-cta h2 {
  margin-bottom: 2.25rem;
}

.final-cta .btn {
  background: #102019;
  color: #f5edd9;
  border-color: #102019;
}

.final-cta .btn:hover {
  background: #1a2f26;
  border-color: #1a2f26;
}

footer {
  min-height: 10rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 5.5rem);
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 3rem;
  align-items: center;
  color: #827a68;
  border-top: 1px solid #292e25;
  font-size: 0.78rem;
  line-height: 1.55;
}

footer .wordmark {
  color: #eee4cc;
}

footer > p {
  max-width: 39rem;
  margin: 0;
}

footer > div {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

footer a:hover {
  color: #e4c475;
}

@media (max-width: 900px) {
  .site-nav {
    height: 5rem;
  }
  .nav-links a:not(:last-child) {
    display: none;
  }
  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 3rem 0 7rem;
  }
  .hero-copy {
    padding: 1rem 0;
  }
  .map-frame {
    width: min(100%, 44rem);
    margin: 0 auto;
    transform: none;
  }
  h1 {
    font-size: clamp(4rem, 18vw, 7.5rem);
  }
  .scroll-cue {
    display: none;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-intro > p:last-child {
    max-width: 37rem;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .journey-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #9e9274;
  }
  .journey-grid article:last-child {
    border-bottom: 0;
  }
  .journey-grid h3 {
    margin-top: 2.5rem;
  }
  .source-section {
    grid-template-columns: 1fr;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-inline: 1.1rem;
  }
  .wordmark > span:last-child {
    display: none;
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .map-caption {
    display: none;
  }
  .city-break {
    min-height: 30rem;
  }
  .detail-line {
    display: block;
  }
  .detail-line strong {
    display: block;
    margin-top: 0.45rem;
    text-align: left;
  }
  footer > div {
    flex-wrap: wrap;
  }
}

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