/* === Anthropic Design System — Core CSS ===
 * Last verified: 2026-04-19
 * Docs: ../references/design-tokens.md
 */

/* ---------- Section A: Tokens ---------- */
:root {
  /* Colors */
  --anth-bg: #faf9f5;
  --anth-bg-subtle: #f0ede3;
  --anth-text: #141413;
  --anth-text-secondary: #6b6a5f;
  --anth-orange: #d97757;
  --anth-orange-hover: #c56544;
  --anth-blue: #6a9bcc;
  --anth-green: #788c5d;
  --anth-mid-gray: #b0aea5;
  --anth-light-gray: #e8e6dc;
  --anth-danger: #a14238;

  /* Fonts */
  --font-heading: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(20, 20, 19, 0.05);
  --shadow-pop: 0 10px 40px rgba(20, 20, 19, 0.08);

  /* Motion */
  --ease-anth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-sm: 240ms;
  --duration-md: 400ms;
  --duration-lg: 700ms;
}

/* ---------- Section B: Reset ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--anth-text);
  background: var(--anth-bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Section C: Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
}

h2 {
  font-size: 40px;
  line-height: 1.15;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
}

h4 {
  font-size: 20px;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--space-4);
}

.anth-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--anth-text-secondary);
}

/* ---------- Section D: Link & Button (Anthropic uses filled pills as primary CTA) ---------- */
.anth-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--anth-orange);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background var(--duration-sm) var(--ease-anth);
}

.anth-button:hover {
  background: var(--anth-orange-hover);
}

.anth-button--dark {
  background: var(--anth-text);
  color: var(--anth-bg);
}

.anth-button--ghost {
  background: transparent;
  color: var(--anth-text);
  border: 1px solid var(--anth-text);
}

.anth-link {
  color: var(--anth-orange);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--duration-sm);
}

.anth-link:hover {
  color: var(--anth-orange-hover);
}

.anth-link::after {
  content: " \2192";
}

.anth-link--no-arrow::after {
  content: none;
}

/* ---------- Section E: Layout ---------- */
.anth-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.anth-container--narrow {
  max-width: 720px;
}

.anth-container--wide {
  max-width: 1200px;
}

.anth-section {
  padding-block: var(--space-8);
}

.anth-section--subtle {
  background: var(--anth-bg-subtle);
}

.anth-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.anth-hero {
  text-align: center;
  padding-block: var(--space-10);
}

/* ---------- Section F: Stat ---------- */
.anth-stat {
  text-align: center;
}

.anth-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  color: var(--anth-text);
}

.anth-stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--anth-text-secondary);
  margin-top: var(--space-3);
}

/* ---------- Section G: Nav ---------- */
.anth-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--anth-bg);
  border-bottom: 1px solid var(--anth-light-gray);
}

.anth-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.anth-nav a {
  color: var(--anth-text);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-right: var(--space-5);
}

/* nav-cascade fix: `.anth-nav a` color rule above out-specifies `.anth-button`
   color, dropping nav-CTA buttons to dark text on orange. Mirror the
   ember/sage cross-skill fix to keep the white-on-orange CTA. */
.anth-nav a.anth-button { color: #ffffff; }
.anth-nav a.anth-button:hover { color: #ffffff; }

/* ---------- Section H: Footer ---------- */
.anth-footer {
  background: var(--anth-bg-subtle);
  padding-block: var(--space-7);
  font-size: 13px;
  color: var(--anth-text-secondary);
}

.anth-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
}

.anth-footer-group h5 {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--anth-text);
  margin-bottom: var(--space-3);
}

.anth-footer-group a {
  display: block;
  color: var(--anth-text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.anth-footer-legal {
  max-width: 1200px;
  margin: var(--space-6) auto 0;
  padding: var(--space-5) 24px 0;
  border-top: 1px solid var(--anth-light-gray);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.anth-social {
  display: flex;
  gap: var(--space-3);
}

/* ---------- Section I: Badge / Quote / Divider / Banner ---------- */
.anth-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--anth-light-gray);
  color: var(--anth-text);
}

.anth-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  padding-left: var(--space-5);
  border-left: 3px solid var(--anth-orange);
  max-width: 680px;
  margin: var(--space-6) 0;
}

.anth-quote-cite {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 14px;
  font-style: normal;
  font-family: var(--font-heading);
}

.anth-quote-cite img {
  height: 20px;
  width: auto;
}

.anth-divider {
  border: 0;
  height: 1px;
  background: var(--anth-light-gray);
  margin: var(--space-8) 0;
}

.anth-banner {
  padding: var(--space-3) var(--space-5);
  background: var(--anth-bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 14px;
}

/* ---------- Section J: Form controls ---------- */
.anth-input,
.anth-select,
.anth-textarea {
  width: 100%;
  background: var(--anth-bg);
  border: 1px solid var(--anth-light-gray);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--anth-text);
}

.anth-input:focus,
.anth-select:focus,
.anth-textarea:focus {
  outline: 2px solid var(--anth-orange);
  outline-offset: 0;
  border-color: transparent;
}

.anth-radio,
.anth-checkbox {
  accent-color: var(--anth-orange);
  width: 18px;
  height: 18px;
}

.anth-label {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--anth-text);
  margin-bottom: var(--space-2);
  display: block;
}

/* ---------- Section K: Tabs / Carousel / Video / Details ---------- */
.anth-tabs {
  display: flex;
  gap: var(--space-5);
  border-bottom: 1px solid var(--anth-light-gray);
}

.anth-tab {
  background: transparent;
  border: 0;
  padding: var(--space-3) 0;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--anth-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-sm), border-bottom-color var(--duration-sm);
}

.anth-tab.is-active {
  color: var(--anth-text);
  border-bottom-color: var(--anth-orange);
}

.anth-carousel {
  position: relative;
  overflow: hidden;
}

.anth-carousel-viewport {
  display: flex;
  transition: transform var(--duration-md) var(--ease-anth);
}

.anth-carousel-counter {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--anth-text-secondary);
}

.anth-video {
  width: 100%;
  border-radius: var(--radius-md);
}

.anth-details {
  background: var(--anth-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-3) 0;
}

.anth-details summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.anth-details summary::after {
  content: '\25B8';
  transition: transform var(--duration-sm);
}

.anth-details[open] summary::after {
  transform: rotate(90deg);
}

/* ---------- Section L: Admonition / Code / Logo wall / Breadcrumbs / Reveal / Table ---------- */
.anth-admonition {
  background: var(--anth-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: var(--space-5) 0;
}

.anth-admonition h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0 var(--space-2);
  color: var(--anth-blue);
}

.anth-admonition--warning h5 {
  color: var(--anth-orange);
}

.anth-admonition--success h5 {
  color: var(--anth-green);
}

.anth-admonition--danger h5 {
  color: var(--anth-danger);
}

.anth-code,
pre.anth-code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--anth-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow-x: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.93em;
  background: var(--anth-bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--anth-bg);
  border: 1px solid var(--anth-light-gray);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

mark {
  background: rgba(217, 119, 87, 0.2);
}

.anth-logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.anth-logo-wall img {
  max-height: 32px;
  width: auto;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--duration-sm);
}

.anth-logo-wall img:hover {
  filter: none;
}

.anth-breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--anth-text-secondary);
  font-family: var(--font-heading);
}

.anth-breadcrumbs li::after {
  content: '\203A';
  margin-left: var(--space-2);
  color: var(--anth-mid-gray);
}

.anth-breadcrumbs li:last-child::after {
  content: none;
}

.anth-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.anth-breadcrumbs a:hover {
  text-decoration: underline;
}

.anth-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
}

.anth-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--anth-bg-subtle);
  font-family: var(--font-heading);
  font-weight: 500;
}

.anth-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--anth-light-gray);
}

.anth-table tr:hover td {
  background: var(--anth-bg-subtle);
}

.anth-table .check {
  color: var(--anth-green);
}

.anth-table .cross {
  color: var(--anth-mid-gray);
}

.anth-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-lg) var(--ease-anth),
    transform var(--duration-lg) var(--ease-anth);
}

.anth-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section M: Responsive + a11y ----------
 * Phone layout. The card grids that overflow at 375px live in each page's
 * embedded <style> (.feat-grid, .tier-grid, …); the collapse rules below
 * override them at equal specificity via !important, so the rollout is
 * CSS-only and reaches every page that links this sheet. Genuinely wide figures
 * pan via an opt-in .anth-scroll wrapper (strategy A); hero product mocks
 * scale to fit so the whole window stays visible. */
@media (max-width: 768px) {
  /* Type — fluid headings, 16px reading floor. !important so the per-page
     inline font-sizes (style="font-size:96px" on hero headings) scale down
     too — without it an inline size wins over this media query and overflows. */
  h1 { font-size: clamp(31px, 8.4vw, 40px) !important; line-height: 1.16; }
  h2 { font-size: clamp(25px, 6.4vw, 30px) !important; }
  h3 { font-size: 20px !important; }
  body { font-size: 16px; }

  /* Sections + containers breathe less on a phone */
  .anth-section { padding-block: var(--space-7); }
  .anth-container, .anth-container--wide, .anth-container--narrow {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Collapse page-local multi-column grids so nothing scrolls sideways. The
     full class list is generated from every page's embedded <style>; a class
     absent from a given page is simply inert. Content & label/value rows go to
     one column; compact numeric strips stay two-up. */
  .feat-grid, .feat-row, .use-grid, .use-grid3, .use-tile, .tier-grid, .ref-grid,
  .member-grid, .team-grid, .canon-row, .test-row, .channel-row, .chord-grid,
  .scenarios, .scenario, .post-grid, .pd-sibling__grid, .pd-use__grid,
  .pd-sibling__row, .pd-spec__row, .faq-group, .faq-sum, .log-entry, .log-month,
  .detail-row, .spec-row, .kbd-row, .lineup-row, .lineup-grid, .limit-item,
  .craft-rule, .ship-rule, .quickstart, .palette-split, .overlap-grid, .two-col,
  .featured, .cards-2, .comp-grid, .side-col, .support-grid, .pillar-spine,
  .stat-strip, .glance-strip, .giant-stats, .cadence-stats, .pd-glance,
  .stat-trio, .faq-stats, .kpi-row, .exec-strip, .status-grid, .pagination {
    grid-template-columns: 1fr !important;
  }
  /* inline splits (style="grid-template-columns:2fr 3fr") collapse too */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .anth-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .anth-logo-wall { grid-template-columns: repeat(3, 1fr); }
  /* children must shrink, or their min-content re-widens the row */
  [class*="grid"] > *, [class*="row"] > *, [class*="strip"] > *,
  [class*="stat"] > *, [class*="glance"] > *, [class*="scenario"] > * { min-width: 0; }
  /* long unbreakable tokens (file paths in <code>, URLs) wrap, not overflow */
  code, kbd { overflow-wrap: anywhere; }

  /* Nav links wrap instead of overflowing (no JS burger on this skill) */
  .anth-nav-inner, .anth-nav-inner > div { flex-wrap: wrap; gap: var(--space-3); row-gap: var(--space-2); }

  /* Opt-in pan wrapper for genuinely wide figures (strategy A): wrap the <svg>
     in <div class="anth-scroll"> to keep a readable width and pan on a phone.
     Hero product mocks scale-to-fit instead — the whole window stays visible,
     and their own overflow:hidden (rounded corners) would fight a pan anyway. */
  .anth-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .anth-scroll > svg { min-width: 720px; }

  /* Wide tables + code blocks pan inside their own box; table columns stay
     aligned (min-width:max-content keeps display:table, parent does the scroll) */
  :is(div, section, figure):has(> table) {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .cmp-table { min-width: -webkit-max-content; min-width: max-content; }
  .anth-code { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }
  .anth-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.anth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--anth-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Section S: Scenario recipe components ---------- */
/* Added 2026-04-27 to back the scenario recipes in references/components.md
 * (C4 switch · C7 toast · C8 dialog · C9 banner severity · C10 tooltip ·
 *  C11 skeleton) and references/layout-patterns.md L1 dashboard
 * (.anth-card--data / .anth-eyebrow / .anth-metric / .anth-delta).
 * Existing classes (.anth-input/.anth-select/.anth-textarea/.anth-checkbox/
 * .anth-radio/.anth-tabs/.anth-tab/.anth-banner/.anth-details) already cover
 * C1/C2/C3/C5/C6 — no duplicates. */

/* C4 · Toggle switch (settings only — for yes/no in forms use .anth-checkbox) */
.anth-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  background: var(--anth-mid-gray);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background var(--duration-sm) var(--ease-anth);
  flex-shrink: 0;
}
.anth-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #ffffff;
  transition: transform var(--duration-sm) var(--ease-anth);
}
.anth-switch:checked {
  background: var(--anth-orange);
}
.anth-switch:checked::after {
  transform: translateX(16px);
}
.anth-switch:focus-visible {
  outline: 2px solid var(--anth-orange);
  outline-offset: 2px;
}

/* C7 · Toast notification */
.anth-toast {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  background: var(--anth-text);
  color: var(--anth-bg);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  z-index: 90;
}
.anth-toast--success {
  background: var(--anth-green);
  color: #ffffff;
}
.anth-toast--error {
  background: var(--anth-danger);
  color: #ffffff;
}
.anth-toast--info {
  background: var(--anth-text);
  color: var(--anth-bg);
}

/* C8 · Modal / Dialog */
.anth-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.45);
  display: grid;
  place-items: center;
  z-index: 100;
}
.anth-dialog {
  background: var(--anth-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  max-width: 560px;
  width: calc(100% - var(--space-7));
  padding: var(--space-7);
}
.anth-dialog h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 var(--space-5);
}
.anth-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

/* C9 · Banner severity modifiers + structured children
 * (the base .anth-banner is defined earlier; here we add the left-bar
 * severity variants and __title / __body slots). */
.anth-banner {
  border-left: 3px solid var(--anth-light-gray);
  align-items: flex-start;
}
.anth-banner--info    { border-left-color: var(--anth-blue); }
.anth-banner--success { border-left-color: var(--anth-green); }
.anth-banner--warn    { border-left-color: var(--anth-orange); }
.anth-banner--danger  { border-left-color: var(--anth-danger); }
.anth-banner__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.anth-banner__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--anth-text-secondary);
  margin: var(--space-1) 0 0;
}

/* C10 · Tooltip (paired with [data-tooltip] trigger) */
.anth-tooltip {
  position: absolute;
  background: var(--anth-text);
  color: var(--anth-bg);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-sm) var(--ease-anth),
              transform var(--duration-sm) var(--ease-anth);
}
[data-tooltip]:hover + .anth-tooltip,
[data-tooltip]:focus + .anth-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* C11 · Skeleton loading (replace spinner with shimmer block) */
.anth-skeleton {
  background: linear-gradient(
    90deg,
    var(--anth-bg-subtle) 0%,
    #f5f3ec 50%,
    var(--anth-bg-subtle) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: anth-shimmer 1.4s linear infinite;
}
.anth-skeleton--line   { height: 14px; margin: var(--space-2) 0; }
.anth-skeleton--block  { height: 120px; }
.anth-skeleton--circle { border-radius: 9999px; }
@keyframes anth-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* L1 · Dashboard data cards (compact, no shadow, hairline border, big number) */
.anth-card--data {
  padding: var(--space-4);
  border: 1px solid var(--anth-light-gray);
  box-shadow: none;
}
.anth-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--anth-text-secondary);
  margin: 0;
}
.anth-metric {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin: var(--space-2) 0 0;
  font-variant-numeric: tabular-nums;
}
.anth-delta {
  font-size: 13px;
  font-weight: 600;
  margin: var(--space-2) 0 0;
}
.anth-delta--up   { color: var(--anth-green); }
.anth-delta--down { color: var(--anth-danger); }

/* Section S motion · keyframes backing motion.md M1-M10 recipes
 * Use as `animation: anth-enter var(--duration-lg) var(--ease-anth) both;`
 * etc. so generators don't keep inlining @keyframes per page. */
@keyframes anth-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes anth-enter-soft {
  /* M1 hero — subtle scale, no big jump */
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes anth-toast-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes anth-toast-exit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes anth-modal-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes anth-overlay-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Convenience animation utilities — drop on any element to trigger. */
.anth-anim-enter        { animation: anth-enter      var(--duration-lg) var(--ease-anth) both; }
.anth-anim-enter--soft  { animation: anth-enter-soft var(--duration-lg) var(--ease-anth) both; }
.anth-anim-toast-enter  { animation: anth-toast-enter var(--duration-md) var(--ease-anth) both; }
.anth-anim-modal-enter  { animation: anth-modal-enter var(--duration-md) var(--ease-anth) both; }

