/* Aerow Space: one stylesheet for the studio and its games.
   Studio pages use the night palette; Let's Settle pages add .settle for parchment, ink and brass. */

@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --coral: #ea5455;
  --coral-soft: #f08a8b;
  --night: #12141f;
  --night-2: #1a1d2b;
  --night-line: #2c3145;
  --star: #f6e6c8;
  --text: #ece6da;
  --text-soft: #a9a4b5;

  --parchment: #efe2c4;
  --parchment-shade: #d9c69d;
  --leather: #4a2f22;
  --brass: #c99a3f;
  --brass-bright: #f2c45a;
  --ink: #2a1e16;
  --ink-soft: #5b4a3c;

  --bg: var(--night);
  --surface: var(--night-2);
  --line: var(--night-line);
  --fg: var(--text);
  --fg-soft: var(--text-soft);
  --accent: var(--coral);
  --accent-fg: #fff;

  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

.settle {
  --bg: var(--parchment);
  --surface: #f6ecd6;
  --line: var(--parchment-shade);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --accent: var(--leather);
  --accent-fg: var(--parchment);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 600 17px/1.6 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.settle a:hover { color: #8a4b23; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Fredoka", sans-serif; font-size: 1.25rem; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; font-size: .95rem; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.settle .nav a:hover, .settle .nav a[aria-current="page"] { color: #8a4b23; }

.site-foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 40px; color: var(--fg-soft); font-size: .92rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 800; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { color: var(--accent-fg); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--fg); }
.settle .btn { border-color: var(--brass); box-shadow: inset 0 0 0 1px rgba(242,196,90,.35); }
.settle .btn.ghost { border-color: var(--brass); }
.tag { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-soft); }
.settle .tag { border-color: var(--brass); color: var(--leather); background: rgba(201,154,63,.12); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Studio home */
.studio-hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; }
.studio-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, var(--star) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 14%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 44%, var(--star) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 18%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 72%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 84%, var(--star) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, var(--star) 50%, transparent 51%),
    radial-gradient(60% 70% at 50% 0%, rgba(234,84,85,.18), transparent 70%),
    radial-gradient(50% 60% at 85% 100%, rgba(74,47,107,.45), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.studio-hero .mark { width: 96px; height: 96px; margin: 0 auto 20px; }
.studio-hero p.lede { font-size: 1.2rem; color: var(--fg-soft); max-width: 34rem; margin: 0 auto; }

.section { padding: 56px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.game-card { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.game-card:hover { border-color: var(--accent); color: inherit; }
.game-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.game-card .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.game-card .icon { width: 64px; height: 64px; border-radius: 14px; image-rendering: pixelated; margin-bottom: 12px; }
.game-card p { color: var(--fg-soft); }
.game-card .tag { align-self: flex-start; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about p { color: var(--fg-soft); }

/* Let's Settle */
.settle-hero { position: relative; color: #fff; min-height: min(78vh, 680px); display: flex; align-items: flex-end; }
.settle-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: 0; }
.settle-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,30,22,.88), rgba(42,30,22,.25) 55%, transparent); z-index: 0; }
.settle-hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 48px; width: 100%; }
.settle-hero .title { display: flex; align-items: center; gap: 18px; }
.settle-hero .title img { width: 84px; height: 84px; border-radius: 18px; image-rendering: pixelated; border: 3px solid var(--brass); }
.settle-hero h1 { margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.settle-hero p { font-size: 1.2rem; max-width: 38rem; margin-top: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.settle-hero .tag { color: var(--parchment); border-color: var(--brass-bright); background: rgba(42,30,22,.5); }
.settle-hero .btn.ghost { color: #fff; }

.pitch { font-size: 1.2rem; max-width: 46rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { color: var(--leather); }
.feature p { margin: 0; color: var(--fg-soft); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 3px solid var(--leather); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .9rem; color: var(--fg-soft); margin-top: 6px; }

.board { background: var(--surface); border: 3px solid var(--leather); border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 2px var(--brass) inset; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; color: var(--fg-soft); font-weight: 800; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.download { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; }
.download:hover { border-color: var(--brass); }
.download img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; image-rendering: pixelated; }
.download small { display: block; color: var(--fg-soft); }

/* Plain text pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.muted { color: var(--fg-soft); }
.page-head { padding: 64px 0 12px; }

@media (max-width: 760px) {
  .game-card, .about { grid-template-columns: 1fr; }
  .studio-hero { padding: 64px 0 48px; }
  .settle-hero .title img { width: 60px; height: 60px; }
  .facts th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
