/* evidelo.app. Цвета — токены приложения (mobile/design-system: EvideloColors), шрифтовой ряд — как в
   EvideloTypography: книжная антиква для заголовков и текста, системный гротеск для интерфейса.
   Шрифты только системные: внешних и встроенных файлов шрифтов нет. */
:root {
  color-scheme: light dark;
  --paper: #faf8f1;
  --ink: #293e32;
  --muted: #657164;
  --line: #d9ddd0;
  --accent: #345440;
  --on-accent: #fffef6;
  --soft: #e9efdf;
  --field: #fffdf7;
  --amber: #795b24;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c221e;
    --ink: #e8ede5;
    --muted: #afbaad;
    --line: #424c42;
    --accent: #c0d9b3;
    --on-accent: #1d2c1e;
    --soft: #303e2f;
    --field: #242c25;
    --amber: #e0c38f;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--serif);
  overflow-wrap: break-word;
}
.bar, main { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.home .bar, .home main { max-width: 62rem; }

/* Шапка и подвал */
header.site { border-bottom: 1px solid var(--line); font-family: var(--ui); }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
header.site ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
header.site li + li { margin-top: 0; }
header.site nav a { font-size: 0.95rem; text-decoration: none; }
header.site a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font: 0.9rem/1.5 var(--ui); }
footer.site .bar { padding-top: 1.25rem; padding-bottom: 2rem; }
footer.site p { margin: 0.25rem 0; }

/* Текст */
main { padding-top: 1.75rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: 2.125rem; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; }
h3 { font-family: var(--ui); font-weight: 600; font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, .table:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
li + li { margin-top: 0.35rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--soft); padding: 0.1em 0.3em; border-radius: 4px; }
.table { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
th { background: var(--soft); font-family: var(--ui); font-weight: 600; }
td { background: var(--field); }

/* Главная */
.hero { display: grid; gap: 1.5rem; align-items: center; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); margin: 0 0 0.75rem; }
.lead { font-size: 1.3rem; line-height: 1.45; color: var(--ink); margin: 0 0 1.5rem; max-width: 32rem; }
.soon { margin: 0; }
.soon span {
  display: inline-block;
  font: 500 0.95rem/1.3 var(--ui);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
}
.hero-art { width: 100%; max-width: 15rem; height: auto; justify-self: center; }
.art-sheet { fill: var(--field); stroke: var(--line); stroke-width: 2; }
.art-line { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.art-ink { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.art-badge { fill: var(--accent); }
.art-check { fill: none; stroke: var(--on-accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.home section + section { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.home section > p, .home section > ul { max-width: 40rem; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; margin: 1.25rem 0 0; padding: 0; }
.steps li { counter-increment: step; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; margin: 0; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--soft); color: var(--accent);
  font: 600 0.95rem/1 var(--ui);
}
.steps h3 { margin: 0.75rem 0 0.35rem; }
.steps p { margin: 0; color: var(--muted); }
.courses { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.courses li { margin: 0; background: var(--soft); border-radius: 999px; padding: 0.35rem 0.85rem; font: 0.92rem/1.4 var(--ui); }

.skip { position: absolute; left: 1rem; top: -3rem; background: var(--paper); padding: 0.5rem 0.75rem; border: 2px solid var(--amber); font-family: var(--ui); }
.skip:focus { top: 0.5rem; }

@media (min-width: 48rem) {
  .hero { grid-template-columns: 1.6fr 1fr; padding-top: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 30rem) {
  h1 { font-size: 1.75rem; }
  .lead { font-size: 1.15rem; }
  .hero-art { max-width: 10rem; }
  table { font-size: 0.9rem; }
}
@media print {
  header.site, footer.site, .skip, .hero-art { display: none; }
  a { color: inherit; }
}
