:root {
  --red: #E5173F; --red-dark: #A0102C; --red-soft: #FCE7EB;
  --teal: #54B9B3; --teal-dark: #2A5C59; --teal-soft: #EEF8F7; --teal-mid: #A9DCD9;
  --purple: #4B112C; --purple-soft: #EDE7E9; --purple-mid: #DBCFD5; --plum: #6F4156;
  --ink: #2D0A1A;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Open Sans', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--purple); padding: 8px 14px; border-radius: 6px; z-index: 20; font-weight: 600; }
.skip-link:focus { top: 8px; }

.site-header { background: var(--purple); color: #fff; display: flex; align-items: center; gap: 16px; padding: 12px 24px; }
.site-logo { display: block; line-height: 0; }
.site-name { font-size: 18px; font-weight: 700; border-left: 1px solid rgba(255,255,255,.4); padding-left: 16px; }

.shell { display: flex; align-items: flex-start; max-width: 1180px; margin: 0 auto; }
.site-nav { flex: 0 0 260px; padding: 24px 16px 24px 24px; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; font-size: 14px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { background: var(--purple-soft); }
.site-nav a.current { background: var(--red-soft); color: var(--red-dark); font-weight: 600; }
.nav-toggle { display: none; }
.nav-heading { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin: 18px 10px 4px; }

main { flex: 1; min-width: 0; padding: 24px 32px 48px; }
main:focus { outline: none; }
.status { color: var(--plum); padding: 32px 0; }

.doc { max-width: 820px; overflow-wrap: break-word; }
.doc h1 { font-size: 34px; color: var(--purple); line-height: 1.2; margin: 0 0 16px; }
.doc h2 { font-size: 25px; color: var(--purple); margin: 36px 0 10px; }
.doc h3 { font-size: 19px; color: var(--purple); margin: 28px 0 8px; }
.doc h4 { font-size: 16px; color: var(--plum); margin: 22px 0 6px; }
.doc h1, .doc h2, .doc h3, .doc h4 { scroll-margin-top: 16px; }
.doc :target { background: var(--teal-soft); }
.doc ul, .doc ol { padding-left: 1.5em; }
.doc li { margin: 4px 0; }
.doc img { max-width: 100%; height: auto; }
.doc hr { border: 0; border-top: 1px solid var(--purple-mid); margin: 28px 0; }
.doc blockquote { margin: 16px 0; padding: 8px 18px; border-left: 4px solid var(--teal); background: var(--teal-soft); color: var(--teal-dark); border-radius: 0 8px 8px 0; }
.doc blockquote > :first-child { margin-top: 0; } .doc blockquote > :last-child { margin-bottom: 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--purple-soft); color: var(--red-dark); padding: 1px 5px; border-radius: 4px; }
.doc pre { background: var(--purple); color: #fff; padding: 14px 16px; border-radius: 10px; overflow-x: auto; line-height: 1.45; }
.doc pre code { background: none; color: inherit; padding: 0; font-size: 13px; }
.doc table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc th { background: var(--purple); color: #fff; text-align: left; font-weight: 600; }
.doc th, .doc td { padding: 8px 12px; border: 1px solid var(--purple-mid); vertical-align: top; }
.doc tr:nth-child(even) td { background: var(--purple-soft); }

.kit-note { background: var(--red-soft); border-left: 4px solid var(--red); color: var(--red-dark); padding: 8px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin: 0 0 20px; }
.the-loop { margin: 40px 0 20px; }
.the-loop > h2 { margin-top: 0; }
.doc .skills-strip, .skills-strip { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0; margin: 24px 0 20px; }
.skills-strip > li { counter-increment: s; position: relative; min-width: 0; background: var(--purple-soft); border-radius: 12px; padding: 18px 16px 16px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.skills-strip > li:nth-child(even) { background: var(--teal-soft); }
.skills-strip > li::before { content: counter(s); position: absolute; top: -10px; left: 12px; background: var(--red); color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.skills-strip a { font-weight: 700; text-decoration: none; }
.skills-strip a:hover, .skills-strip a:focus-visible { text-decoration: underline; }
.skills-strip a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.skills-strip > li:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.skills-strip > li:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.skills-strip p { margin: 6px 0 0; color: var(--ink); }

.site-footer { background: var(--purple-soft); color: var(--plum); padding: 16px 24px; font-size: 13px; border-top: 1px solid var(--purple-mid); }
.site-footer code { background: none; color: inherit; }
.site-footer a { color: inherit; }

@media (max-width: 800px) {
  .shell { display: block; }
  .site-nav { position: static; max-height: none; padding: 12px 16px; border-bottom: 1px solid var(--purple-mid); background: #faf8f9; }
  .site-nav ul { columns: 1; }
  .nav-toggle { display: block; width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--purple-mid); border-radius: 8px; padding: 10px 14px; cursor: pointer; }
  .nav-toggle::after { content: '▾'; float: right; }
  .site-nav[data-open="true"] .nav-toggle::after { content: '▴'; }
  .nav-groups { display: none; }
  .site-nav[data-open="true"] .nav-groups { display: block; }
  main { padding: 20px 16px 40px; }
  .doc h1 { font-size: 28px; }
  .site-header { padding: 10px 16px; }
}
