/* ------------------------------------------------------------------
   NVForever site styles
   Change the colours below to re-theme the whole site.
   ------------------------------------------------------------------ */
:root {
  --bg: #0f1115;
  --bg-alt: #151922;
  --surface: #1b202b;
  --border: #2a3140;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #f0a32a;        /* main brand colour */
  --accent-hover: #ffb84d;
  --accent-text: #15120c;   /* text on accent buttons */

  --radius: 10px;
  --max: 1100px;
  --narrow: 760px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

code, pre { font-family: var(--mono); font-size: .9em; }
pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8em 1em;
  overflow-x: auto;
}

[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-text);
  padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  padding: .65em 1.2em;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: .35em .85em; font-size: .9rem; }
.btn-large { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 21, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.4em; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav .btn { color: var(--accent-text); background: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(240, 163, 42, .18), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); margin-bottom: .25em; }
.eyebrow { color: var(--muted); font-size: .95rem; letter-spacing: .04em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }

/* ---------- Download ---------- */
.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.download-meta dl {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0 0 20px;
}
.download-meta dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.download-meta dd { margin: 0; font-weight: 600; word-break: break-word; }
.checksum {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 20px;
}
.checksum-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.checksum code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .8rem; }
.download-box .small { margin: 14px 0 0; text-align: center; }

/* ---------- Requirements ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: .5em 0 .5em 2em; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .5em;
  color: var(--accent); font-weight: 700;
}

/* ---------- Install steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 32px; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 40px;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: -21px; top: -4px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-weight: 800;
}
.steps p { color: var(--muted); }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}
.callout p { margin: .4em 0 0; color: var(--muted); }

/* ---------- FAQ ---------- */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer; font-weight: 600; padding: 16px 0;
  list-style: none; position: relative; padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.4rem; font-weight: 400;
}
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; margin: 0; }


/* ---------- Disclaimer banner ---------- */
.notice-bar {
  background: #2a2112;
  border-bottom: 1px solid #4a3a1c;
  color: #f3dfb8;
  font-size: .88rem;
  line-height: 1.5;
  padding: 8px 0;
  text-align: center;
}
.notice-bar a { color: var(--accent-hover); margin-left: .3em; }

.hero-note { color: var(--muted); font-size: .88rem; max-width: 560px; margin: 2em auto 0; }
.center { text-align: center; }
.subhead { margin-top: 8px; }

/* ---------- Status ---------- */
.status-list { list-style: none; padding: 0; margin: 0 0 1em; }
.status-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: .6em 0; border-bottom: 1px solid var(--border);
}
.tag {
  flex: none; width: 112px; text-align: center; white-space: nowrap;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .2em .5em; border-radius: 999px; border: 1px solid;
}
.tag-done { color: #7fd69a; border-color: #2f6b43; background: #15281c; }
.tag-progress { color: var(--accent); border-color: #6b4b17; background: #2a2112; }
.tag-started { color: #8fb8ff; border-color: #2d4a7a; background: #141e30; }
.tag-todo { color: var(--muted); border-color: var(--border); background: transparent; }

/* ---------- Callout variants ---------- */
.callout-strong { margin-bottom: 24px; background: #221b10; }
.callout-strong p { color: #d9ccb4; }

/* ---------- Support ---------- */
.btn-kofi { background: #72a4f2; color: #0d1320; }
.btn-kofi:hover { background: #8fb8ff; color: #0d1320; }
.support-note { max-width: 520px; margin: 1.4em auto 0; }

/* ---------- Download terms ---------- */
.download-terms { color: var(--muted); margin: 14px 0 0; }

/* ---------- Controls table ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
.keys { width: 100%; border-collapse: collapse; font-size: .95rem; }
.keys th, .keys td { text-align: left; padding: .55em .8em; border-bottom: 1px solid var(--border); }
.keys th { color: var(--muted); font-weight: 500; width: 45%; }
kbd {
  display: inline-block; min-width: 1.7em; text-align: center;
  font-family: var(--mono); font-size: .8rem;
  padding: .1em .45em; border-radius: 5px;
  background: var(--bg); border: 1px solid var(--border); border-bottom-width: 2px;
}
pre .os {
  display: inline-block; min-width: 5.5em;
  color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  user-select: none;
}
details.build { margin-top: 8px; }
details.build pre { margin-bottom: 1em; }
details.build p { padding-bottom: 0; margin-bottom: 1em; }

/* ---------- Legal ---------- */
.legal h3 { margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal p, .legal li { color: #c9ced8; }
.legal .caps { text-transform: uppercase; font-size: .82rem; letter-spacing: .02em; color: var(--muted); }

.footer-disclaimer { margin: 18px 0 0; font-size: .8rem; line-height: 1.55; color: #7d8594; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2em; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound h1 { font-size: 4rem; margin: 0; color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 12px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 56px 0; }
  .download-box { padding: 20px; }
  .status-list li { flex-direction: column; gap: 4px; }
  .keys th { width: auto; }
}
