/* schneidi project page. Mobile first, no external requests. */
:root {
  --bg: #161618;
  --bg-2: #1f1f23;
  --bg-3: #29292e;
  --line: #34343a;
  --text: #ecebe8;
  --muted: #a9a8a3;
  --blue: #3d7fd6;
  --purple: #8a5cc7;
  --green: #3f9a5a;
  --red: #e8414a;
  --orange: #e8893a;
  --mono: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: .2em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
code, pre { font-family: var(--mono); font-size: .9em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--orange); color: #111; padding: .5rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(22, 22, 24, .94);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; gap: .3rem; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); padding: .7rem .5rem; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--text); border-bottom-color: var(--orange); }
.top nav .hide-s { display: none; }

/* Hero */
.hero { padding-top: 2.5rem; padding-bottom: 1.5rem; } /* not the side gutter of .wrap */
.hero h1 {
  font-size: clamp(2rem, min(8vw, 12vh), 4.1rem);
  line-height: 1.04; letter-spacing: -.025em; font-weight: 800;
  margin: 0 0 1rem; max-width: 15ch;
}
.hero h1 .cut { color: var(--orange); }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 38rem; margin: 0 0 1.6rem; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-bottom: .9rem; }
.actions .plain { padding: .7rem 0; }
.btn {
  display: inline-block; background: var(--orange); color: #141414;
  font-weight: 700; padding: .8rem 1.3rem; text-decoration: none; border-radius: 3px;
}
.btn:hover { background: #f29d55; color: #141414; }
.actions .note { color: var(--muted); font-size: .92rem; }

.screen { position: relative; margin: 0; border: 1px solid var(--line); background: #000; }
.screen video, .screen img { width: 100%; }
.screen.fit-16-9 img { aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg-2); }
.screen figcaption { font-size: .85rem; color: var(--muted); padding: .5rem .2rem 0; background: var(--bg); }

/* Timeline ruler: section divider in the app's track colors */
.ruler {
  height: 22px; margin: 3.5rem 0 2.2rem; position: relative;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) top / 100% 6px no-repeat,
    linear-gradient(90deg, var(--blue) 0 38%, transparent 38% 40%, var(--orange) 40% 52%, transparent 52% 53%, var(--green) 53% 100%) 0 12px / 100% 6px no-repeat;
}
.ruler::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; left: var(--at, 46%); width: 2px; background: var(--red);
}
.ruler.at-18 { --at: 18%; }
.ruler.at-33 { --at: 33%; }
.ruler.at-72 { --at: 72%; }
.ruler.at-88 { --at: 88%; }

/* Sections */
section h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 .9rem; font-weight: 800;
}
.track {
  font: 600 .8125rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem;
}
.track::before { content: ""; width: 10px; height: 10px; background: var(--c, var(--blue)); }
.track.c-orange { --c: var(--orange); }
.track.c-green { --c: var(--green); }
.track.c-blue { --c: var(--blue); }
.track.c-purple { --c: var(--purple); }
.text p { margin: 0 0 1rem; max-width: 36rem; }
.text .muted { color: var(--muted); }

.split { display: grid; gap: 1.6rem; }

/* Prompts typed into the AI chat */
.prompts { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; border-left: 3px solid var(--orange); }
.prompts li { font-family: var(--mono); font-size: .95rem; padding: .35rem 0 .35rem 1rem; }
.prompts li + li { border-top: 1px solid var(--line); }

/* Visually hidden, read by screen readers */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Numbers strip under the hero */
.stats dl { margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats dl > div { padding: 1rem .9rem 1.1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font: 800 2rem/1.05 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.stats dt small { font-size: .45em; font-weight: 600; color: var(--muted); margin-left: .2em; letter-spacing: 0; }
.stats dd { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.stats dt small.of { margin-left: 0; }
.stats dl > div:nth-child(4n+1) dt { color: var(--orange); }

/* Measured tables */
.intro { color: var(--muted); max-width: 46rem; margin: 0 0 1.4rem; }
.tables { display: grid; gap: 1.6rem; }
.tbl { min-width: 0; overflow-x: auto; }
.tables table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tables caption { text-align: left; font-weight: 700; padding: 0 0 .6rem; }
.tables caption span, .tables thead th span { color: var(--muted); font-weight: 400; }
.tables th, .tables td { padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.tables thead th { font-size: .85rem; color: var(--text); border-bottom: 2px solid var(--line); }
.tables tbody th { font-weight: 400; color: var(--muted); }
.tables td { font-weight: 700; white-space: nowrap; text-align: right; padding-right: 0; padding-left: .8rem; }
.tables thead th + th { text-align: right; padding-left: .8rem; padding-right: 0; }

.foot { font-size: .88rem; color: var(--muted); margin-top: .9rem; }
.foot.spaced { margin-top: 2rem; }
.version { color: var(--muted); font-size: .92rem; margin: 0 0 2rem; }

/* Pages tour */
.pages { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 2.4rem; }
.pages h3 { font-size: 1.25rem; margin: .9rem 0 .3rem; }
.pages p { margin: 0; color: var(--muted); max-width: 34rem; }
.pages .tab { font: 700 .8125rem/1 var(--mono); color: var(--orange); letter-spacing: .1em; text-transform: uppercase; }

/* Code */
pre {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--green);
  padding: 1rem; margin: 0 0 1.2rem; overflow-x: auto; line-height: 1.55; white-space: pre;
}
pre .c { color: #8f8e89; }
.cmd-label { font-size: .9rem; color: var(--muted); margin: 0 0 .4rem; }

/* Plain list with markers in track colors */
.facts { list-style: none; padding: 0; margin: 1rem 0 0; }
.facts li { padding: .8rem 0 .8rem 1.2rem; border-bottom: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 6px; height: 6px; background: var(--green); }
.facts strong { font-weight: 700; }

/* Download */
.download { background: var(--bg-2); border-top: 4px solid var(--orange); padding: 2rem 1rem; margin-top: 1rem; }
.download table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .98rem; }
.download th, .download td { text-align: left; padding: .7rem .5rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.download th { font-weight: 700; white-space: nowrap; padding-right: 1rem; }
.download td { color: var(--muted); }
.download .flush { margin: 0; }
.download .muted { color: var(--muted); margin: 0 0 .6rem; }
.dl-row { margin: 0 0 .7rem; }
.dl-row:last-child { margin: 0; }
.dl {
  display: inline-block; margin-right: .5rem; padding: .45rem .8rem; border: 1px solid var(--orange); border-radius: 3px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.dl small { color: var(--muted); font-weight: 400; margin-left: .25em; }
.dl:hover { background: var(--orange); color: #141414; }
.dl:hover small { color: #141414; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: grid; gap: 1rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.site-foot nav a { padding: .6rem 0; }
.site-foot p { margin: 0; }

/* Legal pages */
.legal { max-width: 44rem; padding-top: 2rem; }
.legal h1 { font-size: 2rem; margin: 0 0 1rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.legal .draft { border: 2px dashed var(--orange); padding: .8rem 1rem; color: var(--text); }
.legal mark { background: #4a3218; color: var(--text); padding: 0 .2em; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal .note { color: var(--muted); font-size: .92rem; }

@media (min-width: 640px) {
  .top nav .hide-s { display: inline; }
  .stats dl { grid-template-columns: repeat(4, 1fr); }
  .stats dt { font-size: 2.4rem; }
}

@media (min-width: 900px) {
  body { font-size: 1.075rem; }
  .hero { padding: 4rem 0 2rem; }
  .hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: center; }
  .hero h1 { max-width: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .split.wide-img { grid-template-columns: 4fr 7fr; }
  .split.flip > :first-child { order: 2; }
  .split.wide-img.flip { grid-template-columns: 7fr 5fr; }
  .pages { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
  .pages li:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 4fr; gap: 2rem; align-items: end; }
  .pages li:first-child h3 { margin-top: 0; font-size: 1.5rem; }
  .download { padding: 2.5rem; }
  .tables { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Grid children must be allowed to shrink, or wide code blocks push the page sideways on phones. */
.split > *, .hero-grid > *, .pages > li > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* Phones held sideways: headline, text and download button on the first screen, video beside them. */
@media (min-width: 700px) and (max-height: 520px) {
  .hero { padding-top: 1.2rem; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
  .hero h1 { font-size: 2rem; max-width: none; }
  .hero .lead { font-size: 1rem; margin-bottom: 1rem; }
  .hero .version { margin-bottom: 0; }
}
.nw { white-space: nowrap; }

/* Sponsor */
.sponsor { margin-top: 3rem; }
.sponsor-box { display: grid; gap: 1.2rem; align-items: center; border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 1.4rem 1.4rem; }
.sponsor-box h2 { font-size: 1.25rem; margin: 0 0 .4rem; }
.sponsor-box p { margin: 0; color: var(--muted); }
.sponsor-logo { display: block; width: 220px; max-width: 100%; }
.sponsor-logo img { width: 100%; height: auto; }
@media (min-width: 720px) { .sponsor-box { grid-template-columns: 240px 1fr; padding: 1.6rem 2rem; } }

/* What's new (filled daily from the release notes) */
.ruler.at-50 { --at: 50%; }
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.news li { border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 1.1rem 1.3rem; }
.news h3 { margin: 0 0 .5rem; font-size: 1.15rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.news h3 a { text-decoration: none; }
.news h3 span { color: var(--muted); font-size: .9rem; font-weight: 400; }
.news p { margin: .5rem 0 0; color: var(--muted); }
.news p strong { color: var(--text); }
.news code { background: var(--bg-3); padding: 0 .3em; border-radius: 4px; }
