
  :root {
  /* Frame — DESIGN.md colors, under the names in tokens.css. */
  --background: #ffffff;
  --foreground: #111111;
  --card: #ffffff;
  --card-foreground: #111111;
  --primary: #111111;
  --primary-foreground: #ffffff;
  --secondary: #f7f7f5;
  --secondary-foreground: #111111;
  --muted: #f7f7f5;
  --muted-foreground: #5c5c5c;
  --accent: #f7f7f5;
  --accent-foreground: #111111;
  --destructive: #8a1c1c;
  --destructive-foreground: #ffffff;
  --border: #e6e6e6;
  --input: #8c8c8c;
  --ring: #111111;

  --border-soft: #f1f1f1;
  --stage: #000000;
  --block-yellow: #feeba6;
  --block-yellow-deep: #f8da64;
  --block-yellow-deeper: #e7c100;
  --block-blue: #cce8ff;
  --block-blue-deep: #a4d3ff;
  --block-blue-deeper: #60aaf3;
  --block-red: #ffd8d0;
  --block-red-deep: #ffb5a9;
  --block-red-deeper: #f9786a;
  --block-green: #c9f4d7;
  --block-green-deep: #9be5b4;
  --block-green-deeper: #55c483;
  --block-ecru: #f5f0e3;
  --block-ecru-deep: #eae1c8;
  --block-ecru-deeper: #d6c69b;
  --block-purple: #ecddff;
  --block-purple-deep: #dac0fb;
  --block-purple-deeper: #b88fe6;
  --block-navy: #153b70;
  --block-navy-foreground: #ffffff;
  --unread: #ff3d8b;
  --success: #1f6f43;
  --success-soft: #e6f4ea;
  --warning: #8a5200;
  --warning-soft: #fff6e5;
  --destructive-soft: #fbe9e9;
  --shadow-menu: 0 6px 20px rgb(0 0 0 / 0.12);

  /* Community colors (third scope, D-45): the cover pattern and the logo's
     initial only. Light, middle and dark of each. */
  --community-red-light: #e8848a;
  --community-red: #c8242e;
  --community-red-dark: #9a1b22;
  --community-orange-light: #f2a06b;
  --community-orange: #e2692b;
  --community-orange-dark: #b9501e;
  --community-yellow-light: #f7d46a;
  --community-yellow: #f2b71c;
  --community-yellow-dark: #d4961a;
  --community-green-light: #6fae84;
  --community-green: #2f7a4a;
  --community-green-dark: #1f5a36;
  --community-navy-light: #6e86b8;
  --community-navy: #26407a;
  --community-navy-dark: #1a2c57;

  /* Transitional names still referenced by pages. Values are DESIGN tokens. */
  --ink-strong: var(--foreground);
  --ink-body: var(--foreground);
  --footer-ink: var(--muted-foreground);
  --input-strong: var(--input);
  --border-loose: var(--border);
  --info-soft: var(--secondary);
  --danger-emphasis: var(--destructive);
  --surface-note: var(--secondary);

  /* Type — DESIGN.md stacks, including Japanese faces and SF Mono. */
  --font-sans:
    system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP',
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape — md is --radius. Extra names map to the nearest DESIGN step. */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 2px;
  --radius-chip: 6px;
  --radius-card: 8px;
  --radius-panel: 8px;
  --radius-block: 24px;
  --radius-block-lg: 32px;
  --radius-full: 9999px;

  --space-section: 96px;
  --space-block: 48px;

  --duration-fast: 0.15s;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 759px) {
  :root {
    --space-section: 56px;
    --space-block: 24px;
  }
}

/* Selected language in the footer: ink and bold (DESIGN.md footer). */
footer strong[aria-current='true'] {
  color: var(--foreground);
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  button,
  .button-primary,
  .button-secondary,
  .button-danger,
  .button-icon,
  .cta {
    transition: transform 100ms;
  }
  button:active,
  .button-primary:active,
  .button-secondary:active,
  .button-danger:active,
  .button-icon:active,
  .cta:active {
    transform: scale(0.97);
  }
} html,
  body {
    height: 100%;
    margin: 0;
  }
  body {
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--foreground);
    font: 14px/1.4 var(--font-sans);
  }
  /* The slides take all the height the line under them leaves. */
  iframe {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: var(--stage);
  }
  /* As tall as the embed code makes room for, so the slides keep 16:9. */
  .embed-line {
    box-sizing: border-box;
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    height: 45px;
    margin: 0;
    padding: 0 12px;
    border-top: 1px solid var(--border);
    white-space: nowrap;
  }
  .embed-title,
  .embed-author {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .embed-title {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 700;
  }
  .embed-author {
    flex: 0 2 auto;
    min-width: 0;
    color: var(--muted-foreground);
  }
  .embed-line a {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    color: inherit;
    font-weight: 600;
  }
