/* ==========================================================================
   ccmgr.css — ccmgr project page.
   Depends on base.css for tokens, reset, and typographic defaults.
   ========================================================================== */

:root {
  --ink: #123c33;
  --deep: #0d2721;
  --terminal: #071b17;
  --cream: #f8f8f0;
  --paper: #eef2e8;

  --lime: #c9f25b;
  --yellow: #f2ca3a;
  --mint: #7bd7b3;
  --blue: #73a7ff;
  --red: #ff765f;

  --muted: #4e635b;
  --accent-text: #1d6d55;
  --line: rgba(18, 60, 51, .18);
  --line-strong: rgba(18, 60, 51, .32);
  --line-invert: rgba(255, 255, 255, .16);

  /* Copy colours for the dark terminal-green surfaces. */
  --on-dark: #eef5ec;
  --on-dark-muted: #a9bcb4;
  --on-dark-faint: #90a59d;

  --focus-ring: var(--yellow);
  --skip-bg: var(--deep);
  --skip-fg: var(--cream);
  --skip-accent: var(--lime);
}

body {
  color: var(--ink);
  background: var(--cream);
}

::selection {
  color: var(--deep);
  background: var(--lime);
}

html {
  scroll-padding-top: 6rem;
}

/* ---- Navigation --------------------------------------------------------- */

.cc-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 4.75rem;
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-6);
  border-bottom: 1px solid rgba(201, 242, 91, .22);
  color: var(--on-dark);
  background: rgba(13, 39, 33, .96);
  backdrop-filter: blur(14px);
}

.cc-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font: 700 var(--text-xl) var(--font-mono);
  letter-spacing: -.04em;
}

.prompt-mark {
  width: 2.3125rem;
  height: 2.3125rem;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(201, 242, 91, .45);
  color: var(--lime);
  background: #09221b;
  box-shadow: 3px 3px 0 rgba(201, 242, 91, .15);
  font: 500 var(--text-md) var(--font-mono);
}

.prompt-mark i,
.prompt-mark b {
  font-style: normal;
  font-weight: 500;
}

.cc-nav > nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.cc-nav > nav a,
.back-link,
.cc-footer p a {
  color: var(--on-dark-muted);
  font: 500 var(--text-2xs) var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.cc-nav > nav a:hover,
.back-link:hover,
.cc-footer p a:hover {
  color: var(--lime);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.github-link {
  min-height: var(--control-h);
  padding: 0 var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--deep);
  background: var(--lime);
  font-size: var(--text-2xs);
  font-weight: 800;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.github-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--lift) var(--yellow);
}

.cc-nav .language-switcher {
  border-color: var(--line-invert);
  background: rgba(0, 0, 0, .14);
}

.cc-nav .language-switcher button {
  color: var(--on-dark-muted);
}

.cc-nav .language-switcher button[aria-pressed="true"] {
  color: var(--deep);
  background: var(--lime);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: var(--s-9) var(--s-10);
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.625rem);
  overflow: clip;
  background:
    linear-gradient(rgba(18, 60, 51, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 60, 51, .05) 1px, transparent 1px),
    var(--cream);
  background-size: 36px 36px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 20.625rem;
  height: 20.625rem;
  right: -8.75rem;
  top: 4.375rem;
  border: 3.5rem solid rgba(201, 242, 91, .5);
  border-radius: 50%;
}

.hero-copy,
.terminal-stage {
  position: relative;
  z-index: 1;
}

.release-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  color: var(--accent-text);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.release-line i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yellow);
}

.eyebrow,
.section-label,
.mini-label {
  margin: var(--s-6) 0 var(--s-3);
  color: var(--accent-text);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: var(--tracking-label);
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: -.04em;
}

.hero h1 {
  max-width: 14ch;
  font-size: var(--display-xl);
}

.hero h1 em {
  color: var(--accent-text);
  font-style: normal;
}

.hero-lead {
  max-width: 52ch;
  margin: var(--s-5) 0 0;
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.primary-button,
.source-button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--text-sm);
  font-weight: 800;
}

.primary-button {
  padding: 0 var(--s-5);
  color: var(--cream);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--lime);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.primary-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--yellow);
}

.button-prompt {
  color: var(--lime);
  font: 500 var(--text-md) var(--font-mono);
}

.source-button {
  padding: 0 var(--s-2);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur-fast) var(--ease);
}

.source-button:hover {
  border-bottom-color: var(--ink);
}

.hero-facts {
  max-width: 43rem;
  margin: var(--s-8) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  min-width: 0;
  padding: var(--s-4) var(--s-3) var(--s-4) 0;
}

.hero-facts div + div {
  padding-left: var(--s-4);
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin-bottom: var(--s-2);
  color: var(--muted);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .09em;
}

.hero-facts dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font: 500 var(--text-2xs) var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Terminal illustration ---------------------------------------------- */

.terminal-stage {
  padding: var(--s-5) 0 var(--s-9) var(--s-5);
}

.terminal-shadow {
  position: absolute;
  inset: 3.125rem 1.4375rem 2.6875rem 3.125rem;
  border: 1px solid var(--line);
  background: var(--yellow);
  transform: rotate(2deg);
}

.terminal {
  position: relative;
  min-height: 32rem;
  padding: 0 var(--s-5) var(--s-4);
  border: 1px solid #22473d;
  color: #d7e5df;
  background: var(--terminal);
  box-shadow: 0 28px 70px rgba(13, 39, 33, .25);
  font: 400 var(--text-2xs) / var(--leading-normal) var(--font-mono);
}

.terminal-bar {
  min-height: 2.625rem;
  margin: 0 calc(var(--s-5) * -1) var(--s-5);
  padding: 0 var(--s-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid #20453b;
  color: var(--on-dark-muted);
  background: #102d25;
  font-size: var(--text-3xs);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #44645a;
}

.window-dots i:first-child { background: var(--red); }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:nth-child(3) { background: var(--mint); }

.terminal-version {
  justify-self: end;
  color: var(--mint);
}

.terminal-command {
  min-height: 2.375rem;
  color: #dce8e3;
}

.terminal-command > span:first-child {
  margin-right: var(--s-2);
  color: var(--blue);
}

.terminal-command b {
  margin-right: var(--s-2);
  color: var(--lime);
  font-weight: 500;
}

.cursor {
  color: var(--lime);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.tui-rule {
  margin: var(--s-2) 0;
  border-top: 1px solid #436057;
}

.tui-heading {
  padding: 0 var(--s-1);
  color: var(--blue);
  font-weight: 500;
}

.tui-search {
  min-height: 2.9375rem;
  margin-top: var(--s-4);
  padding: var(--s-3);
  border: 1px solid #436057;
  color: #dce8e3;
}

.tui-search > span:first-child {
  margin-right: var(--s-2);
  color: var(--on-dark-faint);
}

.session-list {
  min-height: 17.375rem;
  margin-top: var(--s-3);
  padding: 0 var(--s-1);
}

.session-row {
  min-height: 4.625rem;
  padding: var(--s-3) var(--s-2);
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  align-items: center;
}

.session-row b {
  color: var(--on-dark-faint);
}

.session-row strong,
.session-row span {
  display: block;
}

.session-row strong {
  color: #d9e5e0;
  font-weight: 400;
}

.session-row span {
  margin-top: var(--s-1);
  overflow: hidden;
  color: #93a8a0;
  font-size: var(--text-3xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-row.selected b,
.session-row.selected strong {
  color: var(--blue);
  font-weight: 500;
}

/* Truncated like a real terminal that has run out of columns — with an
   ellipsis, so it reads as clipped rather than broken. */
.terminal-help {
  padding: var(--s-3) var(--s-1) 0;
  overflow: hidden;
  color: #93a8a0;
  font-size: var(--text-3xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-note {
  position: absolute;
  right: -0.8125rem;
  bottom: 0;
  width: 15.3125rem;
  padding: var(--s-3) var(--s-4);
  display: grid;
  grid-template-columns: 1.5625rem minmax(0, 1fr);
  gap: var(--s-3);
  color: var(--deep);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
}

.terminal-note span {
  font: 500 var(--text-3xs) var(--font-mono);
}

.terminal-note p {
  margin: 0;
  font-size: var(--text-3xs);
  font-weight: 700;
  line-height: var(--leading-snug);
}

/* ---- Section chrome ----------------------------------------------------- */

.install-section,
.internals-section,
.keys-section {
  padding-block: var(--section-y);
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
}

.install-section {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: var(--s-7);
}

.section-heading .section-label {
  margin-top: 0;
}

.section-heading h2 {
  font-size: var(--display-md);
}

.section-heading > p {
  max-width: 44ch;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* ---- Install ------------------------------------------------------------ */

.install-grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.install-card {
  min-width: 0;
  padding: var(--s-5);
  border: 1px solid var(--line);
  background: rgba(248, 248, 240, .78);
}

.mirror-card {
  grid-column: 1 / -1;
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--lime);
}

.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-5);
}

.card-head span {
  grid-column: 1 / -1;
  color: var(--accent-text);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .1em;
}

.card-head strong {
  font-size: var(--text-xl);
}

.card-head small {
  color: var(--muted);
  font: 400 var(--text-3xs) var(--font-mono);
}

.command-block {
  min-width: 0;
  min-height: 4.5rem;
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  color: #dce9e3;
  background: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(201, 242, 91, .13);
}

.command-block.compact {
  min-height: 4rem;
}

.command-prompt {
  color: var(--lime);
  font: 500 var(--text-xs) var(--font-mono);
}

.command-block code {
  overflow-x: auto;
  font-size: var(--text-2xs);
  white-space: nowrap;
  scrollbar-width: thin;
}

.copy-button {
  min-width: 4.0625rem;
  min-height: 2.125rem;
  border: 1px solid rgba(201, 242, 91, .45);
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .08em;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.copy-button:hover {
  color: var(--deep);
  background: var(--lime);
}

.install-card > p {
  margin: var(--s-5) 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.install-card > p code,
.npm-note code {
  padding: 2px 4px;
  color: var(--accent-text);
  background: rgba(123, 215, 179, .18);
  font-size: .92em;
}

.install-links {
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}

.install-links a {
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--text-2xs);
  font-weight: 700;
  transition: border-color var(--dur-fast) var(--ease);
}

.install-links a:hover {
  border-bottom-color: var(--ink);
}

.compatibility-row {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.compatibility-row span {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(248, 248, 240, .55);
  font: 400 var(--text-3xs) var(--font-mono);
}

/* ---- Features ----------------------------------------------------------- */

.features-section {
  padding-block: var(--section-y);
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  color: var(--on-dark);
  background: var(--deep);
}

.section-heading.inverted .section-label {
  color: var(--lime);
}

.section-heading.inverted > p {
  color: var(--on-dark-muted);
}

.feature-grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-invert);
  border-left: 1px solid var(--line-invert);
}

.feature-grid article {
  position: relative;
  min-height: 20rem;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-invert);
  border-bottom: 1px solid var(--line-invert);
  transition: background var(--dur) var(--ease);
}

.feature-grid article:hover {
  background: rgba(201, 242, 91, .06);
}

.feature-index {
  color: var(--on-dark-faint);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .1em;
}

/* Glyphs sit a fixed distance below the index so they line up across a row;
   only the title and body below them are bottom-aligned. */
.feature-glyph {
  width: 3.5rem;
  height: 3.5rem;
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 242, 91, .35);
  color: var(--lime);
  background: rgba(201, 242, 91, .06);
  font: 500 var(--text-xl) var(--font-mono);
}

.feature-grid h3 {
  margin: auto 0 var(--s-2);
  padding-top: var(--s-5);
  font-size: var(--text-xl);
}

.feature-grid p {
  margin: 0;
  max-width: 40ch;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.feature-grid code {
  color: var(--mint);
  font-size: .9em;
}

/* ---- Internals ---------------------------------------------------------- */

.internals-section {
  background: var(--cream);
}

.data-pipeline {
  margin-top: var(--s-7);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: start;
  gap: var(--s-5);
  color: #dce8e3;
  background: var(--terminal);
}

.data-pipeline > div {
  min-width: 0;
}

.data-pipeline > div > span,
.data-pipeline > div > strong,
.data-pipeline > div > code {
  display: block;
}

.data-pipeline > div > span {
  color: var(--on-dark-faint);
  font: 500 var(--text-3xs) var(--font-mono);
}

.data-pipeline > div > strong {
  margin-top: var(--s-5);
  color: var(--lime);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .1em;
}

.data-pipeline > div > code {
  max-width: 16.25rem;
  margin-top: var(--s-2);
  overflow: hidden;
  color: var(--blue);
  font-size: var(--text-2xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-pipeline > div > p {
  max-width: 32ch;
  margin: var(--s-3) 0 0;
  color: var(--on-dark-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.data-pipeline > i {
  align-self: center;
  color: #55766a;
  font: 400 var(--display-2xs) var(--font-mono);
  font-style: normal;
}

.internals-grid {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.internals-grid > div {
  min-height: 11.5rem;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.internals-grid span {
  display: block;
  margin-bottom: auto;
  padding-bottom: var(--s-6);
  color: var(--accent-text);
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .1em;
}

.internals-grid strong {
  display: block;
  font-size: var(--text-xl);
}

.internals-grid p {
  margin: var(--s-2) 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ---- Keybindings -------------------------------------------------------- */

.keys-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.compact-heading {
  align-items: center;
}

.keys-layout {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-4);
}

.key-table,
.command-reference {
  border: 1px solid var(--line);
  background: var(--cream);
}

.key-row {
  min-height: 3.75rem;
  padding: var(--s-3) var(--s-4);
  display: grid;
  grid-template-columns: minmax(9rem, .45fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}

.key-row:last-child {
  border-bottom: 0;
}

.key-header {
  min-height: 2.6875rem;
  color: var(--accent-text);
  background: #e5ebe0;
  font: 500 var(--text-3xs) var(--font-mono);
  letter-spacing: .09em;
}

kbd {
  min-width: 1.6875rem;
  padding: var(--s-1) var(--s-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7c4bd;
  border-bottom-width: 3px;
  border-radius: 4px;
  color: var(--ink);
  background: #fffef8;
  font-size: var(--text-3xs);
}

.command-reference {
  padding: var(--s-5);
}

.command-reference .mini-label {
  margin-top: 0;
}

.command-reference > div {
  min-height: 4.375rem;
  padding: var(--s-2) 0;
  display: grid;
  grid-template-columns: minmax(7rem, .5fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.command-reference > div code {
  color: var(--accent-text);
  font-size: var(--text-2xs);
}

.command-reference > div span,
.npm-note {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.npm-note {
  margin: var(--s-5) 0 0;
}

/* ---- Closing call to action --------------------------------------------- */

.cta-section {
  position: relative;
  min-height: 36rem;
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: clip;
  text-align: center;
  color: var(--on-dark);
  background: var(--deep);
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 242, 91, .17);
  border-radius: 50%;
}

.cta-section::before {
  width: 32.5rem;
  height: 32.5rem;
}

.cta-section::after {
  width: 45rem;
  height: 45rem;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-code {
  margin-bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--on-dark-faint);
  font: 400 var(--text-2xs) var(--font-mono);
}

.cta-code span { color: var(--blue); }
.cta-code b { color: var(--lime); font-weight: 400; }
.cta-code i { color: var(--yellow); font-style: normal; }

.cta-section .section-label {
  margin: 0 0 var(--s-4);
  color: var(--lime);
}

.cta-section h2 {
  font-size: var(--display-lg);
}

.cta-section > p:not(.section-label) {
  max-width: 48ch;
  margin: var(--s-5) 0 0;
  color: var(--on-dark-muted);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.hero-actions.centered {
  justify-content: center;
}

.primary-button.light {
  color: var(--deep);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--yellow);
}

.primary-button.light .button-prompt {
  color: var(--deep);
}

.light-link {
  color: var(--on-dark);
  border-bottom-color: var(--line-invert);
}

.light-link:hover {
  border-bottom-color: var(--lime);
}

/* ---- Footer ------------------------------------------------------------- */

.cc-footer {
  min-height: 6.5rem;
  padding-block: var(--s-5);
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
  color: var(--on-dark);
  background: var(--terminal);
}

.cc-footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

.footer-meta {
  justify-self: end;
  color: var(--on-dark-faint);
  font: 400 var(--text-3xs) var(--font-mono);
  letter-spacing: .08em;
  text-align: right;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1120px) {
  .cc-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cc-nav > nav {
    display: none;
  }

  .nav-actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--s-8);
  }

  .hero-copy {
    max-width: 48.75rem;
  }

  .terminal-stage {
    width: min(51.25rem, 100%);
    margin-inline: auto;
  }

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

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 5rem;
  }

  .cc-nav {
    min-height: 4.25rem;
    gap: var(--s-3);
  }

  .cc-brand {
    font-size: var(--text-base);
  }

  .prompt-mark {
    width: 2rem;
    height: 2rem;
  }

  .back-link {
    display: none;
  }

  .nav-actions {
    gap: var(--s-2);
  }

  .github-link {
    min-height: 2.125rem;
    padding: 0 var(--s-3);
  }

  .hero {
    padding-top: var(--s-7);
    padding-bottom: var(--s-9);
    gap: var(--s-7);
    background-size: 26px 26px;
  }

  /* At this width the ring lands behind the headline instead of beside it. */
  .hero::before {
    display: none;
  }

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

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

  .terminal-stage {
    padding: var(--s-3) 0 var(--s-9);
  }

  .terminal-shadow {
    inset: 2.125rem 0.5rem 2.625rem 1.1875rem;
  }

  .terminal {
    min-height: 28.5rem;
    padding: 0 var(--s-3) var(--s-3);
  }

  .terminal-bar {
    margin-inline: calc(var(--s-3) * -1);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terminal-bar > span:nth-child(2) {
    display: none;
  }

  .session-list {
    min-height: 15.625rem;
  }

  .session-row {
    min-height: 3.875rem;
  }

  .terminal-note {
    right: 0.5625rem;
    width: min(15.3125rem, 78vw);
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: var(--display-sm);
  }

  .section-heading > p {
    margin-top: var(--s-5);
  }

  .install-grid,
  .feature-grid,
  .internals-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mirror-card {
    grid-column: auto;
  }

  .install-card {
    padding: var(--s-4);
  }

  .command-block {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .copy-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .feature-grid article {
    min-height: 17rem;
  }

  .data-pipeline {
    padding: var(--s-5);
    grid-template-columns: minmax(0, 1fr);
  }

  .data-pipeline > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .data-pipeline > div > p,
  .data-pipeline > div > code {
    max-width: none;
  }

  .key-row {
    grid-template-columns: minmax(7rem, .55fr) minmax(0, 1fr);
    padding-inline: var(--s-3);
  }

  .command-reference {
    padding: var(--s-4);
  }

  .command-reference > div {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-1);
    padding: var(--s-3) 0;
  }

  .cta-section {
    min-height: 32rem;
  }

  .cc-footer {
    padding-inline: var(--gutter);
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cc-footer p {
    display: none;
  }
}
