@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f0e1;
  --ink: #171613;
  --ink-warm: #24201b;
  --cream: #fff4dc;
  --orange: #ff834c;
  --orange-dark: #98350b;
  --muted: #5e5448;
  --line: #d9cebb;
  --body: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
}

a { color: inherit; text-underline-offset: 0.26em; }
a:focus-visible, video:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
a:hover { text-decoration: underline; }
img, video { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-weight: 850; line-height: 1.04; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h3 { font-size: 1.42rem; font-weight: 720; line-height: 1.3; letter-spacing: 0; }

.wrap {
  width: min(100% - 2 * clamp(1.25rem, 5vw, 4.25rem), 82rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: -5rem auto auto 1rem;
  padding: 0.65rem 1rem;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.fb-header, .fb-hero, .fb-footer {
  background: var(--ink);
  color: var(--cream);
}

.fb-header { border-bottom: 1px solid #ffffff24; }
.fb-header a, .fb-footer a { text-decoration: none; }
.fb-header a:hover, .fb-footer a:hover { text-decoration: underline; }
.home-return { font-size: 0.85rem; white-space: nowrap; }
.home-return span { margin-right: 0.4rem; color: var(--orange); }

.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.header-row { min-height: 3.8rem; padding-block: 0.75rem; }
.fb-header nav, .fb-footer nav { display: flex; align-items: center; gap: clamp(0.85rem, 3vw, 2.25rem); }
.fb-header nav a { font-size: 0.9rem; font-weight: 600; }
.fb-header .header-beta { color: var(--orange); white-space: nowrap; }
.header-beta span { margin-left: 0.28rem; }
.qa-link { margin-top: 1.1rem; font-weight: 700; }
.qa-link a { color: var(--orange-dark); }

.fb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fb-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--ink) 18%, #171613f2 28%, #171613c7 40%, #17161320 65%, transparent 85%);
}
.hero-layout { padding-block: clamp(2.5rem, 6vw, 5.8rem); }
.hero-copy { max-width: 34rem; }
.hero-logo { width: min(100%, 29rem); margin-block: 0.7rem 1.15rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fb-hero .eyebrow { color: var(--orange); }
.hero-lead {
  max-width: 30rem;
  margin-top: 1.2rem;
  color: #e3d8c4;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 78%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.hero-actions, .beta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
}
.hero-actions { margin-top: 1.75rem; }
.fb-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 0.78rem 1.15rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.fb-button:hover { background: #ffab82; text-decoration: none; }
.fb-button span { font-size: 1.12rem; }
.watch-link, .feedback-link { font-size: 0.94rem; font-weight: 650; }
.watch-link span { margin-left: 0.28rem; color: var(--orange); }

.gameplay-section, .worlds-section, .feature-section, .beta-section {
  padding-block: clamp(3.25rem, 6vw, 6.25rem);
}
.gameplay-section { padding-bottom: clamp(2.75rem, 5vw, 5rem); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.35rem);
}
.section-heading p { max-width: 24rem; color: var(--muted); }
.gameplay video {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  object-fit: contain;
}
.gameplay figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.worlds-section { border-top: 1px solid var(--line); }
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}
.world-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff9ec;
}
.world-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.world-copy { padding: clamp(1rem, 2.3vw, 1.75rem); }
.world-copy p, .feature-grid p { margin-top: 0.55rem; color: var(--muted); }

.feature-section { background: var(--ink-warm); color: var(--cream); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2rem;
}
.feature-grid article { border-top: 1px solid #ffffff36; padding-top: 1.25rem; }
.feature-grid p { max-width: 34rem; color: #e3d8c4; }

.beta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem clamp(2rem, 5vw, 5rem);
}
.beta-section p:not(.eyebrow) { max-width: 38rem; margin-top: 1rem; color: var(--muted); }
.beta-actions { flex-shrink: 0; flex-direction: column; align-items: flex-start; }
.fb-footer { font-size: 0.83rem; }
.footer-row { flex-wrap: wrap; padding-block: 1.3rem; }
.footer-row > span { color: #c9bda9; }

@media (max-width: 760px) {
  .fb-hero { display: flex; flex-direction: column; }
  .fb-hero::after { content: none; }
  .hero-layout { padding-block: 2.1rem; }
  .hero-copy h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
  .hero-art { position: static; width: 100%; height: auto; order: 1; }
  .section-heading, .beta-section { align-items: flex-start; flex-direction: column; }
  .world-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beta-actions { flex-direction: row; align-items: center; }
}

@media (max-width: 500px) {
  .fb-header .section-link { display: none; }
  .fb-header nav a { font-size: 0.82rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-row > span { order: 1; flex-basis: 100%; }
}
