:root {
  color-scheme: light;
  --blue: #0b4fb3;
  --blue-dark: #073879;
  --copper: #a66f4c;
  --copper-dark: #7e5135;
  --teal: #277a78;
  --ink: #182332;
  --muted: #5e6876;
  --line: #d9dfeb;
  --paper: #f8f6f0;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(20, 32, 48, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

::selection {
  background: rgba(11, 79, 179, 0.18);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(217, 223, 235, 0.85);
  background: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(14px);
}

.site-header[data-elevated="true"] {
  box-shadow: 0 10px 28px rgba(24, 35, 50, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(11, 79, 179, 0.08);
  color: var(--blue-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 124px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lang-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
}

.icon-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #243244;
  border-radius: 8px;
  background: var(--ink);
}

.icon-link img {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 72vh;
  padding: 92px 40px 34px;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 255, 255, 0.94);
}

.hero-mark {
  position: absolute;
  right: -12vw;
  bottom: -18vw;
  z-index: -1;
  width: 72vw;
  max-width: 920px;
  aspect-ratio: 4291 / 3392;
  background: url("taffish-logo.webp") center / contain no-repeat;
  opacity: 0.12;
}

.hero-copy {
  width: min(100%, 1180px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1180px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 4.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 30px;
  color: #3c4654;
  font-size: 1.24rem;
}

.hero-actions,
.header-actions {
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(11, 79, 179, 0.25);
}

.button.secondary {
  border: 1px solid var(--copper);
  background: #fff7f0;
  color: var(--copper-dark);
}

.button.text {
  color: var(--blue-dark);
}

.button:hover,
.link-card:hover,
.icon-link:hover {
  transform: translateY(-1px);
}

.hero-proof {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1120px);
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-proof div {
  padding: 18px 20px;
}

.hero-proof div + div {
  border-left: 1px solid var(--line);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--ink);
  font-size: 1rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 78px 40px;
}

.section-heading {
  max-width: 1120px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.45rem;
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.feature-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.link-card,
.paper-panel,
.terminal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--copper);
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-card p,
.link-card p,
.story-card p,
.install-copy p,
.process-list p,
.citation p {
  color: var(--muted);
}

.stories {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f3f7f8;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
}

.story-card {
  display: grid;
  min-height: 250px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.story-card:hover {
  border-color: rgba(11, 79, 179, 0.42);
  border-left-color: var(--blue);
  box-shadow: 0 16px 34px rgba(20, 32, 48, 0.11);
  transform: translateY(-1px);
}

.story-card span {
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-card h3 {
  margin-bottom: 12px;
  font-size: 1.36rem;
}

.story-card p {
  margin-bottom: 0;
}

.stack {
  background: var(--white);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stack-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
}

.stack-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stack-panel p {
  color: var(--muted);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.logo-tile:hover {
  border-color: rgba(11, 79, 179, 0.32);
  box-shadow: 0 10px 24px rgba(20, 32, 48, 0.1);
  transform: translateY(-1px);
}

.logo-tile:focus-visible {
  outline: 3px solid rgba(0, 160, 176, 0.28);
  outline-offset: 3px;
}

.logo-tile.wide {
  width: 100%;
}

.logo-tile img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.logo-tile.brand-logo {
  min-width: 116px;
  justify-content: center;
}

.logo-tile.brand-logo img {
  width: auto;
  max-width: 104px;
  height: 30px;
}

.logo-tile.lispworks-logo {
  min-width: 146px;
  justify-content: flex-start;
}

.logo-tile.sbcl-logo img {
  image-rendering: pixelated;
}

.logo-tile.apptainer-logo img {
  width: 28px;
  height: 28px;
}

.logo-tile.common-lisp-logo img {
  width: 29px;
  height: 29px;
}

.logo-tile.lispworks-logo img {
  width: 30px;
  height: 30px;
}

.logo-tile strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.logo-tile.windows-wsl-logo {
  min-width: 154px;
}

.support-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 36px;
  align-items: center;
  background: #eef4f3;
}

.install-copy {
  max-width: 680px;
}

.terminal {
  overflow: hidden;
  background: #101820;
  color: #eaf2f1;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #182332;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ca7657;
}

.terminal-bar span:nth-child(2) {
  background: #d8af61;
}

.terminal-bar span:nth-child(3) {
  background: #65a986;
}

pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  line-height: 1.9;
}

.muted,
.prompt {
  color: #8ab8b5;
}

.prompt {
  display: inline-block;
  margin-right: 0.75ch;
  user-select: none;
}

.hub {
  background: var(--paper);
}

.process-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.process-list li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.links {
  background: var(--white);
}

.link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.link-card {
  display: flex;
  min-height: 222px;
  flex-direction: column;
  padding: 22px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  border-color: rgba(11, 79, 179, 0.42);
}

.link-card span {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.link-card strong {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.link-card p {
  margin-bottom: 0;
}

.paper {
  background: #f4efe8;
}

.paper-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 1120px;
  padding: 30px;
}

.citation {
  padding-left: 24px;
  border-left: 4px solid var(--copper);
}

.citation a {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.citation a:hover,
.citation a:focus-visible {
  text-decoration: underline;
}

.citation-authors {
  margin-bottom: 10px;
}

.citation-authors sup {
  color: var(--copper-dark);
  font-weight: 950;
}

.citation-affiliation,
.citation-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.citation-affiliation {
  margin-bottom: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.35fr) minmax(0, 1.55fr);
  gap: 28px;
  align-items: start;
  padding: 36px 40px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.04rem;
}

.footer-brand p {
  margin: 0;
  color: #dce4ef;
}

.footer-column {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  align-items: center;
  align-content: start;
}

.footer-column h2 {
  flex: 0 0 100%;
  margin: 0 0 4px;
  color: #9cc5c2;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  display: inline-flex;
  align-items: center;
  color: #dce4ef;
  font-size: 0.94rem;
  line-height: 1.42;
}

.footer-column a {
  color: var(--white);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(220, 228, 239, 0.16);
  text-align: center;
}

.footer-meta a {
  color: #dce4ef;
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.not-found-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 68vh;
  align-items: center;
  padding: 96px 40px;
  overflow: hidden;
  background: var(--white);
}

.not-found-page::before {
  content: "";
  position: absolute;
  right: -14vw;
  bottom: -20vw;
  z-index: -1;
  width: min(76vw, 900px);
  aspect-ratio: 4291 / 3392;
  background: url("taffish-logo.webp") center / contain no-repeat;
  opacity: 0.1;
}

.not-found-copy {
  width: min(100%, 860px);
}

.not-found-code {
  margin-bottom: 10px;
  color: var(--copper-dark);
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.article-header .eyebrow {
  color: var(--teal);
}

.article-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 40px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.sidebar-back-link {
  justify-content: center;
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 32, 48, 0.06);
  text-decoration: none;
}

.sidebar-back-link:hover {
  border-color: rgba(11, 79, 179, 0.28);
  color: var(--blue);
}

.article-header {
  max-width: 1120px;
  margin: 0 0 42px;
  text-align: left;
}

.article-header h1 {
  margin-right: 0;
  margin-left: 0;
}

.article-header p {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.article-header time {
  color: var(--copper-dark);
  font-weight: 800;
}

.article-header .article-meta {
  max-width: 680px;
  margin-top: 18px;
  color: var(--copper-dark);
  font-size: 0.94rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.article-content {
  min-width: 0;
  max-width: 900px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
}

.article-content h1 {
  display: none;
}

.article-content h2 {
  margin-top: 34px;
  font-size: 1.72rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 26px;
  font-size: 1.22rem;
}

.article-content p,
.article-content li {
  color: #3c4654;
}

.article-content a {
  color: var(--blue-dark);
  font-weight: 750;
  text-underline-offset: 3px;
}

.article-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #edf2f7;
  color: var(--copper-dark);
}

.article-content pre {
  max-width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  background: #101820;
  color: #eaf2f1;
}

.history-page {
  max-width: 1240px;
}

.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 28px;
  align-items: start;
}

.history-hero h1 {
  max-width: none;
}

.history-hero-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f5 100%);
  box-shadow: var(--shadow);
}

.history-hero-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.history-hero-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.history-hero-card div {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(39, 122, 120, 0.2);
}

.history-hero-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.history-hero-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.history-overview,
.history-archive,
.history-diagrams {
  margin-bottom: 48px;
}

.history-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
  list-style: none;
  overflow: hidden;
}

.history-rail li {
  min-height: 245px;
  padding: 22px;
}

.history-rail li + li {
  border-left: 1px solid var(--line);
}

.history-rail span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--copper-dark);
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.history-rail strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.28;
}

.history-rail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.history-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
}

.history-figure {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
}

.history-figure.compact {
  align-items: center;
  text-align: left;
}

.biohub-logo-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d6dee9;
  border-radius: 8px;
  background: #ffffff;
}

.biohub-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-image-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e6ebf4;
  border-radius: 8px;
  background: #ffffff;
}

.history-image-scroll img {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}

.history-image-scroll img[hidden] {
  display: none !important;
}

.history-figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

.biohub-model {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.model-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f6;
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
}

.model-row.hub-row {
  background: #fff3c9;
}

.model-kicker {
  color: var(--copper-dark);
  font-weight: 950;
}

.model-flow {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.16;
}

.model-chip.dark {
  background: var(--ink);
  color: var(--white);
}

.model-chip.blue {
  background: #78aee9;
  color: #10223c;
}

.model-chip.green {
  background: #cfe4d4;
  color: #1f4936;
}

.model-chip.pink {
  background: #efc4d5;
  color: #4f2735;
}

.model-arrow,
.model-plus {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.model-row p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.paper-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.paper-figure .history-image-scroll img {
  min-width: 0;
}

.history-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.history-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.history-sidebar-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.08);
}

.history-sidebar-card h2 {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.history-sidebar-card a {
  color: var(--blue-dark);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.history-sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-content.history-article {
  max-width: none;
  padding: 40px;
}

.history-article section {
  scroll-margin-top: 104px;
}

.history-article section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.history-article h2 {
  margin-top: 0;
  color: var(--blue-dark);
  font-size: 1.84rem;
}

.history-article p {
  font-size: 1.03rem;
}

.history-article pre {
  padding: 0;
  overflow: hidden;
}

.history-article pre code {
  display: block;
  padding: 20px 22px;
  overflow-x: auto;
  background: transparent;
  color: #eaf2f1;
}

.history-stage-table {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.history-stage-table div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 18px;
  background: #fbfcfd;
}

.history-stage-table div + div {
  border-top: 1px solid var(--line);
}

.history-stage-table strong {
  color: var(--copper-dark);
  font-weight: 950;
}

.history-stage-table span {
  color: #3c4654;
}

.history-maintenance-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.personal-story-page {
  max-width: 1240px;
}

.personal-story-hero {
  max-width: 980px;
}

.story-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.story-layout > * {
  min-width: 0;
}

.story-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.story-sidebar-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 12px 30px rgba(20, 32, 48, 0.06);
}

.story-sidebar-card h2 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 1rem;
}

.story-sidebar-card a {
  color: #3c4654;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.story-sidebar-card a:hover {
  color: var(--blue);
}

.article-content.story-article {
  max-width: none;
  padding: 40px;
}

.story-article section {
  scroll-margin-top: 104px;
}

.story-article section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.story-article h2 {
  margin-top: 0;
  color: var(--blue-dark);
  font-size: 1.78rem;
}

.story-article p {
  font-size: 1.03rem;
}

.story-article pre {
  padding: 0;
  overflow: hidden;
}

.story-article pre code {
  display: block;
  padding: 20px 22px;
  overflow-x: auto;
  background: transparent;
  color: #eaf2f1;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .feature-grid,
  .stack-grid,
  .install,
  .paper-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .history-hero,
  .history-archive-grid,
  .history-layout,
  .story-layout,
  .paper-figure-grid {
    grid-template-columns: 1fr;
  }

  .history-sidebar,
  .story-sidebar {
    position: static;
  }

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

  .history-rail li + li {
    border-left: 0;
  }

  .history-rail li {
    border-top: 1px solid var(--line);
  }

  .history-rail li:nth-child(-n + 2) {
    border-top: 0;
  }

  .history-rail li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 18px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero,
  .section,
  .not-found-page,
  .article-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-mark {
    right: -28vw;
    bottom: -8vw;
    width: 110vw;
  }

  .not-found-page::before {
    right: -34vw;
    bottom: -12vw;
    width: 120vw;
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .link-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .stack-panel {
    min-height: auto;
  }

  .logo-tile {
    flex: 1 1 130px;
  }

  .process-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .paper-panel {
    padding: 22px;
  }

  .article-content {
    padding: 22px;
  }

  .article-content.history-article {
    padding: 24px;
  }

  .article-content.story-article {
    padding: 24px;
  }

  .history-hero-card {
    padding: 20px;
  }

  .history-rail {
    grid-template-columns: 1fr;
  }

  .history-rail li {
    min-height: auto;
    border-left: 0;
  }

  .history-rail li:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .history-rail li:first-child {
    border-top: 0;
  }

  .history-rail li:nth-child(even) {
    border-left: 0;
  }

  .history-rail span {
    margin-bottom: 22px;
  }

  .history-stage-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .biohub-logo-frame {
    min-height: 240px;
  }

  .model-row {
    grid-template-columns: 1fr;
  }

  .model-row p {
    grid-column: 1;
  }

  .model-flow {
    align-items: stretch;
  }

  .model-chip {
    flex: 1 1 120px;
  }

  .citation {
    padding-left: 16px;
  }

  .site-footer {
    gap: 26px;
    padding: 28px 18px;
  }
}
