:root {
  --header-height: 52px;
  --content-max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mech-focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--mech-border);
  background: linear-gradient(90deg, var(--bg-primary), var(--bg-secondary));
  box-shadow: var(--mech-shadow-header);
  font-weight: 700;
}

.header-inner {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 35px;
}

.top-nav {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 18px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  margin-bottom: -1px;
  padding: 17px 2px;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.top-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}

.header-action {
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 600;
}

.header-action:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.page-shell {
  width: min(100%, var(--content-max-width));
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--text-secondary);
  font-size: 13px;
}

.breadcrumbs .sep {
  color: var(--accent-primary);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.page-hero {
  max-width: 850px;
  margin-bottom: 62px;
}

.hero-kicker {
  margin: 0 0 16px;
  color: var(--accent-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.landing-title {
  margin-bottom: 42px;
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px dotted var(--accent-teal);
  color: var(--mech-text-hero-secondary);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
}

.page-section + .page-section {
  margin-top: 64px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.25;
}

.section-heading::before {
  content: "";
  width: 34px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--accent-primary);
}

.section-note {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--text-secondary);
}

.lead-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--mech-panel);
}

.lead-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  color: var(--accent-primary);
  background: var(--bg-dark);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 21px;
  font-weight: 700;
}

.role {
  margin: 0 0 5px;
  color: var(--accent-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 24px;
}

.lead-copy {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--accent-primary);
  background: var(--bg-dark);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--body-primary);
}

td:last-child,
th:last-child {
  width: 120px;
  text-align: right;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--mech-table-row-hover);
}

.community-page .section-heading {
  margin: 0 0 28px;
  color: var(--mech-text-subheading);
  font-family: Inter, system-ui, sans-serif;
  font-size: 34px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.community-page .section-heading::before {
  content: none;
  display: none;
}

.people-group + .people-group {
  margin-top: 34px;
  padding-top: 30px;
}

.people-subheading {
  margin: 0;
  color: var(--mech-text-subheading);
  font-family: Inter, system-ui, sans-serif;
  font-size: 21px;
  line-height: 1.3;
}

.people-group .section-note {
  margin: 8px 0 0;
}

.community-page .lead-card {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.community-page .lead-card h3 {
  font-family: Inter, system-ui, sans-serif;
}

.community-page .lead-card h3 a:hover,
.contributor-list a:hover {
  color: var(--accent-primary);
}

.contributor-list {
  display: grid;
  gap: 0 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contributor-list--current {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contributor-list--past {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contributor-list li {
  min-width: 0;
  padding: 12px 4px;
  color: var(--body-primary);
  font-size: 14px;
  line-height: 1.35;
}

.contributor-thanks {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-style: italic;
}

.repository-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mech-surface-elevated), var(--mech-surface-subtle));
}

.repository-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.repository-name {
  color: var(--accent-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
}

.repository-visibility {
  padding: 3px 10px;
  border: 1px solid var(--accent-magenta);
  border-radius: 999px;
  color: var(--accent-magenta);
  background: transparent;
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
}

.repository-description {
  max-width: 730px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.repository-hosts {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 9px;
}

.repository-hosts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
}

.repository-hosts a:hover {
  color: var(--repository-host-hover);
}

.repository-host--github {
  --repository-host-hover: var(--mech-accent-blue);
}

.repository-host--gitlab {
  --repository-host-hover: var(--mech-accent-orange);
}

.repository-hosts svg {
  width: 15px;
  height: 15px;
}

.repository-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.repository-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
}

.repository-stat:hover {
  color: var(--accent-hover);
}

.repository-stat svg {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.repository-stat:first-child svg {
  color: var(--accent-primary);
}

.repository-stat time {
  padding-left: 7px;
  border-left: 1px dotted var(--border);
  color: var(--text-muted);
}

.repository-sparkline {
  width: 100%;
  min-height: 82px;
  color: var(--accent-teal);
}

.repository-sparkline svg {
  width: 100%;
  height: 82px;
  overflow: visible;
}

.repository-sparkline .repository-pulse {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.repository-sparkline .repository-baseline {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.18;
}

.repository-sparkline-range {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repository-graph-activity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 8px;
  color: var(--mech-text-muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 11px;
}

.repository-graph-activity:hover {
  color: var(--mech-link-hover);
}

.repository-graph-activity svg {
  width: 15px;
  height: 15px;
  color: var(--mech-accent-teal);
}

.community-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 68px;
}

.community-card {
  --community-hover: var(--mech-accent-magenta);
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mech-surface-elevated);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.community-card:nth-child(2) {
  --community-hover: var(--mech-accent-red);
}

.community-card:nth-child(3) {
  --community-hover: var(--mech-accent-orange);
}

.community-card:nth-child(4) {
  --community-hover: var(--mech-accent-teal);
}

.community-card:hover {
  transform: translateY(-2px);
  border-color: var(--community-hover);
  background: var(--mech-panel-raised);
}

.community-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 160ms ease;
}

.community-icon svg {
  width: 100%;
  height: 100%;
}

.community-link-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.25;
}

.community-link-copy strong {
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  transition: color 160ms ease;
}

.community-link-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card .arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  transition: color 160ms ease;
}

.community-card:hover .community-icon,
.community-card:hover .community-link-copy strong,
.community-card:hover .arrow {
  color: var(--community-hover);
}

.blog-page .page-hero {
  margin-bottom: 48px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: blog-post;
}

.post-list > li {
  counter-increment: blog-post;
}

.post-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
}

.post-card::before {
  content: none;
  padding-top: 5px;
  color: var(--accent-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.post-date {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-teal);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-title {
  margin: 0;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

.post-title a:hover {
  color: var(--accent-hover);
}

.post-summary {
  max-width: 850px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.post-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}

.post-cta::after {
  content: "›";
  color: var(--accent-primary);
  font-size: 18px;
  transition: transform 150ms ease;
}

.post-cta:hover {
  color: var(--accent-primary);
}

.post-cta:hover::after {
  transform: translateX(3px);
}

/* Legacy-generated blog index, presented as a standalone page. */
html:has(body.blog-index-page),
body.blog-index-page {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-primary);
}

.blog-index-page .page-shell {
  display: block;
}

.blog-index-page .content {
  width: 100%;
  min-width: 0;
  overflow: visible;
  color: var(--text-primary);
  background: transparent;
}

.blog-index-page .mech-content,
.blog-index-page .mech-program {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
}

.blog-index-page .mech-program-title {
  display: none;
}

.blog-index-page .mech-program-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  counter-reset: blog-post;
}

.blog-index-page .mech-program-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0 22px;
  padding: 30px 0;
  counter-increment: blog-post;
}

.blog-index-page .mech-program-section::before {
  content: none;
  grid-column: 1;
  grid-row: 1 / span 4;
  padding-top: 6px;
  color: var(--accent-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.blog-index-page .mech-program-section > * {
  grid-column: 2;
  max-width: 100%;
  min-width: 0;
}

.blog-index-page .mech-program h2 {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0;
  line-height: 1.3;
}

.blog-index-page .mech-program h2::before,
.blog-index-page .mech-program h2 a::before {
  content: none !important;
}

.blog-index-page .mech-program h2 a {
  color: var(--text-primary);
}

.blog-index-page .mech-program h2 a:hover {
  color: var(--accent-hover);
}

.blog-index-page .mech-program-section > .mech-paragraph {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

.blog-index-page .mech-program-section h2 {
  order: -2;
}

.blog-index-page .blog-entry-meta {
  order: -1;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.blog-index-page .blog-entry-author {
  color: var(--body-primary);
}

.blog-index-page .mech-program-section > .mech-paragraph:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.blog-index-page .mech-program-section > .mech-paragraph:last-child a::after {
  content: "›";
  color: var(--accent-primary);
  font-size: 18px;
}

.blog-index-page .resizer,
.blog-index-page .sidebar,
.blog-index-page .toggle-button,
.blog-index-page .mech-toc {
  display: none !important;
}

.blog-index-page .mech-program-section {
  position: relative;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 0 30px;
  align-items: start;
}

.blog-index-page .mech-program-section::before {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  grid-column: auto;
  grid-row: auto;
  padding: 4px 7px;
  border: 1px solid var(--mech-brand);
  border-radius: 4px;
  color: var(--bg-dark);
  background: var(--accent-primary);
  box-shadow: var(--mech-shadow-popover);
}

.blog-index-page .mech-program-section::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 170px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 9px;
  background-color: var(--bg-elevated);
  background-position: center;
  background-size: cover;
  box-shadow: var(--mech-image-shadow);
}

.blog-index-page .mech-program-section:nth-child(1)::after {
  background-image: url("/assets/images/blog-thumbnails/version-0.3.jpg");
}

.blog-index-page .mech-program-section:nth-child(2)::after {
  background-color: #102f47;
  background-image: url("/assets/images/blog-thumbnails/mechdown-architecture.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.blog-index-page .mech-program-section:nth-child(3)::after {
  background-image: url("/assets/images/blog-thumbnails/ekf-styled.jpg");
}

.blog-index-page .mech-program-section:nth-child(4)::after {
  background-image: url("/post/2022-09-22-fall-update/images/giraffe-still.png");
}

.blog-index-page .mech-program-section:nth-child(5)::after {
  background-image: url("/post/2022-05-20-spring-update/assets/autobot.png");
}

.blog-index-page .mech-program-section:nth-child(6)::after {
  background-image: url("/assets/images/hytradboi-controller.png");
}

.blog-index-page .mech-program-section:nth-child(7)::after {
  background-image: url("/post/2022-01-01-happy-new-year/assets/mech-capstone-2021.jpg");
}

.blog-index-page .mech-program-section:nth-child(8)::after {
  background-image: url("/post/2020-08-06-forward-robotics/forward-robotics-0336.png");
}

.blog-index-page .mech-program-section:nth-child(9)::after {
  background-color: #fff;
  background-image: url("/assets/images/live2019-clock.svg");
}

.blog-index-page .mech-program-section:nth-child(10)::after {
  background-image: url("/img/post/inspector.PNG");
}

.blog-index-page .mech-program-section:nth-child(11)::after {
  background-image: url("/img/post/REPL.PNG");
}

.blog-index-page .mech-program-section:nth-child(12)::after {
  background-color: #fff;
  background-image: url("/img/post/topology.png");
}

.blog-index-page .mech-program-section:first-child {
  position: relative;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 8px 36px;
  min-height: 410px;
  margin: 0 0 38px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mech-surface-elevated), var(--mech-surface-subtle));
  overflow: hidden;
}

.blog-index-page .mech-program-section:first-child::before {
  content: "Latest";
  position: absolute;
  z-index: 2;
  top: 46px;
  right: 16px;
  left: auto;
  width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--accent-magenta);
  border-radius: 10px;
  color: var(--accent-magenta);
  background: var(--mech-canvas);
  box-shadow: none;
  text-transform: uppercase;
}

.blog-index-page .page-hero {
  display: none !important;
}

.blog-index-page .mech-program-section:first-child::after {
  grid-column: 2;
  grid-row: 1 / span 5;
  min-height: 344px;
  height: 100%;
  aspect-ratio: auto;
}

.blog-index-page .mech-program-section:first-child > * {
  grid-column: 1;
}

.blog-index-page .mech-program-section:first-child h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
}

.blog-index-page .mech-program-section h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.blog-index-page .blog-entry-category {
  order: -3;
  margin: 0 0 8px;
  line-height: 1;
}

.blog-index-page .blog-category-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--accent-teal);
  background: transparent;
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-index-page a.blog-category-eyebrow:hover,
.blog-index-page a.blog-category-eyebrow:focus-visible {
  color: var(--accent-primary);
  background: transparent;
  outline: none;
}

.footer {
  margin-top: 0;
  border-top: 1px dotted var(--border);
  background: linear-gradient(90deg, var(--bg-primary), var(--bg-dark), var(--bg-primary));
  color: var(--text-secondary);
}

.footer-inner {
  width: 100%;
  max-width: var(--content-max-width);
  min-width: 0;
  margin: 0 auto;
  padding: 0 32px;
  container-type: inline-size;
}

.footer-main {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 170px minmax(280px, 360px) minmax(340px, 1fr);
  column-gap: 30px;
  row-gap: 18px;
  align-items: start;
  padding: 54px 0 36px;
}

.footer-robot {
  grid-column: 1;
  grid-row: 1;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-robot img {
  width: 100%;
  max-width: 230px;
  margin-left: 20px;
  filter: drop-shadow(0 10px 20px rgb(0 0 0 / 45%));
  transition: opacity 180ms ease, transform 180ms ease;
}

.mika-glyph {
  max-height: 0;
  display: inline-block;
  overflow: hidden;
  margin: 0;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
}

.mika-glyph-art {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 20px;
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: var(--mech-brand-glow);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mika-glyph-art--mini,
.mika-glyph-art--micro {
  grid-area: 1 / 1;
  display: block;
}

.mika-glyph-art-wrap {
  display: grid;
}

.mika-glyph-art--mini {
  font-size: 24px;
  opacity: 1;
  transform: scale(1);
}

.mika-glyph-art--micro {
  opacity: 0;
  transform: scale(0.86);
}

.footer-links {
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 24px;
  align-content: start;
}

.footer-heading {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.footer-heading-text {
  flex: 1;
  display: block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--mech-footer-heading-rule);
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-group a::after {
  content: "›";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-group a:hover,
.footer-group a:hover::after {
  color: var(--accent-hover);
}

.footer-release {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
}

.release-grid-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  border-bottom: 1px solid var(--border-strong);
}

.release-grid-row:last-of-type {
  border-bottom: 0;
}

.release-grid-label,
.release-grid-value {
  padding: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-grid-label {
  border-right: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.release-grid-value {
  color: var(--text-secondary);
}

.release-grid-value a,
.release-ack a {
  color: var(--accent-soft);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.release-ack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.release-ack .footer-icon {
  color: var(--accent-primary);
}

.footer-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px dotted var(--border);
  font-size: 14px;
  text-align: center;
}

.footer-pride {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-inline: auto;
  color: var(--text-muted);
}

.footer-robot img[hidden] + .mika-glyph {
  max-height: 120px;
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 22px;
    padding-top: 36px;
  }

  .footer-robot {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    align-self: start;
  }

  .footer-release {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
  }

  .footer-robot img {
    width: 0;
    max-width: 0;
    margin: 0;
    opacity: 0;
    transform: scale(0.75);
  }

  .mika-glyph {
    max-height: 120px;
    margin-top: 8px;
    color: var(--accent-primary);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 0 18px;
  }

  .header-inner {
    gap: 20px;
  }

  .top-nav {
    max-width: 100%;
    gap: 14px;
    overflow-x: auto;
  }

  .header-action {
    display: none;
  }

  .page-shell {
    padding: 28px 20px 64px;
  }

  .community-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contributor-list--current {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contributor-list--past {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .breadcrumbs {
    margin-bottom: 34px;
  }

  .repository-banner {
    grid-template-columns: 1fr;
  }

  .repository-sparkline {
    min-height: 60px;
  }

  .repository-sparkline svg {
    height: 60px;
  }

  .blog-index-page .mech-program-section,
  .blog-index-page .mech-program-section:first-child {
    grid-template-columns: 1fr;
  }

  .blog-index-page .mech-program-section:first-child {
    gap: 14px;
    min-height: 0;
  }

  .blog-index-page .mech-program-section::after,
  .blog-index-page .mech-program-section:first-child::after {
    grid-column: 1;
    grid-row: 1;
    min-height: clamp(160px, 48vw, 260px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .blog-index-page .mech-program-section > *,
  .blog-index-page .mech-program-section:first-child > * {
    grid-column: 1;
  }

  .blog-index-page .mech-program-section:first-child::before {
    top: 46px;
    right: 46px;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
    align-items: stretch;
    padding: 8px 14px 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 5px;
  }

  .brand {
    justify-self: center;
    min-width: 0;
  }

  .brand img {
    height: 34px;
    margin: 0 auto;
  }

  .top-nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    overflow-x: visible;
    white-space: normal;
  }

  .top-nav a {
    padding: 9px 0 11px;
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .brand img {
    height: 30px;
  }

  .top-nav a {
    padding: 8px 0 10px;
    font-size: 10px;
  }

  .page-shell {
    padding: 22px 14px 52px;
  }

  .repository-heading,
  .repository-hosts {
    flex-wrap: wrap;
  }

  .repository-name {
    max-width: 100%;
    font-size: clamp(15px, 5vw, 20px);
    overflow-wrap: anywhere;
  }

  .repository-copy,
  .repository-stats,
  .repository-sparkline,
  .community-links,
  .community-card,
  .people-section,
  .people-group,
  .contributor-list {
    max-width: 100%;
    min-width: 0;
  }

  .repository-sparkline svg {
    max-width: 100%;
    overflow: hidden;
  }

  .community-links {
    grid-template-columns: 1fr;
  }

  .contributor-list--current {
    grid-template-columns: 1fr;
  }

  .contributor-list--past {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repository-banner {
    gap: 18px;
    padding: 20px;
  }

  .repository-stats {
    gap: 12px 18px;
  }

  .lead-card {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 24px 0;
  }

  .post-card::before {
    padding-top: 0;
  }

  .blog-index-page .mech-program-section {
    gap: 6px;
    padding: 24px 0;
  }

  .blog-index-page .content,
  .blog-index-page .mech-content,
  .blog-index-page .mech-program,
  .blog-index-page .mech-program-body,
  .blog-index-page .mech-program-section,
  .blog-index-page .mech-program-section > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .blog-index-page .mech-program h2 {
    font-size: clamp(19px, 7vw, 26px);
    overflow-wrap: anywhere;
  }

  .blog-index-page .mech-program-section:first-child h2 {
    font-size: clamp(26px, 9vw, 34px);
  }

  .blog-index-page .mech-program-section::after,
  .blog-index-page .mech-program-section:first-child::after {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .blog-index-page .mech-program-section::before {
    top: 36px;
    left: 12px;
  }

  .blog-index-page .mech-program-section:first-child {
    padding: 16px;
  }

  .blog-index-page .mech-program-section:first-child::before {
    top: 30px;
    right: 30px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }

  .footer-inner {
    padding: 0 14px;
  }

  .footer-robot {
    display: none;
  }

  .footer-release {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .footer-links {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    width: 100%;
  }

  .footer-group,
  .footer-heading,
  .footer-group a {
    width: 100%;
    min-width: 0;
  }

  .release-grid-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-grid-label {
    padding-bottom: 4px;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }

  .release-grid-value {
    padding-top: 6px;
    overflow-wrap: anywhere;
  }

  .mika-glyph-art--mini {
    opacity: 0;
    transform: scale(0.86);
  }

  .mika-glyph-art--micro {
    font-size: 20px;
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 500px) {
  .footer-inner {
    padding: 0 14px;
  }
}

@media (max-width: 400px) {
  .contributor-list--past {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .footer-robot {
    display: none;
  }

  .footer-release {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .footer-links {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .release-grid-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-grid-label {
    padding-bottom: 4px;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }

  .release-grid-value {
    padding-top: 6px;
    overflow-wrap: anywhere;
  }

  .footer-meta {
    padding: 18px 0;
  }

  .footer-pride {
    flex-wrap: wrap;
  }
}
