/*======================================================================================================================
  THE SITE'S FRONT PAGE (index.html): what ShadyTracer is, the button to the app, the FAQ.

  Dark like the app (style.css's #1e1e1e and #e0e0e0), its two lights the icon's (favicon.svg): amber and blue. System
  faces only: the page loads no fonts and no scripts from anywhere, and nothing but its own files. One column on a phone,
  text beside a picture from 900 px; the pictures are the README's own (docs/screenshots), whole-window screenshots
  about 1920 x 1030, shown no wider than their column.
======================================================================================================================*/
:root {
    --bg: #1e1e1e; --bg-raised: #262626; --bg-deep: #171717; --rule: #3a3a3a;
    --ink: #e0e0e0; --ink-soft: #b4b4b4; --ink-faint: #8a8a8a; --white: #ffffff;
    --amber: #f2a93b; --blue: #7fb8ff; --green: #7ccf8e;
    --radius: 10px;
    --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); }
a { color: var(--blue); }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--white); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
code { font-family: var(--f-mono); font-size: .9em; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* the bar: name, the sections, the app */
.top { position: sticky; top: 0; z-index: 10; background: rgba(23, 23, 23, .92); backdrop-filter: blur(8px);
       border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--white); font-weight: 650; text-decoration: none; }
.brand img { width: 1.6rem; height: 1.6rem; }
.top nav { display: flex; gap: 1.1rem; margin-left: auto; font-size: .95rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--white); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

.btn { display: inline-block; padding: .7em 1.3em; border-radius: 999px; font-weight: 600; text-decoration: none;
       border: 1.5px solid var(--amber); color: var(--amber); white-space: nowrap; }
.btn:hover { background: rgba(242, 169, 59, .12); color: var(--amber); }
.btn.primary { background: var(--amber); color: #1b1203; }
.btn.primary:hover { background: #ffbe5c; color: #1b1203; }
.btn.small { padding: .4em 1em; font-size: .92rem; }

/* the hero: what it is, the button, whether this browser can run it, the picture */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2.5rem; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; max-width: 18em; margin-inline: auto; }
.hero h1 .tint { color: var(--amber); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 44rem; margin: 0 auto 1.6rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-bottom: 1rem; }
.gpu { min-height: 1.6em; font-size: .95rem; color: var(--ink-faint); margin-bottom: 2.2rem; }
.gpu.ok { color: var(--green); }
.gpu.no { color: var(--amber); }
.shot { border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: 0 18px 60px rgba(0, 0, 0, .55); background: var(--bg-deep); }
.hero .shot { margin-inline: auto; }

/* sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
section.alt { background: var(--bg-deep); }
.intro { max-width: 46rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.legend { font-size: .95rem; color: var(--ink-faint); }
.ok-mark { color: var(--green); font-weight: 700; }
.pre-mark { color: var(--ink-faint); font-style: italic; }

/* a feature: its words beside its picture, sides alternating; one column on a phone */
.feature { display: grid; gap: 1.6rem 3rem; align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.feature:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
    .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .feature.flip > .text { order: 2; }
}
.feature .text p, .feature .text li { color: var(--ink-soft); }
.feature .text strong { color: var(--ink); }

.pair { display: grid; gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; gap: 1rem 3rem; }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols ul { color: var(--ink-soft); }

/* the checks: a test, what must hold, what it read */
.checks { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5rem 0; }
.checks th, .checks td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.checks th { color: var(--ink-faint); font-weight: 600; }
.checks td:first-child { font-family: var(--f-mono); color: var(--blue); white-space: nowrap; }
.table { overflow-x: auto; }

.chapters { display: grid; gap: .8rem; padding: 0; list-style: none; margin: 1.5rem 0; }
@media (min-width: 760px) { .chapters { grid-template-columns: repeat(3, 1fr); } }
.chapters a { display: block; height: 100%; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
              background: var(--bg-raised); text-decoration: none; color: var(--ink); }
.chapters a:hover { border-color: var(--blue); }
.chapters small { display: block; color: var(--ink-faint); font-size: .85rem; margin-top: .2rem; }

.maker { max-width: 48rem; }
.maker p { color: var(--ink-soft); }
.maker h3 { margin-top: 1.8rem; }
.faq { max-width: 48rem; }
.faq h3 { margin-top: 2rem; }
.faq p { color: var(--ink-soft); }

footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--ink-faint); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
footer a { color: var(--ink-soft); }
.heart { color: #e0607e; }
