/* Runekeeper website. Plain and quiet like the manual it shares a look with (sizes, colors and
   fonts follow manual.css); follows the system appearance. */

:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --background: #ffffff;
  --band: #f5f5f7;
  --rule: #d2d2d7;
  --accent: #7a4fb0;
  --accent-text: #ffffff;
  --code-background: rgba(0, 0, 0, 0.05);
  --site-header-height: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --background: #1e1e1e;
    --band: #262626;
    --rule: #3a3a3c;
    --accent: #b38ae6;
    --accent-text: #1e1e1e;
    --code-background: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }

body.site-page {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

code {
  font: 0.85em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code-background);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Header: the same on every page, including the manual, where it sits above the contents list. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--site-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--background) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
  font: 15px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.site-nav { display: flex; gap: 4px; margin-left: auto; }

.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover { background: var(--code-background); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

body { padding-top: var(--site-header-height); }

.site-main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--secondary);
}

.site-footer p { margin: 4px 0; }

/* On the manual the footer runs beside the fixed contents list. */
.toc ~ .site-footer { margin-left: var(--toc-width); }

/* Buttons */
.button {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.button:hover { background: var(--code-background); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.primary:hover { filter: brightness(1.08); }
.button.large { padding: 12px 28px; font-size: 18px; }

/* Home */
.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 16px 0 4px; }
.tagline { font-size: 22px; color: var(--secondary); margin: 0 0 16px; }
.intro { max-width: 820px; margin: 0 auto 24px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.requirements { font-size: 14px; color: var(--secondary); }

.screenshot { margin: 24px 0 40px; }
.screenshot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25)); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 40px;
}

.features h2 { font-size: 18px; margin: 16px 0 4px; }
.features p { margin: 0 0 8px; color: var(--secondary); }


/* Download */
.download { text-align: center; padding: 56px 0 16px; }
.download h1 { font-size: 36px; margin: 12px 0 24px; }
.download .links { font-size: 14px; }
.checksum { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--secondary); word-break: break-all; }

.install { max-width: 640px; margin: 32px auto 0; }
.install h2 { font-size: 22px; }
.install li { margin: 6px 0; }

@media (max-width: 720px) {
  .site-header { gap: 12px; padding: 0 16px; }
  .site-brand { font-size: 0; }
  .site-brand img { width: 28px; height: 28px; }
  .site-nav a { padding: 7px 8px; }
  .site-main { padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .toc ~ .site-footer { margin-left: 0; }
}
