@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/NotoSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/NotoSans-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #0a0f15;
  --panel: #111923;
  --raised: #18222e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9edf2;
  --dim: #9ba7b6;
  --faint: #667384;
  --accent: #d8b46a;
  --accent-bright: #f2d38d;
  --accent-deep: #8a6b2e;
  --on-accent: #1a1408;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Noto Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-bright); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--raised); padding: 0.1em 0.4em; border-radius: 5px; }

/* ---------- hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #10161d url("img/hero.jpg") center / cover no-repeat;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.94) 0%, rgba(4, 6, 8, 0.78) 34%, rgba(4, 6, 8, 0.18) 64%, rgba(4, 6, 8, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, var(--bg) 100%);
}
.top {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px clamp(16px, 5vw, 88px);
}
.mark { font-family: "Cinzel", serif; letter-spacing: 0.08em; color: var(--dim); }
.mark b { color: var(--accent-bright); font-weight: 700; }
.links a { color: var(--text); text-decoration: none; margin-left: 22px; opacity: 0.85; }
.links a:hover { color: var(--accent-bright); opacity: 1; }
.hero-body {
  position: relative;
  margin: auto 0;
  padding: 40px clamp(16px, 5vw, 88px) 72px;
  max-width: 720px;
}
.overline { margin: 0; font-family: "Cinzel", serif; font-weight: 600; letter-spacing: 0.7em; color: var(--accent); font-size: 18px; }
h1 {
  margin: 0; font-family: "Cinzel", serif; font-weight: 700;
  font-size: clamp(56px, 11vw, 112px); line-height: 1; color: var(--accent-bright);
  letter-spacing: 0.02em; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.ornament { position: relative; height: 18px; width: min(360px, 80%); margin: 10px 0 6px; }
.ornament::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--accent-deep); opacity: 0.8; }
.ornament span { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: var(--accent); transform: translate(-50%, -50%) rotate(45deg); }
.tagline { margin: 0; font-family: "Cormorant", serif; font-style: italic; font-size: 27px; color: var(--dim); }
.lede { color: var(--text); opacity: 0.9; max-width: 560px; margin: 22px 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.version { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* ---------- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 9px;
  font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 0.12em; font-size: 15px;
  text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-bright); }
.button.ghost { border: 1px solid var(--accent-deep); color: var(--accent-bright); }
.button.ghost:hover { border-color: var(--accent); }
.button.disabled { opacity: 0.45; pointer-events: none; }

/* ---------- sections */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; }
h2 { font-family: "Cinzel", serif; font-weight: 700; font-size: 30px; margin: 0 0 12px; letter-spacing: 0.04em; }
h3 { font-family: "Cinzel", serif; font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--accent-bright); letter-spacing: 0.04em; }
.muted { color: var(--dim); }
.small { font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 48px; }
.features article, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.features p { margin: 0; color: var(--dim); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 48px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.gallery figcaption { color: var(--faint); font-size: 14px; margin-top: 8px; }

.panel { margin-bottom: 24px; border-top: 2px solid var(--accent-deep); }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.download { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.download .platform { font-family: "Cinzel", serif; font-weight: 700; font-size: 18px; }
.download .meta { color: var(--faint); font-size: 12px; word-break: break-all; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 0; }
.facts div { background: var(--raised); border-radius: 8px; padding: 12px 14px; }
.facts dt { font-family: "Cinzel", serif; font-size: 12px; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.facts dd { margin: 4px 0 0; }

.releases { list-style: none; margin: 0; padding: 0; }
.releases li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.releases li:last-child { border-bottom: 0; }
.releases .files a { margin-left: 14px; }

footer { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 48px; color: var(--faint); font-size: 13px; }

@media (max-width: 640px) {
  .links a { margin-left: 14px; }
  .links a:first-child { margin-left: 0; }
  .top { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 80vh; }
  .gallery img { height: 220px; }
}
