:root {
  --ink: #16151b;
  --paper: #fff9ef;
  --pink: #ff8fbd;
  --pink-soft: #ffd6e8;
  --yellow: #ffd84d;
  --yellow-soft: #fff0a8;
  --blue: #79cfff;
  --blue-soft: #c9ebff;
  --green: #8de0b3;
  --purple: #aa8eff;
  --white: #fffefa;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--pink-soft) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border: var(--border);
  background: var(--yellow);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(1240px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  position: sticky;
  top: 14px;
  z-index: 20;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-face {
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.8rem;
  letter-spacing: -0.08em;
  transform: rotate(-4deg);
}

nav { display: flex; align-items: center; gap: 20px; }
nav a { font-size: 0.84rem; font-weight: 900; text-decoration: none; }
nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
nav a[aria-current="location"]:not(.nav-button) { text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 7px; }
.nav-button[aria-current="location"] { background: var(--green); }
.github-destination { display: inline-flex; align-items: center; gap: 0.42em; }
.github-mark { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: currentColor; }
.external-link-icon { flex: 0 0 auto; font-size: 0.9em; line-height: 1; transform: translateY(-0.08em); }
.nav-source { gap: 6px; }

.nav-button {
  padding: 8px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); text-decoration: none; }

.hero {
  width: min(1240px, calc(100% - 40px));
  min-height: 560px;
  margin: 0 auto;
  padding: 52px 0 58px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  line-height: 1;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(3.8rem, 5.2vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 950;
}

h1 span {
  display: inline-block;
  margin-top: 0.08em;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero-lede {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 19px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { background: var(--pink); }
.button-secondary { background: var(--white); }
.button span { margin-left: 18px; font-size: 1.25rem; }
.hero-quick-install { max-width: 560px; margin-top: 16px; padding: 8px 9px 8px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--white); box-shadow: 3px 3px 0 var(--purple); }
.hero-quick-install > span { color: var(--green); font-family: ui-monospace, monospace; font-weight: 900; }
.hero-quick-install code { min-width: 0; overflow: hidden; color: var(--yellow); font-family: ui-monospace, monospace; font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-quick-install button { padding: 7px 11px; border: 2px solid var(--white); border-radius: 8px; background: var(--pink); color: var(--ink); font: inherit; font-size: 0.72rem; font-weight: 950; cursor: pointer; }
.hero-quick-install button:hover { background: var(--green); }
.tiny-note { margin: 12px 0 0; font-family: ui-monospace, monospace; font-size: 0.72rem; font-weight: 800; }

.hero-art { position: relative; min-width: 0; width: 100%; max-width: 590px; padding: 20px 12px 28px 0; justify-self: end; }

.status-window {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: var(--border);
  border-radius: 22px;
  background: var(--blue-soft);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1deg);
}

.window-bar {
  min-height: 44px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: var(--border);
  background: var(--purple);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 900;
}

.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:nth-child(3) { background: var(--green); }
.window-flower { justify-self: end; font-size: 1.15rem; }

.status-body { padding: 20px; display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 18px; }

.mascot {
  position: relative;
  width: 108px;
  height: 82px;
  margin: 0 auto;
  border: var(--border);
  border-radius: 48% 48% 44% 44%;
  background: var(--pink-soft);
  box-shadow: 4px 4px 0 var(--ink);
}

.gill { position: absolute; width: 31px; height: 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); }
.gill-left { left: -22px; transform-origin: right center; }
.gill-right { right: -22px; transform-origin: left center; }
.gill-top { top: 10px; }
.gill-middle { top: 31px; }
.gill-bottom { top: 52px; }
.gill-left.gill-top { transform: rotate(38deg); }
.gill-left.gill-bottom { transform: rotate(-38deg); }
.gill-right.gill-top { transform: rotate(-38deg); }
.gill-right.gill-bottom { transform: rotate(38deg); }
.mascot-eye { position: absolute; z-index: 1; top: 29px; width: 8px; height: 12px; border-radius: 50%; background: var(--ink); }
.eye-left { left: 29px; }
.eye-right { right: 29px; }
.mascot-mouth { position: absolute; z-index: 1; top: 38px; left: 50%; transform: translateX(-50%); font-size: 1.2rem; font-weight: 900; }
.blush { position: absolute; z-index: 1; top: 48px; width: 18px; height: 7px; border-radius: 50%; background: var(--pink); opacity: 0.9; }
.blush-left { left: 13px; transform: rotate(-7deg); }
.blush-right { right: 13px; transform: rotate(7deg); }

.status-lines {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 800;
}

.status-lines p { display: grid; grid-template-columns: 104px 1fr; gap: 9px; margin: 0 0 6px; }
.status-lines p:last-child { margin-bottom: 0; }
.status-lines span { color: #674bb3; }
.progress { grid-column: 1 / -1; height: 14px; margin-top: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.progress span { display: block; width: 50%; height: 100%; border-right: 2px solid var(--ink); background: repeating-linear-gradient(-45deg, var(--green), var(--green) 8px, var(--yellow) 8px, var(--yellow) 16px); }

.sticker {
  position: absolute;
  z-index: 4;
  margin: 0;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: var(--border);
  border-radius: 50%;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.6rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
}

.sticker-pink { right: -16px; bottom: -8px; background: var(--pink); transform: rotate(8deg); }
.sticker-yellow { left: -24px; top: -8px; background: var(--yellow); transform: rotate(-9deg); }
.spark { position: absolute; z-index: 5; display: grid; place-items: center; font-size: 2rem; font-weight: 900; }
.spark-one { right: 24px; top: 2px; color: var(--pink); transform: rotate(10deg); }
.spark-two { left: 24px; bottom: 20px; color: #f65394; transform: rotate(-12deg); }

.ticker { overflow: hidden; border-block: var(--border); background: var(--yellow); transform: rotate(-1deg) scale(1.01); }
.ticker div { width: max-content; display: flex; align-items: center; gap: 25px; padding: 10px 0; animation: ticker 22s linear infinite; }
.ticker span { font-size: 1rem; font-weight: 950; letter-spacing: 0.07em; text-transform: uppercase; }
.ticker b { font-size: 1.2rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0; scroll-margin-top: 90px; }
.hero { scroll-margin-top: 120px; }
.section-heading { max-width: 640px; margin-bottom: 38px; }
h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 0.95; letter-spacing: -0.07em; }
.section-heading > p:last-child, .files-intro > p:last-child { max-width: 580px; margin: 25px 0 0; font-size: 1.1rem; font-weight: 700; }

.workflow-playground { border: var(--border); border-radius: 28px; background: var(--white); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.step-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: var(--border); }
.step-tab {
  min-height: 60px;
  padding: 11px;
  border: 0;
  border-right: var(--border);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}
.step-tab:last-child { border-right: 0; }
.step-tab span { display: inline-grid; place-items: center; width: 29px; height: 29px; margin-right: 8px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); }
.step-tab:hover { background: var(--yellow-soft); }
.step-tab.is-active { background: var(--pink); box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.5); }

.stage-panel { min-height: 380px; padding: 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 46px; background-image: linear-gradient(135deg, transparent 0 92%, var(--blue-soft) 92%); }
.state-chip { display: inline-block; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-family: ui-monospace, monospace; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.stage-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.stage-position { font-family: ui-monospace, monospace; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.panel-copy h3 { max-width: 640px; margin: 20px 0 14px; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 0.98; letter-spacing: -0.06em; }
.panel-copy p { max-width: 650px; margin: 0 0 26px; font-size: 1.04rem; font-weight: 700; }
.panel-copy code { display: inline-block; max-width: 100%; padding: 12px 15px; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--yellow); font-size: 0.84rem; overflow-wrap: anywhere; }

.stage-note { position: relative; min-height: 290px; padding: 32px 26px 22px; border: var(--border); background: var(--yellow-soft); box-shadow: 7px 7px 0 var(--ink); transform: rotate(1deg); }
.paper-tape { position: absolute; top: -16px; left: 50%; width: 92px; height: 32px; border: 2px solid var(--ink); background: rgba(255, 143, 189, 0.85); transform: translateX(-50%) rotate(-2deg); }
.stage-note p { margin: 0 0 18px; font-family: ui-monospace, monospace; }
.note-file { display: inline-block; padding: 4px 8px; border: 2px solid var(--ink); background: var(--white); font-size: 0.72rem; font-weight: 900; }
.note-title { padding-bottom: 12px; border-bottom: 3px solid var(--ink); font-size: 1.5rem; font-weight: 950; }
.stage-note strong { font-size: 0.76rem; text-transform: uppercase; }
.stage-note span { color: #584f4f; font-size: 0.78rem; }
.note-face { position: absolute; right: 24px; bottom: 20px; font-size: 1.15rem; font-weight: 900; }

.files-section { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 46px; align-items: center; }
.files-intro { align-self: start; position: sticky; top: 36px; }
.file-cards { display: grid; gap: 22px; }
.file-card { padding: 22px; border: var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.file-brief { background: var(--pink-soft); transform: rotate(-1deg); }
.file-tasks { background: var(--blue-soft); transform: rotate(1.5deg); }
.file-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 3px solid var(--ink); font-family: ui-monospace, monospace; font-size: 0.8rem; font-weight: 900; }
.file-top b { font-size: 1.35rem; }
.file-card h3 { margin: 26px 0; font-size: 2.1rem; letter-spacing: -0.05em; }
.file-card ul { margin: 0; padding: 0; list-style: none; }
.file-card li { padding: 13px 10px; display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); font-family: ui-monospace, monospace; font-size: 0.86rem; font-weight: 800; }
.file-card li span { display: grid; place-items: center; min-width: 29px; height: 29px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); font-size: 0.72rem; }
.file-card li.done { text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.72; }
.file-caption { margin: 22px 0 0; text-align: right; font-size: 0.82rem; font-weight: 900; }

.rules-section { width: 100%; padding-inline: max(20px, calc((100% - 1180px) / 2)); background: var(--ink); color: var(--white); }
.rules-heading .eyebrow span { color: var(--ink); }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; color: var(--ink); }
.rule-card { min-height: 285px; padding: 20px; border: 3px solid var(--white); border-radius: 22px; box-shadow: 5px 5px 0 var(--white); display: flex; flex-direction: column; transform: rotate(-1deg); }
.rule-card:nth-child(even) { transform: rotate(1deg); }
.rule-card.yellow { background: var(--yellow); }
.rule-card.pink { background: var(--pink); }
.rule-card.blue { background: var(--blue); }
.rule-card.green { background: var(--green); }
.rule-icon { display: grid; place-items: center; width: 52px; height: 52px; border: var(--border); border-radius: 16px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); font-size: 1.45rem; }
.rule-number { margin: auto 0 0; font-family: ui-monospace, monospace; font-size: 0.8rem; font-weight: 900; }
.rule-card h3 { margin: 10px 0 12px; font-size: 1.55rem; line-height: 1.05; letter-spacing: -0.04em; }
.rule-card p:last-child { margin: 0; font-size: 0.91rem; font-weight: 750; }

.changelog-section { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 46px; align-items: start; }
.changelog-heading { position: sticky; top: 108px; margin-bottom: 0; }
.changelog-heading > p:not(.eyebrow) { max-width: 480px; margin: 24px 0 0; font-size: 1.05rem; font-weight: 700; }
.changelog-source { margin-top: 24px; font-weight: 950; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.changelog-shell { overflow: hidden; border: var(--border); border-radius: 24px; background: var(--white); box-shadow: 9px 9px 0 var(--ink); }
.changelog-bar { min-height: 54px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: var(--border); background: var(--purple); font-family: ui-monospace, monospace; font-size: 0.78rem; font-weight: 900; }
.sync-chip { padding: 6px 9px; border: 2px solid var(--ink); border-radius: 999px; background: var(--green); line-height: 1; text-align: center; }
.changelog-list { padding: 24px; display: grid; gap: 18px; background: linear-gradient(135deg, var(--blue-soft), var(--paper)); }
.release-card { display: grid; grid-template-columns: 142px minmax(0, 1fr); border: var(--border); border-radius: 18px; background: var(--pink-soft); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.release-card:nth-child(4n + 2) { background: var(--blue-soft); }
.release-card:nth-child(4n + 3) { background: var(--yellow-soft); }
.release-card:nth-child(4n) { background: #dff8ea; }
.release-date { padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: var(--border); font-family: ui-monospace, monospace; }
.release-date span { font-size: 0.68rem; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.release-date time { font-size: 0.88rem; font-weight: 900; line-height: 1.2; }
.release-notes { min-width: 0; padding: 18px 20px; }
.release-notes ul { margin: 0; padding: 0; list-style: none; }
.release-notes li { position: relative; margin: 0 0 12px; padding-left: 19px; font-size: 0.91rem; font-weight: 750; line-height: 1.45; }
.release-notes li:last-child { margin-bottom: 0; }
.release-notes li::before { content: "✦"; position: absolute; left: 0; top: 0.08em; font-size: 0.72rem; }
.release-notes code { padding: 2px 5px; border: 1px solid var(--ink); border-radius: 5px; background: var(--white); font-size: 0.82em; font-weight: 900; }
.release-notes a { display: inline-flex; align-items: center; gap: 3px; font-weight: 950; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.release-placeholder { min-height: 110px; padding: 20px; display: block; }
.release-placeholder span { display: block; height: 15px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); animation: placeholder-pulse 1.2s ease-in-out infinite alternate; }
.release-placeholder span:first-child { width: 34%; margin-bottom: 18px; }
.release-placeholder span:last-child { width: 82%; }
.changelog-error { margin: 0; padding: 24px; background: var(--yellow-soft); font-weight: 850; }
@keyframes placeholder-pulse { to { opacity: 0.35; } }

.install-section { padding-block: 82px; }
.install-card { padding: 50px; border: var(--border); border-radius: 28px; background: var(--pink-soft); box-shadow: 9px 9px 0 var(--ink); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.install-copy h2 { font-size: clamp(2.8rem, 4vw, 4.2rem); }
.install-copy > p:not(.eyebrow) { margin: 22px 0; font-weight: 700; }
.github-link { font-weight: 950; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.terminal-card { overflow: hidden; border: var(--border); border-radius: 20px; background: var(--ink); color: var(--white); box-shadow: 8px 8px 0 #7458c5; }
.terminal-bar { padding: 13px 16px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--white); background: var(--purple); color: var(--ink); font-family: ui-monospace, monospace; font-size: 0.74rem; font-weight: 900; }
.command-row { padding: 22px; display: flex; align-items: center; gap: 16px; }
.command-row code { min-width: 0; font-size: 0.74rem; color: var(--yellow); overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; padding: 8px 12px; border: 2px solid var(--white); border-radius: 8px; background: var(--pink); color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 950; cursor: pointer; box-shadow: 3px 3px 0 var(--white); }
.copy-button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--white); }
.first-steps { padding: 0 22px 22px; font-family: ui-monospace, monospace; font-size: 0.77rem; }
.first-steps p { margin: 7px 0; }
.first-steps span { color: var(--green); }

footer { min-height: 96px; padding: 22px max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 24px; border-top: var(--border); background: var(--yellow); font-weight: 900; }
.footer-brand { margin-right: auto; }
footer p { margin: 0; }

.mobile-dock { display: none; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 52px; height: 52px; border: var(--border); border-radius: 50%; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 1.5rem; font-weight: 950; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity 160ms ease, transform 160ms ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--pink); }
.toast { position: fixed; right: 92px; bottom: 24px; z-index: 50; padding: 13px 17px; border: var(--border); border-radius: 12px; background: var(--green); box-shadow: 5px 5px 0 var(--ink); font-weight: 950; opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 4px solid #7458c5; outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 52px; }
  .hero-copy { text-align: center; }
  h1 { font-size: clamp(3.5rem, 10vw, 4.8rem); }
  .hero-lede, .tiny-note { margin-inline: auto; }
  .hero-quick-install { display: none; }
  .hero-actions, .eyebrow { justify-content: center; }
  .hero-art { width: min(580px, 100%); margin: 0 auto; padding-left: 20px; justify-self: center; }
  .files-section, .changelog-section, .install-card { grid-template-columns: 1fr; }
  .files-intro { position: static; }
  .changelog-heading { position: static; }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-panel { grid-template-columns: 1fr; gap: 34px; }
  .stage-note { width: min(420px, 100%); margin: 0 auto; }
}

@media (max-width: 680px) {
  body { padding-bottom: 78px; }
  .site-header { width: calc(100% - 16px); margin-top: 8px; padding: 6px 8px 6px 10px; top: 8px; border-radius: 18px; }
  .brand { gap: 7px; font-size: 1.05rem; }
  .brand-face { width: 32px; height: 28px; font-size: 0.72rem; }
  .site-header nav { gap: 10px; }
  .site-header nav a:not(.nav-button):not(.nav-source) { display: none; }
  .hero { min-height: 0; padding: 34px 0 42px; gap: 26px; }
  .eyebrow { margin-bottom: 14px; font-size: 0.7rem; }
  h1 { font-size: clamp(3rem, 13vw, 3.9rem); line-height: 0.92; }
  .hero-lede { margin-top: 18px; font-size: 0.95rem; }
  .hero-actions { margin-top: 20px; }
  .hero-actions { flex-wrap: nowrap; }
  .button { min-height: 44px; padding: 9px 12px; font-size: 0.9rem; white-space: nowrap; }
  .button span { margin-left: 10px; }
  .hero-quick-install { display: none; }
  .hero-art { padding: 8px 8px 20px 16px; }
  .status-window { border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
  .window-bar { min-height: 40px; padding: 7px 11px; }
  .status-body { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .mascot { width: 72px; height: 56px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .gill { width: 23px; height: 9px; border-width: 2px; }
  .gill-left { left: -17px; }
  .gill-right { right: -17px; }
  .gill-top { top: 7px; }
  .gill-middle { top: 21px; }
  .gill-bottom { top: 35px; }
  .mascot-eye { top: 19px; width: 6px; height: 9px; }
  .eye-left { left: 20px; }
  .eye-right { right: 20px; }
  .mascot-mouth { top: 26px; font-size: 0.92rem; }
  .blush { top: 34px; width: 12px; height: 5px; }
  .blush-left { left: 9px; }
  .blush-right { right: 9px; }
  .status-lines { padding: 10px; font-size: 0.65rem; box-shadow: 3px 3px 0 var(--ink); }
  .status-lines p { grid-template-columns: 76px 1fr; gap: 4px; margin-bottom: 4px; }
  .progress { height: 10px; }
  .sticker { width: 66px; height: 66px; font-size: 0.48rem; box-shadow: 3px 3px 0 var(--ink); }
  .sticker-yellow { left: -8px; top: -15px; }
  .sticker-pink { display: none; }
  .spark { display: none; }
  .section { padding-block: 64px; }
  .section-heading { margin-bottom: 30px; }
  h2 { font-size: clamp(2.5rem, 10.5vw, 3.5rem); }
  .step-tab { min-height: 52px; padding: 9px; font-size: 0.9rem; }
  .step-tabs { grid-template-columns: repeat(2, 1fr); }
  .step-tab:nth-child(2) { border-right: 0; }
  .step-tab:nth-child(-n + 2) { border-bottom: var(--border); }
  .stage-panel { min-height: 0; padding: 26px 18px 30px; background-image: none; }
  .panel-copy h3 { margin-top: 18px; font-size: 2.1rem; }
  .stage-note { min-height: 250px; padding: 30px 22px 20px; }
  .files-section { gap: 32px; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-card { min-height: 220px; padding: 18px; }
  .changelog-section { gap: 30px; }
  .changelog-list { padding: 16px; }
  .release-card { grid-template-columns: 1fr; }
  .release-date { padding: 14px 16px; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: var(--border); }
  .release-notes { padding: 17px 16px; }
  .install-section { padding-block: 60px; }
  .install-card { padding: 30px 18px; border-radius: 20px; gap: 30px; }
  .command-row { align-items: flex-start; flex-direction: column; }
  footer { flex-wrap: wrap; gap: 12px 24px; }
  footer p { width: 100%; order: 3; }
  .mobile-dock { position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border: var(--border); border-radius: 18px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
  .mobile-dock a { padding: 9px 3px; display: flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 11px; font-size: 0.62rem; line-height: 1.1; text-align: center; }
  .mobile-dock a span { font-size: 0.88rem; }
  .mobile-dock a[aria-current="location"] { background: var(--pink-soft); text-decoration: none; }
  .back-to-top { display: none; }
  .toast { right: 17px; bottom: 95px; max-width: calc(100% - 34px); }
}

@media (max-width: 420px) {
  .source-label { display: none; }
  .nav-source { width: 52px; height: 36px; justify-content: center; border: 2px solid var(--ink); border-radius: 999px; background: var(--blue-soft); }
  .nav-source .github-mark { width: 17px; height: 17px; }
  .nav-button { padding-inline: 13px; }
  .hero-quick-install { padding-left: 9px; margin-top: 14px; }
  .hero-quick-install code { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
