@font-face {
  font-family: Inter;
  src: url("fonts/Inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1f3f5;
  --ink: #212529;
  --muted: #626b73;
  --line: #dee2e6;
  --terminal-text: #f8f9fa;
  --terminal-muted: #adb5bd;
  --pink: #f45b69;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #f7b9c0; color: var(--ink); }

.page {
  width: min(100%, 1192px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 48px;
  display: grid;
  place-items: center;
}

main {
  width: min(100%, 872px);
  align-self: center;
  justify-self: center;
  padding-block: 48px;
}

h1 {
  margin: 0 0 48px -5px;
  font-size: clamp(70px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .98;
}

.step {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.command-panel {
  display: flex;
  min-width: 0;
  padding: 8px;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
}

.command-line {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
  padding: 20px 16px;
  color: var(--terminal-text);
  font-family: "Plex Mono", monospace;
  font-size: 15px;
  line-height: 1.8;
}

.prompt { color: var(--terminal-muted); user-select: none; }

code {
  font: inherit;
  overflow-wrap: anywhere;
  white-space: normal;
}

#copy-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-width: 114px;
  min-height: 52px;
  padding: 16px;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: "Plex Mono", monospace;
  font-size: 12px;
  transition: background 150ms ease, transform 150ms ease;
}

#copy-command:hover { background: #fff; }
#copy-command:active { transform: translateY(1px); }
#copy-command:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
#copy-command svg { width: 18px; height: 18px; }
.check-icon { display: none; }
#copy-command[data-state="copied"] .copy-icon { display: none; }
#copy-command[data-state="copied"] .check-icon { display: block; }

.next-step { margin: 20px 0 0; }
.copy-status { min-height: 20px; margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.copy-status[data-error="true"] { color: #a42d3c; }

@media (max-width: 700px) {
  .page { padding: 24px; }
  main { padding-block: 48px; }
  h1 { margin-bottom: 40px; }
  .command-panel { flex-direction: column; gap: 4px; }
  .command-line { padding: 16px 12px; align-items: baseline; font-size: 14px; gap: 12px; }
  #copy-command { min-height: 48px; }
}

@media (max-width: 360px) {
  .page { padding-inline: 18px; }
  .command-line { padding-inline: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  #copy-command { transition: none; }
}
