/* SPDX-FileCopyrightText: The osage contributors */
/* SPDX-License-Identifier: CC-BY-SA-4.0 */

/* A dark, photographic page: the game's pictures carry it; type is set in
   Saira (the game's own face) for headings, Inter for reading. */

:root {
  --ink: #0b0d10;
  --ink-2: #12161b;
  --ink-3: #1a1f26;
  --line: #ffffff17;
  --text: #e9edf2;
  --muted: #9aa6b4;
  --soft: #c7d0da;
  --amber: #ffb833;
  --amber-ink: #1c1405;
  --display: "Saira", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.defs { position: absolute; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 21px/1 var(--display); letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--text); }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--soft); font: 500 15px/1 var(--body); }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px;
  background: var(--amber); color: var(--amber-ink);
  font: 600 16px/1 var(--body); letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); background: #ffc552; }
.button.ghost { background: #ffffff12; color: var(--text); border: 1px solid #ffffff2a; }
.button.ghost:hover { background: #ffffff1f; }
.button.small { padding: 9px 16px; font-size: 14px; background: #ffffff12; color: var(--text); border: 1px solid #ffffff26; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 60% 50%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #0b0d1066 0%, #0b0d1000 30%, #0b0d1000 45%, #0b0d10d9 82%, var(--ink) 100%),
    linear-gradient(90deg, #0b0d10cc 0%, #0b0d1000 60%);
}
.hero-copy { position: relative; padding: 140px 0 72px; }
.eyebrow { margin: 0 0 14px; color: var(--amber); font: 600 13px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(44px, 7.2vw, 96px)/0.98 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.lede { max-width: 640px; margin: 26px 0 0; color: var(--soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.lede strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.caption { max-width: 560px; margin: 40px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section.dark { background: var(--ink-2); border-block: 1px solid var(--line); }
h2 { margin: 0; font: 700 clamp(34px, 4.4vw, 56px)/1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 0 0 10px; font: 600 21px/1.25 var(--display); }
.intro { max-width: 720px; margin: 22px 0 0; color: var(--soft); font-size: 19px; }

/* Showcase */
.showcase { margin: 56px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.showcase img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.showcase figcaption { padding: 14px 20px 16px; color: var(--muted); font-size: 14.5px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-top: 18px; }
.features article {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
}
.features p { margin: 0; color: var(--muted); font-size: 16px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.015); }
.gallery figcaption { padding: 16px 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.gallery figcaption b { display: block; margin-bottom: 4px; color: var(--text); font: 600 13px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.tier { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.tier p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tier.accent { border-color: #ffb8335c; background: linear-gradient(180deg, #ffb83314, var(--ink-2) 60%); }
.badge { display: inline-block; margin-bottom: 18px; padding: 6px 10px; border-radius: 8px; background: #ffffff10; color: var(--text); font: 600 14px/1 var(--mono); letter-spacing: 0.06em; }
.tier.accent .badge { background: var(--amber); color: var(--amber-ink); }

/* Engine */
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.pillars { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.pillars li { padding: 20px 22px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.pillars b { color: var(--text); font-weight: 600; }

/* In the open */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.stats a { display: block; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); color: var(--muted); font-size: 15px; transition: border-color 0.15s ease; }
.stats a:hover { text-decoration: none; border-color: #ffb83366; }
.stats strong { display: block; margin-bottom: 6px; color: var(--text); font: 700 48px/1 var(--display); }
.start { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.start > div { padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.start p { margin: 0; color: var(--muted); font-size: 16px; }
code { font: 500 0.92em/1.5 var(--mono); color: var(--text); background: #ffffff10; padding: 2px 6px; border-radius: 5px; }
pre { margin: 0; overflow-x: auto; }
pre code { display: block; padding: 16px 18px; background: #06080a; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; line-height: 1.7; }

/* About the name */
.name { padding-block: clamp(64px, 8vw, 100px); background: var(--ink-2); border-top: 1px solid var(--line); }
.name h2 { font-size: clamp(26px, 3vw, 34px); }
.name p { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.name strong { color: var(--soft); font-weight: 600; }

/* Footer */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 620px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--soft); font-size: 14px; }

/* Smaller screens */
@media (max-width: 1000px) {
  .tiers, .stats { grid-template-columns: 1fr 1fr; }
  .two, .start { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav-inner { justify-content: space-between; }
  .gallery, .tiers, .stats { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero img { object-position: 47% 50%; }
  .hero-copy { padding-top: 110px; padding-bottom: 48px; }
  .actions .button { width: 100%; }
  .features article, .start > div { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .gallery img { transition: none; }
}
