/* Sub pages (games, devlog, press, partners): ordinary responsive layout in the same style as the home page. */
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; src: url('/assets/fonts/fredoka.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/outfit.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('/assets/fonts/nunito-900.woff2') format('woff2'); }
@font-face { font-family: 'Andika'; font-weight: 400; font-display: swap; src: url('/assets/fonts/andika.woff2') format('woff2'); }
:root { --cream: #fcf4eb; --card: #fffaf3; --ink: #1f1f21; --navy: #101c2c; --lava: #e83f17; --lava-hi: #f2582c; --foot: #282c30; --accent: var(--lava); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 400 18px/1.55 'Andika', 'Trebuchet MS', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--lava); }
h1, h2, h3 { font-family: 'Nunito', 'Fredoka', system-ui, sans-serif; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--navy); }
:focus-visible { outline: 3px solid var(--lava); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 44px, 1120px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 22px; padding: 12px max(22px, calc((100% - 1120px) / 2)); background: var(--cream); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 600 15px/1.4 'Outfit', system-ui, sans-serif; }
.top nav a { color: var(--navy); text-decoration: none; }
.top nav a:hover { color: var(--lava); }
.logo { display: inline-flex; align-items: center; gap: 2px; font: 700 27px/1 'Fredoka', system-ui, sans-serif; font-stretch: 75%; color: var(--ink); text-decoration: none; }
.logo img { width: 42px; height: auto; }
.logo-foot { color: #fff; }

.foot { margin-top: 64px; padding: 34px max(22px, calc((100% - 1120px) / 2)); background: var(--foot); color: #c8c9ca; font: 400 15px/1.5 'Outfit', system-ui, sans-serif; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0; }
.foot nav a { color: #ece8e1; text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot p { margin: 0; }
.foot p a { color: #ece8e1; }

.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 22px; border-radius: 99px; font: 600 16px/1 'Outfit', system-ui, sans-serif; white-space: nowrap; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn .arrow { width: 16px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--lava); color: #fff; }
.btn-primary:hover { background: var(--lava-hi); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: 0 0 0 1px #d8d3cb; }
.next .arrow, .related .arrow { width: 16px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }
.status { display: inline-block; font: 700 13px/26px 'Outfit', system-ui, sans-serif; padding: 0 12px; border-radius: 99px; color: #fff; white-space: nowrap; }
.s-live { background: #1f8a4c; } .s-demo { background: #e83f17; } .s-dev { background: #2a6fb0; } .s-proto { background: #6a4bb0; } .s-concept { background: #5d5f63; }

.page-head { padding-block: 34px 10px; }
.page-head h1 { font-size: clamp(38px, 7vw, 64px); }
.page-head p { max-width: 720px; margin: 12px 0 0; }
.lost { text-align: center; }
.lost img { margin: 0 auto 10px; }
.lost p { margin-inline: auto; }

/* game page */
.game-hero { background: #0d0e10; }
.game-hero video, .game-hero img { width: min(100%, 1280px); aspect-ratio: 16 / 9; margin-inline: auto; object-fit: cover; }
.game-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-block: 24px 6px; }
.crumbs { margin: 0 0 4px; font: 600 14px/1.4 'Outfit', system-ui, sans-serif; }
.game h1 { font-size: clamp(36px, 6vw, 60px); color: var(--accent); }
.game h1 small, .press-game h2 small { display: inline-block; margin-left: 10px; font: 500 14px/1 'Outfit', system-ui, sans-serif; letter-spacing: 0; color: #6a6f76; vertical-align: middle; }
.tagline { margin: 8px 0 0; font-size: 21px; line-height: 1.3; }
.game-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px 44px; margin-top: 12px; }
.note { padding: 10px 14px; background: #fff; border-left: 4px solid var(--accent); border-radius: 4px; font-size: 16px; }
.features-list { margin: 0; padding-left: 22px; }
.features-list li { margin-block: 4px; }
.facts { align-self: start; padding: 16px 18px; background: var(--card); border-radius: 12px; box-shadow: 0 1px 0 #eadfd2, 0 4px 14px rgba(60,40,20,.07); font-size: 16px; }
.facts p { margin: 12px 0 0; }
dl { margin: 0; }
dt { font: 700 12px/1.3 'Outfit', system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #6a6f76; margin-top: 10px; }
dt:first-child { margin-top: 0; }
dd { margin: 1px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 30px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.related { margin-top: 30px; }
.related h2 { font-size: 24px; margin-bottom: 6px; }
.related a { display: block; }
.related time { color: #6a6f76; font-size: 15px; margin-left: 6px; }
.fine { margin-top: 22px; font-size: 14px; color: #5a6068; }
.next { margin-top: 28px; font: 600 17px/1.4 'Outfit', system-ui, sans-serif; }

/* tiles */
.tier { margin-top: 30px; }
.tier h2 { font-size: 28px; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tile { display: block; background: var(--card); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 0 #eadfd2, 0 4px 14px rgba(60,40,20,.09); transition: transform .18s ease; }
.tile:hover { transform: translateY(-3px); }
.tile-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tile-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px 14px; }
.tile-body strong { font: 900 20px/1.15 'Nunito', system-ui, sans-serif; color: var(--accent); }
.tile-body em { flex-basis: 100%; font-style: normal; font-size: 16px; line-height: 1.35; }

/* devlog */
.posts-list { display: grid; gap: 16px; margin-top: 18px; }
.post-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: center; color: inherit; text-decoration: none; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 #eadfd2, 0 4px 14px rgba(60,40,20,.09); }
.post-row img { width: 100%; height: 100%; min-height: 135px; object-fit: cover; }
.post-row span { display: block; padding: 12px 16px 12px 0; }
.post-row time, .post-page > time { display: block; font: 600 13px/1.4 'Outfit', system-ui, sans-serif; color: #6a6f76; }
.post-row strong { display: block; font: 900 22px/1.15 'Nunito', system-ui, sans-serif; }
.post-row em { display: block; margin-top: 4px; font-style: normal; font-size: 16px; line-height: 1.35; }
.post-page { max-width: 780px; padding-top: 28px; }
.post-page h1 { font-size: clamp(32px, 5.4vw, 48px); color: var(--accent); }
.post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 16px; border-radius: 12px; }

/* press + partners */
.press-about, .partners-copy { margin-top: 22px; }
.press-about h2, .partners-copy h2, .partners-cta h2 { font-size: 28px; }
.press-game { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; margin-top: 30px; padding-top: 26px; border-top: 1px solid #eadfd2; scroll-margin-top: 12px; }
.press-game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.press-game h2 { font-size: 28px; color: var(--accent); }
.press-game p { margin: 8px 0; }
.press-game dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; font-size: 16px; }
.press-game dt { margin: 0; align-self: center; }
.downloads { font-size: 15px; }
.partners-cta { margin-top: 36px; }
.partners-cta p { margin: 8px 0 14px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .game-body, .press-game { grid-template-columns: minmax(0, 1fr); }
  .post-row { grid-template-columns: minmax(0, 1fr); }
  .post-row img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .post-row span { padding: 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
