/* Voxenite site. Palette follows the elementary OS swatches used in-game:
   Blueberry #3689e6, Lime #68b723, Strawberry #c6262e, Banana #f9c440,
   Orange #f37329, Cocoa #715344, Slate #485a6c, Silver #d4d4d4, Black #333. */

:root {
  --bg: #1b2028;
  --bg-2: #232a34;
  --card: #273445;
  --text: #ecf0f4;
  --muted: #a5b0bd;
  --line: #34435a;
  --blueberry: #3689e6;
  --blueberry-dark: #0d52bf;
  --lime: #68b723;
  --lime-dark: #3a9104;
  --strawberry: #c6262e;
  --banana: #f9c440;
  --orange: #f37329;
  --cocoa: #715344;
  --silver: #d4d4d4;
  --slate: #485a6c;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #2c3d55 0%, var(--bg) 60%);
  min-height: 100vh;
}
a { color: var(--blueberry); }
code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: 1.6rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.75em; }

.top {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 6px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px 64px; }
section { padding: 48px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-top: 32px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
.tagline { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }

.download-box { display: flex; flex-direction: column; gap: 10px; }
.btn-download {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  align-self: flex-start;
  padding: 16px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--lime) 0%, var(--lime-dark) 100%);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(104, 183, 35, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  min-width: 280px;
}
.btn-download:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-download:active { transform: translateY(1px); }
.btn-sub { font-size: 0.85rem; font-weight: 500; opacity: 0.9; }
.btn-sub:empty { display: none; }
.download-box[data-state="loading"] .btn-download,
.download-box[data-state="unavailable"] .btn-download {
  background: var(--slate); box-shadow: none; cursor: default; filter: none; transform: none;
}
.download-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.dot { margin: 0 8px; }
.other-platforms { color: var(--muted); font-size: 0.92rem; margin: 0; }
.other-platforms a { margin-left: 8px; }
.other-platforms a[aria-current="true"] { display: none; }
.not-yet { color: var(--banana); font-weight: 600; }

/* Decorative voxel stack */
.hero-art { display: flex; justify-content: center; }
.voxel-stack {
  display: grid; grid-template-columns: repeat(3, 64px); gap: 10px;
  transform: rotate(-8deg) skewY(4deg);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
}
.vx { width: 64px; height: 64px; border-radius: 10px; display: block;
      box-shadow: inset -8px -8px 0 rgba(0,0,0,0.22), inset 6px 6px 0 rgba(255,255,255,0.14); }
.vx.grass { background: var(--lime); }
.vx.dirt  { background: var(--cocoa); }
.vx.stone { background: var(--slate); }
.vx.fire  { background: var(--orange); }
.vx.water { background: var(--blueberry); }
.vx.wood  { background: #8a6a4f; }

/* Grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.grid article p:last-child { margin-bottom: 0; }
.grid ol { padding-left: 1.2em; margin: 0 0 0.75em; }
.grid li { margin-bottom: 0.4em; }
.req { color: var(--muted); font-size: 0.92rem; }
.note { color: var(--muted); margin-top: 18px; }

footer { max-width: var(--max); margin: 0 auto; padding: 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.92rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid, .grid.three, .grid.two { grid-template-columns: 1fr; }
  .top nav { display: none; }
}
