/* mig site brand language: notebook dark ground, near-white text,
   oxblood accents, lowercase, hairline rules.

   the palette now comes from the shared MiG design system (tokens.css,
   vendored from @mig/design). the site's own variable names are kept so the
   rest of this file is untouched. each one just points at a canonical
   --mig-* token, so the site and the app stay one color in one place.
   re-copy tokens.css from the design system when the palette changes. */
@import "tokens.css";

:root {
  --ground: var(--mig-ground);
  --card: var(--mig-card);
  --text: var(--mig-near-white);
  --muted: var(--mig-dim);
  --oxblood: var(--mig-oxblood);
  --hairline: var(--mig-hairline);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "DejaVu Sans",
               system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 48px 24px 96px;
}

main {
  max-width: 600px;
  margin: 0 auto;
}

/* The МИГ / MiG lockup */
.lockup {
  margin-bottom: 48px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo .cyrillic {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo .latin {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.logo.big .cyrillic {
  font-size: 72px;
}

.logo.big .latin {
  font-size: 24px;
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--oxblood);
  margin-top: 12px;
}

.hero .tagline {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

/* Typography */
h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

ul {
  margin: 16px 0 24px 24px;
  color: var(--text);
}

li {
  margin-bottom: 6px;
}

.email {
  font-size: 18px;
  margin: 24px 0;
}

pre {
  background: var(--card);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 20px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "DejaVu Sans Mono", monospace;
  font-size: 14px;
  color: var(--text);
  overflow-x: auto;
  line-height: 1.5;
}

a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--oxblood);
}

section {
  margin-bottom: 32px;
}

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
  border-bottom-color: var(--muted);
}

/* Mobile tightening */
@media (max-width: 480px) {
  body {
    padding: 32px 20px 64px;
    font-size: 15px;
  }

  .logo.big .cyrillic {
    font-size: 56px;
  }

  .logo.big .latin {
    font-size: 20px;
  }

  h1 {
    font-size: 28px;
  }

  .hero .tagline {
    font-size: 16px;
  }
}

/* roadmap (home): vertical timeline, uses existing brand tokens */
.roadmap {
  position: relative;
  margin-top: 8px;
  padding-left: 24px;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 8px;
  width: 1px;
  background: var(--hairline);
}
.roadmap .stage {
  position: relative;
  padding-bottom: 26px;
}
.roadmap .stage:last-child { padding-bottom: 0; }
.roadmap .stage::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oxblood);
  box-shadow: 0 0 0 4px var(--ground);
}
.roadmap .stage.exploring::before {
  background: var(--ground);
  border: 1.5px solid var(--muted);
}
.roadmap h3 { margin-top: 0; margin-bottom: 6px; }
.roadmap h3 .when {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}
.roadmap ul { margin: 0; list-style: none; }
.roadmap li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 4px;
  color: var(--muted);
}
.roadmap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--oxblood);
}
.roadmap .stage.exploring li::before { background: var(--muted); }
