/* Torneoz site. Mobile first, system font, light and dark. */
:root {
  --green: #8cb84f;
  --green-ink: #4f7a1f;
  --bg: #ffffff;
  --surface: #f5f7f2;
  --text: #1d1f1b;
  --muted: #5d625a;
  --line: #dde2d6;
  --mark: #fff1a8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green-ink: #a8d36a;
    --bg: #121411;
    --surface: #1c1f1a;
    --text: #eceee9;
    --muted: #a3a89e;
    --line: #30352c;
    --mark: #5a4d00;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--green-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }

.bar { border-bottom: 1px solid var(--line); padding: 12px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; font-size: 18px; }
.brand img { border-radius: 7px; }

.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; overflow-wrap: anywhere; }
.doc h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 20px; }
.doc h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc code { background: var(--surface); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
mark { background: var(--mark); color: inherit; padding: 0 3px; border-radius: 3px; }

.table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); }
tr:last-child td { border-bottom: 0; }

.foot { border-top: 1px solid var(--line); padding: 20px 16px 32px; text-align: center; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot p { margin: 10px 0 0; }
.foot a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

/* Landing */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; gap: 14px; }
.hero img { border-radius: 26px; box-shadow: 0 6px 24px rgb(0 0 0 / 0.15); }
.hero h1 { font-size: 40px; line-height: 1.1; margin: 8px 0 0; letter-spacing: -0.5px; }
.hero .pitch { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 0; }
.badge { display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 999px; background: var(--green); color: #10210a; font-weight: 700; }
.hero nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 18px; }
@media (min-width: 640px) {
  .doc { padding-top: 40px; }
  .doc h1 { font-size: 34px; }
  .hero h1 { font-size: 52px; }
}
