:root {
  color-scheme: light;
  --ink: #142f43;
  --muted: #435a66;
  --paper: #fffaf0;
  --water: #d9f5f1;
  --blue: #125474;
  --yellow: #ffda77;
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a13d02; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.15; overflow-wrap: anywhere; }
h1, h2 { letter-spacing: -.035em; }
.shell { width: min(74rem, calc(100% - 4rem)); margin-inline: auto; }

.site-header { position: relative; z-index: 2; background: #fffdf6; box-shadow: 0 1px #17405a13; }
.nav, .site-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.65rem; }
.nav { min-height: 4.5rem; padding-block: .8rem; }
.nav > a { font-weight: 650; text-decoration: none; }
.nav > a:hover, .nav > [aria-current] { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-inline-end: auto; color: var(--ink); font-weight: 820 !important; }
.brand img { border-radius: .7rem; }

.languages { position: relative; font-size: .9rem; }
.languages summary {
  display: flex; align-items: center; gap: .7rem;
  padding: .45rem .75rem;
  border: 1px solid #9ebbb9;
  border-radius: .6rem;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.languages ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + .4rem);
  z-index: 4; display: grid; grid-template-columns: 1fr 1fr; min-width: 19rem;
  margin: 0; padding: .55rem; list-style: none;
  border: 1px solid #a8cfcb; border-radius: .8rem; background: #fffdf6;
  box-shadow: 0 12px 30px #0c34492c;
}
.languages li a { display: block; padding: .4rem .55rem; border-radius: .4rem; text-decoration: none; }
.languages li a:hover, .languages li [aria-current] { background: var(--water); color: var(--ink); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(147deg, #fff5dc 4%, #e4f6e7 50%, #80d9d4 100%);
}
.hero::before {
  position: absolute; inset: 0 0 0 28%; z-index: -1; content: "";
  background: linear-gradient(90deg, #e3f6e8 0%, #dcf6ec70 36%, #087b9a18 85%),
    url("/assets/voyage.webp") center 44% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center;
  padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(4rem, 7vw, 6rem);
  min-height: 35rem;
}
.hero-copy { padding-inline-end: clamp(.25rem, 4vw, 4rem); }
.game-logo {
  display: block; width: clamp(12.5rem, 29vw, 23rem); height: auto;
  margin: 0 0 1rem -.3rem;
  filter: drop-shadow(0 9px 8px #2e6a6b35);
}
.hero h1 { margin: 0 0 .8rem; font-size: clamp(2rem, 4.2vw, 3.75rem); font-weight: 880; text-wrap: balance; }
.hero-copy p { margin: 0 0 1.3rem; max-width: 40ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #224959; }
.cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .66rem 1.05rem; border: 1px solid #d99534; border-radius: .75rem;
  color: #172e40; background: var(--yellow); box-shadow: 0 4px #c4802d;
  font-weight: 800; text-decoration: none;
}
.cta:hover { background: #ffe79e; }

.hero-visual { display: grid; align-items: center; justify-items: center; min-width: 0; }
.device {
  width: min(73%, 19.5rem); background: #173b53; padding: .58rem; border: 2px solid #f8f4d7;
  border-radius: clamp(1.3rem, 3vw, 2.4rem); box-shadow: 14px 22px 44px #063e5e65, 0 0 0 1px #234a60;
  transform: rotate(8deg);
}
.device img { display: block; width: 100%; height: auto; border-radius: clamp(1rem, 2.5vw, 1.8rem); }

.hero + .shell { position: relative; margin-top: -2.2rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(57rem, 100%);
  padding: .7rem 0; margin: 0 auto; background: #fffdf6; list-style: none;
  border-radius: 1.2rem; border: 1px solid #e2dec8; box-shadow: 0 10px 24px #634d1915;
}
.stats li { text-align: center; padding: .45rem .2rem; }
.stats li + li { border-inline-start: 1px solid #e2dec8; }
.stats strong { display: block; color: #146280; font-size: clamp(1.5rem, 3.3vw, 2.55rem); line-height: 1.1; font-weight: 860; }
.stats span { display: block; font-size: clamp(.73rem, 1.6vw, 1rem); margin-top: .25rem; overflow-wrap: anywhere; }

.gameplay { margin-block: clamp(2.8rem, 7vw, 4.8rem); }
.gameplay h2 { margin: 0 0 1.25rem; text-align: center; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 850; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.5rem); }
.feature { overflow: hidden; border: 1px solid #e7dec6; border-radius: 1.15rem; background: #fffdfa; }
.feature-picture { display: flex; justify-content: center; height: clamp(13rem, 25vw, 20rem); overflow: hidden; background: #d9f5f1; }
.feature-picture.map { background: #deecff; }
.feature-picture.postcards { background: #ffebc8; }
.feature-picture img { display: block; width: auto; height: 123%; align-self: start; margin-top: .7rem; border-radius: .85rem; border: 3px solid #effdff; box-shadow: 0 5px 14px #16475737; }
.feature-copy { padding: 1.05rem 1.15rem 1.15rem; }
.feature h3 { margin: 0 0 .45rem; font-size: 1.25rem; }
.feature p { margin: 0; color: var(--muted); }

.document { width: min(46rem, 100%); margin: 2.5rem auto 4rem; overflow-wrap: anywhere; }
.document h1 { margin: 0 0 .65rem; font-size: clamp(2rem, 6vw, 3.7rem); }
.document h2 { margin: 1.7rem 0 .3rem; font-size: 1.25rem; }
.document p { margin: .4rem 0 .85rem; }
.document .cta { margin-top: .4rem; }
.references, .updated, .site-foot { color: var(--muted); }
.site-foot { justify-content: flex-end; border-top: 1px solid #e2dec8; padding-block: 1.15rem 1.75rem; font-size: .9rem; }
.site-foot span { margin-inline-end: auto; }

@media (max-width: 45rem) {
  .shell { width: calc(100% - 2rem); }
  .nav { gap: .45rem .8rem; }
  .nav > a:not(.brand) { font-size: .86rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 1.7rem; text-align: center; padding-block: 1.5rem 4.1rem; }
  .hero::before { inset: 34% 0 0; mask-image: linear-gradient(180deg, transparent, #000 44%); }
  .hero-copy { padding: 0; }
  .game-logo { width: clamp(11.5rem, 51vw, 15rem); margin: 0 auto .75rem; }
  .hero-copy p { margin-inline: auto; }
  .device { width: min(58%, 14rem); transform: rotate(5deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-picture { height: 14.5rem; }
}

@media (max-width: 29rem) {
  .brand { width: 100%; }
  .languages { margin-inline-start: auto; }
  .languages ul { min-width: min(17rem, calc(100vw - 2rem)); }
}

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