:root {
  color-scheme: light;
  --forest: #122b23;
  --deep: #0d211b;
  --light: #fff8e8;
  --gold: #edc878;
  --ink: #1b3127;
  --muted: #485c50;
  --paper: #f6f1e7;
  --stroke: #d8d0be;
  --display: Georgia, 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font: 16px/1.55 system-ui, 'Yu Gothic', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #c78d35; outline-offset: 4px; }
section, #screenshots, #heroes { scroll-margin-top: 1.5rem; }
.wrap { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 3;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  color: var(--forest);
  background: var(--light);
}
.skip:focus { top: 8px; }
.header, .footer { color: var(--light); background: var(--deep); }
.header { border-bottom: 1px solid #bfb78335; }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 24px; }
.header-inner { min-height: 71px; padding-block: 10px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--light);
  font: 700 1.25rem/1.1 var(--display);
  text-decoration: none;
}
.header nav { display: flex; align-items: center; gap: 20px; }
.header nav a { font-size: .87rem; text-decoration: none; text-underline-offset: 4px; }
.header nav a:hover, .footer-inner > a:hover { text-decoration: underline; }
.header .languages { gap: 10px; margin-inline-start: auto; }
.languages a { color: #c1d0c1; padding: 5px 3px; }
.languages a[aria-current="page"] { color: var(--gold); text-decoration: underline; }

.hero {
  background: radial-gradient(ellipse at 75% 12%, #264735, transparent 62%), var(--forest);
  color: var(--light);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
}
.label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .81rem;
  font-weight: 700;
  color: #f2d392;
  margin-bottom: 15px;
}
.status { width: 8px; height: 8px; border-radius: 50%; background: #a0ce8a; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; }
h1 {
  color: #fff4db;
  font-size: clamp(3rem, 6.1vw, 5.5rem);
  letter-spacing: -.065em;
  white-space: nowrap;
}
h1 i { font-weight: 400; color: var(--gold); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; }
h3 { font-size: 1.44rem; }
.hero-genre { color: #f2d392; font: 1.24rem/1.38 var(--display); margin-top: 13px; }
.intro { max-width: 48ch; color: #e2ebdf; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 27px; }
.action, .outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
}
.action { color: #19281d; background: var(--gold); }
.action:hover { background: #ffdc93; }
.outline { color: var(--light); border-color: #d7d1a874; }
.outline:hover { background: #ffffff12; }
.header .action { min-height: 40px; padding: 8px 14px; white-space: nowrap; }
.guest { margin-top: 11px; color: #d0dccf; font-size: .86rem; }
.hero-figure { min-width: 0; }
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  background: var(--deep);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot > span {
  position: absolute;
  bottom: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #fff4ce6b;
  border-radius: 5px;
  color: var(--light);
  background: #10261eea;
}
.shot:hover > span { color: var(--deep); background: var(--gold); }
.hero-figure .shot {
  border: 1px solid #f0d8918a;
  box-shadow: 0 19px 48px #06181484;
}
figcaption { font-size: .8rem; margin-top: 8px; }
.hero-figure figcaption { color: #d9e2d4; }

.gameplay { padding-block: 62px 68px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px 36px; margin-bottom: 25px; }
.section-heading p { max-width: 51ch; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: #fffbf2;
  overflow: hidden;
}
.feature .shot { border-radius: 0; }
.feature .shot:focus-visible { outline-offset: -4px; }
.feature-copy { padding: 20px 20px 22px; }
.feature-copy p { margin-top: 8px; color: var(--muted); }

.ages { background: #ebe5d6; border-block: 1px solid var(--stroke); }
.ages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding-block: 58px; align-items: start; }
.ages-lead { margin-top: 13px; max-width: 56ch; color: var(--muted); }
.ages dl { margin-top: 26px; display: grid; gap: 14px; }
.ages dl > div { border-top: 1px solid #cbc5b3; padding-top: 12px; }
dt { font-weight: 760; }
dd { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.ages-shots { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-self: center; }
.ages-shots figcaption { color: var(--muted); }

.access { padding-top: 60px; }
.playtest {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(23px, 4vw, 49px);
  border-radius: 12px;
  color: var(--light);
  background: var(--forest);
}
.playtest p { margin-top: 8px; color: #e0e9db; max-width: 58ch; }
.playtest .actions { margin-top: 18px; }
.test-details h3 { font-size: 1.1rem; color: var(--gold); }
.test-details h3:not(:first-child) { margin-top: 14px; }
.test-details p { font-size: .92rem; }
.test-details a { color: #ffe2a6; text-underline-offset: 4px; }
.news { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 30px; padding-block: 56px; align-items: center; }
.news p { color: var(--muted); margin-top: 9px; }
.news-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 15px; }
.news-links a { font-weight: 700; text-underline-offset: 5px; }
.news iframe { display: block; width: 100%; border: 1px solid var(--stroke); border-radius: 8px; background: #fffbf2; }
.footer-inner { flex-wrap: wrap; padding-block: 24px; font-size: .86rem; }
.footer-inner p { color: #d0ddcb; margin-inline-end: auto; }
.footer-inner > a:not(.brand) { text-underline-offset: 4px; }
.footer .brand { font-size: 1.05rem; }

#gallery {
  width: min(1328px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid #e8d4a1a6;
  border-radius: 9px;
  padding: 40px 8px 8px;
  color: var(--light);
  background: var(--deep);
}
#gallery::backdrop { background: #07150fe8; }
#gallery img { width: auto; max-height: calc(100dvh - 74px); object-fit: contain; margin-inline: auto; }
.gallery-close {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 34px;
  height: 30px;
  border: 1px solid #d5c49480;
  border-radius: 5px;
  color: var(--light);
  background: var(--forest);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { gap: 15px; }
  .header nav { gap: 12px; }
  .header-social { display: none; }
  .hero-grid { gap: 28px; }
  .feature-grid { gap: 13px; }
  .feature-copy { padding: 16px; }
}

@media (max-width: 760px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; }
  .header-inner > nav:not(.languages) { grid-area: 2 / 1; flex-wrap: wrap; }
  .header .languages { grid-area: 2 / 2; }
  .header .header-play { grid-area: 1 / 2; }
  .hero-grid, .ages-grid, .playtest, .news { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 35px 28px; gap: 22px; }
  h1 { font-size: clamp(2.7rem, 9.2vw, 4.25rem); }
  .section-heading { display: grid; }
  .gameplay { padding-block: 39px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-copy { padding: 18px; }
  .ages-grid { padding-block: 39px; }
  .access { padding-top: 39px; }
  .news { gap: 20px; padding-block: 35px; }
  .footer-inner { gap: 14px; }
  .footer-inner p { width: 100%; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 30px); }
  .header .brand { font-size: 1.1rem; gap: 6px; }
  .header .brand img { width: 28px; }
  .header nav { gap: 8px; }
  .header nav a { font-size: .77rem; }
  .header .languages { gap: 7px; }
  .header .action { padding-inline: 10px; }
  .actions { margin-top: 20px; }
}
