
:root {
  color-scheme: light;
  --background: #f5f3ed;
  --foreground: #2a2a2a;
  --muted: #c8c8c8;
  --muted-foreground: #6a6a6a;
  --border: rgba(42, 42, 42, 0.15);
  --accent: #c2622d;
  --secondary: rgba(232, 230, 221, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Recia", serif;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--background);
}

.svg-filter {
  position: absolute;
  width: 0;
  height: 0;
}

.dithered-background {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, #f5f3ed 0%, #f5f3ed 25%, #c8c8c8 50%, #6a6a6a 75%, #2a2a2a 100%) bottom right;
  filter: url("#dither");
  opacity: 0.58;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
}

.github-corner {
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  pointer-events: auto;
}

.github-corner svg {
  display: block;
  fill: var(--foreground);
  color: var(--background);
  border: 0;
}

.github-corner:hover svg,
.github-corner:focus-visible svg {
  fill: #165c48;
}

.github-corner:hover .octo-arm,
.github-corner:focus-visible .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(-25deg);
  }
  40%,
  80% {
    transform: rotate(10deg);
  }
}

.github-corner .octo-arm {
  transform-origin: 130px 106px;
}

.container {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
}

.topbar-nav {
  display: flex;
  gap: 1.75rem;
}

.topbar-link,
.footer-mark,
.footer-links a,
.feature-number,
.section-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.topbar-brand {
  font-family: "Erode", serif;
  font-size: 1.35rem;
  color: var(--foreground);
  text-decoration: none;
}

.topbar-link {
  color: var(--muted-foreground);
  transition: color 120ms ease;
}

.topbar-link:hover {
  color: var(--foreground);
}

.topbar-link.is-active {
  color: var(--foreground);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.main {
  padding: 6rem 0 0;
}

.landing-main {
  padding-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: 6rem;
  padding-bottom: 8rem;
}

.yamoon-title {
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
  margin: 0 0 2rem;
  font-family: "Erode", serif;
  font-size: 8rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.yamoon-word {
  color: var(--foreground);
}

.yamoon-moon {
  position: relative;
  flex: 0 0 auto;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.22em;
  margin-top: 0.32em;
  border-radius: 50%;
  background: var(--accent);
}

.yamoon-moon::after {
  content: "";
  position: absolute;
  top: -16%;
  right: -34%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--background);
}

.hero-copy {
  max-width: 40rem;
  margin: 0 0 3rem;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  line-height: 1.55;
}

.hero-points {
  list-style: none;
  max-width: 40rem;
  margin: 0 0 3rem;
  padding: 0;
}

.hero-points li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-size: 1.35rem;
  line-height: 1.5;
}

.hero-points li:last-child {
  margin-bottom: 0;
}

.hero-point-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: 4rem;
}

.yamoon-button {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  text-align: left;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.yamoon-button span {
  font-family: "Erode", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.yamoon-button:hover,
.yamoon-button:focus-visible,
.doc-band-link:hover,
.doc-band-link:focus-visible {
  background: var(--foreground);
  color: var(--background);
  outline: none;
}

.yamoon-button:focus-visible,
.doc-band-link:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.editor-frame,
.code-panel {
  border: 1px solid var(--border);
  background: rgba(245, 243, 237, 0.64);
  overflow: hidden;
}

.editor-chrome {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  background: rgba(42, 42, 42, 0.04);
}

.editor-dots {
  display: flex;
  gap: 0.4rem;
}

.editor-dots span {
  width: 0.54rem;
  height: 0.54rem;
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 999px;
}

.editor-label,
.editor-output-title {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.editor-code,
.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.5rem;
}

.editor-code code,
.code-panel code {
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.91rem;
  line-height: 1.75;
}

.hero-aside {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 8rem;
}

.feature {
  border-left: 2px solid var(--muted);
  padding-left: 1.5rem;
}

.feature-number {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.feature h3,
.doc-section h2 {
  margin: 0 0 0.5rem;
  font-family: "Erode", serif;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.feature p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.doc-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.doc-band-copy p {
  max-width: 54rem;
  margin: 0.7rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-kicker {
  color: var(--foreground);
}

.doc-band-link {
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-mark,
.footer-links a {
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a:hover,
.topbar-link:hover {
  color: var(--accent);
}

.docs-main {
  padding-top: 3rem;
  padding-bottom: 9rem;
}

.docs-hero {
  display: block;
  max-width: 48rem;
  padding: 0;
  margin: 0 0 4rem;
}

.docs-hero h1 {
  margin: 1rem 0 1.4rem;
  font-family: "Erode", serif;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.docs-hero p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.3rem;
  line-height: 1.62;
}

.docs-article {
  max-width: 52rem;
}

.doc-section {
  min-height: auto;
  background: transparent;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 1.5rem;
}

.doc-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.doc-section h2 {
  margin: 0.85rem 0 1.4rem;
  font-size: 2rem;
  line-height: 1.08;
}

.doc-section p {
  margin: 0 0 1.1rem;
  color: var(--muted-foreground);
  font-size: 1.12rem;
  line-height: 1.72;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul {
  margin: 1.4rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  line-height: 1.6;
}

.doc-section li {
  margin-top: 0;
}

.doc-section li + li {
  margin-top: 0.7rem;
}

.doc-section .editor-frame,
.doc-section .example-editor {
  margin: 1.6rem 0 0;
}

.doc-section .example-editor .editor-code.compact {
  max-height: none;
  padding: 1.1rem 1.25rem;
}

.doc-note {
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--foreground);
  font-size: 1.02rem;
  line-height: 1.6;
}

.rune-table {
  margin: 1.6rem 0 0;
  border: 1px solid var(--border);
  background: rgba(245, 243, 237, 0.6);
}

.rune-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rune-row + .rune-row {
  border-top: 1px solid var(--border);
}

.rune-cell {
  padding: 0.7rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.rune-cell + .rune-cell {
  border-left: 1px solid var(--border);
}

.rune-head .rune-cell {
  background: rgba(42, 42, 42, 0.04);
  color: var(--muted-foreground);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rune-y {
  color: var(--foreground);
}

.rune-h {
  color: var(--muted-foreground);
}

.docs-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.docs-toc .section-kicker {
  display: block;
  margin-bottom: 1.1rem;
}

.docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-toc-link {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0 0.4rem 0.85rem;
  border-left: 2px solid var(--border);
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: color 120ms ease, border-color 120ms ease;
}

.docs-toc-link:hover {
  color: var(--foreground);
  border-left-color: var(--accent);
}

.docs-toc-num {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.doc-section-cta {
  margin-top: 1.4rem;
}

.doc-inline-link {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.playground-section,
.examples-section {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.playground-heading,
.examples-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 1rem;
  align-items: end;
  max-width: none;
}

.playground-heading h2,
.examples-heading h2 {
  margin: 0.45rem 0 0;
  font-family: "Erode", serif;
  font-size: 1.85rem;
  line-height: 1.02;
}

.playground-heading p,
.examples-heading p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.35;
}

.live-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.live-editor-main,
.live-editor-output {
  background: rgba(245, 243, 237, 0.88);
}

.live-editor-input {
  border: 0;
}

.editor-textarea {
  display: block;
  width: 100%;
  min-height: 28rem;
  resize: vertical;
  border: 0;
  border-radius: 0;
  outline: none;
  padding: 1.5rem;
  background: transparent;
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.91rem;
  line-height: 1.75;
}

.editor-textarea:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.live-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.editor-button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-family: "Erode", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  transition: background 150ms ease, color 150ms ease;
}

.editor-button:hover,
.editor-button:focus-visible,
.editor-button.primary {
  background: var(--foreground);
  color: var(--background);
  outline: none;
}

.editor-button.primary:hover,
.editor-button.primary:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.live-editor-output {
  min-width: 0;
  padding: 1.25rem;
}

.live-editor-output pre {
  min-height: 21rem;
  margin: 1rem 0;
  overflow: auto;
  white-space: pre;
}

.live-editor-output code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.live-editor-output.is-idle code {
  color: var(--muted-foreground);
}

.live-editor-output.is-success code {
  color: #165c48;
}

.live-editor-output.is-failed code {
  color: #9b2c24;
}

.editor-output-note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.examples-grid .section-kicker {
  display: block;
  margin-bottom: 0.75rem;
}

.examples-page {
  padding-top: 3rem;
  padding-bottom: 9rem;
}

.try-page {
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.try-hero {
  max-width: 48rem;
  margin: 0 0 2.5rem;
}

.try-hero h1 {
  margin: 1rem 0 1.2rem;
  font-family: "Erode", serif;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.try-hero p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.2rem;
  line-height: 1.6;
}

.try-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.try-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.try-toolbar-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.try-select {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: rgba(245, 243, 237, 0.9);
  color: var(--foreground);
  border-radius: 0;
}

.try-compile {
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.4rem;
  transition: background 120ms ease, color 120ms ease;
}

.try-compile:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.try-pane {
  display: flex;
  flex-direction: column;
  background: rgba(245, 243, 237, 0.92);
  min-width: 0;
}

.try-pane-label {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.try-editor {
  position: relative;
  flex: 1;
  min-height: 30rem;
}

.try-highlight,
.try-textarea {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 1.1rem 1.25rem;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}

.try-highlight {
  pointer-events: none;
  background: transparent;
  color: var(--foreground);
  z-index: 0;
}

.try-highlight code {
  font: inherit;
}

.try-highlight .tok-key,
.try-highlight .tok-keyword,
.try-highlight .tok-rune {
  font-weight: 400;
}

.try-highlight .tok-comment {
  font-style: normal;
}

.try-textarea {
  width: 100%;
  height: 100%;
  resize: none;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: var(--foreground);
  z-index: 1;
}

.try-textarea:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.try-result {
  flex: 1;
  min-height: 30rem;
  overflow: auto;
}

.try-output {
  margin: 0;
  padding: 1.1rem 1.25rem;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--foreground);
}

.try-result.is-idle .try-output {
  color: var(--muted-foreground);
}

.try-result.is-success {
  background: rgba(194, 98, 45, 0.06);
}

.try-result.is-failed {
  background: rgba(155, 44, 36, 0.06);
}

.try-result.is-failed .try-output {
  color: #9b2c24;
}

.yeditor-loading {
  padding: 1.25rem;
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.yeditor-split .yeditor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.yeditor-tabs {
  border: 1px solid var(--border);
  background: rgba(245, 243, 237, 0.92);
}

.yeditor-tabs .yeditor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
}

.yeditor-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.yeditor-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yeditor-tabs .try-editor,
.yeditor-tabs .try-result {
  min-height: 20rem;
}

.yeditor-tabs .try-compile {
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
}

/* Monaco-based editor widget */
.med {
  border: 1px solid var(--border);
  background: #f5f3ed;
}

.med-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
}

.med-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.med-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.med-editor {
  position: relative;
}

.med-lg .med-editor {
  height: 30rem;
}

.med-sm .med-editor {
  height: 18rem;
}

.med-pre {
  margin: 0;
  height: 100%;
  overflow: auto;
  padding: 1rem 1.1rem;
  white-space: pre;
  cursor: text;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--foreground);
}

.med-edit-hint {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  background: rgba(245, 243, 237, 0.9);
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.med-fallback {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  resize: none;
  padding: 1rem 1.1rem;
  background: transparent;
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  tab-size: 2;
}

.med .try-result {
  min-height: auto;
  border-top: 1px solid var(--border);
  max-height: 22rem;
  overflow: auto;
}

.med-lg .try-result {
  max-height: 30rem;
}

.examples-hero {
  max-width: 48rem;
  margin: 0 0 5.5rem;
}

.examples-hero h1 {
  margin: 1rem 0 1.4rem;
  font-family: "Erode", serif;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.examples-hero p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.3rem;
  line-height: 1.62;
}

.example-block {
  display: grid;
  gap: 2rem;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.example-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.example-block-head {
  max-width: 46rem;
}

.example-block-head h2 {
  margin: 0.9rem 0 1.4rem;
  font-family: "Erode", serif;
  font-size: 2.1rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.example-block-caption {
  margin: 0.85rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.15rem;
  line-height: 1.6;
}

.examples-page .editor-code.compact {
  max-height: none;
  min-height: 9rem;
  padding: 1.25rem 1.4rem;
}

.examples-page .example-editor-head {
  min-height: 46px;
  padding: 0.55rem 0.9rem;
}

.example-editor {
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(245, 243, 237, 0.88);
}

.example-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 38px;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.65rem;
}

.example-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.example-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.example-tab {
  flex: 1 1 0;
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: rgba(42, 42, 42, 0.03);
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.example-tab:last-child {
  border-right: 0;
}

.example-tab.is-active {
  background: rgba(245, 243, 237, 0.96);
  color: var(--foreground);
}

.snippet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
}

.snippet-button {
  min-height: 24px;
  border: 1px solid rgba(42, 42, 42, 0.12);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.36rem;
}

.snippet-button:hover,
.snippet-button:focus-visible,
.example-tab:hover,
.example-tab:focus-visible {
  border-color: var(--foreground);
  color: var(--foreground);
  outline: none;
}

.editor-button.tiny {
  min-height: 30px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.editor-frame.compact {
  border: 0;
  background: rgba(245, 243, 237, 0.72);
}

.editor-code.compact {
  max-height: 9.5rem;
  min-height: 7.5rem;
  padding: 0.7rem;
  overflow: auto;
  white-space: pre;
}

.result-frame.is-idle .editor-code {
  color: var(--muted-foreground);
}

.result-frame.is-success {
  background: rgba(194, 98, 45, 0.07);
}

.result-frame.is-failed {
  background: rgba(155, 44, 36, 0.055);
}

.syntax-code {
  color: var(--foreground);
}

.tok-key {
  color: #165c48;
  font-weight: 700;
}

.tok-type {
  color: #7c4d9d;
}

.tok-keyword {
  color: #0f6b7a;
  font-weight: 700;
}

.tok-string {
  color: #8a4f12;
}

.tok-number {
  color: #9b2c24;
}

.tok-comment {
  color: var(--muted-foreground);
  font-style: italic;
}

.tok-rune {
  color: #165c48;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid,
  .doc-band,
  .live-editor,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
    margin-bottom: 1rem;
  }

  .docs-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
  }

  .main {
    padding-top: 4rem;
  }

  .landing-main {
    padding-top: 4.5rem;
  }

  .hero-grid {
    gap: 3.5rem;
    padding-bottom: 5rem;
  }

  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 5rem;
  }

  .hero-aside {
    position: static;
  }

  .yamoon-title {
    font-size: 4.5rem;
  }

  .hero-copy {
    font-size: 1.25rem;
  }

  .docs-hero,
  .examples-heading {
    grid-template-columns: 1fr;
  }

  .playground-heading h2,
  .examples-heading h2 {
    font-size: 1.75rem;
  }

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

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

  .doc-section {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .feature-row {
    grid-template-columns: 1fr;
  }

  .yamoon-title {
    font-size: 3.35rem;
  }

  .docs-hero h1 {
    font-size: 2.65rem;
  }

  .github-corner svg {
    width: 60px;
    height: 60px;
  }

  .github-corner:hover .octo-arm {
    animation: none;
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }

  .playground-heading h2,
  .examples-heading h2 {
    font-size: 2.2rem;
  }

  .editor-code,
  .code-panel pre,
  .editor-textarea {
    padding: 1rem;
  }

  .editor-textarea {
    min-height: 24rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .docs-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }
}
