@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #fafbf8;
  --ink: #17231d;
  --muted: #47534c;
  --rule: #d9dfd7;
  --lime: #d6f594;
  --space: clamp(1rem, 4.5vw, 4.5rem);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #1866bd; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(88rem, calc(100% - var(--space) * 2)); margin-inline: auto; }
.skip { position: fixed; top: -5rem; left: 1rem; padding: 0.75rem; background: white; z-index: 3; }
.skip:focus { top: 0.5rem; }
.mast, .foot, .section-title, .main-nav, .brand, .languages { display: flex; align-items: center; }
.mast { min-height: 5.5rem; gap: clamp(1rem, 4vw, 4rem); }
.brand { text-decoration: none; gap: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.075em; line-height: 1; }
.brand img { margin-right: 0.55rem; border-radius: 0.54rem; }
.brand span { color: #52803d; }
.main-nav { gap: clamp(1rem, 2.5vw, 2.15rem); margin-left: auto; }
.main-nav a, .languages a, .foot a { font-size: 0.93rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: 0.28em; }
.languages { gap: 0.12rem; padding: 0.18rem; border: 1px solid var(--rule); border-radius: 2rem; }
.languages a { padding: 0.38rem 0.68rem; border-radius: 2rem; color: var(--muted); font-size: 0.8rem; }
.languages [aria-current] { color: white; background: var(--ink); }
.hero { isolation: isolate; position: relative; min-height: 31rem; display: flex; align-items: center; overflow: hidden; border-radius: 1.35rem; color: white; background: #20182d; }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#21192f 0%,#231a30 32%,rgba(33,25,46,.93) 40%,rgba(33,25,46,.5) 52%,rgba(33,25,46,0) 68%); }
.hero-copy { padding: clamp(2rem, 4.6vw, 4.8rem); max-width: 63%; }
.hero h1 { font-size: clamp(3.1rem, 6.6vw, 7.1rem); line-height: .97; font-weight: 800; letter-spacing: -.068em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-copy p { margin-top: 1.45rem; max-width: 22em; line-height: 1.55; font-size: clamp(1rem,1.35vw,1.25rem); color: #ece9ef; text-wrap: pretty; }
.primary { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .72rem 1.35rem; margin-top: 1.65rem; font-weight: 750; text-decoration: none; color: #172315; background: var(--lime); border-radius: 2rem; }
.primary:hover { background: #e6ffb4; }
.catalogue { padding-block: clamp(3rem, 6.5vw, 6rem); }
.section-title { justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.2rem, 2.4vw, 2rem); }
.section-title h2, .publisher h2 { font-size: clamp(2rem,3.9vw,3.65rem); font-weight: 750; line-height: 1.1; letter-spacing: -.06em; text-wrap: balance; }
.section-title span { font-size: 0.94rem; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.25rem,2.6vw,2.7rem); }
.game, .game-link, .game-content { display: flex; flex-direction: column; min-width: 0; }
.game-link { height: 100%; color: inherit; text-decoration: none; border-radius: .8rem; }
.cover { aspect-ratio: 1.5; border-radius: .85rem; overflow: hidden; background: #26363a; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.spell img { object-position: 50% 45%; }
.postcards img { object-position: 50% 36%; }
.port { background: #226e85; }
.port img { object-position: 50% 51%; }
.game-content { flex: 1; align-items: flex-start; }
.genre { font-size: .875rem; font-weight: 650; color: #42613e; margin-top: 1rem; }
.game h3 { margin: .35rem 0 .62rem; font-size: clamp(1.34rem,2.15vw,2.16rem); line-height: 1.16; letter-spacing: -.047em; font-weight: 750; text-wrap: balance; }
.summary, .publisher p { color: var(--muted); line-height: 1.64; font-size: 1rem; }
.store-link, .inline { display: inline-block; color: var(--ink); text-decoration: underline; text-decoration-color: #778e74; text-underline-offset: .3em; text-decoration-thickness: 1px; font-weight: 700; }
.store-link { margin-top: auto; padding-top: 1.1rem; }
.game-link:hover .store-link, .inline:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .game-link:hover img { transform: scale(1.035); } }
.publisher { background: #e9f0e2; padding-block: clamp(2.5rem,6vw,5.5rem); }
.publisher-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem,7vw,6rem); }
.publisher h2 { font-size: clamp(1.75rem,2.8vw,2.65rem); }
.publisher p { max-width: 36rem; margin: 1rem 0 .9rem; }
.contact { border-left: 1px solid #c9d6bd; padding-left: clamp(1.5rem,5vw,4.5rem); }
.mail { overflow-wrap: anywhere; }
.foot { justify-content: space-between; gap: 1rem; padding-block: 1.5rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 54rem) {
  .hero { min-height: 26rem; }
  .hero-copy { padding: 2.5rem; }
  .games-grid { gap: 1rem; }
}
@media (max-width: 43rem) {
  .mast { min-height: 4.1rem; gap: .75rem; }
  .brand { font-size: 1.35rem; }
  .brand img { width: 1.8rem; height: 1.8rem; margin-right: .35rem; }
  .main-nav { gap: .9rem; }
  .main-nav a { font-size: .875rem; }
  .main-nav a:nth-child(2) { display: none; }
  .languages a { padding: .34rem .48rem; }
  .hero { min-height: 32rem; align-items: flex-end; border-radius: .9rem; }
  .hero-art { width: 100%; height: 69%; object-position: 50% 44%; }
  .hero::after { background: linear-gradient(0deg,#21192f 0%,#21192f 27%,rgba(33,25,47,.96) 36%,rgba(33,25,47,.55) 54%,rgba(33,25,47,0) 71%); }
  .hero-copy { padding: 1.55rem; max-width: 100%; }
  .hero h1 { font-size: clamp(3rem,11vw,4.4rem); }
  .hero-copy p { margin-top: .9rem; max-width: 22em; }
  .primary { margin-top: 1.05rem; }
  .games-grid, .publisher-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .cover { aspect-ratio: 1.6; }
  .game h3 { font-size: 1.67rem; }
  .section-title span { font-size: .86rem; }
  .contact { border: 0; padding: 1.65rem 0 0; border-top: 1px solid #c9d6bd; }
}
@media (max-width: 24rem) {
  .main-nav a:first-child { display: none; }
  .hero-copy { padding: 1.2rem; }
  .hero { min-height: 31rem; }
}
