@charset "UTF-8";
/* Ivory, slate, and clay editorial system. Color values match docs/design-tokens.json; tests/validate_site.py checks them. */
:root {
  --paper: #F0EEE6;
  --surface: #FAF9F5;
  --sand: #E3DACC;
  --ink: #141413;
  --muted: #5E5D59;
  --accent: #D97757;
  --accent-hover: #C6613F;
  --accent-soft: #F5E3C7;
  --line: #CCCBC8;
  --control-border: #87867F;
  --inverse-muted: #B0AEA5;
  --inverse-line: #3D3D3A;
  --serif: Charter, "Bitstream Charter", "Sitka Text", "Source Serif Pro", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* 4px spacing base: 4, 8, 12, 16, 24, 32, 48, 64, 80. */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --radius-surface: 24px;
  --radius-control: 12px;
  --radius-action: 8px;
  --page-max: 80rem;
  --reading-max: 70ch;
  --gutter: 1.25rem;
  --reading-size: 1.125rem;
  --duration: 120ms;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 2rem; --reading-size: 1.25rem; } }
@media (min-width: 960px) { :root { --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); letter-spacing: normal; }
[hidden] { display: none !important; }
/* Search and filter controls need the page script. Without scripts, the full catalog remains. */
@media (scripting: none) { .needs-script { display: none !important; } }
h1, h2, h3, p, ul, ol, pre { margin: 0; }
/* The serif carries headings and reading text. The sans stays with navigation, controls, labels, and metadata. */
h1, h2, h3 { color: var(--ink); overflow-wrap: break-word; }
/* The rem term grows with browser zoom and text size, so the main heading doubles by 300% at any window width. */
h1 { font: 400 clamp(2.5rem, 2.125rem + 2.375vw, 4.25rem)/1.1 var(--serif); letter-spacing: -.01em; }
h2 { font: 400 clamp(1.625rem, 2.5vw, 2.25rem)/1.2 var(--serif); }
h3 { font: 400 1.375rem/1.3 var(--serif); }
.lede, .reading, .prompt-text, .example-text, .method-card > p:not(.card-meta), .agent-note-body > p, .agent-card > p, .use-cases ul, .contribution-band p, .empty-state > p, .noscript-note { font-family: var(--serif); }
.reading, .use-cases ul, .contribution-band p { font-size: var(--reading-size); line-height: 1.5; }
/* Inline links keep a persistent underline, as in print. */
a { color: var(--ink); text-decoration: underline 1px; text-underline-offset: .2em; transition: color var(--duration), background-color var(--duration), border-color var(--duration); }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; font-family: var(--sans); color: inherit; }
summary { font-family: var(--sans); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, summary { touch-action: manipulation; }
code { padding: .0625em .3em; font: .875em var(--mono); background: var(--sand); border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Filled controls also get a light inner ring, so focus differs from the fill itself. */
.button.primary:focus-visible, .chip[aria-pressed="true"]:focus-visible, .skip-link:focus-visible { box-shadow: inset 0 0 0 2px var(--surface); }
[id] { scroll-margin-top: var(--space-6); }

.wrap { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -10rem; z-index: 10; padding: var(--space-3) var(--space-4); color: var(--surface); background: var(--ink); border-radius: var(--radius-control); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--space-2); }
.skip-link:hover, .skip-link:focus { color: var(--surface); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand brand" "nav repo"; align-items: center; column-gap: var(--space-4); padding-block: var(--space-2); }
/* Without a repository link, the navigation takes the last column. */
.header-inner.no-repo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav"; }
/* The wordmark keeps the clay dots as the project mark. */
.wordmark { grid-area: brand; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 700 1.5rem/1 var(--sans); letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark span { color: var(--accent); }
.site-nav { grid-area: nav; display: flex; flex-wrap: wrap; column-gap: var(--space-6); }
.site-nav a, .repo-link { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; color: var(--ink); font-size: .9375rem; line-height: 1.5; letter-spacing: -.005em; text-decoration: none; }
.repo-link { grid-area: repo; justify-self: end; align-self: end; }
.site-nav a:hover, .repo-link:hover { color: var(--ink); text-decoration: underline 1px; text-underline-offset: .35em; }
.site-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline 2px; text-underline-offset: .35em; }

/* Shared page parts */
main { display: block; padding-bottom: var(--space-16); }
.hero, .page-intro { padding-block: var(--space-6); }
.eyebrow, .breadcrumb { margin-bottom: var(--space-3); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.eyebrow { font: 400 .75rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lede { max-width: 50ch; margin-top: var(--space-4); color: var(--muted); font-size: 1.25rem; line-height: 1.4; }
.hero h1 span { display: block; color: var(--muted); }
.reading { max-width: var(--reading-max); }
.reading > section + section { margin-top: var(--space-16); }
.reading h2 { margin-bottom: var(--space-4); }
.reading h3 { margin: var(--space-6) 0 var(--space-2); }
.reading p + p, .reading p + .agent-request, .reading ul + p, .reading ol + p { margin-top: var(--space-4); }
.steps { margin: 0; padding-left: var(--space-6); }
.steps li { padding-left: var(--space-2); }
.steps li + li { margin-top: var(--space-6); }
.steps li::marker { color: var(--ink); font: 600 1rem var(--sans); }
.steps h3 { margin: 0; font: 600 1.125rem/1.4 var(--serif); }
.steps p { margin-top: var(--space-1); color: var(--muted); }
.plain-list { margin: 0; padding-left: var(--space-6); }
.plain-list li + li { margin-top: var(--space-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.actions a:not(.button) { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.actions + p { margin-top: var(--space-4); }
.file-type { font-size: .875em; }

/* Buttons and controls. Clay fills only the primary action; filled actions round only their lower corners. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: .625rem var(--space-4); border: 1px solid transparent; border-radius: var(--radius-control); font: 600 1rem/1.3 var(--sans); text-align: center; text-decoration: none; transition: color var(--duration), background-color var(--duration), border-color var(--duration); }
.button.primary { color: var(--ink); background: var(--accent); border-color: var(--accent); border-radius: 0 0 var(--radius-action) var(--radius-action); }
.button.primary:hover { color: var(--ink); background: var(--accent-hover); border-color: var(--accent-hover); }
.button.primary:disabled { background: var(--accent); border-color: var(--accent); }
.button.secondary { color: var(--ink); background: var(--surface); border-color: var(--control-border); }
.button.secondary:hover { color: var(--ink); background: var(--sand); border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-4); color: var(--ink); background: transparent; border: 1px solid var(--control-border); border-radius: var(--radius-control); font-size: .875rem; line-height: 1.5; transition: color var(--duration), background-color var(--duration), border-color var(--duration); }
.chip:hover { background: var(--sand); border-color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.chip:disabled { color: var(--muted); background: transparent; border-style: dashed; border-color: var(--control-border); }
.toggle-state { display: inline-block; min-width: 2.5em; padding: 0 var(--space-1); border: 1px solid currentColor; border-radius: 4px; font-size: .875rem; line-height: 1.4; text-align: center; }
.toggle-state::before { content: "Off"; }
[aria-pressed="true"] > .toggle-state::before { content: "On"; }
.text-button, .suggestion { min-height: 44px; padding: 0; color: var(--ink); background: none; border: 0; font-size: .875rem; line-height: 1.5; text-align: left; text-decoration: underline 1px; text-underline-offset: .2em; transition: color var(--duration); }
.text-button:hover, .suggestion:hover { text-decoration-thickness: 2px; }
.copy-status { color: var(--ink); font-size: .875rem; line-height: 1.5; }
.copy-status:not(:empty) { margin-top: var(--space-2); }
.copy-fallback { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

/* Catalog search */
.catalog-search label { display: block; margin-bottom: var(--space-2); font-weight: 600; line-height: 1.5; }
.catalog-search input { display: block; width: 100%; min-height: 56px; padding: var(--space-3) var(--space-4); color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-control); font-size: 1rem; line-height: 1.5; -webkit-appearance: none; appearance: none; transition: border-color var(--duration); }
.catalog-search input:hover { border-color: var(--ink); }
.catalog-search input::placeholder { color: var(--muted); opacity: 1; }
.search-note { max-width: var(--reading-max); margin-top: var(--space-2); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.noscript-note { padding: var(--space-4); background: var(--sand); border-radius: var(--radius-surface); }
.suggestions { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-4); margin-top: var(--space-2); color: var(--muted); font-size: .875rem; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.semantic { margin-top: var(--space-3); }
.semantic > summary { min-height: 44px; padding-block: .6875rem; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.semantic > summary span { margin-left: var(--space-2); color: var(--muted); }
.semantic-body { max-width: var(--reading-max); padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-surface); font-size: .875rem; line-height: 1.5; }
.semantic-body p { color: var(--muted); }
.semantic-body .toggle { margin-top: var(--space-3); }
.semantic-body .semantic-status { margin-top: var(--space-2); color: var(--ink); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); min-height: 44px; margin: var(--space-6) 0 var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.result-count { color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* Result cards: one column, two from 640px, three from 960px. Surface tone, not shadow, sets them apart. */
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.method-grid:empty { display: none; }
.method-card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-6); color: var(--ink); background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-surface); text-decoration: none; transition: border-color var(--duration); }
.method-card:hover { color: var(--ink); border-color: var(--ink); }
.method-card:hover h3, .method-card:focus-visible h3 { text-decoration: underline 1px; text-underline-offset: .2em; }
.method-card p { color: var(--muted); }
.method-card > p:not(.card-meta) { font-size: 1.0625rem; line-height: 1.45; }
.method-card .card-meta { margin-top: auto; padding-top: var(--space-2); font-size: .875rem; line-height: 1.5; }
.show-matches { margin-top: var(--space-4); }
.empty-state { padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-surface); }
.empty-state h3 { overflow-wrap: anywhere; }
.empty-state > p { margin-top: var(--space-2); color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.empty-state .suggestions { margin-top: var(--space-3); }

/* Agent disclosure and requests */
.agent-note { margin-block: var(--space-6); background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-surface); }
.agent-note > summary { min-height: 52px; padding: .875rem var(--space-6); font-weight: 600; line-height: 1.5; cursor: pointer; }
.agent-note > summary span { margin-left: var(--space-2); color: var(--muted); font-weight: 400; }
.agent-note-body { padding: 0 var(--space-6) var(--space-6); }
.agent-note-body > p { max-width: var(--reading-max); color: var(--muted); font-size: 1.0625rem; }
.agent-request { max-width: 78ch; margin: var(--space-4) 0 var(--space-3); padding: var(--space-3) var(--space-4); color: var(--ink); background: var(--sand); border-radius: var(--radius-control); font: .875rem/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); min-height: 44px; }
.agent-actions a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }

/* Skill page: prompt first, support column from 960px. */
.breadcrumb span { padding-inline: var(--space-1); }
.skill-layout { display: grid; gap: var(--space-8); align-items: start; }
.skill-main, .skill-support { min-width: 0; }
.prompt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-surface); }
.prompt-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); min-height: calc(44px + 2rem); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.prompt-toolbar h2 { font-size: 1.5rem; }
.prompt-toolbar h2 .meta { margin-left: var(--space-2); color: var(--muted); font: .875rem/1.5 var(--sans); letter-spacing: normal; white-space: nowrap; }
.prompt-card > .copy-status:not(:empty) { margin: 0; padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--line); }
.prompt-text { max-width: var(--reading-max); padding: var(--space-6); font: 400 var(--reading-size)/1.5 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.example { margin-top: var(--space-16); }
.section-head p { margin-top: var(--space-2); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.example-before, .example-after { min-width: 0; margin-top: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-surface); }
.example-before { background: var(--surface); }
.example-after { background: var(--accent-soft); }
.example-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 var(--space-4); margin-bottom: var(--space-3); font: 600 1rem/1.3 var(--sans); letter-spacing: normal; }
.example-label span { color: var(--muted); font-size: .875rem; font-weight: 400; }
.example-text { font-size: 1.125rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.example-content { min-width: 0; }
.example-table-scroll { max-width: 100%; margin-block: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); }
.example-table { width: 100%; min-width: 32rem; border-collapse: collapse; color: var(--ink); font-size: .875rem; line-height: 1.5; }
.example-table th, .example-table td { padding: var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.example-table th { background: var(--sand); font-weight: 600; }
.example-table th:first-child, .example-table td:first-child { width: 25%; }
.example-table tr:last-child td { border-bottom: 0; }
.example-note { margin-top: var(--space-4); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.skill-support { display: grid; gap: var(--space-8); }
.agent-card { padding: var(--space-6); background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-surface); }
.agent-card h2, .use-cases h2, .share h2, .contribution-band h2 { font: 400 1.5rem/1.25 var(--serif); }
.agent-card > p { margin-top: var(--space-2); color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
.use-cases ul { margin-top: var(--space-2); padding-left: var(--space-6); }
.use-cases li + li { margin-top: var(--space-1); }
.method-url { display: block; margin: var(--space-2) 0 var(--space-3); font: .875rem/1.65 var(--mono); overflow-wrap: anywhere; }
.skill-files { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.skill-files h2 { font-size: 1.5rem; }
.file-list { display: grid; margin-top: var(--space-3); padding: 0; list-style: none; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-3); }
.file-list a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-family: var(--mono); font-size: .9375rem; }
.file-list li > span { color: var(--muted); font-size: .875rem; }
.source-note { margin-top: var(--space-3); color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }

/* Supporting pages */
.sources-list { margin-top: var(--space-4); }
.source-entry { padding-block: var(--space-6); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.source-entry:target { border-top: 3px solid var(--ink); }
.source-entry h2 { font-size: 1.5rem; }
.source-entry p { margin-top: var(--space-2); color: var(--muted); }
.source-entry .source-popularity { font-size: .875rem; }
.source-entry details { margin-top: var(--space-2); color: var(--muted); }
.source-entry summary { min-height: 44px; padding-block: .6875rem; color: var(--ink); font-size: .875rem; line-height: 1.5; cursor: pointer; }
.not-found { display: flex; flex-direction: column; justify-content: center; min-height: 50vh; }
.privacy-choice { margin-top: var(--space-4); padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-surface); }
.privacy-choice .toggle { margin-top: var(--space-3); }
.choice-status { margin-top: var(--space-2); color: var(--ink); font: .875rem/1.5 var(--sans); }
.reading noscript > p, .reading noscript + p { margin-top: var(--space-4); }
.reading p + .plain-list { margin-top: var(--space-2); }
.contribution-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6) var(--space-12); margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.contribution-band p { max-width: 60ch; margin-top: var(--space-2); color: var(--muted); }

/* Footer: a slate block with ivory text. */
.site-footer { color: var(--inverse-muted); background: var(--ink); }
.site-footer a, .site-footer a:hover { color: var(--surface); }
.site-footer :focus-visible { outline-color: var(--surface); }
.footer-inner { display: grid; gap: var(--space-2); padding-block: var(--space-12) var(--space-16); font-size: .875rem; line-height: 1.5; }
.footer-title { color: var(--surface); font: 400 1.75rem/1.2 var(--serif); }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: var(--space-6); margin-top: var(--space-2); }
.footer-nav a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.footer-note { padding-top: var(--space-4); border-top: 1px solid var(--inverse-line); }

@media (max-width: 639px) {
  .suggestions > span { flex-basis: 100%; }
  .prompt-toolbar, .prompt-text, .prompt-card > .copy-status:not(:empty) { padding-inline: var(--space-4); }
  .example-before, .example-after, .agent-card, .empty-state { padding: var(--space-4); }
  .agent-note > summary, .agent-note-body { padding-inline: var(--space-4); }
}
@media (min-width: 640px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav repo"; min-height: 80px; column-gap: var(--space-6); }
  .header-inner.no-repo { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand nav"; }
  .site-nav { justify-content: flex-end; }
  .repo-link { align-self: center; }
  .hero, .page-intro { padding-block: var(--space-12) var(--space-8); }
  .lede { font-size: 1.5rem; line-height: 1.35; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hero, .page-intro { padding-block: var(--space-20) var(--space-12); }
  .reading > section + section, .example, .skill-files, .contribution-band { margin-top: var(--space-20); }
  .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skill-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .prompt-toolbar, .prompt-text, .prompt-card > .copy-status:not(:empty) { padding-inline: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .method-card, .prompt-card, .agent-note, .agent-card, .example-before, .example-after, .empty-state, .semantic-body, .agent-request, .noscript-note, .privacy-choice { border: 1px solid CanvasText; }
  .chip[aria-pressed="true"] { forced-color-adjust: none; color: HighlightText; background: Highlight; border-color: Highlight; }
  .button.primary { border: 2px solid ButtonText; }
  :focus-visible, .site-footer :focus-visible { outline-color: Highlight; }
  .site-footer { border-top: 1px solid CanvasText; }
}
@media print {
  body { color: #000; background: #fff; }
  .wrap { width: 100%; }
  .site-header, .site-footer, .skill-support, .copy-status, button, .breadcrumb, .needs-script, .agent-note, .contribution-band, .skip-link { display: none !important; }
  .skill-layout { display: block; }
  .prompt-card, .example-before, .example-after { break-inside: avoid; }
  .example-table-scroll { overflow: visible; }
  .example-table { min-width: 0; }
}
