/* SkateFlow site. Indigo brand, system type, one stylesheet for all pages. */
:root {
  --indigo: #2A39A6;
  --indigo-dark: #1F2B80;
  --indigo-soft: #EEF0FB;
  --ink: #15181F;
  --muted: #5A6472;
  --hair: #E1E4EC;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FC;
  --measure: 68ch;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --indigo: #8B9BF0;
    --indigo-dark: #A8B5F5;
    --indigo-soft: #1A1F3D;
    --ink: #E8EBF2;
    --muted: #9AA3B4;
    --hair: #2A3042;
    --bg: #0E1018;
    --bg-alt: #151826;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; display: block; border-radius: 8px; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--indigo); text-decoration: underline; }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
h2 { font-size: clamp(20px, 3vw, 25px); font-weight: 650; margin-top: 44px; }
h3 { font-size: 17.5px; font-weight: 650; margin-top: 28px; }
p, ul, ol, table { max-width: var(--measure); }
p { margin: 14px 0; }
ul, ol { margin: 14px 0; padding-left: 24px; }
li { margin: 7px 0; }
a { color: var(--indigo); }
strong { font-weight: 650; }

main { padding-block: 44px 72px; }
.lede { font-size: 19px; color: var(--muted); max-width: var(--measure); }
.updated { font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* Blocks */
.callout {
  background: var(--indigo-soft);
  border-left: 3px solid var(--indigo);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 26px 0;
  max-width: var(--measure);
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

mark.todo {
  background: #FFE9A8;
  color: #6B4A00;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.93em;
}

.table-scroll { overflow-x: auto; margin: 22px 0; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
thead th {
  background: var(--bg-alt);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 650;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 30px 0;
  max-width: var(--measure);
}
.toc p { margin: 0 0 8px; font-weight: 650; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; font-size: 15.5px; }
.toc li { margin: 4px 0; }

/* Home page */
.hero { padding-block: 64px 24px; }
.hero img { width: 76px; height: 76px; border-radius: 18px; display: block; margin-bottom: 26px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin: 40px 0; max-width: 100%; }
.feature { border: 1px solid var(--hair); border-radius: 12px; padding: 20px 22px; background: var(--bg-alt); min-width: 0; }
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; font-size: 15.5px; color: var(--muted); max-width: none; }

.contact-box {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
  max-width: var(--measure);
}
.contact-box p { margin: 6px 0; }
.addr { font-weight: 650; user-select: all; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--bg-alt);
  padding-block: 32px 40px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .site-header nav { gap: 14px; font-size: 14.5px; }
}
