@import url("./peekling-design-system.css");

@font-face {
  font-family: "Albert Sans";
  src: url(./fonts/albert-sans-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Public documentation: the landing system, tightened into an editorial manual. */
.docs-page {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--canvas);
  background-size: 80px 80px;
}

.docs-version {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
}

.peektionary-header-link {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
}

.peektionary-header-link > span {
  color: var(--accent);
  font-size: 1.3em;
  line-height: 0;
}

.peektionary-header-link:hover,
.peektionary-header-link:focus-visible {
  box-shadow:
    inset 0 -2px 0 var(--ink),
    inset 0 -4px 0 var(--accent);
}

.mobile-docs-navigation,
.mobile-docs-toc {
  display: none;
}

.docs-shell {
  display: grid;
  grid-template-columns:
    minmax(190px, 220px) minmax(0, 860px)
    minmax(160px, 190px);
  gap: clamp(32px, 4vw, 72px);
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  overflow: visible;
  padding: clamp(72px, 9vw, 132px) 0 120px;
}

.docs-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  max-block-size: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px 12px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  text-align: right;
}

.docs-rail-label,
.docs-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.14em;
}

.docs-rail-label {
  text-align: right;
}

.docs-rail nav {
  display: grid;
  gap: 18px;
  justify-content: stretch;
}

.docs-nav-group {
  display: grid;
  gap: 2px;
}

.docs-nav-group-label {
  width: fit-content;
  margin: 0;
  margin-left: auto;
  padding: 0 0 6px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.docs-rail nav a {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-left: 2px solid var(--line);
  padding: 8px 0 8px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.docs-rail nav a:hover,
.docs-rail nav a:focus-visible {
  border-left-color: var(--accent);
  color: var(--ink);
}

.docs-rail nav a[aria-current="page"] {
  border-left-color: var(--accent);
  border-left-width: 4px;
  color: var(--ink);
  font-weight: 740;
}

.docs-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-block-size: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 0 12px 8px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.docs-toc-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-toc-links {
  display: grid;
  gap: 1px;
}

.docs-toc-links a {
  position: relative;
  display: block;
  min-height: 36px;
  overflow: hidden;
  padding: 9px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 590;
  line-height: 1.45;
  text-decoration: none;
}

.docs-toc-links a::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 8px;
  left: 8px;
  height: 2px;
  background: var(--accent);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.docs-toc-links a[data-passed] {
  color: var(--faint);
}

.docs-toc-links a[data-passed]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.docs-toc-links a[aria-current="location"] {
  color: var(--ink);
  font-weight: 760;
}

.docs-toc-links a[aria-current="location"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.docs-toc-links a:hover,
.docs-toc-links a:focus-visible {
  color: var(--ink);
}

.docs-content {
  min-width: 0;
  container-name: docs-content;
  container-type: inline-size;
}

.docs-hero {
  margin-bottom: clamp(80px, 11vw, 148px);
}

.docs-hero h1 {
  max-width: 820px;
  margin: 22px 0 24px;
  font-family: var(--display);
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.docs-hero mark {
  background: linear-gradient(transparent 68%, var(--accent-soft) 68%);
  color: inherit;
}

.docs-hero > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.docs-section-hero h1 {
  max-width: 760px;
}

.docs-content > section {
  scroll-margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0;
}

.docs-content h2 {
  max-width: 720px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.docs-content section > p,
.docs-content section > ul,
.docs-content section > ol {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.docs-content section > ol:not(.docs-topic-list) {
  padding-left: 1.4em;
}

.docs-content section > ol:not(.docs-topic-list) li + li {
  margin-top: 12px;
}

.docs-content section > ol:not(.docs-topic-list) li::marker {
  color: var(--ink);
  font-weight: 850;
}

.docs-topic-list {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.docs-topic-list li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink);
  font-weight: 680;
}

.docs-topic-list li::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  content: "→";
  font-size: 12px;
  font-weight: 850;
}

.docs-topic-list a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.docs-topic-list a:hover,
.docs-topic-list a:focus-visible {
  text-decoration-thickness: 4px;
}

.docs-content code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.docs-content pre {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid #2d2d2d;
  border-radius: 18px;
  background: #151515;
  padding: 28px 30px;
  color: #f3f1ec;
  box-shadow: 0 14px 0 color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 14px;
  line-height: 1.75;
  tab-size: 2;
}

.code-tag,
.code-keyword {
  color: #ff7a9b;
}
.code-attr,
.code-call {
  color: #9bdc67;
}
.code-string {
  color: #ffd56a;
}
.code-number {
  color: #b9a4ff;
}
.code-comment {
  color: #8c918a;
}

.docs-note {
  max-width: 680px;
  margin-top: 26px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.docs-note a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.docs-language-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 38px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.docs-language-strip > div {
  min-width: 0;
  padding: 20px 14px;
}

.docs-language-strip > div + div {
  border-left: 1px solid var(--line);
}

.docs-language-strip dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1;
}

.docs-language-strip dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.docs-principle {
  max-width: 690px;
  margin: 34px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.docs-flow {
  --flow-node-background: var(--paper);
  --diagram-tint-soft: color-mix(in srgb, var(--accent) 10%, var(--paper));
  --diagram-tint-mid: color-mix(in srgb, var(--accent) 15%, var(--paper));
  --diagram-tint-strong: color-mix(in srgb, var(--accent) 20%, var(--paper));
  --diagram-step-soft: color-mix(in srgb, var(--accent) 56%, var(--paper));
  --diagram-step-mid: color-mix(in srgb, var(--accent) 68%, var(--paper));
  --diagram-step-strong: color-mix(in srgb, var(--accent) 80%, var(--paper));
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 44px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    color-mix(in srgb, var(--canvas) 88%, var(--accent-soft));
  background-size: 24px 24px;
  box-shadow: 0 20px 44px -38px rgba(38, 38, 38, 0.34);
}

.docs-flow-node {
  --node-tint: var(--diagram-tint-soft);
  --step-fill: var(--diagram-step-strong);
  position: relative;
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  min-height: 174px;
  align-content: start;
  gap: 8px;
  padding: 54px 14px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--ink));
  border-radius: 14px;
  background: var(--node-tint);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.9),
    0 10px 24px -22px rgba(38, 38, 38, 0.42);
  text-align: left;
}

.docs-flow-node::before {
  content: attr(data-step);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--step-fill) 68%, var(--ink));
  border-radius: 50%;
  background: var(--step-fill);
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

.docs-flow-node:is(
  [data-step="02"],
  [data-step="05"],
  [data-step="B"],
  [data-step="D"]
) {
  --node-tint: var(--diagram-tint-mid);
  --step-fill: var(--diagram-step-mid);
}

.docs-flow-node:is([data-step="03"], [data-step="06"], [data-step="C"]) {
  --node-tint: var(--diagram-tint-strong);
  --step-fill: var(--diagram-step-soft);
}

.docs-flow-node:is(
  [data-step="01"],
  [data-step="04"],
  [data-step="07"],
  [data-step="A"]
) {
  --node-tint: var(--diagram-tint-soft);
  --step-fill: var(--diagram-step-strong);
}

.docs-flow b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.docs-flow span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.docs-flow > i {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 6px var(--diagram-tint-soft);
  font-size: 21px;
  font-style: normal;
  font-weight: 850;
}

.docs-flow-runtime {
  flex-direction: column;
  align-items: stretch;
}

.docs-flow-runtime .docs-flow-node {
  grid-template-columns: minmax(132px, 0.34fr) 1fr;
  width: 100%;
  min-height: 76px;
  align-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 18px 18px 60px;
}

.docs-flow-runtime .docs-flow-node::before {
  top: 50%;
  transform: translateY(-50%);
}

.docs-flow-runtime .docs-flow-node span {
  justify-self: stretch;
  text-align: center;
}

.docs-flow-runtime > i {
  transform: rotate(90deg);
}

.docs-flow-compact .docs-flow-node {
  min-height: 152px;
  padding-inline: 16px;
}

.docs-file-map {
  margin: 48px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 90%, var(--accent-soft));
}

.docs-file-map h3 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.docs-file-map dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.docs-file-map dl > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 18px;
}

.docs-file-map dt {
  color: var(--ink);
  font-weight: 740;
}

.docs-file-map dt code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow-wrap: anywhere;
}

.docs-file-map dd {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.docs-file-map dd code {
  overflow-wrap: anywhere;
}

.docs-flow-input {
  align-items: center;
}

.docs-input-sources {
  display: grid;
  flex: 1.15 1 0;
  min-width: 0;
  gap: 10px;
}

.docs-input-sources .docs-flow-node {
  min-height: 112px;
}

@container docs-content (max-width: 760px) {
  .docs-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
  }

  .docs-flow-node,
  .docs-flow-compact .docs-flow-node,
  .docs-input-sources .docs-flow-node {
    width: 100%;
    min-height: 76px;
    padding: 18px 18px 18px 60px;
  }

  .docs-flow-runtime .docs-flow-node {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .docs-flow-node::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .docs-flow > i {
    align-self: center;
    transform: rotate(90deg);
  }

  .docs-input-sources {
    width: 100%;
  }

  .docs-file-map dl {
    grid-template-columns: 1fr;
  }
}

.option-list {
  max-width: 760px;
  margin: 44px 0 0;
}

.option-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.36fr) 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.option-list dt {
  color: var(--ink);
  font-weight: 760;
}

.option-list dt a,
.docs-guide-list a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.option-list dt a:hover,
.option-list dt a:focus-visible,
.docs-guide-list a:hover,
.docs-guide-list a:focus-visible {
  text-decoration-thickness: 4px;
}

.option-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.docs-checks {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.docs-checks li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.docs-checks li::before {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  content: "✓";
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.docs-next {
  margin-top: 72px;
  background: var(--accent-soft);
  padding: clamp(32px, 5vw, 56px);
}

.docs-next h2 {
  margin-bottom: 32px;
}

.docs-visibility-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 720px;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 18px 20px;
}

.docs-visibility-recovery > div {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.docs-visibility-recovery strong {
  color: var(--ink);
  font-size: 16px;
}

.docs-visibility-recovery button {
  flex: none;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  padding: 10px 18px;
  color: var(--accent-ink);
  font: 760 14px/1 var(--body);
}

.docs-visibility-recovery button:hover {
  transform: translateY(-1px);
}

.docs-visibility-recovery button:focus-visible {
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: minmax(190px, 240px) minmax(0, 860px);
    gap: clamp(48px, 7vw, 112px);
    width: min(1180px, calc(100% - 40px));
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs-version {
    display: none;
  }
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .docs-rail {
    position: static;
    max-block-size: none;
    overflow-y: hidden;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0 12px;
    scrollbar-gutter: auto;
  }
  .docs-page .site-header[data-mobile-nav-ready] ~ .docs-shell .docs-rail {
    display: none;
  }
  .docs-page .site-header[data-mobile-nav-ready] ~ .docs-shell {
    gap: 0;
  }
  .docs-language-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-language-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .docs-language-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .docs-visibility-recovery {
    align-items: stretch;
    flex-direction: column;
  }

  .docs-visibility-recovery button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .docs-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 52px;
  }
  .docs-hero h1 {
    font-size: clamp(42px, 14vw, 60px);
  }
  .docs-content pre {
    margin-inline: -4px;
    border-radius: 12px;
    padding: 22px 18px;
    font-size: 12px;
  }
  .option-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .docs-file-map dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .docs-language-strip {
    grid-template-columns: 1fr;
  }
  .docs-language-strip > div + div,
  .docs-language-strip > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
@font-face {
  font-family: Fredoka;
  src: url(./fonts/fredoka-latin-wght-normal.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #fafafa;
  --paper: #ffffff;
  --ink: #262626;
  --surface: #141414;
  --body: #434343;
  --muted: #595959;
  --faint: #767676;
  --line: #d9d9d9;
  --cream: #fffaf0;
  --gold: #f4bc3e;
  --pink: #ff9fbd;
  --periwinkle: #858de8;
  --success: #126b42;
  --error: #a8273e;
  --accent: #63fe13;
  --accent-ink: #18300f;
  --accent-soft: #d6ffc2;
  --accent-shadow: rgba(99, 254, 19, 0.18);
  --selection-bg: var(--accent-soft);
  font:
    16px/1.55 "Albert Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
  background: var(--canvas);
  color: var(--ink);
}
:root[data-accent="pink"] {
  --accent: #ff9fbd;
  --accent-ink: #3b1724;
  --accent-soft: #ffe3ec;
  --accent-shadow: rgba(255, 159, 189, 0.24);
}
:root[data-accent="gray"] {
  --accent: #d8d8d2;
  --accent-ink: #262626;
  --accent-soft: #eeeeeb;
  --accent-shadow: rgba(38, 38, 38, 0.12);
}
:root[data-accent="yellow"] {
  --accent: #ffd84d;
  --accent-ink: #332500;
  --accent-soft: #fff3b0;
  --accent-shadow: rgba(255, 216, 77, 0.24);
}
:root[data-accent="purple"] {
  --accent: #b7a6ff;
  --accent-ink: #241a4a;
  --accent-soft: #e7e2ff;
  --accent-shadow: rgba(183, 166, 255, 0.24);
}
:root[data-accent="pastel-lemon"] {
  --accent: #fbf8cc;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #fbf8cc 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #fbf8cc 42%, transparent);
}
:root[data-accent="pastel-peach"] {
  --accent: #fde4cf;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #fde4cf 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #fde4cf 42%, transparent);
}
:root[data-accent="pastel-blush"] {
  --accent: #ffcfd2;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #ffcfd2 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #ffcfd2 42%, transparent);
}
:root[data-accent="pastel-orchid"] {
  --accent: #f1c0e8;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #f1c0e8 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #f1c0e8 42%, transparent);
}
:root[data-accent="pastel-lavender"] {
  --accent: #cfbaf0;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #cfbaf0 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #cfbaf0 42%, transparent);
}
:root[data-accent="pastel-periwinkle"] {
  --accent: #a3c4f3;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #a3c4f3 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #a3c4f3 42%, transparent);
}
:root[data-accent="pastel-sky"] {
  --accent: #90dbf4;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #90dbf4 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #90dbf4 42%, transparent);
}
:root[data-accent="pastel-aqua"] {
  --accent: #8eecf5;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #8eecf5 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #8eecf5 42%, transparent);
}
:root[data-accent="pastel-mint"] {
  --accent: #98f5e1;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #98f5e1 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #98f5e1 42%, transparent);
}
:root[data-accent="pastel-spring"] {
  --accent: #b9fbc0;
  --accent-ink: #262626;
  --accent-soft: color-mix(in srgb, #b9fbc0 52%, var(--paper));
  --accent-shadow: color-mix(in srgb, #b9fbc0 42%, transparent);
}
* {
  box-sizing: border-box;
}
::selection {
  background: var(--selection-bg);
  color: var(--ink);
  text-shadow: none;
}
::-moz-selection {
  background: var(--selection-bg);
  color: var(--ink);
  text-shadow: none;
}
html {
  background: var(--canvas);
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
}
a {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 70;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: min(100%, 1360px);
  margin: auto;
  padding: 6px clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: max-content;
  font:
    700 24px/1 Fredoka,
    sans-serif;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.brand span {
  color: var(--gold);
}
.site-header > nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 28px;
  transform: translateX(-50%);
}
nav a,
.text-link,
footer a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
nav a {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.32px;
  line-height: 1;
}
.header-utilities {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0;
}
.mobile-header-utilities {
  display: none;
}
.header-utility {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition:
    color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.header-utility:hover,
.header-utility:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}
.header-utility-icon {
  width: 18px;
  height: 18px;
}
.header-utility-presence {
  position: absolute;
  top: 9px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--canvas);
  border-radius: 50%;
  background: var(--accent);
}
.header-language {
  position: relative;
}
.language-mark {
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.1em;
}
.header-github {
  width: auto;
  min-width: 52px;
  grid-template-columns: 18px auto;
  gap: 5px;
  margin-left: 0;
  padding-inline: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.header-github strong {
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
}
.language-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(500px, calc(100vw - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 12px;
  border-radius: 18px;
}
.language-menu[hidden] {
  display: none;
}
.language-option {
  display: grid;
  min-width: 0;
  min-height: 56px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.language-option span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.18em;
}
.language-option strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 540;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.language-option:hover,
.language-option:focus-visible,
.language-option[aria-current="true"] {
  background: var(--accent-soft);
}
.mobile-nav-trigger {
  display: none;
}
.accent-menu {
  position: relative;
  justify-self: end;
}
.accent-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 12px 12px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 44px;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.accent-trigger::before {
  content: "";
  position: absolute;
  inset: 5px 1px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
}
.accent-trigger > * {
  position: relative;
}
.accent-trigger-swatch {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(38, 38, 38, 0.24);
  border-radius: 50%;
  background: var(--accent);
}
.menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
[aria-expanded="true"] > .menu-chevron {
  transform: rotate(180deg);
}
.accent-dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, 44px);
  gap: 0;
  padding: 4px;
  border-radius: 18px;
}
.accent-dropdown[hidden] {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.accent-dropdown button {
  --swatch: #63fe13;
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
}
.accent-dropdown button[data-accent-choice="pink"] {
  --swatch: #ff9fbd;
}
.accent-dropdown button[data-accent-choice="gray"] {
  --swatch: #d8d8d2;
}
.accent-dropdown button[data-accent-choice="yellow"] {
  --swatch: #ffd84d;
}
.accent-dropdown button[data-accent-choice="purple"] {
  --swatch: #b7a6ff;
}
.accent-dropdown button[data-accent-choice="pastel-lemon"] {
  --swatch: #fbf8cc;
}
.accent-dropdown button[data-accent-choice="pastel-peach"] {
  --swatch: #fde4cf;
}
.accent-dropdown button[data-accent-choice="pastel-blush"] {
  --swatch: #ffcfd2;
}
.accent-dropdown button[data-accent-choice="pastel-orchid"] {
  --swatch: #f1c0e8;
}
.accent-dropdown button[data-accent-choice="pastel-lavender"] {
  --swatch: #cfbaf0;
}
.accent-dropdown button[data-accent-choice="pastel-periwinkle"] {
  --swatch: #a3c4f3;
}
.accent-dropdown button[data-accent-choice="pastel-sky"] {
  --swatch: #90dbf4;
}
.accent-dropdown button[data-accent-choice="pastel-aqua"] {
  --swatch: #8eecf5;
}
.accent-dropdown button[data-accent-choice="pastel-mint"] {
  --swatch: #98f5e1;
}
.accent-dropdown button[data-accent-choice="pastel-spring"] {
  --swatch: #b9fbc0;
}
.accent-dropdown button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(38, 38, 38, 0.24);
  border-radius: 50%;
  background: var(--swatch);
  transform: translate(-50%, -50%);
}
.accent-dropdown button[aria-pressed="true"] {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.accent-dropdown button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  inset: 50% auto auto 50%;
  color: var(--accent-ink);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}
main {
  overflow: hidden;
}
img[src*="/characters/"] {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.blueprint {
  position: relative;
  isolation: isolate;
  background-image: none;
}
.blueprint::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-start: 50%;
  width: 100vw;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 38, 38, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 38, 38, 0.075) 1px, transparent 1px);
  background-position: center top;
  background-size: 40px 40px;
  transform: translateX(-50%);
}
.hero {
  width: min(100%, 1360px);
  min-height: calc(100svh - 80px);
  margin: auto;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 68px) 80px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
  align-content: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 6;
  grid-row: 1;
  animation: arrive 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: fit-content;
  max-inline-size: 100%;
  margin: 0 0 20px;
  min-block-size: 24px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.76px;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero h1 {
  max-width: none;
  margin: 0;
  font:
    800 clamp(48px, 4vw, 72px)/1 "Albert Sans",
    sans-serif;
  letter-spacing: clamp(-3px, -0.32vw, -1.6px);
}
.hero h1 mark {
  display: inline;
  padding: 0 0.08em;
  background: var(--accent-soft);
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-heading-line {
  display: block;
  inline-size: fit-content;
  max-inline-size: 100%;
  white-space: nowrap;
}
.lede {
  max-width: 540px;
  margin: 28px 0;
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 22.5px);
  line-height: 1.5;
}
.lede p {
  margin: 0;
}
.lede p + p {
  margin-top: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.chips span {
  min-height: 27px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.hero-qualities {
  column-gap: 8px;
  row-gap: 6px;
}
.hero-qualities span {
  min-height: 27px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 680;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 60px;
  padding: 0 11px 0 24px;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  box-shadow:
    rgba(38, 38, 38, 0.5) 0 16px 30px -16px,
    var(--accent-shadow) 0 0 0 7px;
}
.primary-pill span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.peek-stage {
  position: relative;
  z-index: 3;
  grid-column: 5 / 8;
  grid-row: 1;
  align-self: center;
  min-height: 420px;
  margin-top: 0;
  animation: stage-in 0.7s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--canvas);
}
.nw {
  left: -6px;
  top: -6px;
}
.ne {
  right: -6px;
  top: -6px;
}
.sw {
  left: -6px;
  bottom: -6px;
}
.se {
  right: -6px;
  bottom: -6px;
}
.stage-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stage-art::before,
.stage-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.stage-art::before {
  width: 62%;
  aspect-ratio: 1;
  background: var(--accent-soft);
  opacity: 0.58;
}
.stage-art::after {
  width: 82%;
  aspect-ratio: 1;
  border-style: dashed;
}
.stage-word {
  position: absolute;
  left: 50%;
  bottom: -0.16em;
  color: rgba(38, 38, 38, 0.055);
  font-size: clamp(112px, 15vw, 190px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
  transform: translateX(-50%);
}
.stage-star,
.stage-heart {
  position: absolute;
  z-index: 1;
  line-height: 1;
}
.character-carousel {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}
.character-picker {
  position: relative;
  width: min(100%, 560px);
  height: 270px;
  overflow: visible;
  border: 0;
  background: transparent;
  perspective: 900px;
  pointer-events: auto;
}
.character-picker button {
  display: grid;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 160px;
  height: 190px;
  padding: 8px 8px 4px;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(0.42);
  transform-origin: 50% 72%;
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease-out,
    filter 360ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.character-picker button[data-carousel-position="current"] {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -58%) scale(1);
}
.character-picker button[data-carousel-position="previous"] {
  z-index: 2;
  opacity: 0.72;
  pointer-events: auto;
  transform: translate(calc(-50% - 170px), -36%) scale(0.66) rotateY(14deg);
}
.character-picker button[data-carousel-position="next"] {
  z-index: 2;
  opacity: 0.72;
  pointer-events: auto;
  transform: translate(calc(-50% + 170px), -36%) scale(0.66) rotateY(-14deg);
}
.character-picker button::before {
  content: attr(data-intro);
  position: absolute;
  left: 50%;
  bottom: calc(100% - 24px);
  z-index: 3;
  inline-size: max-content;
  max-inline-size: min(180px, calc(100vw - 32px));
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition:
    opacity 140ms ease-out,
    transform 140ms ease-out;
}
.character-picker button:hover::before,
.character-picker button:focus::before {
  opacity: 1;
  transform: translate(-50%, 0);
}
.character-picker img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(38, 38, 38, 0.1));
}
.character-carousel-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.character-picker button[data-carousel-position="previous"] img,
.character-picker button[data-carousel-position="next"] img {
  filter: saturate(0.88) drop-shadow(0 8px 9px rgba(38, 38, 38, 0.08));
}
.stage-star.one {
  left: 13%;
  top: 18%;
  color: var(--gold);
  font-size: 54px;
  transform: rotate(-12deg);
}
.stage-star.two {
  right: 12%;
  bottom: 20%;
  color: var(--periwinkle);
  font-size: 34px;
  transform: rotate(10deg);
}
.stage-heart {
  right: 14%;
  top: 16%;
  color: var(--pink);
  font-size: 30px;
  transform: rotate(11deg);
}
.no-js {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 16px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
section:not(.hero) {
  width: min(100%, 1360px);
  margin: auto;
  padding: clamp(80px, 9vw, 128px) clamp(20px, 5vw, 68px);
}
h2 {
  margin: 0;
  color: var(--ink);
  font:
    700 clamp(42px, 4.8vw, 64px)/1.04 "Albert Sans",
    sans-serif;
  letter-spacing: clamp(-2.2px, -0.2vw, -0.9px);
}
section p {
  max-width: 650px;
  color: var(--body);
}
.universe-teaser {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(320px, 3fr);
  align-items: start;
  gap: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.universe-teaser-copy h2 {
  max-width: 820px;
  font-size: clamp(46px, 6vw, 82px);
}
.universe-teaser-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 30px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.58;
}
.universe-teaser .text-link {
  gap: 10px;
  font-weight: 720;
}
.universe-ladder {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
.universe-ladder li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  align-items: baseline;
  gap: 18px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 16px 38px 16px 0;
}
.universe-ladder li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: 8px;
  bottom: -14px;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 999px 999px;
  background: var(--canvas);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
}
.universe-ladder strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(25px, 2.6vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.universe-ladder span {
  justify-self: end;
  padding-inline-end: 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.plan-gallery {
  border-bottom: 1px solid var(--line);
}
.plan-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.plan-gallery-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}
.plan-gallery-heading h2 {
  max-width: 780px;
}
.plan-gallery-intro {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}
.plan-gallery-heading .plan-gallery-limit {
  grid-column: 1 / -1;
  max-width: none;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.plan-gallery-limit strong {
  color: var(--ink);
}
.plan-pointer-radius {
  --plan-pointer-diameter: 96px;
  --plan-pointer-x: -200px;
  --plan-pointer-y: -200px;
  position: fixed;
  z-index: 2147483644;
  top: 0;
  left: 0;
  width: var(--plan-pointer-diameter);
  height: var(--plan-pointer-diameter);
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--ink));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: 0.72;
  pointer-events: none;
  transform: translate3d(var(--plan-pointer-x), var(--plan-pointer-y), 0)
    translate(-50%, -50%);
  will-change: transform;
}
.plan-workbench {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 2.28fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(38, 38, 38, 0.1);
}
.plan-preset-list {
  display: grid;
  grid-template-rows: repeat(10, minmax(62px, auto));
  align-content: stretch;
  border-right: 1px solid var(--ink);
  background: color-mix(in srgb, var(--canvas) 72%, var(--paper));
}
.plan-preset-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    background 140ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.plan-preset-list button:last-child {
  border-bottom: 0;
}
.plan-preset-list button > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.plan-preset-list button > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.plan-preset-list strong,
.plan-preset-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-preset-list strong {
  font-size: 14px;
  font-weight: 760;
}
.plan-preset-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.plan-preset-list button[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
}
.plan-preset-list button[aria-selected="true"] > span:first-child,
.plan-preset-list button[aria-selected="true"] small {
  color: var(--accent);
}
.plan-preset-list button:focus-visible {
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 0 0 2px var(--canvas),
    inset 0 0 0 5px var(--accent);
}
.plan-preset-panel {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(0, 1.35fr);
  min-width: 0;
  min-height: 0;
  background: var(--paper);
}
.plan-preset-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(30px, 4vw, 52px);
}
.plan-live-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-live-label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-shadow);
}
.plan-preset-summary h3 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(34px, 3.5vw, 52px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.plan-preset-summary > p:not(.plan-live-label) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}
.plan-preset-summary dl {
  display: grid;
  width: 100%;
  gap: 0;
  margin: 34px 0 28px;
  border-top: 1px solid var(--line);
}
.plan-preset-summary dl > div {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.plan-preset-summary dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-preset-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.48;
}
.plan-preset-summary .text-link {
  margin-top: auto;
}
.plan-live-demo {
  width: 100%;
  margin-top: 28px;
}
.plan-live-demo[hidden] {
  display: none;
}

/* The runtime exports this surface part for bounded host-owned materials. */
[data-peekling-content]::part(surface) {
  isolation: isolate;
  container-type: inline-size;
  overscroll-behavior: contain;
  border-color: var(--peekling-surface-border, rgb(255 255 255 / 84%));
  background:
    radial-gradient(
      ellipse at 14% -22%,
      rgb(255 255 255 / 90%),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 88% 116%,
      color-mix(in srgb, var(--accent-soft, #dfffd1) 22%, transparent),
      transparent 48%
    ),
    linear-gradient(
      112deg,
      rgb(255 255 255 / 48%),
      rgb(255 255 255 / 9%) 34%,
      transparent 62%
    ),
    var(--peekling-surface-background, rgb(250 250 250 / 80%));
  background-clip: padding-box;
  box-shadow:
    0 18px 44px rgb(38 38 38 / 13%),
    0 3px 10px rgb(38 38 38 / 5%),
    inset 0 1px rgb(255 255 255 / 92%),
    inset 0 -1px rgb(38 38 38 / 6%);
  backdrop-filter: blur(18px) saturate(1.32);
  -webkit-backdrop-filter: blur(18px) saturate(1.32);
}

[data-peekling-content]::part(plan-widget) {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
  color: var(--ink);
  font-family: var(--body-font);
}

[data-peekling-content]::part(plan-heading),
[data-peekling-content]::part(plan-copy) {
  margin: 0;
}

[data-peekling-content]::part(plan-heading) {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

[data-peekling-content]::part(plan-copy),
[data-peekling-content]::part(plan-status) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

[data-peekling-content]::part(plan-kicker),
[data-peekling-content]::part(plan-time-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-peekling-content]::part(plan-kicker-value) {
  color: var(--ink);
}

[data-peekling-content]::part(plan-actions) {
  display: flex;
  width: 100%;
  gap: 8px;
}

[data-peekling-content]::part(plan-button) {
  min-width: 44px;
  min-height: 44px;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgb(255 255 255 / 74%);
  color: var(--ink);
  font: 760 12px/1.2 var(--body-font);
  cursor: pointer;
}

[data-peekling-content]::part(plan-button):hover,
[data-peekling-content]::part(plan-button):focus-visible,
[data-peekling-content]::part(plan-timer-selected) {
  border-color: var(--ink);
}

[data-peekling-content]::part(plan-button):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}

[data-peekling-content]::part(plan-button):disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

[data-peekling-content]::part(plan-primary) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

[data-peekling-content]::part(plan-status) {
  display: block;
  min-height: 18px;
}

[data-peekling-content]::part(plan-pace-track) {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--ink);
  border-radius: 14px;
  background: rgb(255 255 255 / 62%);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  touch-action: none;
}

[data-peekling-content]::part(plan-pace-meter),
[data-peekling-content]::part(plan-music-progress) {
  width: 100%;
  margin: 0;
  accent-color: var(--accent-ink);
}

[data-peekling-content]::part(plan-pace-meter) {
  height: 12px;
}

[data-peekling-content]::part(plan-widget-music) {
  gap: 12px;
}

[data-peekling-content]::part(plan-music-cover) {
  position: relative;
  display: grid;
  min-height: 138px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(38 38 38 / 8%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 20%, rgb(255 255 255 / 78%), transparent 28%),
    linear-gradient(145deg, var(--accent-soft), #f8ffe8 52%, #ddffc9);
}

[data-peekling-content]::part(plan-music-cover-art) {
  display: flex;
  width: 112px;
  height: 84px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 18px;
  background: var(--ink);
  box-shadow: 0 16px 34px rgb(38 38 38 / 18%);
  transform: rotate(-4deg);
}

[data-peekling-content]::part(plan-music-cover-line) {
  width: 7px;
  border-radius: 9999px;
  background: var(--accent);
}

[data-peekling-content]::part(plan-music-cover-line-36) {
  height: 36%;
}

[data-peekling-content]::part(plan-music-cover-line-68) {
  height: 68%;
}

[data-peekling-content]::part(plan-music-cover-line-92) {
  height: 92%;
}

[data-peekling-content]::part(plan-music-cover-line-54) {
  height: 54%;
}

[data-peekling-content]::part(plan-music-cover-note) {
  margin-left: 3px;
  color: var(--paper);
  font-size: 25px;
  transform: rotate(4deg);
}

[data-peekling-content]::part(plan-music-state) {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 9999px;
  background: rgb(255 255 255 / 82%);
  color: var(--ink);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

[data-peekling-content]::part(plan-music-meta) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[data-peekling-content]::part(plan-music-meta-copy) {
  display: grid;
  gap: 1px;
}

[data-peekling-content]::part(plan-music-eyebrow) {
  color: var(--success);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[data-peekling-content]::part(plan-music-artist),
[data-peekling-content]::part(plan-music-info) {
  color: var(--muted);
  font-size: 10px;
}

[data-peekling-content]::part(plan-music-info) {
  margin-top: -8px;
}

[data-peekling-content]::part(plan-music-timeline) {
  display: grid;
  gap: 7px;
}

[data-peekling-content]::part(plan-music-controls) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

[data-peekling-content]::part(plan-music-control) {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

[data-peekling-content]::part(plan-music-control):hover,
[data-peekling-content]::part(plan-music-control):focus-visible {
  border: 0;
  background: rgb(38 38 38 / 7%);
}

[data-peekling-content]::part(plan-music-toggle) {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  flex-basis: 54px;
  padding: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 18px rgb(38 38 38 / 18%);
}

[data-peekling-content]::part(plan-music-toggle):hover,
[data-peekling-content]::part(plan-music-toggle):focus-visible {
  background: #101010;
}

[data-peekling-content]::part(plan-music-saved) {
  color: var(--success);
}

[data-peekling-content]::part(plan-player-icon) {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-peekling-content]::part(plan-player-solid) {
  fill: currentColor;
  stroke: none;
}

[data-peekling-content]::part(plan-player-hidden) {
  display: none;
}

[data-peekling-content]::part(plan-music-volume) {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

[data-peekling-content]::part(plan-music-volume-control) {
  width: 100%;
  margin: 0;
  accent-color: var(--accent-ink);
}

[data-peekling-content]::part(plan-time-row) {
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

[data-peekling-content]::part(plan-edit-diff) {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #111;
  color: var(--cream);
  font:
    11px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-peekling-content]::part(plan-diff-remove),
[data-peekling-content]::part(plan-diff-add) {
  display: block;
  padding-inline: 7px;
}

[data-peekling-content]::part(plan-diff-remove) {
  background: rgb(255 96 92 / 18%);
  color: #ffb5b2;
}

[data-peekling-content]::part(plan-diff-add) {
  background: rgb(99 254 19 / 14%);
  color: #9aff68;
}

[data-peekling-content]::part(plan-diff-selected) {
  box-shadow: inset 0 0 0 2px var(--accent);
}

[data-peekling-content]::part(plan-edit-result) {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 62%);
}

[data-peekling-content]::part(plan-edit-label) {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-peekling-content]::part(plan-edit-copy) {
  color: var(--ink);
}

[data-peekling-content]::part(plan-save-label) {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

[data-peekling-content]::part(plan-save-textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 68%);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

[data-peekling-content]::part(plan-save-actions),
[data-peekling-content]::part(plan-save-status) {
  margin-top: 14px;
}

[data-peekling-content]::part(plan-save-success) {
  padding-block: 18px 8px;
  text-align: center;
}

[data-peekling-content]::part(plan-save-check) {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 24px;
  font-weight: 900;
}

[data-peekling-content]::part(plan-save-edit) {
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
}

[data-peekling-content]::part(plan-job-progress) {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 9999px;
  accent-color: var(--accent-ink);
}

[data-peekling-content]::part(plan-timer-modes) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

[data-peekling-content]::part(plan-timer-mode) {
  min-width: 0;
  padding-inline: 6px;
  font-size: 10px;
}

[data-peekling-content]::part(plan-timer-clock) {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(42px, 16cqi, 60px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
  text-align: center;
}

[data-peekling-content]::part(plan-game-board) {
  display: grid;
  width: min(100%, 228px);
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  justify-self: center;
}

[data-peekling-content]::part(plan-game-cell) {
  aspect-ratio: 1;
  min-height: 52px;
  padding: 0;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 24px;
}

[data-peekling-content]::part(plan-game-cell):disabled {
  opacity: 1;
  cursor: default;
}

[data-peekling-content]::part(plan-game-winning) {
  border-color: var(--ink);
  background: var(--accent);
  color: var(--ink);
}

@keyframes plan-bubble-wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

@container (max-width: 280px) {
  [data-peekling-content]::part(plan-actions) {
    flex-wrap: wrap;
  }

  [data-peekling-content]::part(plan-timer-modes) {
    grid-template-columns: 1fr;
  }
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  [data-peekling-content]::part(surface) {
    border-color: #d9d9d3;
    background:
      radial-gradient(
        ellipse at 88% 116%,
        color-mix(in srgb, var(--accent-soft, #dfffd1) 22%, transparent),
        transparent 48%
      ),
      color-mix(in srgb, #fafafa 96%, #ffffff);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  [data-peekling-content]::part(surface) {
    border-color: #d9d9d3;
    background: color-mix(in srgb, #fafafa 96%, #ffffff);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  [data-peekling-content]::part(surface) {
    border-color: CanvasText;
    background: Canvas;
    box-shadow: none;
    color: CanvasText;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  [data-peekling-content]::part(plan-button),
  [data-peekling-content]::part(plan-primary),
  [data-peekling-content]::part(plan-edit-result),
  [data-peekling-content]::part(plan-save-textarea) {
    border-color: ButtonText;
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-peekling-content]::part(plan-wave-active) {
    animation: none;
  }
}

.plan-mini-app {
  display: grid;
  width: 100%;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
}
.plan-mini-app h4,
.plan-mini-app p {
  margin: 0;
}
.plan-mini-app h4 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}
.plan-mini-app p,
.plan-mini-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}
.plan-mini-kicker,
.plan-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-mini-kicker > span:last-child {
  color: var(--ink);
}
.plan-mini-actions {
  display: flex;
  width: 100%;
  gap: 8px;
}
.plan-mini-app button {
  min-width: 44px;
  min-height: 44px;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}
.plan-mini-app button:hover,
.plan-mini-app button:focus-visible,
.plan-mini-app button[aria-pressed="true"] {
  border-color: var(--ink);
}
.plan-mini-app button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.plan-mini-app .plan-mini-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.plan-mini-status {
  display: block;
  min-height: 18px;
}
.plan-pace [data-pace-track] {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  touch-action: none;
}
.plan-pace meter {
  width: 100%;
  height: 12px;
  accent-color: var(--accent-ink);
}
.plan-music-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.plan-music-title > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 22px;
}
.plan-music-title div {
  display: grid;
  gap: 2px;
}
.plan-music-title strong {
  color: var(--ink);
  font-size: 15px;
}
.plan-music-title small {
  color: var(--muted);
  font-size: 11px;
}
.plan-waveform {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 5px;
}
.plan-waveform i {
  width: 100%;
  height: 30%;
  border-radius: 9999px;
  background: var(--accent);
  transform-origin: center;
}
.plan-waveform i:nth-child(2n) {
  height: 72%;
}
.plan-waveform i:nth-child(3n) {
  height: 100%;
}
.plan-music[data-playing="true"] .plan-waveform i {
  animation: plan-wave 720ms ease-in-out infinite alternate;
}
.plan-music[data-playing="true"] .plan-waveform i:nth-child(2n) {
  animation-delay: -240ms;
}
.plan-music input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent-ink);
}
.plan-time-row {
  margin-top: -10px;
  font-variant-numeric: tabular-nums;
}
.plan-edit pre {
  max-width: 100%;
  overflow: hidden;
  padding: 12px;
  border-radius: 12px;
  background: #111;
  color: var(--cream);
  font:
    11px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.plan-edit[data-decision="accepted"] .plan-diff-add,
.plan-edit[data-decision="rejected"] .plan-diff-remove {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.plan-diff-remove,
.plan-diff-add {
  display: block;
  padding-inline: 7px;
}
.plan-diff-remove {
  background: rgba(255, 96, 92, 0.18);
  color: #ffb5b2;
}
.plan-diff-add {
  background: rgba(99, 254, 19, 0.14);
  color: #9aff68;
}
.plan-edit-result {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.plan-edit-result > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-edit-result p {
  color: var(--ink);
}
.plan-save label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}
.plan-save textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}
.plan-progress progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 9999px;
  accent-color: var(--accent-ink);
}
.plan-progress progress::-webkit-progress-value {
  transition: inline-size 320ms ease;
}
.plan-progress progress::-webkit-progress-bar {
  border-radius: 9999px;
  background: var(--line);
}
.plan-progress progress::-webkit-progress-value {
  border-radius: 9999px;
  background: var(--accent-ink);
}
.plan-progress progress::-moz-progress-bar {
  border-radius: 9999px;
  background: var(--accent-ink);
}
.plan-timer-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.plan-timer-modes button {
  min-width: 0;
  padding-inline: 6px;
  font-size: 10px;
}
.plan-timer-clock {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 60px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
  text-align: center;
}
.plan-game-board {
  display: grid;
  width: min(100%, 228px);
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  justify-self: center;
}
.plan-game-board button {
  aspect-ratio: 1;
  min-height: 52px;
  padding: 0;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 24px;
}
.plan-game-board button:disabled {
  opacity: 1;
  cursor: default;
}
.plan-game-board button[data-winning="true"] {
  border-color: var(--ink);
  background: var(--accent);
  color: var(--ink);
}
@keyframes plan-wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}
.plan-code-shell {
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}
.plan-code-shell .code-toolbar {
  min-height: 50px;
}
.plan-code-shell .code-toolbar button {
  width: auto;
  min-width: 92px;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
}
.plan-code-shell .code-toolbar button[data-state="copied"] {
  color: var(--accent);
}
.plan-code-shell pre {
  min-height: 0;
  max-height: 620px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 36px);
  overscroll-behavior: contain;
  font-size: 12px;
  line-height: 1.65;
}
.plan-code-shell code {
  display: block;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (min-width: 901px) {
  .plan-preset-panel {
    grid-template-rows: minmax(0, 1fr);
  }
  .plan-code-shell {
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch;
    overflow: hidden;
    contain: size;
  }
  .plan-code-shell pre {
    max-height: none;
  }
}
.play-section {
  min-block-size: calc(100svh - 80px);
  scroll-margin-top: 80px;
  padding-block: clamp(16px, 3vh, 30px) !important;
}
.playground-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 2.18fr);
  block-size: clamp(480px, calc(100svh - 80px - 6vh), 780px);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(38, 38, 38, 0.1);
}
.playground-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--ink);
  padding: clamp(22px, 3vw, 40px) clamp(18px, 2.5vw, 32px) 20px;
}
.playground-heading {
  min-width: 0;
}
.playground-heading .eyebrow {
  margin: 0 0 14px;
}
.playground-heading h2 {
  max-width: 11ch;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 0.98;
}
.playground-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.character-field {
  position: relative;
  display: grid;
  gap: 7px;
  margin-top: clamp(18px, 3vh, 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.character-field > label,
.field-label,
.state-group h3 {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 1.25px;
  line-height: 1.2;
  text-transform: uppercase;
}
.character-trigger {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.character-trigger:focus-visible {
  border-color: var(--line);
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}
.character-trigger img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}
.character-trigger-copy,
.character-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.character-trigger-copy strong,
.character-option-copy strong {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.15;
}
.character-trigger-copy small,
.character-option-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.character-trigger-copy small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.character-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: min(380px, 52vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 16px;
}
.character-dropdown[hidden] {
  display: none;
}
.character-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 6px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.character-option img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.character-option[aria-pressed="true"] {
  background: var(--accent-soft);
}
.character-option-check {
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
}
.character-option[aria-pressed="true"] .character-option-check {
  opacity: 1;
}
.state-field {
  position: relative;
  z-index: 35;
  display: none;
  gap: 7px;
  min-width: 0;
}
.state-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.state-trigger:disabled {
  color: var(--muted);
  cursor: wait;
}
.state-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.state-trigger-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-trigger-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.state-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  max-height: min(310px, 42svh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 16px;
  scrollbar-width: thin;
}
.state-dropdown[hidden] {
  display: none;
}
.state-option-group {
  display: grid;
  gap: 2px;
  padding: 4px 0 7px;
}
.state-option-group + .state-option-group {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.state-option-heading {
  margin: 0;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.state-option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.state-option strong {
  font-size: 14px;
  font-weight: 680;
}
.state-option small {
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.state-option[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
}
.state-option[aria-selected="true"] small {
  background: var(--accent);
  color: var(--accent-ink);
}
.state-explorer {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 8px 20px 0;
  scrollbar-width: thin;
}
.state-group {
  display: grid;
  gap: 7px;
  align-items: start;
  min-width: 0;
}
.state-explorer > .state-group {
  width: 100%;
  margin: 0;
  padding: 0;
}
.state-group h3 {
  margin: 0;
}
.state-controls {
  display: grid;
  gap: 3px;
}
.state-controls button,
.code-toolbar button {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.state-controls button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
}
.state-controls button small {
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.state-controls button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 18px rgba(38, 38, 38, 0.13);
}
.state-controls button[aria-pressed="true"] small {
  background: var(--accent);
  color: var(--accent-ink);
}
.state-preview {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  container-type: size;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--paper);
  background-size: 40px 40px;
}
.state-preview-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 4px clamp(18px, 3vw, 30px);
}
.state-preview-toolbar span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}
.state-preview-toolbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-shadow);
}
.state-preview-toolbar small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.state-preview-canvas-wrap {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  isolation: isolate;
}
.state-preview-canvas-wrap::before {
  content: "";
  position: absolute;
  width: min(58cqh, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, var(--line));
  opacity: 0.78;
}
.preview-orbit {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.preview-orbit.one {
  width: min(72cqh, 560px);
  aspect-ratio: 1;
  transform: rotate(-8deg) scaleY(0.72);
}
.preview-orbit.two {
  width: min(48cqh, 380px);
  aspect-ratio: 1;
  transform: rotate(14deg) scaleY(0.62);
}
.state-preview canvas {
  position: relative;
  z-index: 2;
  width: min(48cqh, 320px, 78%);
  height: auto;
  filter: drop-shadow(0 22px 18px rgba(38, 38, 38, 0.16));
}
.state-preview figcaption {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px clamp(18px, 3vw, 30px);
}
.state-preview-character-copy,
.state-preview-state-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 3px;
}
.state-preview figcaption strong {
  color: var(--ink);
  font-size: 17px;
}
.state-preview-character-copy strong {
  font-size: 15px !important;
}
.state-preview figcaption small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.playground-launch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: end;
  justify-self: end;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(38, 38, 38, 0.12);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.playground-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(38, 38, 38, 0.16);
}
.playground-launch:focus-visible {
  box-shadow:
    inset 0 -3px 0 var(--cream),
    inset 0 -6px 0 var(--accent),
    0 13px 26px rgba(38, 38, 38, 0.16);
}
.playground-launch-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  line-height: 1;
  place-items: center;
}
.install-section {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: clamp(48px, 8vw, 104px);
  align-items: center;
}
.install-section > * {
  position: relative;
}
.install-demo {
  min-width: 0;
}
.install-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  gap: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--canvas));
  box-shadow: inset 0 0 0 1px var(--line);
  scrollbar-width: none;
}
.install-tabs::-webkit-scrollbar {
  display: none;
}
.install-tabs button {
  min-height: 44px;
  padding: 0 16px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.install-tabs button:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.install-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.install-tabs button:focus-visible {
  outline: 0;
  box-shadow:
    inset 0 0 0 2px var(--canvas),
    inset 0 0 0 4px var(--ink);
}
.section-heading p {
  margin: 24px 0 0;
}
.section-heading > .eyebrow {
  margin: 0 0 20px;
}
.code-shell {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--cream);
  box-shadow: rgba(0, 0, 0, 0.72) 0 28px 60px -42px;
}
.install-code-stage {
  min-block-size: 304px;
}
.install-code-stage pre {
  min-block-size: 304px;
}
.install-code-stage pre[hidden] {
  display: none;
}
.code-toolbar {
  min-height: 44px;
  padding: 0 6px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #cecec8;
  font-size: 11px;
  letter-spacing: 1.76px;
}
.window-dots {
  display: flex;
  gap: 7px;
}
.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff605c;
}
.window-dots i:nth-child(2) {
  background: #ffbd44;
}
.window-dots i:nth-child(3) {
  background: #00ca4e;
}
.code-language {
  justify-self: center;
}
.code-toolbar button {
  --copy-control-border: rgba(255, 255, 255, 0.42);
  position: relative;
  justify-self: end;
  display: grid;
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--copy-control-border);
  box-shadow: none;
}
.code-toolbar button::before {
  content: "";
  position: absolute;
  inset: -6px;
}
.clipboard-icon,
.copy-check {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-check,
.copy-error {
  display: none;
  font-size: 18px;
  font-weight: 800;
}
.code-toolbar button[data-state="copied"] .clipboard-icon,
.code-toolbar button[data-state="error"] .clipboard-icon {
  display: none;
}
.code-toolbar button[data-state="copied"] .copy-check,
.code-toolbar button[data-state="error"] .copy-error {
  display: block;
}
.code-toolbar button[data-state="error"] {
  --copy-control-border: #ff9b9b;
  border: 0;
  background: transparent;
  color: #ffb5b5;
  box-shadow: none;
}
.code-toolbar button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 4px 8px;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
}
.code-toolbar button:hover::after,
.code-toolbar button:focus-visible::after {
  opacity: 1;
  transform: none;
}
.code-toolbar button[data-state="copied"] {
  --copy-control-border: var(--accent);
  border: 0;
  background: transparent;
  color: var(--copy-control-border);
  box-shadow: none;
  transition-property: transform;
}
.copy-sparkles {
  position: absolute;
  inset: -4px;
  pointer-events: none;
}
.copy-sparkles i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--copy-control-border);
  opacity: 0;
}
.copy-sparkles i:nth-child(1) {
  top: 3px;
  left: 9px;
  --spark-x: -3px;
  --spark-y: -3px;
}
.copy-sparkles i:nth-child(2) {
  top: 4px;
  right: 7px;
  --spark-x: 3px;
  --spark-y: -3px;
}
.copy-sparkles i:nth-child(3) {
  right: 5px;
  bottom: 8px;
  --spark-x: 4px;
  --spark-y: 3px;
}
.copy-sparkles i:nth-child(4) {
  bottom: 5px;
  left: 7px;
  --spark-x: -3px;
  --spark-y: 4px;
}
.code-toolbar button[data-state="copied"] .copy-sparkles i {
  animation: copy-sparkle 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.code-toolbar button[data-state="copied"] .copy-sparkles i:nth-child(2) {
  animation-delay: 35ms;
}
.code-toolbar button[data-state="copied"] .copy-sparkles i:nth-child(3) {
  animation-delay: 70ms;
}
.code-toolbar button[data-state="copied"] .copy-sparkles i:nth-child(4) {
  animation-delay: 105ms;
}
pre {
  margin: 0;
  padding: 32px;
  overflow: auto;
  color: var(--cream);
  font:
    15px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.syntax-tag,
.syntax-keyword {
  color: #ff9fbd;
}
.syntax-attr,
.syntax-function {
  color: #63fe13;
}
.syntax-string {
  color: #ffd84d;
}
.syntax-property {
  color: #8eecf5;
}
.syntax-number,
.syntax-literal {
  color: #b7a6ff;
}
.syntax-object {
  color: #b7a6ff;
}
.syntax-punctuation {
  color: #cecec8;
}
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.capabilities .capability-card {
  min-width: 0;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.4vw, 36px) 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.capabilities .capability-card + .capability-card {
  border-left: 1px solid var(--line);
}
.capabilities b,
.capabilities span {
  display: block;
}
.capabilities b {
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
}
.capabilities span {
  color: var(--body);
  font-size: 14px;
}
.capability-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 280px);
  height: 142px;
  margin: 0 0 18px;
  overflow: hidden;
  isolation: isolate;
}
.capability-visual::before {
  position: absolute;
  z-index: -2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  content: "";
}
.capability-visual canvas,
.capability-visual-fallback {
  position: absolute;
  z-index: 2;
  width: 112px;
  height: 112px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.capability-visual canvas {
  visibility: hidden;
}
.capability-visual[data-marketing-ready="true"] canvas {
  visibility: visible;
}
.capability-visual[data-marketing-ready="true"] .capability-visual-fallback {
  visibility: hidden;
}
.capability-motion-line {
  position: absolute;
  z-index: -1;
  width: 76%;
  height: 52px;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 50%;
  transform: translateY(28px);
}
.capability-sparkle {
  position: absolute;
  z-index: 3;
  width: 15px;
  height: 15px;
  background: var(--accent);
  clip-path: polygon(
    50% 0,
    62% 38%,
    100% 50%,
    62% 62%,
    50% 100%,
    38% 62%,
    0 50%,
    38% 38%
  );
  opacity: 0;
  transform: scale(0.5);
}
.capability-sparkle-one {
  top: 25px;
  left: calc(50% - 68px);
}
.capability-sparkle-two {
  right: calc(50% - 70px);
  bottom: 28px;
  width: 11px;
  height: 11px;
}
.capability-visual-reacts[data-reaction-pulse="true"] .capability-sparkle {
  animation: capability-sparkle 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.capability-sleep-mark {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: calc(50% + 46px);
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  transform: translate3d(-6px, 8px, 0) scale(0.8);
}
.capability-sleep-mark + .capability-sleep-mark {
  top: 13px;
  left: calc(50% + 62px);
  font-size: 13px;
  animation-delay: 480ms !important;
}
.capability-visual-rests[data-state="sleep"] .capability-sleep-mark {
  animation: capability-sleep-mark 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes capability-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-14deg);
  }
  38% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.72) rotate(12deg);
  }
}
@keyframes capability-sleep-mark {
  0% {
    opacity: 0;
    transform: translate3d(-6px, 8px, 0) scale(0.8);
  }
  35% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(8px, -14px, 0) scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .capability-visual canvas {
    transform: none !important;
  }
  .capability-sparkle,
  .capability-sleep-mark {
    animation: none !important;
    opacity: 0 !important;
  }
}
.pack-section {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 64px;
}
.pack-files {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pack-files li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.pack-files li:last-child {
  border-bottom: 1px solid var(--line);
}
.pack-files span {
  grid-row: 1/3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  align-self: start;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.pack-files b {
  font-size: 24px;
  font-weight: 750;
}
.pack-files small {
  color: var(--muted);
}
.community-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.community-copy {
  max-width: 560px;
}
.community-copy > p:not(.eyebrow) {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
}
.community-cta {
  width: fit-content;
  margin-top: 32px;
}
.community-world {
  position: relative;
  display: flex;
  width: min(100%, 620px);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  justify-self: end;
  color: var(--ink);
  text-decoration: none;
}
.community-world:hover {
  transform: translateY(-2px);
}
.community-world:focus-visible {
  border-radius: 50%;
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}
.community-globe {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
}
.community-globe-canvas {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: min(82%, 500px);
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.community-globe-canvas[data-globe-renderer="css"] {
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--ink) 0 1px, transparent 1.4px) 0 0 / 9px 9px,
    radial-gradient(circle, var(--accent-soft), var(--canvas) 68%);
  opacity: 0.54;
}
.community-orbit {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(108%, 680px);
  aspect-ratio: 1;
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 22%,
    rgb(0 0 0 / 0.55) 52%,
    rgb(0 0 0 / 0.18) 78%,
    transparent 92%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.community-orbit-ring {
  position: absolute;
  inset: clamp(28px, 6%, 38px);
  animation: community-orbit-spin 38s linear infinite;
}
.community-orbit-slot {
  --slot-angle: 0deg;
  position: absolute;
  inset: 0;
  transform: rotate(var(--slot-angle, 0deg));
}
.community-orbit-slot:nth-child(2) {
  --slot-angle: 32.73deg;
}
.community-orbit-slot:nth-child(3) {
  --slot-angle: 65.45deg;
}
.community-orbit-slot:nth-child(4) {
  --slot-angle: 98.18deg;
}
.community-orbit-slot:nth-child(5) {
  --slot-angle: 130.91deg;
}
.community-orbit-slot:nth-child(6) {
  --slot-angle: 163.64deg;
}
.community-orbit-slot:nth-child(7) {
  --slot-angle: 196.36deg;
}
.community-orbit-slot:nth-child(8) {
  --slot-angle: 229.09deg;
}
.community-orbit-slot:nth-child(9) {
  --slot-angle: 261.82deg;
}
.community-orbit-slot:nth-child(10) {
  --slot-angle: 294.55deg;
}
.community-orbit-slot:nth-child(11) {
  --slot-angle: 327.27deg;
}
.community-orbit-slot img {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(38px, 8vw, 58px);
  height: clamp(38px, 8vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 9px 10px rgb(38 38 38 / 0.16));
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--slot-angle, 0deg)));
  animation: community-avatar-upright 38s linear infinite reverse;
}
.community-world:hover .community-orbit-ring,
.community-world:hover .community-orbit-slot img,
.community-world:focus-visible .community-orbit-ring,
.community-world:focus-visible .community-orbit-slot img {
  animation-play-state: paused;
}
@keyframes community-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes community-avatar-upright {
  to {
    transform: rotate(360deg);
  }
}
.safety-section {
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  color: var(--cream);
  box-shadow: rgba(0, 0, 0, 0.72) 0 28px 60px -42px;
}
.safety-section .eyebrow {
  background: var(--accent);
  color: var(--accent-ink);
}
.safety-section h2,
.safety-section dt {
  color: var(--cream);
}
.safety-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
  min-width: 0;
}
.safety-section .section-heading > .eyebrow {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}
.safety-section .section-heading > h2 {
  grid-column: 2;
  min-width: 0;
}
.safety-section dl {
  counter-reset: safety-promise;
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.safety-section dl div {
  counter-increment: safety-promise;
  min-width: 0;
  padding: 28px 32px 8px 0;
}
.safety-section dl div + div {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.safety-section dt {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 40px;
  line-height: 1.08;
}
.safety-section dt::before {
  content: "0" counter(safety-promise);
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}
.safety-section dd {
  max-width: 34ch;
  margin: 18px 0 0 56px;
  color: color-mix(in srgb, var(--cream) 76%, var(--surface));
  line-height: 1.55;
}
dt {
  font-size: 22px;
  font-weight: 700;
}
dd {
  margin: 12px 0 0;
  color: #cecec8;
  font-size: 15px;
}
.performance {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 64px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.facts p {
  margin: 0;
}
.facts strong,
.metric-label {
  display: block;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.facts strong {
  color: var(--ink);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}
.metric-counter {
  min-inline-size: 0;
  font-variant-numeric: tabular-nums;
}
.metric-unit {
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 760;
  letter-spacing: -0.02em;
}
.metric-label {
  color: var(--body);
  font-size: 13px;
}
.fine-print {
  grid-column: 2;
  font-size: 13px;
}
.compatibility {
  padding-top: 0 !important;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.compatibility p {
  margin: 0;
  padding: 6px 13px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.final-cta {
  text-align: center;
}
.final-cta > * {
  position: relative;
  margin-right: auto !important;
  margin-left: auto !important;
}
.final-cta h2 {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
}
.final-cta .primary-pill {
  margin-top: 40px;
}
.final-cta > p:last-child {
  font-size: 14px;
}
.faq-section {
  border-top: 1px solid var(--line);
}
.faq-heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.faq-heading .eyebrow {
  margin: 0;
}
.faq-heading h2 {
  max-width: 860px;
}
.faq-list {
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  min-height: 112px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 52px;
  gap: 28px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-number {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}
.faq-question {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 470;
  letter-spacing: -0.025em;
  line-height: 1.16;
}
.faq-toggle {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
}
.faq-toggle::after {
  transform: rotate(90deg);
}
.faq-list details[open] .faq-toggle {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(45deg);
}
.faq-list summary:hover .faq-toggle {
  transform: translateY(-1px);
}
.faq-list details[open] summary:hover .faq-toggle {
  transform: translateY(-1px) rotate(45deg);
}
.faq-list summary:focus-visible {
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}
.faq-answer {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 52px;
  gap: 28px;
}
.faq-answer p {
  grid-column: 2;
  max-width: 62ch;
  margin: 0;
  padding: 0 0 40px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.62;
  animation: faq-reveal 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.faq-answer code {
  color: var(--ink);
  font-size: 0.88em;
}
@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.site-footer {
  width: min(100%, 1360px);
  margin: auto;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 68px) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.site-footer section {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.site-footer h2 {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.site-footer section:last-child .footer-links a {
  font-weight: 680;
}
.footer-links {
  display: grid;
  align-content: start;
  gap: 4px;
}
.footer-links a,
.footer-meta a {
  width: fit-content;
  max-width: 100%;
  color: var(--body);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.35;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}
.footer-links a {
  display: flex;
  min-height: 44px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.site-footer a[data-external]::after {
  content: "↗";
  width: 0.8em;
  margin-inline-start: 0.35em;
  color: currentColor;
  opacity: 1;
  transform: none;
  transition:
    color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-footer a[data-external] {
  white-space: nowrap;
}
.site-footer a[data-external]:hover::after,
.site-footer a[data-external]:focus-visible::after {
  color: var(--accent);
  opacity: 1;
  transform: translate(1px, -1px);
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
.footer-meta {
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer-meta p {
  margin: 0;
}
.footer-character-picker {
  position: relative;
  z-index: 12;
  margin-left: auto;
}
.footer-character-trigger {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  min-width: 152px;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.footer-character-trigger img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-character-trigger strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-character-chevron {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-character-trigger[aria-expanded="true"] .footer-character-chevron {
  transform: translateY(-2px) rotate(225deg);
}
.footer-character-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  width: min(300px, calc(100vw - 40px));
  max-height: min(360px, 52svh);
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border-radius: 16px;
  scrollbar-width: thin;
}
.footer-character-menu[hidden] {
  display: none;
}
.footer-character-menu button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 5px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.footer-character-menu button:hover,
.footer-character-menu button:focus-visible,
.footer-character-menu button[aria-selected="true"] {
  background: var(--accent-soft);
}
.footer-character-menu button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-character-menu button strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-character-menu button span:last-child {
  font-weight: 850;
  opacity: 0;
}
.footer-character-menu button[aria-selected="true"] span:last-child {
  opacity: 1;
}
.footer-wordmark {
  display: block;
  width: fit-content;
  margin: clamp(52px, 7vw, 96px) auto 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(76px, 15vw, 196px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-decoration: none;
}
.footer-wordmark span {
  color: var(--accent);
}

/* The Peekling Universe: an editorial brand-language surface, not product docs. */
.philosophy-page {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--canvas);
  background-size: 80px 80px;
}
.philosophy-main {
  overflow: hidden;
}
.philosophy-main > section {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 144px) clamp(20px, 5vw, 68px);
}
.philosophy-hero {
  display: grid;
  min-height: calc(100svh - 64px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}
.philosophy-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 5;
  grid-row: 1;
}
.philosophy-hero h1 {
  max-width: 980px;
  margin: 18px 0 30px;
  font-family: var(--display);
  font-size: clamp(58px, 8.1vw, 116px);
  font-weight: 760;
  letter-spacing: -0.068em;
  line-height: 0.88;
}
.philosophy-hero-lead {
  display: block;
}
.philosophy-flip {
  display: grid;
  perspective: 900px;
}
.philosophy-flip mark {
  grid-area: 1 / 1;
  width: fit-content;
  align-self: start;
  padding-inline: 0.06em;
  background: var(--accent);
  color: var(--accent-ink);
  box-decoration-break: clone;
  opacity: 0;
  transform: translateY(0.18em) rotateX(-72deg);
  transform-origin: 50% 100%;
  transition:
    opacity 180ms ease-out,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-box-decoration-break: clone;
}
.philosophy-flip mark[data-flip-current] {
  z-index: 2;
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
.philosophy-flip mark[data-flip-leaving] {
  opacity: 0;
  transform: translateY(-0.18em) rotateX(72deg);
  transform-origin: 50% 0%;
}
.philosophy-hero-copy > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.55;
}
.philosophy-portrait {
  position: relative;
  grid-column: 5 / 8;
  grid-row: 1;
  align-self: start;
  min-height: 440px;
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, var(--accent-soft));
}
.philosophy-portrait img {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: min(58%, 256px);
  height: auto;
  transform: translate(-50%, -48%);
}
.philosophy-orbit {
  position: absolute;
  inset: 12%;
  border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: 50%;
}
.philosophy-orbit::before,
.philosophy-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 50%;
}
.philosophy-orbit::before {
  inset: 18%;
}
.philosophy-orbit::after {
  inset: 36%;
  background: var(--accent-soft);
}
.philosophy-whisper {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 18px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.language-chain {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(0, 5fr);
  gap: clamp(48px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.language-chain .section-heading h2 {
  max-width: 520px;
}
.language-chain ol {
  counter-reset: universe-step;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}
.language-chain li {
  counter-increment: universe-step;
  display: grid;
  grid-template-columns: 48px minmax(120px, 0.55fr) 1fr;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.language-chain li::before {
  content: "0" counter(universe-step);
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.language-chain strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.language-chain span {
  color: var(--muted);
  font-size: 15px;
}
.universe-definitions {
  border-top: 1px solid var(--line);
}
.definitions-intro {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(0, 5fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.definitions-intro h2 {
  max-width: 760px;
}
.definition-list {
  border-top: 1px solid var(--ink);
}
.definition-list article {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 52px) 0;
}
.definition-list h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.definition-list header p {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  margin: 14px 0 0;
  border-radius: 9999px;
  background: var(--accent-soft);
  padding: 7px 11px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.definition-list article > div p {
  max-width: 700px;
  margin: 0;
  color: var(--body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}
.definition-list article > div p + p {
  margin-top: 18px;
}
.peektionary-invitation {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin: clamp(34px, 5vw, 64px) 0 0 auto;
  padding: 24px 0 12px;
  color: var(--ink);
  text-decoration: none;
}
.peektionary-invitation > span {
  min-width: 0;
}
.peektionary-invitation small,
.peektionary-invitation strong,
.peektionary-invitation b {
  display: block;
}
.peektionary-invitation small {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.peektionary-invitation strong {
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 620;
  line-height: 1.55;
}
.peektionary-invitation b {
  border-bottom: 2px solid var(--accent);
  padding: 0 0 7px;
  font-size: 15px;
  font-weight: 790;
  white-space: nowrap;
}
.peektionary-invitation:hover b {
  border-bottom-color: var(--ink);
}

/* The Peektionary extends the philosophy surface into an official glossary. */
.peektionary-main > section {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 144px) clamp(20px, 5vw, 68px);
}
.peektionary-hero {
  display: grid;
  min-height: calc(88svh - 64px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}
.peektionary-hero-copy {
  grid-column: 1 / 5;
  padding-bottom: 12px;
}
.peektionary-hero h1 {
  max-width: 920px;
  margin: 18px 0 28px;
  font-family: var(--display);
  font-size: clamp(72px, 11vw, 154px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.84;
}
.peektionary-hero h1 mark {
  background: linear-gradient(transparent 67%, var(--accent) 67%);
  color: inherit;
}
.peektionary-hero-copy > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.55;
}
.peektionary-index {
  display: grid;
  grid-template-columns: 1fr;
  grid-column: 5 / 8;
  border-top: 1px solid var(--ink);
}
.peektionary-index a {
  display: grid;
  min-height: 68px;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.peektionary-index a span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.14em;
}
.peektionary-index a:hover,
.peektionary-index a:focus-visible {
  background: var(--accent-soft);
}
.peektionary-group {
  scroll-margin-top: 100px;
  border-top: 1px solid var(--line);
}
.peektionary-group-heading {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(48px, 8vw, 112px);
  margin-bottom: clamp(52px, 7vw, 92px);
}
.peektionary-group-heading h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 82px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.peektionary-definitions h3 {
  font-size: clamp(36px, 4.2vw, 70px);
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}
.term-examples {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  border-left: 3px solid var(--accent);
  padding: 3px 0 3px 18px;
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 650;
  line-height: 1.5;
}
.term-examples q::before,
.term-examples q::after {
  color: var(--accent-ink);
}
.definition-list article > div .term-equation {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}
.term-equation span {
  display: block;
  white-space: nowrap;
}
.term-equation strong {
  color: var(--ink);
}
.vocabulary-map {
  border-top: 1px solid var(--line);
}
.vocabulary-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.vocabulary-tree article {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
}
.vocabulary-tree article + article {
  border-left: 1px solid var(--line);
}
.vocabulary-tree span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 820;
}
.vocabulary-tree h3 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.vocabulary-tree p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.vocabulary-summary {
  max-width: 980px;
  margin: clamp(46px, 6vw, 78px) auto 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 630;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-align: center;
}
.vocabulary-summary strong {
  color: var(--ink);
  font-weight: 760;
}
.principle-panel {
  width: min(calc(100% - 40px), 1360px) !important;
  border-radius: 18px;
  background: var(--surface);
  color: var(--cream);
}
.principle-panel .eyebrow {
  background: var(--accent);
  color: var(--accent-ink);
}
.principle-panel h2 {
  max-width: 1000px;
  margin: 18px 0 clamp(48px, 7vw, 88px);
  color: var(--cream);
  font-size: clamp(54px, 8vw, 112px);
  letter-spacing: -0.065em;
  line-height: 0.91;
}
.principle-panel h2 mark {
  background: none;
  color: var(--accent);
}
.principle-rhythm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.principle-rhythm p {
  max-width: none;
  margin: 0;
  padding: 22px 24px 22px 0;
  color: #cecec8;
  font-size: clamp(16px, 1.5vw, 19px);
}
.principle-rhythm p:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
}
.principle-rhythm p:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.curiosity-section {
  display: grid;
  grid-template-columns: minmax(280px, 3fr) minmax(0, 4fr);
  gap: clamp(48px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}
.curiosity-copy > p {
  margin: 0;
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.65;
}
.curiosity-copy > p + p {
  margin-top: 20px;
}
.curiosity-copy blockquote {
  margin: clamp(48px, 7vw, 80px) 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.94;
}
.curiosity-copy blockquote span {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.pet-distinction-title {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(0, 5fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}
.distinction-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 84px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.distinction-columns > div {
  padding: clamp(28px, 4vw, 48px);
}
.distinction-columns > div:first-child {
  border-right: 1px solid var(--line);
  padding-left: 0;
}
.distinction-columns h3 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.distinction-columns p {
  max-width: none;
  margin: 0;
  color: var(--body);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.42;
}
.distinction-columns p + p {
  margin-top: 16px;
}
.distinction-close {
  display: flex;
  width: 100%;
  max-width: none !important;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 24px);
  margin: 38px auto 0;
  color: var(--ink) !important;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.distinction-quote-mark {
  flex: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.7;
}
.distinction-quote-text {
  min-width: 0;
  font-family: var(--display);
  font-weight: 760;
  letter-spacing: -0.025em;
}
.philosophy-close {
  text-align: center;
}
.philosophy-close > * {
  position: relative;
  margin-right: auto;
  margin-left: auto;
}
.philosophy-close h2 {
  max-width: 960px;
  font-size: clamp(52px, 7vw, 96px);
}
.philosophy-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 42px;
}
.utility-page {
  min-height: 100svh;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--canvas);
  background-size: 80px 80px;
}
.utility-main {
  width: min(100%, 1360px);
  min-height: 78svh;
  margin: 0 auto;
  padding: clamp(132px, 14vh, 180px) clamp(20px, 5vw, 68px)
    clamp(88px, 10vw, 140px);
  display: grid;
  align-items: center;
}
.utility-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 128px);
}
.utility-copy h1 {
  max-width: 780px;
  margin: 20px 0 24px;
  font-family: var(--display);
  font-size: clamp(54px, 7.5vw, 108px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.9;
}
.utility-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
}
.utility-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.utility-actions a {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  font-weight: 720;
  text-decoration: none;
}
.utility-actions a + a {
  background: var(--paper);
  color: var(--ink);
}
.utility-art {
  position: relative;
  min-height: min(52vw, 560px);
  border: 1px solid var(--ink);
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent-soft);
  box-shadow: 0 18px 44px rgba(38, 38, 38, 0.13);
}
.utility-art::before,
.utility-art::after {
  content: "";
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: 50%;
}
.utility-art::before {
  width: 76%;
  aspect-ratio: 1;
}
.utility-art::after {
  width: 112%;
  aspect-ratio: 1.5;
}
.utility-art img {
  position: relative;
  z-index: 1;
  width: min(72%, 320px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(38, 38, 38, 0.16));
}
.utility-code {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: var(--accent-ink);
  font-size: clamp(42px, 8vw, 112px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes copy-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }
  35% {
    opacity: 1;
    transform: scale(1.25) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) rotate(90deg)
      scale(0.35);
  }
}
@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (hover: hover) {
  .plan-preset-list button:not([aria-selected="true"]):hover {
    background: var(--accent-soft);
    transform: translateX(2px);
  }
  a,
  button {
    transition:
      transform 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }
  nav a:hover,
  .text-link:hover,
  footer a:hover,
  .accent-trigger:hover,
  .accent-dropdown button:hover {
    transform: translateY(-1px);
  }
  .primary-pill:hover {
    transform: translateY(-1px);
    background: var(--body);
    box-shadow:
      rgba(38, 38, 38, 0.58) 0 20px 34px -18px,
      var(--accent-shadow) 0 0 0 7px;
  }
  .state-controls button:not([aria-pressed="true"]):hover,
  .state-option:not([aria-selected="true"]):hover {
    transform: translateY(-1px);
    background-color: rgba(21, 20, 15, 0.04);
    box-shadow: rgba(17, 17, 26, 0.1) 0 8px 24px;
  }
  .code-toolbar button:hover {
    background: transparent;
    box-shadow: none;
  }
}
@media (pointer: coarse), (max-width: 620px) {
  .character-picker {
    display: flex;
    width: min(100%, 360px);
    height: 190px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding: 10px calc(50% - 60px) 30px;
    perspective: none;
    scroll-padding-inline: 50%;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .character-picker::-webkit-scrollbar {
    display: none;
  }
  .character-picker button,
  .character-picker button[data-carousel-position] {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    flex: 0 0 120px;
    width: 120px;
    height: 150px;
    padding: 4px;
    opacity: 0.72;
    pointer-events: auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: translateY(18px) scale(0.76);
  }
  .character-picker button[data-centered],
  .character-picker button[aria-pressed="true"] {
    z-index: 2;
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  .character-picker img {
    width: 104px;
    height: 104px;
  }
}
@media (max-width: 900px) {
  .plan-gallery-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .plan-gallery-heading .eyebrow {
    grid-column: 1;
    margin-bottom: 0;
  }
  .plan-workbench {
    grid-template-columns: 1fr;
  }
  .plan-preset-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }
  .plan-preset-list button {
    min-width: 230px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }
  .plan-preset-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .site-header {
    width: 100%;
    min-width: 0;
    padding-block: 6px;
    padding-inline-start: max(18px, env(safe-area-inset-left));
    padding-inline-end: max(18px, env(safe-area-inset-right));
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }
  .site-header .brand {
    min-width: 0;
    max-width: 100%;
  }
  .site-header .accent-menu,
  .mobile-nav-trigger {
    justify-self: end;
  }
  .desktop-header-utilities {
    display: none;
  }
  .mobile-nav-trigger {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .mobile-nav-trigger::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--paper) 76%, transparent);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.92);
  }
  .mobile-nav-trigger span {
    position: relative;
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
      transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 120ms ease-out;
  }
  .mobile-nav-trigger[aria-expanded="true"] span:first-child {
    transform: translateY(5.5px) rotate(45deg);
  }
  .mobile-nav-trigger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-trigger[aria-expanded="true"] span:last-child {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  .site-header:not([data-mobile-nav-ready]) > nav {
    grid-column: 1 / -1;
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-top: 4px;
  }
  .site-header[data-mobile-nav-ready] > nav {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: clamp(8px, 3vw, 24px);
    left: clamp(8px, 3vw, 24px);
    display: grid;
    width: auto;
    max-height: calc(100svh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    padding: 12px 24px 20px;
    border-radius: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transform-origin: top right;
    visibility: hidden;
    scrollbar-width: thin;
    transition:
      opacity 160ms ease-out,
      transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 180ms;
  }
  .site-header[data-mobile-nav-open="true"] > nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .site-header[data-mobile-nav-ready] > nav a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
    border-radius: 0;
    text-decoration: none;
  }
  .site-header[data-mobile-nav-ready] > nav a:hover,
  .site-header[data-mobile-nav-ready] > nav a:focus-visible,
  .site-header[data-mobile-nav-ready] > nav a[aria-current="page"] {
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--accent);
  }
  .mobile-header-utilities {
    display: grid;
    grid-template-columns: repeat(3, 44px) 58px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 10px 6px 2px;
    border-top: 1px solid var(--line);
  }
  .mobile-header-utilities .header-language {
    display: contents;
  }
  .site-header[data-mobile-nav-ready]
    > nav
    .mobile-header-utilities
    .header-utility {
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }
  .mobile-header-utilities .header-discord {
    grid-column: 1;
  }
  .mobile-header-utilities .header-x {
    grid-column: 2;
  }
  .mobile-header-utilities .language-trigger {
    grid-column: 3;
  }
  .mobile-header-utilities .header-github {
    grid-column: 4;
    grid-template-columns: 20px auto;
    place-content: center;
    gap: 5px;
    margin-left: 0;
  }
  .mobile-header-utilities .language-menu {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
    padding: 6px;
    border-radius: 12px;
  }
  .site-header[data-mobile-nav-ready]
    > nav
    .mobile-header-utilities
    .language-option {
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr);
    justify-content: stretch;
    padding: 6px 8px;
  }
  .mobile-header-utilities .language-option span {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .mobile-header-utilities .language-option strong {
    font-size: 13px;
  }
  .docs-page .site-header[data-mobile-nav-ready] > nav .mobile-docs-navigation {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .docs-page .site-header[data-mobile-nav-ready] > nav .mobile-docs-toc {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .mobile-docs-navigation > p,
  .mobile-docs-toc > p {
    margin: 0;
    padding: 8px 14px 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .mobile-docs-links {
    display: grid;
    gap: 12px;
  }
  .mobile-docs-links .docs-nav-group {
    gap: 2px;
  }
  .mobile-docs-links .docs-nav-group-label {
    margin-left: 0;
    padding: 6px 14px 2px;
    text-align: left;
  }
  .mobile-docs-toc-links {
    display: grid;
    gap: 2px;
  }
  .docs-page .site-header[data-mobile-nav-ready] > nav .mobile-docs-links a,
  .docs-page
    .site-header[data-mobile-nav-ready]
    > nav
    .mobile-docs-toc-links
    a {
    min-height: 44px;
    padding-inline: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
  }
  .docs-page
    .site-header[data-mobile-nav-ready]
    > nav
    .mobile-docs-links
    a[aria-current="page"],
  .docs-page
    .site-header[data-mobile-nav-ready]
    > nav
    .mobile-docs-toc-links
    a[aria-current="location"] {
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 780;
  }
  .hero {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-copy {
    grid-column: 1 / 4;
    grid-row: auto;
  }
  .universe-teaser {
    grid-template-columns: 1fr;
  }
  .peek-stage {
    grid-column: 1 / 4;
    grid-row: auto;
    min-height: 380px;
    margin-top: 32px;
  }
  .play-section,
  .install-section,
  .pack-section,
  .community-section,
  .performance {
    grid-template-columns: 1fr;
  }
  .community-world {
    width: min(82vw, 560px);
    justify-self: center;
  }
  .play-section {
    min-block-size: calc(100svh - 80px);
  }
  .playground-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    block-size: clamp(560px, calc(100svh - 80px - 6vh), 820px);
  }
  .playground-controls {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: 22px 24px 16px;
  }
  .playground-heading {
    grid-row: 1 / 3;
  }
  .playground-heading h2 {
    font-size: clamp(32px, 5.6vw, 44px);
  }
  .character-field {
    margin-top: 0;
  }
  .state-explorer {
    padding-top: 14px;
  }
  .safety-section .section-heading {
    grid-template-columns: 1fr;
  }
  .safety-section .section-heading > h2 {
    grid-column: 1;
  }
  .safety-section dl,
  .capabilities {
    grid-template-columns: 1fr;
  }
  .safety-section dl div {
    padding: 24px 0;
  }
  .safety-section dl div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }
  .safety-section dd {
    max-width: 56ch;
  }
  .faq-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .capabilities .capability-card + .capability-card {
    border-top: 0;
    border-left: 0;
  }
  .fine-print {
    grid-column: 1;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .utility-card {
    grid-template-columns: 1fr;
  }
  .utility-art {
    min-height: 420px;
  }
  .philosophy-hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .peektionary-hero {
    min-height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .peektionary-hero-copy,
  .peektionary-index {
    grid-column: 1 / 4;
  }
  .peektionary-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 64px;
  }
  .peektionary-index a:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }
  .peektionary-group-heading {
    grid-template-columns: 1fr;
  }
  .vocabulary-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vocabulary-tree article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .vocabulary-tree article:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .philosophy-hero-copy {
    grid-column: 1 / 4;
    grid-row: 1;
  }
  .philosophy-portrait {
    grid-column: 2 / 4;
    grid-row: 2;
    min-height: 380px;
    opacity: 0.58;
  }
  .language-chain,
  .definitions-intro,
  .curiosity-section,
  .pet-distinction-title {
    grid-template-columns: 1fr;
  }
  .definition-list article {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  }
}
@media (max-width: 620px) {
  /* Keep landing controls centered above the 128px, 2x Peek on compact screens. */
  html[data-page="landing"] > [data-peekling-content]::part(surface) {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
  }
  .site-header {
    min-height: 60px;
    padding-block: 6px;
    padding-inline-start: max(18px, env(safe-area-inset-left));
    padding-inline-end: max(18px, env(safe-area-inset-right));
    gap: 8px;
  }
  .brand {
    font-size: 21px;
  }
  .accent-dropdown {
    gap: 0;
  }
  .accent-dropdown button {
    min-width: 44px;
  }
  .hero {
    min-height: auto;
    padding: 64px 20px 72px;
    grid-template-columns: 1fr;
  }
  .universe-teaser {
    gap: 48px;
  }
  .plan-gallery-heading {
    margin-bottom: 34px;
  }
  .plan-gallery-heading h2 {
    font-size: clamp(38px, 12vw, 52px);
  }
  .plan-workbench {
    border-radius: 18px;
  }
  .plan-preset-list button {
    min-width: min(78vw, 252px);
    min-height: 66px;
    padding-inline: 15px;
  }
  .plan-preset-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .plan-preset-summary {
    min-height: 440px;
    padding: 28px 22px;
  }
  .plan-preset-summary h3 {
    max-width: 12ch;
  }
  .plan-code-shell {
    min-height: 0;
  }
  .plan-code-shell pre {
    max-height: 540px;
    padding: 22px 18px 28px;
  }
  .plan-code-shell .code-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .plan-code-shell .window-dots {
    display: none;
  }
  .plan-code-shell #plan-code-label {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .plan-code-shell .code-toolbar button {
    min-width: 82px;
  }
  .community-section {
    gap: 40px;
  }
  .community-world {
    width: min(92vw, 520px);
  }
  .universe-teaser-copy h2 {
    font-size: clamp(42px, 12vw, 58px);
  }
  .universe-ladder li {
    grid-template-columns: minmax(96px, 0.45fr) 1fr;
    min-height: 68px;
  }
  .hero-copy,
  .peek-stage {
    grid-column: 1;
  }
  .hero h1 {
    font-size: clamp(23px, 7.5vw, 48px);
    letter-spacing: -1.2px;
  }
  .lede {
    font-size: 18px;
  }
  .peek-stage {
    min-height: 340px;
  }
  .character-carousel {
    padding: 12px;
  }
  .character-picker button::before {
    display: none;
  }
  .chips {
    display: none;
  }
  .hero-qualities {
    display: flex;
    margin-bottom: 24px;
  }
  .hero-qualities span {
    font-size: 11px;
  }
  main > section:not(.hero) {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .play-section {
    min-block-size: calc(100svh - 72px);
    padding: clamp(12px, 2vh, 18px) 12px !important;
  }
  .playground-shell {
    grid-template-rows: minmax(270px, 1fr) minmax(250px, 1fr);
    block-size: max(520px, calc(100svh - 72px - 4vh));
    border-radius: 18px;
  }
  .playground-controls {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    overflow: visible;
    padding: 16px 16px 10px;
  }
  .playground-heading {
    grid-row: auto;
  }
  .playground-heading .eyebrow {
    margin-bottom: 8px;
  }
  .playground-heading h2 {
    max-width: none;
    font-size: clamp(28px, 8vw, 36px);
  }
  .playground-heading > p:last-child {
    display: none;
  }
  .character-field {
    margin-top: 12px;
    padding-bottom: 10px;
  }
  .character-trigger {
    min-height: 52px;
  }
  .character-trigger-copy small {
    -webkit-line-clamp: 1;
  }
  .state-field {
    display: grid;
    margin-top: 10px;
  }
  .state-explorer {
    display: none;
  }
  .state-preview-toolbar {
    min-height: 44px;
    padding: 4px 16px;
  }
  .state-preview canvas {
    width: min(52cqh, 240px, 72%);
  }
  .state-preview figcaption {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px 16px;
  }
  .playground-launch {
    justify-self: end;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .pack-files li {
    padding: 18px 0;
  }
  .safety-section {
    border-radius: 0;
  }
  .safety-section dl {
    margin-top: 40px;
  }
  .safety-section dt {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }
  .safety-section dt::before {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .safety-section dd {
    margin-top: 12px;
    margin-left: 48px;
  }
  .faq-list {
    margin-top: 40px;
  }
  .faq-list summary {
    min-height: 88px;
    padding: 18px 0;
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    gap: 12px;
  }
  .faq-question {
    font-size: 20px;
    line-height: 1.22;
  }
  .faq-toggle {
    width: 40px;
    height: 40px;
  }
  .faq-answer {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }
  .faq-answer p {
    padding-bottom: 28px;
    font-size: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-character-picker,
  .footer-character-trigger {
    width: 100%;
  }
  .footer-character-picker {
    margin-left: 0;
  }
  .footer-character-menu {
    right: auto;
    left: 0;
    width: 100%;
  }
  .footer-wordmark {
    margin-right: 0;
    margin-left: 0;
  }
  .utility-main {
    padding-top: 112px;
  }
  .utility-art {
    min-height: 340px;
  }
  .philosophy-main > section {
    padding-block: 80px;
  }
  .peektionary-main > section {
    padding-block: 80px;
  }
  .philosophy-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px !important;
  }
  .philosophy-hero-copy,
  .philosophy-portrait {
    grid-column: 1;
    grid-row: auto;
  }
  .philosophy-hero h1 {
    font-size: clamp(52px, 15vw, 72px);
  }
  .peektionary-hero {
    grid-template-columns: 1fr;
    padding-top: 72px !important;
  }
  .peektionary-hero-copy,
  .peektionary-index {
    grid-column: 1;
  }
  .peektionary-hero h1 {
    font-size: clamp(62px, 20vw, 92px);
  }
  .peektionary-index {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .peektionary-index a:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }
  .peektionary-group-heading {
    gap: 24px;
  }
  .peektionary-invitation {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }
  .peektionary-invitation b {
    width: fit-content;
    white-space: normal;
  }
  .distinction-close {
    white-space: normal;
  }
  .philosophy-portrait {
    min-height: 330px;
    margin: 28px 8px 0;
    opacity: 1;
  }
  .language-chain li {
    grid-template-columns: 40px minmax(92px, 0.7fr) 1fr;
    gap: 10px;
  }
  .definition-list article {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vocabulary-tree {
    grid-template-columns: 1fr;
  }
  .vocabulary-tree article + article,
  .vocabulary-tree article:nth-child(3),
  .vocabulary-tree article:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .vocabulary-tree h3 {
    margin-top: 28px;
  }
  .principle-panel {
    width: 100% !important;
    border-radius: 0;
  }
  .principle-rhythm {
    grid-template-columns: 1fr;
  }
  .principle-rhythm p,
  .principle-rhythm p:nth-child(even) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
    padding: 18px 0;
  }
  .principle-rhythm p:first-child {
    border-top: 0;
  }
  .distinction-columns {
    grid-template-columns: 1fr;
  }
  .distinction-columns > div,
  .distinction-columns > div:first-child {
    padding: 28px 0;
    border-right: 0;
  }
  .distinction-columns > div + div {
    border-top: 1px solid var(--line);
  }
  .philosophy-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .philosophy-actions .primary-pill,
  .philosophy-actions .text-link {
    width: 100%;
    justify-content: center;
  }
  .blueprint {
    background-size: 32px 32px;
  }
}
@media (max-width: 360px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .brand {
    justify-self: start;
  }
  .accent-menu {
    justify-self: end;
  }
  .play-section {
    min-block-size: calc(100svh - 72px);
    scroll-margin-top: 72px;
  }
  .playground-shell {
    block-size: max(480px, calc(100svh - 72px - 4vh));
  }
}
@media (prefers-reduced-motion: reduce) {
  .philosophy-flip mark {
    transition: none;
  }
  :root {
    scroll-behavior: auto;
  }
  .community-orbit-ring,
  .community-orbit-slot img {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-copy,
  .peek-stage {
    transform: none;
  }
  .copy-sparkles {
    display: none;
  }
}

/* One accent-aware link language across every public page. */
a[href]:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
}
@media (hover: hover) {
  a[href]:hover {
    text-decoration-line: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
    text-decoration-skip-ink: auto;
  }
}
