@font-face {
  font-family: Outfit;
  src: url('assets/outfit-medium.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  font-family: Outfit, system-ui, sans-serif;
  color: #253e37;
  background: #f7eedb;
  color-scheme: light;
  --ink: #253e37;
  --teal: #205c60;
  --deep-teal: #174c50;
  --parchment: #fff8e7;
  --line: #aa915f6b;
  --edge: clamp(22px, 5vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ol { margin: 0; }
a { color: var(--teal); }
a:focus-visible { outline: 3px solid #287e83; outline-offset: 4px; }

.skip-link {
  position: absolute;
  z-index: 5;
  inset: 8px auto auto 8px;
  padding: 12px 16px;
  background: var(--parchment);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  min-height: 100dvh;
  background: #e9d8b1;
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
}

.masthead, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--edge);
}
.masthead .brand, .masthead .game-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid #fff9e8c7;
  border-radius: 11px;
  padding: 7px 15px;
  background: #fff8e9e8;
  box-shadow: 0 3px 13px #352b172b;
  text-decoration: none;
}
.brand img, .footer-brand img { display: block; width: auto; height: 46px; }
.game-link { white-space: nowrap; font-size: 14px; }

.hero-copy {
  width: min(452px, 42vw);
  align-self: center;
  margin: 0 0 36px var(--edge);
  padding: clamp(24px, 2.7vw, 42px);
  background: #fff8e7db;
  backdrop-filter: blur(6px);
  border: 1px solid #fff9edcf;
  border-radius: 20px;
  box-shadow: 0 18px 56px #2c22082e, 0 0 0 1px #77542635;
}
.eyebrow {
  color: #5f6149;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.hero h1 {
  margin: 11px 0 15px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.045em;
}
.hero h1 span { color: var(--teal); }
.intro { max-width: 33ch; font-size: clamp(15px, 1.45vw, 19px); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 21px; }

.primary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  border: 1px solid #a5864a;
  border-radius: 8px;
  padding: 9px 18px;
  background: var(--teal);
  color: #fff8e7;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 3px 0 #89663842;
}
.primary-action:hover { background: var(--deep-teal); }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14px;
  text-underline-offset: 4px;
}

.journey-section {
  background: linear-gradient(#fbf4e6ee, #f6ebd4f7), url('assets/atlas.webp') center / cover;
  border-top: 1px solid var(--line);
  padding: clamp(40px, 7vw, 90px) var(--edge) clamp(30px, 6vw, 78px);
}
.container { width: min(1100px, 100%); margin-inline: auto; }
.journey-section h2 { font-size: clamp(29px, 4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 25px;
  padding: 0;
  list-style: none;
}
.journey li {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 18px 12px 0 0;
}
.journey img { display: block; width: 100%; height: 164px; object-fit: contain; margin: 0 0 16px; }
.journey h3 { font-size: clamp(19px, 2vw, 25px); color: var(--teal); line-height: 1.2; margin-bottom: 8px; }
.journey p, .beta-note p { font-size: 16px; line-height: 1.5; }
.beta-note {
  display: flex;
  flex-wrap: wrap;
  gap: 17px 27px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(36px, 6vw, 72px);
  padding: clamp(20px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffaedc9;
}
.beta-note h2 { font-size: clamp(25px, 3vw, 37px); margin-bottom: 7px; }
.beta-note p { max-width: 59ch; }
.site-footer { border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand img { height: 36px; }
.site-footer .game-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

@media (orientation: portrait) {
  :root { --edge: clamp(12px, 4vw, 32px); }
  .hero-art img { object-position: center; }
  .masthead { padding-block: 9px 6px; }
  .masthead .brand { padding-block: 4px; }
  .brand img { height: 38px; }
  .hero-copy {
    align-self: start;
    justify-self: center;
    width: min(440px, calc(100% - 2 * var(--edge)));
    margin: 0;
    padding: 13px 15px 9px;
    background: #fff8e7c7;
    text-align: center;
  }
  .eyebrow { font-size: 10px; }
  .hero h1 { margin: 5px 0 7px; font-size: clamp(27px, 7.8vw, 43px); }
  .intro { margin-inline: auto; max-width: 37ch; font-size: 14px; line-height: 1.35; }
  .hero-actions { justify-content: center; gap: 2px 9px; margin-top: 9px; }
  .hero-actions .primary-action { gap: 9px; padding-inline: 12px; font-size: 14px; }
  .story-link { font-size: 13px; }
  .primary-action { min-height: 46px; }
}

@media (max-width: 680px) {
  .journey { grid-template-columns: 1fr; gap: 20px; margin-top: 19px; }
  .journey li { display: grid; grid-template-columns: minmax(84px, 26%) 1fr; align-items: center; gap: 14px; padding: 13px 0 0; }
  .journey img { height: 102px; margin: 0; }
  .journey h3 { margin-bottom: 4px; }
  .journey p, .beta-note p { font-size: 14px; }
}

@media (orientation: landscape) and (max-height: 480px) {
  :root { --edge: 15px; }
  .hero-art img { object-position: center bottom; }
  .masthead { padding-block: 6px; }
  .masthead .brand { padding-block: 4px; }
  .brand img { height: 34px; }
  .hero-copy { width: min(306px, 41vw); margin-bottom: 10px; padding: 12px 14px 8px; }
  .hero h1 { margin: 5px 0 8px; font-size: clamp(26px, 4vw, 34px); }
  .intro { font-size: 14px; }
  .hero-actions { gap: 3px 13px; margin-top: 9px; }
  .hero-actions .primary-action { min-height: 44px; font-size: 14px; padding-inline: 12px; gap: 8px; }
  .story-link { font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
