/* ========================================================================
   MigrateAnalytics theme — Migration Console
   Design tokens + components. No Tailwind utility runtime.
   ======================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #F8F9FB;
  --surface-2: #EEF1F6;
  --border: #E5E9F0;
  --text: #0A0E1A;
  --muted: #6B7280;
  --accent: #2962FF;
  --accent-2: #1A4FE5;
  --success: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;
  --code-bg: #0B0F14;
  --code-text: #E6EAF2;

  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 14, 26, 0.06);
  --shadow-lg: 0 16px 40px rgba(10, 14, 26, 0.10);
  --shadow-glow: 0 0 0 1px rgba(41, 98, 255, 0.30), 0 8px 24px rgba(41, 98, 255, 0.18);

  --font-sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0B0F14;
  --surface: #111821;
  --surface-2: #1A2330;
  --border: #1F2A3A;
  --text: #E6EAF2;
  --muted: #8A95A7;
  --accent: #4F7BFF;
  --accent-2: #6B8FFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }
img, svg { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.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; }

.ma-skip {
  position: absolute; left: -9999px; top: 0; padding: .5rem 1rem;
  background: var(--accent); color: #fff; z-index: 9999;
}
.ma-skip:focus { left: 1rem; top: 1rem; }

.ma-container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

/* ===== Header ===== */
.ma-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .ma-header { background: rgba(11, 15, 20, 0.85); }
.ma-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }

.ma-logo {
  display: inline-flex; align-items: baseline; gap: .25rem;
  font-size: 1.0625rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.ma-logo__mono { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.ma-logo__sans { font-weight: 600; color: var(--text); }
.ma-logo__mark { font-family: var(--font-mono); color: var(--accent); margin-left: .15rem; font-size: 1rem; }

.ma-nav { flex: 1; }
.ma-nav__list {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
.ma-nav__list a {
  color: var(--muted); font-size: .9375rem; font-weight: 500;
  transition: color .15s ease;
}
.ma-nav__list a:hover { color: var(--text); }
.ma-nav__github { font-family: var(--font-mono); font-size: .875rem !important; }
.ma-nav__toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--text);
}

@media (max-width: 800px) {
  .ma-nav__toggle { display: inline-flex; }
  .ma-nav__list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: .25rem;
    padding: 1rem; background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .ma-nav__list.is-open { display: flex; }
  .ma-header__cta { display: none; }
}

/* ===== Buttons ===== */
.ma-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .375rem; padding: .625rem 1.125rem;
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 500;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.ma-btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.ma-btn--primary:hover { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.ma-btn--ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.ma-btn--ghost:hover { background: var(--surface); border-color: var(--text); color: var(--text); }

/* ===== Hero ===== */
.ma-hero {
  position: relative;
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}
.ma-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(41, 98, 255, .08) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at top, #000 0%, transparent 70%);
  pointer-events: none;
}
.ma-hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .ma-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ma-hero__code { display: none; }
}

.ma-h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.025em; font-weight: 700;
  margin: 0 0 1.25rem;
}
.ma-grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--success) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ma-h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 .75rem;
}
.ma-lede {
  font-size: 1.125rem; line-height: 1.55; color: var(--muted);
  max-width: 38rem; margin: 0 0 1.75rem;
}

.ma-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ma-hero__bullets {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-mono); font-size: .8125rem; color: var(--muted);
  display: flex; flex-direction: column; gap: .375rem;
}

/* ===== Code diff ===== */
.ma-codediff {
  background: var(--code-bg); border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ma-codediff__tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.ma-codediff__tabs button {
  flex: 1; padding: .625rem 1rem;
  background: none; border: 0; color: rgba(230, 234, 242, .55);
  font-family: var(--font-mono); font-size: .8125rem; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s ease;
}
.ma-codediff__tabs button.is-active {
  color: var(--code-text); border-bottom-color: var(--accent);
}
.ma-codediff__panes {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: stretch; gap: 0;
}
.ma-codediff__pane {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono); font-size: .8125rem;
  color: var(--code-text);
}
.ma-codediff__pane--from { border-right: 1px solid rgba(239, 68, 68, .15); background: rgba(239, 68, 68, .04); }
.ma-codediff__pane--to   { border-left:  1px solid rgba(16, 185, 129, .15); background: rgba(16, 185, 129, .04); }
.ma-codediff__label {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(230, 234, 242, .55); margin-bottom: .5rem;
}
.ma-codediff__pane pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ma-codediff__arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 .5rem; color: var(--accent); font-size: 1.25rem;
}
.ma-codediff__caption {
  padding: .625rem 1rem; font-size: .75rem; color: rgba(230, 234, 242, .45);
  border-top: 1px solid rgba(255,255,255,.06); text-align: center; font-family: var(--font-mono);
}

/* ===== Sections ===== */
.ma-section { padding: 5rem 0; }
.ma-section__head { text-align: center; margin-bottom: 2.5rem; }
.ma-section__sub { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.ma-section__cta { text-align: center; margin-top: 2rem; }

/* ===== Atlas ===== */
.ma-atlas {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; overflow-x: auto;
}
.ma-atlas__table {
  width: 100%; border-collapse: separate; border-spacing: 4px;
  font-family: var(--font-mono); font-size: .75rem;
}
.ma-atlas__table th {
  font-weight: 500; color: var(--muted); text-align: center;
  padding: .5rem; text-transform: uppercase; letter-spacing: .04em;
  font-size: .6875rem;
}
.ma-atlas__table tbody th { text-align: left; }
.ma-atlas__cell {
  display: block; padding: .625rem .5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); text-align: center;
  transition: all .15s ease;
}
.ma-atlas__cell.is-ready {
  cursor: pointer; color: var(--text);
}
.ma-atlas__cell.is-ready:hover {
  border-color: var(--accent); transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.ma-atlas__cell[data-color="emerald"] { border-color: rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .05); }
.ma-atlas__cell[data-color="amber"]   { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .05); }
.ma-atlas__cell[data-color="rose"]    { border-color: rgba(239, 68, 68, .35);  background: rgba(239, 68, 68, .05); }
.ma-atlas__cell.is-coming { color: var(--muted); opacity: .6; cursor: pointer; }
.ma-atlas__effort { display: block; font-weight: 500; color: var(--text); }
.ma-atlas__time { display: block; font-size: .6875rem; color: var(--muted); margin-top: .15rem; }

/* ===== Tool cards ===== */
.ma-toolkit__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 800px) { .ma-toolkit__grid { grid-template-columns: 1fr; } }
.ma-tool-card {
  display: block; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: all .15s ease;
  position: relative; overflow: hidden;
}
.ma-tool-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--success));
  opacity: 0; transition: opacity .15s ease; mix-blend-mode: screen;
  pointer-events: none;
}
.ma-tool-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ma-tool-card__icon { font-size: 1.5rem; margin-bottom: .75rem; }
.ma-tool-card h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 .375rem; }
.ma-tool-card p { font-size: .9375rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.5; }
.ma-tool-card__more { font-family: var(--font-mono); font-size: .8125rem; color: var(--accent); }

/* ===== How steps ===== */
.ma-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  list-style: none; padding: 0; margin: 0;
}
@media (max-width: 800px) { .ma-steps { grid-template-columns: 1fr; } }
.ma-steps li {
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  position: relative;
}
.ma-steps__num {
  font-family: var(--font-mono); font-size: .8125rem;
  display: inline-block; padding: .15rem .5rem;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  margin-bottom: .5rem;
}
.ma-steps li h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
.ma-steps li p { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== Author ===== */
.ma-author { background: var(--surface); }
.ma-author__inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 760px; margin: 0 auto;
}
@media (max-width: 700px) { .ma-author__inner { flex-direction: column; text-align: center; } }
.ma-author__chip {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff; font-family: var(--font-mono); font-weight: 600;
  font-size: 1.25rem; flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.ma-author__chip--sm { width: 32px; height: 32px; font-size: .75rem; box-shadow: var(--shadow-sm); }
.ma-author__copy h2 { margin-top: 0; }
.ma-author__copy p { color: var(--muted); margin-bottom: 1rem; }
.ma-author__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ma-author__links a { font-family: var(--font-mono); font-size: .875rem; }

/* ===== Article ===== */
.ma-article { padding: 3rem 0 5rem; }
.ma-article__head { text-align: left; max-width: 760px; margin-bottom: 2.5rem; }
.ma-article__meta {
  display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem;
  font-family: var(--font-mono); font-size: .8125rem; color: var(--muted);
}
.ma-article__title { margin-bottom: 1rem; }
.ma-article__lede { font-size: 1.125rem; color: var(--muted); line-height: 1.55; }
.ma-article__byline {
  display: flex; align-items: center; gap: .625rem;
  font-family: var(--font-mono); font-size: .8125rem; color: var(--muted);
  margin-top: 1.25rem;
}
.ma-article__layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 3rem;
  max-width: 1140px;
}
@media (max-width: 900px) { .ma-article__layout { grid-template-columns: 1fr; } .ma-toc { display: none; } }
.ma-article__body { max-width: 720px; }
.ma-article__body--full { max-width: none; }
.ma-article__body h2 { font-size: 1.625rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.ma-article__body h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .75rem; }
.ma-article__body p { margin: 1rem 0; }
.ma-article__body ul, .ma-article__body ol { margin: 1rem 0; padding-left: 1.25rem; }
.ma-article__body li { margin: .375rem 0; }
.ma-article__body blockquote {
  border-left: 3px solid var(--accent); padding: .25rem 1rem;
  background: var(--surface); margin: 1.5rem 0; color: var(--muted);
}
.ma-article__body code {
  font-family: var(--font-mono); font-size: .875em;
  padding: .1rem .375rem; background: var(--surface-2);
  border-radius: var(--radius);
}
.ma-article__body pre {
  background: var(--code-bg); color: var(--code-text);
  padding: 1rem 1.25rem; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.55;
  border: 1px solid rgba(255,255,255,.08);
}

.ma-toc {
  position: sticky; top: 5rem; align-self: flex-start;
  font-family: var(--font-mono); font-size: .8125rem;
  max-height: calc(100vh - 6rem); overflow-y: auto;
}
.ma-toc h4 { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .75rem; }
.ma-toc nav a { display: block; padding: .25rem 0; color: var(--muted); border-left: 2px solid transparent; padding-left: .625rem; margin-left: -.625rem; }
.ma-toc nav a:hover, .ma-toc nav a.is-active { color: var(--text); border-left-color: var(--accent); }

.ma-article__foot { max-width: 760px; }

.ma-cta-block {
  margin: 3rem 0; padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff; position: relative; overflow: hidden;
}
.ma-cta-block h3 { color: #fff; font-size: 1.375rem; margin: 0 0 .5rem; }
.ma-cta-block p { color: rgba(255,255,255,.85); margin: 0 0 1.25rem; }
.ma-cta-block .ma-btn--primary { background: #fff; color: var(--accent); border-color: #fff; }
.ma-cta-block .ma-btn--primary:hover { background: rgba(255,255,255,.92); color: var(--accent-2); }

.ma-author-bio {
  display: flex; gap: 1rem; padding: 1.5rem; align-items: flex-start;
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: var(--radius); margin: 3rem 0;
}
.ma-author-bio h4 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; }
.ma-author-bio p { margin: 0; font-size: .9375rem; color: var(--muted); }

/* ===== Badges ===== */
.ma-badge {
  display: inline-block; padding: .15rem .5rem;
  font-family: var(--font-mono); font-size: .6875rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  border-radius: var(--radius);
}
.ma-badge--emerald { background: rgba(16, 185, 129, .12); color: var(--success); }
.ma-badge--amber   { background: rgba(245, 158, 11, .12); color: var(--warn); }
.ma-badge--rose    { background: rgba(239, 68, 68, .12);  color: var(--danger); }
.ma-badge--slate   { background: var(--surface-2); color: var(--muted); }

/* ===== TLDR ===== */
.ma-tldr {
  margin: 2rem 0; padding: 1.25rem 1.5rem;
  background: rgba(16, 185, 129, .06);
  border: 1px solid rgba(16, 185, 129, .25);
  border-left: 3px solid var(--success);
  border-radius: var(--radius);
}
.ma-tldr[data-color="amber"] { background: rgba(245, 158, 11, .06); border-color: rgba(245, 158, 11, .25); border-left-color: var(--warn); }
.ma-tldr[data-color="rose"] { background: rgba(239, 68, 68, .06); border-color: rgba(239, 68, 68, .25); border-left-color: var(--danger); }
.ma-tldr__head {
  font-family: var(--font-mono); font-size: .6875rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin-bottom: .5rem;
}
.ma-tldr__list { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.ma-tldr__list strong { color: var(--text); font-weight: 600; }
.ma-tldr__body { color: var(--text); }

/* ===== Code blocks (shortcode) ===== */
.ma-code {
  margin: 1.5rem 0; background: var(--code-bg);
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.ma-code__head {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .875rem; background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-mono); font-size: .75rem; color: rgba(230, 234, 242, .55);
}
.ma-code__title { flex: 1; }
.ma-code__copy {
  background: rgba(255,255,255,.06); color: var(--code-text);
  border: 0; padding: .25rem .625rem; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .6875rem; cursor: pointer;
  transition: background .15s ease;
}
.ma-code__copy:hover { background: rgba(255,255,255,.12); }
.ma-code__copy.is-copied { background: var(--success); color: #fff; }
.ma-code pre { margin: 0; padding: 1rem 1.25rem; color: var(--code-text); font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6; overflow-x: auto; }

/* ===== FAQ ===== */
.ma-faq { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.ma-faq__title { font-size: 1.375rem; font-weight: 700; margin: 0 0 1rem; }
.ma-q { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.ma-q summary { cursor: pointer; font-weight: 500; list-style: none; position: relative; padding-right: 1.5rem; }
.ma-q summary::-webkit-details-marker { display: none; }
.ma-q summary::after { content: '+'; position: absolute; right: 0; top: 0; font-family: var(--font-mono); color: var(--muted); font-size: 1.125rem; }
.ma-q[open] summary::after { content: '−'; }
.ma-q__a { padding-top: .75rem; color: var(--muted); }

/* ===== Related ===== */
.ma-related {
  margin: 3rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--border);
}
.ma-related__list { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 800px) { .ma-related__list { grid-template-columns: 1fr; } }
.ma-related__list a {
  display: block; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: all .15s ease;
}
.ma-related__list a:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ma-related__title { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .25rem; }
.ma-related__excerpt { display: block; font-size: .8125rem; color: var(--muted); }

/* ===== Footer ===== */
.ma-footer {
  margin-top: 5rem; padding: 3rem 0 2rem;
  background: var(--surface); border-top: 1px solid var(--border);
  font-size: .9375rem;
}
.ma-footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
@media (max-width: 800px) { .ma-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }
.ma-footer__brand .ma-logo__mono, .ma-footer__brand .ma-logo__sans { font-size: 1.0625rem; }
.ma-footer__tagline { color: var(--muted); margin: .5rem 0 0; font-size: .9375rem; }
.ma-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .ma-footer__cols { grid-template-columns: repeat(2, 1fr); } }
.ma-footer__cols h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .75rem; }
.ma-footer__cols ul { list-style: none; padding: 0; margin: 0; }
.ma-footer__cols li { margin-bottom: .375rem; }
.ma-footer__cols a { color: var(--text); }
.ma-footer__cols a:hover { color: var(--accent); }
.ma-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--muted); font-family: var(--font-mono);
}
.ma-theme-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: .25rem .625rem;
  border-radius: var(--radius); cursor: pointer; font-family: var(--font-mono); font-size: .75rem;
}
.ma-theme-toggle:hover { color: var(--text); border-color: var(--text); }

/* ===== Archive ===== */
.ma-archive { padding: 3rem 0 5rem; }
.ma-archive__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.ma-archive__item a {
  display: block; padding: 1.25rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  transition: all .15s ease;
}
.ma-archive__item a:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ma-archive__item h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 .25rem; }
.ma-archive__item p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* ===== 404 ===== */
.ma-404 { padding: 5rem 0; text-align: center; }

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
