:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-strong: #161c22;
  --text: #f4f7fb;
  --muted: #9ba6b2;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f5f5f0;
  --accent-soft: #d0d7df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.92em;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.hero {
  padding-bottom: 28px;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--accent-soft);
}

.lede,
.section-head p,
.detail,
.copy p,
.history-list,
.footer,
.link-row {
  color: var(--muted);
}

.lede {
  max-width: 42rem;
  font-size: 1.05rem;
}

.grid,
.history-columns,
.run-grid {
  display: grid;
  gap: 16px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 16px;
}

.card-primary {
  background: var(--panel-strong);
}

.size {
  margin-bottom: 8px;
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.size-secondary {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.history-list {
  padding-left: 18px;
  margin-bottom: 0;
}

.history-list li + li {
  margin-top: 12px;
}

.run-block {
  min-width: 0;
}

.command-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.command-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.history-size {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.history-meta {
  font-size: 0.92rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.link-row a,
.footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.footer {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
  display: flex;
  gap: 18px;
}

@media (max-width: 720px) {
  .page {
    padding-top: 48px;
  }

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

  .command-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    border-radius: 20px;
  }
}
