:root {
  --bg: #ffffff;
  --ink: #121212;
  --muted: #4a4a4a;
  --line: #e6e6e6;
  --code-bg: #f4f4f2;
  --link: #0b4f45;
  --focus: #0b4f45;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100%; }

::selection { background: #d7ece8; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.6rem;
}
.skip:focus { top: 0.75rem; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
}
nav { display: flex; gap: 1.1rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover { color: var(--ink); }

main {
  max-width: 42rem;
  width: 100%;
  padding: 3rem 1.5rem 4rem;
  margin: 0 auto;
}
h1 {
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}
h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 0.7rem;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42em;
  margin: 0 0 1.5rem;
}
p, li { max-width: 42em; }
a { color: var(--link); text-underline-offset: 3px; }

.hero-cmd {
  position: relative;
  margin: 0 0 2.5rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 0.9rem 4.5rem 0.9rem 1rem;
}
.copy {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.copy:hover { background: var(--link); }
.copy.is-done { background: var(--link); }

.split {
  margin: 0 0 1rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.split > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
dt { margin: 0; font-weight: 500; }
dd { margin: 0; color: var(--muted); }

ol { padding-left: 1.2rem; }
ol li { margin-bottom: 1.25rem; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
}
code {
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 0.9em;
}
p code, li code, dd code, dt code {
  background: var(--code-bg);
  padding: 0.05em 0.28em;
}

footer {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.6rem 1.5rem 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  h1 { font-size: 1.7rem; max-width: none; }
  .split > div { grid-template-columns: 1fr; gap: 0.25rem; }
  header { flex-wrap: wrap; }
}
