/* Approved Claude design system, exported 2026-11-27. */
@layer{:root{--paper:#ffffff;--paper-warm:#fdfaf7;--ink:#202020;--ink-secondary:#666666;--ink-disabled:#8c8c8c;--rule:#d9d9d9;--plum:#722660;--plum-deep:#4f1a43;--plum-tint:#f5ecf2;--on-plum:#ffffff;--pink:#e91e72;--pink-strong:#c2185b;--pink-tint:#feb0e7;--focus-ring:#722660;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--space-24:96px;--radius-none:0px;--radius-sm:2px;--radius-focus:3px;--border-hairline:1px;--border-ink:2px;--border-focus:3px;--content-max:960px;--text-max:640px;--target-min:44px;--wordmark-h:32px;--thumb-min:144px;--font-sans:"Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;--text-display:700 36px/44px var(--font-sans);--text-title:700 24px/32px var(--font-sans);--text-lede:400 20px/30px var(--font-sans);--text-body:400 18px/28px var(--font-sans);--text-body-sm:400 16px/24px var(--font-sans);--text-label:700 16px/24px var(--font-sans);--text-caption:400 14px/20px var(--font-sans);}}
/* Miss...Aligned — generated from tokens.json */
:root, [data-theme="paper"] {
  --paper: #ffffff;
  --paper-warm: #fdfaf7;
  --ink: #202020;
  --ink-secondary: #666666;
  --ink-disabled: #8c8c8c;
  --rule: #d9d9d9;
  --plum: #722660;
  --plum-deep: #4f1a43;
  --plum-tint: #f5ecf2;
  --on-plum: #ffffff;
  --pink: #e91e72;
  --pink-strong: #c2185b;
  --pink-tint: #feb0e7;
  --focus-ring: var(--plum);
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-none: 0px; --radius-sm: 2px; --radius-focus: 3px;
  --border-hairline: 1px; --border-ink: 2px; --border-focus: 3px;
  --content-max: 960px; --text-max: 640px; --target-min: 44px; --wordmark-h: 32px; --thumb-min: 144px;
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.display { font-family: var(--font-sans); font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.01em; }
.title { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 700; }
.lede { font-family: var(--font-sans); font-size: 20px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; }
.body-sm { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 700; }
.caption { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }



/* Miss...Aligned — component styles. Values come from tokens.css only. */
.ma, .ma * { box-sizing: border-box; }
.ma { font-family: var(--font-sans); font-size: 18px; line-height: 28px; color: var(--ink); background: var(--paper); }
.ma ::selection { background: var(--pink-tint); color: var(--ink); }

/* Links */
.ma :where(a) { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ma :where(a:hover) { color: var(--plum-deep); text-decoration-thickness: 2px; }
.ma :where(a:visited) { color: var(--plum-deep); }
/* Link specificity is zeroed with :where() so component rules below always win. */

/* Focus: one rule for every interactive element */
.ma a:focus-visible, .ma button:focus-visible, .ma .ma-focus {
  outline: var(--border-focus) solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-focus);
}

/* Wordmark */
.ma-wordmark { display: inline-flex; align-items: center; min-height: var(--target-min); max-width: 100%; text-decoration: none; }
.ma-wordmark svg { max-width: 100%; height: auto; }
.ma-wordmark img { display: block; height: var(--wordmark-h); width: auto; max-width: 100%; object-fit: contain; }
.ma-wordmark--hero img { height: 64px; height: auto; max-height: 64px; }

/* Header */
.ma-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6);
  max-width: var(--content-max); margin: 0 auto; padding: var(--space-4) var(--space-4); border-bottom: var(--border-hairline) solid var(--rule); }
.ma-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.ma-nav a { display: inline-flex; align-items: center; min-height: var(--target-min); font-size: 16px; line-height: 24px; font-weight: 700;
  color: var(--ink); text-decoration: none; border-bottom: var(--border-focus) solid transparent; padding: var(--space-1) 0 0; }
.ma-nav a:hover { color: var(--plum); border-bottom-color: var(--plum-tint); }
.ma-nav a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--pink); }
@media (min-width: 600px) { .ma-header { padding: var(--space-6) var(--space-8); } }
@media (max-width: 599px) { .ma-wordmark img { height: 24px; } .ma-nav ul { gap: var(--space-4); } }

/* Buttons */
.ma-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--target-min);
  padding: var(--space-2) var(--space-4); font: 700 16px/24px var(--font-sans); color: var(--ink); background: var(--paper);
  border: var(--border-ink) solid var(--ink); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; }
.ma-btn:hover { background: var(--plum-tint); border-color: var(--plum); color: var(--plum); }
.ma-btn:active { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.ma-btn--primary { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.ma-btn--primary:hover, .ma-btn--primary:active { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--on-plum); }
.ma-btn[disabled], .ma-btn[aria-disabled="true"] { color: var(--ink-disabled); border-color: var(--ink-disabled); background: var(--paper); cursor: not-allowed; }
.ma-btn .ma-glyph { font-weight: 400; }

/* Episode (comic page) */
.ma-episode { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--space-4); }
.ma-episode__head { margin-bottom: var(--space-6); }
.ma-episode__title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.ma-episode__meta { margin: var(--space-1) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.ma-comic { margin: 0; }
.ma-comic img { display: block; width: 100%; height: auto; border-radius: var(--radius-none); }
.ma-transcript { max-width: var(--text-max); margin: var(--space-6) 0 0; font-size: 16px; line-height: 24px; }
.ma-transcript summary { min-height: var(--target-min); display: inline-flex; align-items: center; font-weight: 700; color: var(--plum); cursor: pointer; }
.ma-transcript summary:focus-visible { outline: var(--border-focus) solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-focus); }

/* Placeholder: always labelled, never mistaken for content */
.ma-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); padding: var(--space-6);
  background: var(--paper-warm); border: var(--border-ink) dashed var(--ink-disabled); border-radius: var(--radius-none);
  color: var(--ink-secondary); font-size: 14px; line-height: 20px; text-align: center; }
.ma-placeholder strong { color: var(--ink); font-size: 16px; line-height: 24px; }
.ma-placeholder--strip { aspect-ratio: 3 / 1; }
.ma-placeholder--thumb { aspect-ratio: 1 / 1; padding: var(--space-2); }
.ma-tag { display: inline-block; padding: 0 var(--space-2); border: var(--border-hairline) solid var(--ink-disabled); border-radius: var(--radius-sm);
  font-size: 14px; line-height: 20px; color: var(--ink-secondary); background: var(--paper); }

/* Browsing controls */
.ma-browse { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2); margin: var(--space-8) 0 0; padding: 0; list-style: none; }
.ma-browse li { display: flex; }
@media (max-width: 599px) { .ma-browse .ma-btn { padding: var(--space-2) var(--space-3); } }

/* Share */
.ma-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); }
.ma-share__status { font-size: 14px; line-height: 20px; color: var(--ink-secondary); min-height: 20px; }

/* Archive */
.ma-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--thumb-min), 1fr)); gap: var(--space-8) var(--space-6); list-style: none; margin: 0; padding: 0; }
.ma-thumb { display: block; color: var(--ink); text-decoration: none; }
.ma-thumb__media { display: block; border: var(--border-hairline) solid var(--rule); }
.ma-thumb__media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ma-thumb__title { display: block; margin-top: var(--space-2); font-size: 16px; line-height: 24px; font-weight: 700; }
.ma-thumb__meta { display: block; font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.ma .ma-thumb:hover .ma-thumb__title { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.ma .ma-thumb:hover .ma-thumb__media { border-color: var(--plum); }

/* Footer */
.ma-footer { max-width: var(--content-max); margin: var(--space-12) auto 0; padding: var(--space-6) var(--space-4) var(--space-8);
  border-top: var(--border-hairline) solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  justify-content: space-between; font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.ma-footer ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; margin: 0; padding: 0; }
.ma-footer a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.ma-footer p { margin: 0; display: flex; align-items: center; min-height: var(--target-min); }

/* Lockup (About, social) */
.ma-lockup { max-width: var(--text-max); }
.ma-lockup__tagline { margin: var(--space-4) 0 0; font-size: 20px; line-height: 30px; }
.ma-lockup__credit { margin: var(--space-2) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-secondary); }

@media (prefers-reduced-motion: no-preference) {
  .ma a, .ma-btn, .ma-nav a, .ma-thumb__media { transition: color 120ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out; }
}
/* Preview helpers (cards only) */
.ma-demo { padding: var(--space-6); }
.ma-demo__label { display: block; margin: 0 0 var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-secondary); }
.ma-demo__row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }

/* Reference art */
.ma-reference { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
.ma-reference__banner { display: block; width: 100%; height: auto; }
.ma-reference__avatar { display: block; width: 160px; height: 160px; }
@media (min-width: 720px) { .ma-reference { grid-template-columns: minmax(0, 1fr) 160px; } }

/* Page sections and gutters: one inset for header, content and footer */
.ma-strap { max-width: var(--content-max); margin: 0 auto; padding: var(--space-4) var(--space-4) 0; font-size: 16px; line-height: 24px; color: var(--ink-secondary); }
.ma-page { max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--space-4); display: flex; flex-direction: column; gap: var(--space-6); }
.ma-page h1 { margin: 0; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.01em; }
.ma-page h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; }
.ma-page p { margin: 0; max-width: var(--text-max); }
.ma-empty { padding: var(--space-8) var(--space-6); background: var(--paper-warm); border: var(--border-ink) dashed var(--ink-disabled); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
@media (min-width: 600px) {
  .ma-strap { padding: var(--space-6) var(--space-8) 0; }
  .ma-episode { padding: var(--space-6) var(--space-8) var(--space-8); }
  .ma-page { padding: var(--space-12) var(--space-8); }
  .ma-footer { padding-left: var(--space-8); padding-right: var(--space-8); }
}
@media (max-width: 599px) { .ma-page h1 { font-size: 28px; line-height: 36px; } }

/* Header and footer keep full content width inside flex-column page shells */
.ma-header, .ma-footer { width: 100%; }


body { margin: 0; background: #ffffff; }
a { color: #722660; } a:hover { color: #4f1a43; }

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.1e4cea71d75e.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
html { color-scheme: light; }
body { margin: 0; }
.ma { min-height: 100svh; display: flex; flex-direction: column; }
.ma main { flex: 1 0 auto; width: 100%; }
.ma-header, .ma-footer { flex-shrink: 0; }
.ma-wordmark img { display: block; width: 288px; height: auto; max-width: 100%; }
.ma-nav a { white-space: nowrap; }
.ma-skip { position: absolute; top: -100px; left: 16px; padding: 12px 16px; background: var(--paper); z-index: 2; }
.ma-skip:focus { top: 12px; }
.ma-banner { display: block; width: 100%; height: auto; }
.ma-empty-latest { display: flex; flex-direction: column; gap: var(--space-6); }
.ma-empty-latest h1 { margin: 0; font-size: 24px; line-height: 32px; }
.ma-empty-latest p { margin: 0; }
.ma-empty-latest .ma-banner { margin-bottom: var(--space-4); }
.ma-about-copy { display: flex; flex-direction: column; gap: var(--space-6); }
.ma-about-figure { margin: 0; }
.ma-about-figure figcaption { margin-top: 8px; color: var(--ink-secondary); font-size: 14px; line-height: 20px; }
.ma-credits { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ma-credits img { width: 160px; height: 160px; }
.ma-credits div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ma-panels { display: grid; gap: var(--space-3); }
.ma-comic { min-width: 0; }
@media (min-width: 1320px) {
  .ma-episode--three-panels .ma-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    width: min(1840px, calc(100vw - 64px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
.ma-comic-link { display: block; }
.ma-comic-link:focus-visible { outline-offset: 6px; }
.ma-comic-caption { margin-top: 8px; color: var(--ink-secondary); font-size: 14px; line-height: 20px; }
.ma-thumb__media { aspect-ratio: 1 / 1; }
.ma-thumb__media img { height: 100%; object-fit: contain; }
.ma-share-url { width: min(100%, 560px); min-height: 44px; padding: 8px; font: 16px/24px var(--font-sans); }
.ma [hidden] { display: none !important; }
.ma-footer a, .ma-page a { overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .ma-wordmark img { width: 240px; height: auto; }
  .ma-header { row-gap: 8px; }
  .ma-credits img { width: 128px; height: 128px; }
}
