:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-alt: #edf3f6;
  --surface-warm: #fbf7ee;
  --text: #17201d;
  --muted: #5c6864;
  --border: #d7e0dd;
  --accent: #16634f;
  --accent-strong: #0f4739;
  --blue: #285f8f;
  --amber: #9a5b13;
  --code-bg: #111816;
  --code-text: #eaf5ef;
  --shadow: 0 18px 50px rgba(24, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(40, 95, 143, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 247, 246, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

main {
  min-height: calc(100vh - 8rem);
}

.setup-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  width: min(1120px, calc(100vw - 2rem));
  min-height: calc(100vh - 4rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 1.5rem;
}

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

.eyebrow,
.step-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: 4.4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.16rem;
}

.outcome {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--text);
  font-size: 1rem;
}

.command-panel,
.command-card,
.side-note,
.status-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.command-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow);
}

.command-panel > *,
.command-card > * {
  min-width: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading .step-label {
  margin: 0;
}

.command-snippet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--code-bg);
  border-radius: 6px;
}

.command-snippet pre {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  scrollbar-width: thin;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

pre code {
  display: block;
  color: var(--code-text);
  line-height: 1.55;
  overflow-wrap: normal;
  white-space: pre;
  word-break: normal;
}

.copy-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0.55rem 0.55rem 0 0;
  color: var(--code-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
}

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

.copy-icon-button svg {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.copy-icon-button .check-icon {
  opacity: 0;
}

.copy-icon-button.is-copied .copy-icon {
  opacity: 0;
}

.copy-icon-button.is-copied .check-icon {
  opacity: 1;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-map {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}

.flow-map div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface-warm);
  border: 1px solid #eadcc4;
  border-radius: 8px;
}

.flow-number {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  font-weight: 800;
  background: var(--amber);
  border-radius: 50%;
}

.flow-map strong {
  font-size: 0.98rem;
}

.flow-map span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-band {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.content-band.alt {
  background: var(--surface-alt);
}

.section-heading,
.check-grid,
.two-column,
.status-panel {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.subsection-heading {
  margin-top: 1.75rem;
}

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

.check-grid article {
  min-height: 10rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.check-grid p,
.stacked-copy p,
.side-note p,
.status-panel p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.step-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 2.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.step-list.compact {
  background: var(--surface-warm);
  border-color: #eadcc4;
}

.step-list li {
  padding-left: 0.25rem;
  color: var(--text);
}

.side-note,
.command-card,
.status-panel {
  padding: 1.25rem;
}

.stacked-copy {
  display: grid;
  gap: 1rem;
}

.command-card {
  display: grid;
  gap: 1rem;
}

.status-panel {
  display: grid;
  gap: 0.75rem;
  border-left: 6px solid var(--blue);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .setup-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .setup-hero {
    min-height: auto;
  }

  .check-grid,
  .flow-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.86rem;
  }

  h1 {
    max-width: 10ch;
    font-size: 2.45rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.75rem;
  }

  .command-snippet pre {
    padding: 0.85rem;
  }

  code {
    font-size: 0.84rem;
  }
}
