@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: var(--bg);
  --panel: var(--bg-panel);
  --control: var(--bg-panel);
  --hover: var(--bg-panel);
  --text: var(--fg);
  --subtle-line: var(--line-soft);
  --focus: var(--accent);
  --highlight-bg: var(--accent);
  --highlight-text: var(--bg);
  --mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 13px/1.65 var(--mono);
  letter-spacing: normal;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button,
.button,
.text-link,
nav a,
summary {
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}
button,
input {
  border-radius: 0;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
dt {
  font-weight: 500;
}
h1,
.download-section h2 {
  font-size: 48px;
  line-height: 1.16;
}
h2 {
  font-size: 30px;
  line-height: 1.4;
}
h3,
dt {
  font-size: 18px;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.container {
  width: 100%;
  max-width: 1512px;
  padding-inline: 40px;
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--text);
  color: var(--page);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.brand img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
.desktop-nav a {
  position: relative;
  padding-block: 8px;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 150ms ease;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  opacity: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 24px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}
.theme-toggle:hover {
  border-color: var(--line);
  background: var(--hover);
  color: var(--text);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon-sun,
[data-theme="warp-dark"] .theme-icon-moon {
  display: none;
}
[data-theme="warp-dark"] .theme-icon-sun {
  display: block;
}
.source-link {
  font-size: 12px;
}
.source-link:hover,
.site-footer a:hover,
.design-archive summary:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  white-space: nowrap;
}
.button-primary {
  background: var(--text);
  color: var(--page);
  border-color: var(--text);
}
.button-primary:hover {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  border-color: var(--highlight-bg);
}
.button-secondary {
  background: transparent;
  border-color: var(--line);
}
.button-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 150ms ease;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 19;
  background: var(--page);
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu > a {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.mobile-menu > a:hover {
  background: var(--hover);
}
.page-layout {
  width: 100%;
  max-width: 1512px;
  margin-inline: auto;
  padding-inline: 40px;
}
.layout-row {
  display: grid;
  grid-template-columns: 15% minmax(0, 932px) 15%;
  border-bottom: 1px solid var(--line);
}
.section-rail {
  margin: 0;
  padding: 32px 20px 32px 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}
.section-body {
  min-width: 0;
  padding: 32px 0 32px 28px;
}
.section-body > h2 {
  margin-bottom: 28px;
}
.hero-content,
.download-section .section-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 416px;
  padding: 36px 0 36px 48px;
}
.hero h1,
.download-section h2 {
  max-width: 760px;
}
.hero h1 {
  text-wrap: balance;
}
.hero-description {
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
}
.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.media-link {
  overflow: hidden;
}
.media-link:hover {
  border-color: var(--accent);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
}
.text-link:hover {
  text-decoration-line: underline;
}
.workspace-views {
  margin-bottom: 28px;
}
.workspace-views > h2 {
  margin-bottom: 14px;
}
.workspace-views > p {
  max-width: 670px;
  color: var(--muted);
  margin-bottom: 28px;
}
.view-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.view-choice,
.theme-choice {
  --choice-description: var(--muted);
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--text);
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}
.view-choice:hover,
.theme-choice:hover {
  --choice-description: currentColor;
  border-color: var(--accent);
  background: var(--panel);
  color: var(--accent);
}
.view-choice[aria-checked="true"],
.theme-choice[aria-checked="true"] {
  --choice-description: currentColor;
  border-color: var(--accent);
  background: var(--highlight-bg);
  color: var(--highlight-text);
}
.view-choice[aria-checked="true"]:hover,
.theme-choice[aria-checked="true"]:hover {
  border-color: var(--text);
  background: var(--text);
}
.view-choice:focus-visible,
.theme-choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.view-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
  text-align: left;
}
.view-choice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.view-choice-heading svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  visibility: hidden;
}
.view-choice[aria-checked="true"] .view-choice-heading svg {
  visibility: visible;
}
.view-choice-description {
  color: var(--choice-description);
  transition: color 150ms ease;
  font-size: 12px;
  line-height: 1.5;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > a {
  flex-shrink: 0;
  margin-top: 10px;
}
.plugin-intro {
  max-width: 720px;
}
.plugin-intro h2 {
  margin-bottom: 20px;
}
.plugin-intro p {
  max-width: 670px;
  color: var(--muted);
}
.plugin-intro .plugin-lead {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
.plugin-intro p + p {
  margin-top: 16px;
}
.plugin-intro > .button {
  margin-top: 20px;
}
.plugin-bundled {
  margin-top: 36px;
}
.plugin-bundled > h3 {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.plugin-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plugin-examples article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--page);
}
.plugin-examples h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
}
.plugin-examples p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.continuity {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 48px;
}
.continuity-intro > p {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--muted);
}
.continuity-details article + article {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.continuity-details h3 {
  margin-bottom: 8px;
  font-size: 16px;
}
.continuity-details p {
  color: var(--muted);
}
.agent-heading {
  margin-bottom: 28px;
}
.agent-heading > h2 {
  margin-bottom: 14px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  background-clip: padding-box;
}
.agent-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 20px 12px;
  text-align: center;
  background: var(--page);
}
.agent-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: var(--muted);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.agent-mark--codex {
  -webkit-mask-image: url("/assets/icons/agent_chat_gpt.svg");
  mask-image: url("/assets/icons/agent_chat_gpt.svg");
}
.agent-mark--claude {
  -webkit-mask-image: url("/assets/icons/agent_claude.svg");
  mask-image: url("/assets/icons/agent_claude.svg");
}
.agent-mark--opencode {
  -webkit-mask-image: url("/assets/icons/agent_opencode.svg");
  mask-image: url("/assets/icons/agent_opencode.svg");
}
.agent-mark--grok {
  -webkit-mask-image: url("/assets/icons/agent_grok.svg");
  mask-image: url("/assets/icons/agent_grok.svg");
}
.agent-mark--pi {
  -webkit-mask-image: url("/assets/icons/agent_pi.svg");
  mask-image: url("/assets/icons/agent_pi.svg");
}
.agent-mark--kimi {
  -webkit-mask-image: url("/assets/icons/agent_kimi.svg");
  mask-image: url("/assets/icons/agent_kimi.svg");
}
.agent-mark--omp {
  -webkit-mask-image: url("/assets/icons/agent_omp.svg");
  mask-image: url("/assets/icons/agent_omp.svg");
}
.agent-mark--hermes {
  -webkit-mask-image: url("/assets/icons/agent_hermes.svg");
  mask-image: url("/assets/icons/agent_hermes.svg");
}
.agent-mark--goose {
  -webkit-mask-image: url("/assets/icons/agent_goose.svg");
  mask-image: url("/assets/icons/agent_goose.svg");
}
.agent-mark--gemini {
  -webkit-mask-image: url("/assets/icons/agent_google_gemini.svg");
  mask-image: url("/assets/icons/agent_google_gemini.svg");
}
.agent-mark--aider {
  -webkit-mask-image: url("/assets/icons/agent_aider.svg");
  mask-image: url("/assets/icons/agent_aider.svg");
}
.agent-mark--kilo {
  -webkit-mask-image: url("/assets/icons/agent_kilo.svg");
  mask-image: url("/assets/icons/agent_kilo.svg");
}
.agent-custom {
  color: var(--muted);
  font-size: 12px;
}
.foundation-grid > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding-block: 16px;
}
.foundation-grid > div:first-child {
  padding-top: 0;
}
.foundation-grid > div:last-child {
  padding-bottom: 0;
}
.foundation-grid > div + div {
  border-top: 1px solid var(--line);
}
.foundation-grid dt {
  font-size: 13px;
  line-height: 1.65;
}
.foundation-grid dd {
  color: var(--muted);
}
.download-section .section-body > h2 {
  margin-bottom: 0;
}
.download-actions {
  align-items: center;
}
.download-fallback {
  margin-top: 24px;
  color: var(--muted);
}
.download-fallback a {
  text-decoration: underline;
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 40px;
}
.site-footer .brand {
  font-size: 16px;
}
.site-footer > nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
}
.copyright {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.design-archive {
  position: relative;
}
.design-archive summary {
  list-style: none;
  cursor: pointer;
}
.design-archive summary::-webkit-details-marker {
  display: none;
}
.design-archive nav {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 0;
  z-index: 5;
  width: max-content;
  max-width: 80vw;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
}
.design-archive nav a {
  display: block;
  padding: 8px 12px;
}
.design-archive nav a:hover {
  background: var(--hover);
  color: var(--text);
}
.download-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow-y: auto;
}
.download-dialog::backdrop {
  background: color-mix(in srgb, var(--p-night) 35%, transparent);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
}
.dialog-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}
.dialog-close:hover {
  background: var(--hover);
}
.download-dialog > p {
  color: var(--muted);
}
.platform-list {
  display: grid;
  gap: 8px;
  margin-block: 24px;
}
.platform-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--control);
  color: var(--text);
  opacity: 1;
}
.platform-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.platform-list a span {
  font-size: 12px;
}

@media (max-width: 1200px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .section-heading > a {
    margin-top: 0;
  }
  .continuity {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .continuity-intro > p {
    max-width: 670px;
  }
}
@media (max-width: 900px) {
  h1,
  .download-section h2 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .container,
  .page-layout {
    padding-inline: 28px;
  }
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .desktop-nav,
  .source-link {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .menu-toggle {
    display: block;
  }
  .layout-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-rail {
    border-right: 0;
    padding: 24px 0 0;
  }
  .section-body {
    padding: 24px 0 32px;
  }
  .hero .section-rail {
    display: none;
  }
  .hero-content,
  .download-section .section-body {
    min-height: 0;
    padding: 56px 0;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 84px;
  }
  .container,
  .page-layout {
    padding-inline: 20px;
  }
  .header-inner {
    gap: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .header-actions .button {
    padding-inline: 10px;
    font-size: 12px;
    gap: 8px;
  }
  .header-actions .download-product-name {
    display: none;
  }
  .hero-content,
  .download-section .section-body {
    padding-block: 40px;
  }
  h1,
  .download-section h2 {
    font-size: 32px;
    line-height: 1.15;
  }
  h1 br {
    display: none;
  }
  h2 {
    font-size: 26px;
    line-height: 1.4;
  }
  h3,
  dt {
    font-size: 17px;
  }
  .hero-actions,
  .download-actions {
    gap: 10px;
    margin-top: 24px;
  }
  .button {
    gap: 8px;
    padding-inline: 12px;
  }
  .section-body > h2 {
    margin-bottom: 24px;
  }
  .view-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .section-heading h2 {
    margin-bottom: 0;
  }
  .section-heading > a {
    margin-top: 0;
  }
  .plugin-examples {
    grid-template-columns: 1fr;
  }
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foundation-grid > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 20px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 24px;
  }
  .site-footer > nav {
    width: 100%;
    order: 3;
    gap: 24px;
  }
  .copyright {
    margin-left: auto;
  }
  .design-archive nav {
    left: auto;
    right: 0;
  }
  .download-dialog {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
}
@media (max-width: 359px) {
  .container,
  .page-layout {
    padding-inline: 16px;
  }
  .brand {
    gap: 6px;
    font-size: 16px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .button {
    font-size: 10px;
    padding-inline: 8px;
  }
  .header-actions .button > [aria-hidden="true"] {
    display: none;
  }
  .hero-actions .button,
  .download-actions .button {
    padding-inline: 10px;
    font-size: 11px;
  }
  h1,
  .download-section h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
