:root {
  --bg: #e6e4df;
  --panel: #f3efe5;
  --wire: #d8d8dc;
  --wire-line: #9d9da3;
  --pill: #f2b768;
  --eyebrow: #27342f;
  --accent: #8cf2be;
  --content-width: min(1050px, calc(100vw - 3rem));
  --page-gutter: clamp(1rem, 5vw, 6rem);
  --col-secondary: minmax(210px, 280px);
  --col-primary: minmax(420px, 620px);
  --col-tertiary: minmax(52px, 74px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #e6e4df;
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, #efeff0 0%, var(--bg) 44%, #e0e0e2 100%);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  color: #202124;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(230, 228, 223, 0.82);
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
}

.site-header-inner {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 1rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-mark,
.site-nav a {
  text-decoration: none;
}

.site-mark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.site-footer {
  border-top: 1px solid rgba(32, 33, 36, 0.1);
  background: rgba(243, 239, 229, 0.5);
}

.site-footer-inner {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 2.1rem 5vw 2.4rem;
  display: grid;
  grid-template-columns: minmax(8rem, 0.22fr) 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.site-footer-mark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.site-footer-group {
  display: grid;
  gap: 0.68rem;
  align-content: start;
}

.site-footer-group h2,
.site-footer-group a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-group h2 {
  margin: 0;
  color: #2f3033;
  font-size: 0.66rem;
  font-weight: 700;
}

.site-footer-links {
  display: grid;
  gap: 0.42rem;
}

.site-footer-group a {
  color: #4f5048;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.4;
}

.site-footer-group a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.page {
  width: 100%;
  padding: 3.2rem 0 7rem;
}

.page--playground {
  height: calc(100dvh - 74px);
  padding: 0.5rem;
  overflow: hidden;
}

.section-block {
  width: var(--content-width);
  margin: 0 auto 4.6rem;
}

.hero {
  margin-bottom: 5.2rem;
}

.section-block.content-grid {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns:
    minmax(var(--page-gutter), 1fr) var(--col-secondary) var(--col-primary) var(--col-tertiary) minmax(var(--page-gutter), 1fr);
  column-gap: 1rem;
  align-items: start;
}

.col-secondary {
  grid-column: 2;
}

.col-secondary .eyebrow-wrap,
.col-secondary .text-wrap {
  justify-self: end;
}

.col-secondary .kicker,
.col-secondary .headline,
.col-secondary .feature-title {
  text-align: right;
}

.col-primary {
  grid-column: 3;
}

.col-tertiary {
  grid-column: 4;
}

.copy-row {
  display: grid;
}

.copy-content {
  width: min(560px, 100%);
  margin: 0;
}

.copy-prose {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: grid;
  gap: 0.7rem;
}

.left-stack,
.right-stack {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.right-stack {
  margin-top: 0.1rem;
}

.primary-stack {
  display: grid;
  gap: 0.9rem;
}

.kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0.34rem 0.64rem 0.28rem;
  background: var(--eyebrow);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.headline {
  margin: 0;
  max-width: 28ch;
  line-height: 1.23;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 500;
  color: #2d2d31;
}

.headline span {
  background: var(--pill);
  padding: 0.11em 0.58em 0.2em;
  box-shadow: 0.42em 0 0 var(--pill), -0.42em 0 0 var(--pill);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.headline--sm {
  max-width: 18ch;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.feature .left-stack {
  align-items: end;
}

.feature .eyebrow-wrap,
.feature .text-wrap {
  justify-self: end;
}

.feature .text-wrap {
  padding: 0.18rem 0;
}

.feature-title {
  margin: 0;
  max-width: 14.5ch;
  text-align: right;
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  line-height: 1.32;
  font-weight: 500;
  color: #2d2d31;
}

.feature-title span {
  background: var(--pill);
  padding: 0.12em 0.62em 0.2em;
  box-shadow: 0.45em 0 0 var(--pill), -0.45em 0 0 var(--pill);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.prose {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #4f5048;
}

.panel-heading {
  margin: 0 0 0.82rem;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #2f3033;
}

.panel-surface {
  height: auto;
  background: transparent;
  padding: 0.2rem 0.2rem 0.1rem;
}

.panel-surface--wide {
  min-height: 0;
}

.card-title {
  margin: 0;
  padding: 0.36rem 0.56rem 0.3rem;
  display: inline-flex;
  background: var(--eyebrow);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
}

.card-topline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 1.75rem;
  width: fit-content;
  padding: 0.34rem 0.64rem 0.28rem;
  background: var(--pill);
  color: #202124;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.entry-card-heading {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: #2f3033;
}

.card-copy {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.45;
  color: #454548;
}

.type-reference-list {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.type-reference-item {
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(47, 48, 51, 0.14);
  background: rgba(255, 255, 255, 0.32);
}

.type-reference-item h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  line-height: 1.25;
}

.type-reference-item dl {
  margin: 0;
  display: grid;
  gap: 0.28rem;
}

.type-reference-item dt {
  margin-top: 0.36rem;
  color: #2f3033;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-reference-item dt:first-child {
  margin-top: 0;
}

.type-reference-item dd {
  margin: 0;
  color: #4f5048;
  font-size: 0.84rem;
  line-height: 1.42;
}

.type-reference-item code {
  font-size: 0.78rem;
  white-space: normal;
}

.entry-card-action {
  margin: 0.1rem 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-card-action a {
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 48, 51, 0.5);
}

.entry-card-action a:hover {
  border-bottom-color: #2f3033;
}

.panel-copy {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #4a4a45;
}

.panel-copy:last-child {
  margin-bottom: 0;
}

.panel-copy code,
.prose code,
.card-copy code {
  color: #214a7a;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  font-weight: 600;
}

.panel-body .panel-copy+.panel-copy,
.copy-prose .prose-wrap+.prose-wrap .prose {
  text-indent: 1.2em;
}

.feature .panel,
.panel-surface {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature .panel-heading,
.panel-surface .panel-heading {
  margin-bottom: 0.9rem;
}

.feature .panel-body,
.panel-surface .panel-body {
  display: grid;
  gap: 0.05rem;
}

.feature .panel-wrap--large .panel {
  height: auto;
}

.mask {
  overflow: clip;
}

.panel {
  width: 100%;
}

.panel.panel-surface {
  background: transparent;
}

.panel-wrap--large .panel {
  height: auto;
}

.panel-wrap--medium .panel {
  height: auto;
}

.feature-wide {
  margin-bottom: 4.8rem;
}

.feature-wide .panel-wrap {
  width: 100%;
  margin: 0;
}

.playground-section .playground-panel-wrap {
  grid-column: 3 / 5;
  width: 100%;
}

.hero-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(47, 48, 51, 0.14);
  text-decoration: none;
  background: transparent;
  color: #2f3033;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-link-primary {
  background: #23271f;
  color: #ffffff;
  border-color: #23271f;
}

.example-code {
  margin: 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  color: #2f3033;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.walkthrough-floating-nav {
  position: fixed;
  left: 2rem;
  top: 10rem;
  width: 220px;
  z-index: 5;
}

.walkthrough-floating-nav .walkthrough-sidebar-block {
  padding: 0;
}

.walkthrough-sidebar {
  position: sticky;
  top: 5.5rem;
}

.walkthrough-sidebar-block h2 {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.walkthrough-sidebar nav {
  display: grid;
  gap: 0.55rem;
}

.walkthrough-sidebar a {
  text-decoration: none;
  color: #4f5048;
  font-size: 0.92rem;
  line-height: 1.35;
}

.walkthrough-sidebar a:hover {
  text-decoration: underline;
}

.walkthrough-code-frame {
  position: relative;
  margin-top: 0.6rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: transparent;
  overflow: visible;
  display: block;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  padding-right: 2.35rem;
  border-color: transparent;
}

.code-copy-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #2f3033;
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
  background: rgba(47, 48, 51, 0.08);
  box-shadow: 0 0 0 2px rgba(47, 48, 51, 0.08);
  outline: none;
}

.code-copy-button.is-copied {
  background: #23271f;
  border-color: #23271f;
  color: #fff;
}

.code-copy-icon,
.code-copy-icon::before {
  position: absolute;
  width: 0.68rem;
  height: 0.82rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.code-copy-icon {
  top: 0.52rem;
  left: 0.58rem;
}

.code-copy-icon::before {
  content: "";
  top: -0.28rem;
  left: -0.28rem;
  background: inherit;
}

.walkthrough-code {
  position: relative;
  margin: 0;
  padding: 10px;
  overflow-x: auto;
  background: #202124;
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--aeon-fg, #e5e7eb);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  tab-size: 2;
  white-space: pre-wrap;
  display: block;
  width: 100%;
  max-width: 100%;
}

.walkthrough-code--invalid {
  border-color: rgba(180, 40, 40, 0.7);
}

.walkthrough-code--invalid::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 6px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 35%, #d04747 35% 50%, transparent 50% 100%) 0 0 / 12px 6px repeat-x;
}

.walkthrough-code code {
  display: block;
  min-height: 100%;
}

.walkthrough-editor-card {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.walkthrough-editor-meta h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.playground-loading {
  font-size: 0.78rem;
  font-weight: 400;
  color: #6d6f68;
}

.playground-loading[hidden] {
  display: none;
}

.walkthrough-editor-meta p {
  margin: 0;
  font-size: 0.95rem;
}

.highlight-editor {
  position: relative;
  min-height: 16rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #080808;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.highlight-editor textarea,
.highlight-editor .highlight-backdrop {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  padding: 10px;
  border: 0;
  line-height: 1.45;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  tab-size: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: auto;
}

.highlight-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--aeon-fg);
  background: #202124;
  overflow: hidden;
}

.highlight-backdrop code {
  display: block;
  min-height: 100%;
}

.highlight-editor textarea {
  position: relative;
  resize: vertical;
  background: transparent;
  color: transparent;
  caret-color: #e5e7eb;
}

.highlight-editor textarea::selection {
  background: rgba(127, 178, 255, 0.22);
}

.playground-app-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto minmax(0, 1fr) minmax(120px, 22dvh);
  grid-template-areas:
    "toolbar toolbar"
    "source output"
    "errors errors";
  gap: 8px;
  width: 100%;
}

.playground-toolbar {
  grid-area: toolbar;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: end;
  min-height: 0;
}

.playground-toolbar-groups {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: end;
}

.playground-examples-button,
.playground-toggle-group {
  display: inline-flex;
}

.playground-examples-button {
  appearance: none;
  border: 1px solid rgba(47, 48, 51, 0.18);
  background: transparent;
  color: #2f3033;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.playground-examples-button:hover,
.playground-examples-button:focus-visible {
  border-color: rgba(35, 39, 31, 0.42);
  box-shadow: 0 0 0 2px rgba(35, 39, 31, 0.08);
  outline: none;
}

.playground-toggle-group {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.playground-toggle {
  position: relative;
  appearance: none;
  border: 1px solid rgba(47, 48, 51, 0.18);
  background: transparent;
  color: #2f3033;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.playground-toggle:hover,
.playground-toggle:focus-visible {
  border-color: rgba(35, 39, 31, 0.42);
  box-shadow: 0 0 0 2px rgba(35, 39, 31, 0.08);
  outline: none;
}

.playground-toggle.is-active {
  background: #23271f;
  color: #fff;
  border-color: #23271f;
  box-shadow: 0 8px 18px rgba(35, 39, 31, 0.14);
  transform: translateY(-1px);
}

.playground-toggle[data-tooltip]::after,
.playground-toggle[data-tooltip]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 10;
}

.playground-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  top: calc(100% + 12px);
  transform: translate(-50%, -6px);
  max-width: 240px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(35, 39, 31, 0.96);
  color: #f4f2ea;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  text-align: left;
  box-shadow: 0 14px 28px rgba(20, 22, 17, 0.18);
}

.playground-toggle[data-tooltip]::before {
  content: "";
  top: calc(100% + 4px);
  transform: translate(-50%, -6px);
  border-width: 0 7px 8px 7px;
  border-style: solid;
  border-color: transparent transparent rgba(35, 39, 31, 0.96) transparent;
}

.playground-toggle[data-tooltip]:hover::after,
.playground-toggle[data-tooltip]:hover::before,
.playground-toggle[data-tooltip]:focus-visible::after,
.playground-toggle[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.playground-modal[hidden] {
  display: none;
}

.playground-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.playground-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 22, 17, 0.38);
  cursor: pointer;
}

.playground-modal-panel {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  max-height: min(42rem, 88dvh);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: #f4f2ea;
  border: 1px solid rgba(47, 48, 51, 0.18);
  box-shadow: 0 24px 70px rgba(20, 22, 17, 0.22);
}

.playground-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.playground-modal-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.playground-modal-close {
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.playground-modal-close::before,
.playground-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.35rem;
  height: 2px;
  background: #23271f;
}

.playground-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.playground-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.playground-modal-close:hover,
.playground-modal-close:focus-visible {
  background: rgba(35, 39, 31, 0.08);
  outline: none;
}

.playground-example-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.playground-example-tab {
  appearance: none;
  border: 1px solid rgba(47, 48, 51, 0.18);
  background: transparent;
  color: #2f3033;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.playground-example-tab:hover,
.playground-example-tab:focus-visible {
  border-color: rgba(35, 39, 31, 0.42);
  outline: none;
}

.playground-example-tab.is-active {
  background: #23271f;
  border-color: #23271f;
  color: #fff;
}

.playground-example-frame {
  min-height: 0;
  margin-top: 0;
  overflow: auto;
}

.playground-example-frame .walkthrough-code {
  min-height: 16rem;
}

.playground-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.playground-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.45rem;
  min-height: 0;
  overflow: hidden;
}

.playground-source-pane {
  grid-area: source;
}

.playground-output-pane {
  grid-area: output;
}

.playground-errors-pane {
  grid-area: errors;
}

.playground-source-pane .highlight-editor,
.playground-output-pane .walkthrough-code-frame,
.playground-errors-pane .playground-errors {
  width: 100%;
  min-width: 0;
}

.playground-output-frame {
  min-height: 0;
  height: 100%;
  width: 100%;
  margin-top: 0;
  overflow: auto;
}

.playground-output {
  min-height: 100%;
  color: #e5e7eb;
  white-space: pre-wrap;
  width: 100%;
  max-width: 100%;
  display: block;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.playground-errors {
  margin: 0;
  min-height: 0;
  height: 100%;
  padding: 10px;
  border: 1px solid rgba(47, 48, 51, 0.14);
  background: rgba(255, 255, 255, 0.45);
  color: #4a4a45;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.playground-source-pane .highlight-editor {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.playground-source-pane .highlight-editor textarea,
.playground-source-pane .highlight-editor .highlight-backdrop {
  min-height: 0;
  height: 100%;
}

.playground-source-pane .highlight-editor textarea {
  overflow: auto;
}

.template-app-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto minmax(0, 1fr) minmax(120px, 22dvh);
  grid-template-areas:
    "toolbar toolbar"
    "source output"
    "diagnostics diagnostics";
  gap: 8px;
  width: 100%;
}

.template-toolbar {
  grid-area: toolbar;
  justify-content: space-between;
}

.template-source-pane {
  grid-area: source;
  min-height: 0;
}

.template-output-pane {
  grid-area: output;
  min-height: 0;
}

.template-diagnostics-pane {
  grid-area: diagnostics;
  min-height: 0;
}

.template-input-pane,
.template-output-view {
  display: none;
  min-height: 0;
  height: 100%;
}

.template-input-pane.is-active,
.template-output-view.is-active {
  display: block;
}

.template-input-pane .highlight-editor,
.template-output-pane .template-output-view {
  min-height: 0;
  height: 100%;
}

.template-input-pane .highlight-editor textarea,
.template-input-pane .highlight-editor .highlight-backdrop {
  min-height: 0;
  height: 100%;
}

.template-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #333;
  border-radius: 4px;
  background: #050505;
}

.template-html-output {
  margin: 0;
  padding: 10px;
  overflow: auto;
  background: #202124;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e5e7eb;
}

.template-explainer {
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #202124;
  color: #e5e7eb;
}

.template-explainer section {
  display: grid;
  gap: 0.45rem;
}

.template-explainer h3,
.template-explainer p {
  margin: 0;
}

.template-explainer h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-explainer p {
  color: #c6cad3;
  font-size: 0.9rem;
  line-height: 1.55;
}

.template-explainer code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color: #d9c58b;
}

/* AEON token colors */
.walkthrough-code,
.highlight-backdrop {
  --aeon-fg: #e5e7eb;
  --aeon-key: #7fb2ff;
  --aeon-type: #c7b8ff;
  --aeon-attribute: #caa0bf;
  --aeon-attribute-punct: #d8b070;
  --aeon-tag: #e2c97a;
  --aeon-string: #d9c58b;
  --aeon-literal: #c7d98a;
  --aeon-directive: #8ec7d9;
  --aeon-comment: #a8adb8;
  --aeon-comment-doc: #9aa9c7;
  --aeon-comment-annotation: #7fc7d4;
  --aeon-comment-hint: #d9ad7c;
  --aeon-comment-host: #a7b2c4;
  --aeon-punct: #8d96a6;
  --aeon-binding: #7fb2ff;
  --aeon-operator: #e5e7eb;
}

.tok-key {
  color: var(--aeon-key);
}

.tok-type {
  color: var(--aeon-type);
}

.tok-attribute {
  color: var(--aeon-attribute);
}

.tok-attribute-punct {
  color: var(--aeon-attribute-punct);
}

.tok-tag {
  color: var(--aeon-tag);
}

.tok-tag-punct {
  color: var(--aeon-punct);
}

.tok-string {
  color: var(--aeon-string);
}

.tok-literal {
  color: var(--aeon-literal);
}

.tok-directive {
  color: var(--aeon-directive);
}

.tok-comment {
  color: var(--aeon-comment);
}

.tok-comment-doc {
  color: var(--aeon-comment-doc);
}

.tok-comment-annotation {
  color: var(--aeon-comment-annotation);
}

.tok-comment-hint {
  color: var(--aeon-comment-hint);
}

.tok-comment-host {
  color: var(--aeon-comment-host);
}

.tok-comment-structure {
  color: var(--aeon-comment-hint);
}

.tok-comment-profile {
  color: var(--aeon-comment-doc);
}

.tok-comment-future {
  color: var(--aeon-comment-host);
}

.tok-punct {
  color: var(--aeon-punct);
}

.tok-binding {
  color: var(--aeon-binding);
}

.tok-operator {
  color: var(--aeon-operator);
}

.json-key {
  color: var(--aeon-key);
}

.json-string {
  color: var(--aeon-string);
}

.json-number {
  color: var(--aeon-literal);
}

.json-bool {
  color: var(--aeon-literal);
}

.json-null {
  color: var(--aeon-comment);
  font-style: italic;
}

.json-punct {
  color: var(--aeon-punct);
}

.tok-and-header,
.tok-and-heading {
  color: var(--aeon-fg, var(--text, inherit));
  font-weight: 700;
  font-style: normal;
}

.tok-and-version,
.tok-and-heading-marker,
.tok-and-rule,
.tok-and-table-pipe,
.tok-and-link-separator {
  color: var(--aeon-comment-doc, var(--aeon-punct, inherit));
  font-style: normal;
}

.tok-and-strong { color: var(--aeon-fg, var(--text, inherit)); font-weight: 700; font-style: normal; }


.tok-and-list-marker,
.tok-and-list-text,
.tok-and-quote,
.tok-and-quote-text,
.tok-and-emphasis {
  color: var(--aeon-comment-doc, inherit);
  color: color-mix(in srgb, var(--aeon-comment-doc, currentColor) 72%, var(--aeon-fg, #fff));
  font-style: italic;
}

.tok-and-code {
  color: var(--aeon-fg, var(--text, inherit));
  color: color-mix(in srgb, var(--aeon-fg, currentColor) 88%, #fff);
  font-style: normal;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0 0.2em;
}

.tok-and-link {
  color: var(--aeon-directive, inherit);
  font-style: normal;
}

.tok-and-link-target {
  color: var(--aeon-string, inherit);
  font-style: normal;
}

.tok-and-fence,
.tok-and-extension-fence {
  color: var(--aeon-attribute-punct, var(--aeon-punct, inherit));
  color: color-mix(in srgb, var(--aeon-attribute-punct, currentColor) 78%, var(--aeon-fg, #fff));
  font-style: normal;
}

.tok-and-fence-label,
.tok-and-extension-name,
.tok-and-escape {
  color: var(--aeon-type, inherit);
  font-style: normal;
}

.tok-and-invalid {
  color: #ff9b9b;
  text-decoration: underline wavy rgba(255, 155, 155, 0.75);
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.7rem 0.9rem;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-block {
    margin-bottom: 3.4rem;
  }

  .hero {
    margin-bottom: 3.8rem;
  }

  .section-block.content-grid {
    width: var(--content-width);
    grid-template-columns: 1fr;
    row-gap: 1.1rem;
  }

  .col-secondary,
  .col-primary,
  .col-tertiary {
    grid-column: auto;
  }

  .playground-section .playground-panel-wrap {
    grid-column: auto;
  }

  .copy-content {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .type-reference-list {
    grid-template-columns: 1fr;
  }

  .page--playground {
    height: auto;
    min-height: calc(100dvh - 74px);
    overflow: visible;
  }

  .playground-app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(18rem, auto) minmax(18rem, auto) minmax(8rem, auto);
    grid-template-areas:
      "toolbar"
      "toolbar"
      "source"
      "output"
      "errors";
  }

  .template-app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(18rem, auto) minmax(18rem, auto) minmax(8rem, auto);
    grid-template-areas:
      "toolbar"
      "toolbar"
      "source"
      "output"
      "diagnostics";
  }

  .playground-toolbar {
    align-items: start;
  }

  .playground-toolbar-groups {
    width: 100%;
  }

  .right-stack {
    grid-auto-flow: column;
    justify-content: start;
  }

  .col-secondary .eyebrow-wrap,
  .col-secondary .text-wrap {
    justify-self: start;
  }

  .col-secondary .kicker,
  .col-secondary .headline,
  .col-secondary .feature-title {
    text-align: left;
  }

  .feature-title,
  .headline,
  .headline--sm {
    max-width: 100%;
  }

  .walkthrough-floating-nav {
    position: static;
    width: min(100% - 3rem, 1050px);
    margin: 0 auto 2rem;
  }

  .code-copy-button {
    top: 0.35rem;
    right: 0.35rem;
    color: #f3efe5;
  }

  .walkthrough-code-frame {
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .site-footer-group {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}
