/* ReCON's landing page. System fonts only: nothing is loaded from anywhere else. */
:root {
  --bg: #0e0f11;
  --panel: #17181b;
  --line: #2a2c31;
  --text: #ececee;
  --muted: #a3a6ad;
  --accent: #c3ff60;
  --accent-ink: #c3ff60;
  --on-accent: #101300;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf9;
    --panel: #ffffff;
    --line: #e4e4e0;
    --text: #1c1c1e;
    --muted: #5b5d63;
    --accent: #c2410c;
    --accent-ink: #b33a09;
    --on-accent: #ffffff;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
p { margin: 0 0 0.75rem; }

.top, main > section, footer { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }

main > section { padding-top: 56px; padding-bottom: 8px; }
.hero { padding-top: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; margin: 0.25rem 0 1rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.lede a { color: var(--text); }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.note { color: var(--muted); font-size: 0.92rem; }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.7rem 1.1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600;
  overflow-wrap: anywhere; text-align: center;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.06); }
.button span { font-weight: 400; opacity: 0.75; white-space: nowrap; }
/* The site's script marks the visitor's system first; without it both show. */
.cta .button.primary.other { background: var(--panel); color: var(--text); border-color: var(--line); }

.shot { display: block; width: 100%; height: auto; margin-top: 2rem; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.grid p { color: var(--muted); margin: 0; }

.table { display: grid; gap: 0.75rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.row > div { min-width: 0; }
.row p { color: var(--muted); margin: 0; }
.row p.file { font-size: 0.85rem; margin-bottom: 0.35rem; }
.row .button { min-width: 9rem; }
.downloads > .note { margin-top: 0.9rem; }
.row .button { flex-shrink: 0; max-width: 100%; }
@media (max-width: 720px) {
  .row { flex-direction: column; align-items: stretch; }
}

pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; margin: 0 0 1rem; }
pre code { background: none; border: 0; padding: 0; }
.muted { color: var(--muted); }
.sums { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; color: var(--muted); }
.sums li { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.sums code { font-size: 0.85em; }

footer { padding-top: 48px; padding-bottom: 40px; color: var(--muted); font-size: 0.85rem; }
footer p { margin-bottom: 0.4rem; }
