/* Skilirium site. No web fonts, no scripts, no third-party requests. */
:root {
  --paper: #f5f7fa;
  --paper-2: #e9edf3;
  --ink: #1c2541;
  --muted: #566078;
  --rule: #d3d9e3;
  --mastered: #1f7a6d;
  --ready: #c98a12;
  --notyet: #b9c1cf;
  --link: #24508f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a2e;
    --paper-2: #1a2440;
    --ink: #e7ebf3;
    --muted: #a6afc2;
    --rule: #2c3858;
    --mastered: #3fb3a1;
    --ready: #e9b44c;
    --notyet: #45527a;
    --link: #9cc0ff;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ready); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem .75rem; z-index: 10; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
header.site { padding: 1.25rem 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none;
  font: 600 1.25rem/1 var(--serif); letter-spacing: .01em; }
.brand svg { width: 1.6rem; height: 1.6rem; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: .95rem; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

/* hero: the knowledge space is the picture */
.hero { padding: 2.5rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.space { width: 100%; height: auto; }
.space .edge { stroke: var(--rule); stroke-width: 2; }
.space .edge.on { stroke: var(--mastered); stroke-opacity: .55; }
.space .k { fill: var(--paper); stroke: var(--notyet); stroke-width: 3; }
.space .k.m { fill: var(--mastered); stroke: var(--mastered); }
.space .k.r { fill: var(--paper); stroke: var(--ready); stroke-width: 4; }
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: .75rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.dot { width: .85rem; height: .85rem; border-radius: 50%; border: 3px solid var(--notyet); display: inline-block; }
.dot.m { background: var(--mastered); border-color: var(--mastered); }
.dot.r { border-color: var(--ready); }
@media (prefers-reduced-motion: no-preference) {
  .space .k.m { animation: fill .5s ease-out both; animation-delay: calc(var(--i) * 140ms + 250ms); }
  .space .k.r { animation: ring .6s ease-out both; animation-delay: 1.35s; }
  @keyframes fill { from { fill: var(--paper); stroke: var(--notyet); } }
  @keyframes ring { from { stroke: var(--notyet); stroke-width: 3; } }
}

.connect { margin: 1.75rem 0 0; }
.connect-label { font-size: .9rem; color: var(--muted); margin: 0 0 .35rem; }
.connect + .note { margin-top: .75rem; }
.endpoint { display: inline-block; font: 600 1.05rem/1.4 var(--sans); background: var(--paper-2); color: var(--ink);
  padding: .55rem .8rem; border-radius: 6px; border: 1px solid var(--rule); user-select: all; word-break: break-all; }

section.band { padding: 3.25rem 0; border-top: 1px solid var(--rule); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.cols > div { max-width: var(--measure); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: .8rem; }
.steps li::before { content: counter(s); font: 600 1.6rem/1 var(--serif); display: block; margin-bottom: .5rem; }
.steps strong { display: block; margin-bottom: .25rem; }
.note { color: var(--muted); font-size: .95rem; }

/* documents */
.doc { padding: 1.5rem 0 4rem; }
.doc .wrap { max-width: 48rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.doc h3 { margin-top: 1.6rem; }
.doc .meta { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.doc .summary { background: var(--paper-2); border-left: 4px solid var(--mastered); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; }
.doc .summary ul { margin-bottom: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.25rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 600; }
.doc .tablewrap { overflow-x: auto; }

footer.site { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 1rem; }

@media (max-width: 52rem) {
  .hero .wrap, .cols { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav.site a { margin: 0 1rem 0 0; }
}
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }
