/* THE SETUP site. The Voyager Command design system carried to the web:
   ink and cream, champagne as the precious metal, hairline rules, Distinct
   Style Sans for display, Hurme Geometric Sans for the work. One stylesheet,
   three pages: the Starter Prompt, the Pack, the Welcome. */

@font-face {
  font-family: 'Distinct Style Sans';
  src: url('/fonts/distinct-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Distinct Style Sans';
  src: url('/fonts/distinct-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 1';
  src: url('/fonts/hurme-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hurme Geometric Sans 1';
  src: url('/fonts/hurme-light-oblique.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --surface: #141210;
  --surface-2: #1a1814;
  --line: #2a2620;
  --line-input: rgba(248, 246, 243, 0.38);
  --cream: #f8f6f3;
  --cream-72: rgba(248, 246, 243, 0.72);
  --cream-55: rgba(248, 246, 243, 0.55);
  --cream-35: rgba(248, 246, 243, 0.35);
  --champagne: #cdaa8b;
  --champagne-dim: rgba(205, 170, 139, 0.35);
  --display: 'Distinct Style Sans', Georgia, serif;
  --sans: 'Hurme Geometric Sans 1', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 720px; margin: 0 auto; padding: 52px 22px 90px; }

/* ---------- the brand line ---------- */

.brandline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 54px;
}
.brand-v {
  font-family: var(--display);
  font-weight: 300;
  font-size: 24px;
  color: var(--cream);
}
.brand-name {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-55);
}

/* ---------- headers ---------- */

.kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--champagne);
}

h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 16px 0 14px;
  text-wrap: balance;
}

.sub {
  color: var(--cream-72);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 58ch;
}
.sub.quiet { font-size: 14px; color: var(--cream-55); }

.chapter { margin-top: 92px; }

.chapnum {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-35);
}

h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 4.6vw, 32px);
  line-height: 1.15;
  margin: 12px 0 8px;
  text-wrap: balance;
}

.chapline {
  color: var(--cream-55);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 58ch;
}

h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 38px 0 14px;
}

p {
  color: var(--cream-72);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 62ch;
}
p b, li b { color: var(--cream); font-weight: 300; }

/* Hurme has no true bold loaded; emphasis is cream against the muted body,
   which is the app's own hierarchy language. */

a.plain {
  color: var(--champagne);
  text-decoration: none;
  border-bottom: 1px solid var(--champagne-dim);
  transition: border-color 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a.plain:hover { border-bottom-color: var(--champagne); }
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  line-height: 1.5;
  color: var(--cream);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ---------- numbered steps, the app's snum language ---------- */

ol { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 2px 14px 46px;
  color: var(--cream-72);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
  border-bottom: 1px solid var(--line);
}
ol li:first-child { border-top: 1px solid var(--line); }
ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 17px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--champagne);
  font-variant-numeric: tabular-nums;
}

ul.dashes { list-style: none; margin: 0 0 18px; padding: 0; }
ul.dashes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  color: var(--cream-72);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
}
ul.dashes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--champagne);
}

/* ---------- panels ---------- */

.note {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  padding: 16px 18px;
  margin: 26px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-55);
  max-width: 100%;
}
.note b { color: var(--cream-72); font-weight: 300; }

.note-c {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  padding: 26px 28px 28px;
  margin: 42px 0 0;
  max-width: 100%;
}
.note-c h3 { margin: 0 0 14px; }
.note-c p { font-size: 15px; color: var(--cream-72); margin-bottom: 0; max-width: 58ch; }

/* ---------- the prompt box ---------- */

.promptbox {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  margin: 20px 0 8px;
}
.promptbox pre {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.66;
  color: var(--cream-72);
  padding: 22px 22px 24px;
  overflow-x: auto;
}
.copybtn {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
  background: linear-gradient(var(--surface) 55%, transparent);
}
.copybtn button {
  min-height: 44px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--champagne);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 20px;
  transition: transform 0.16s var(--ease-out), opacity 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .copybtn button:hover { opacity: 0.92; }
}
.copybtn button:active { transform: scale(0.97); }

/* ---------- the contents block (pack) ---------- */

.contents {
  border-top: 1px solid var(--line);
  margin: 46px 0 0;
}
.contents a {
  display: flex;
  gap: 18px;
  align-items: baseline;
  min-height: 52px;
  padding: 15px 2px;
  color: var(--cream-72);
  text-decoration: none;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
  transition: color 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .contents a:hover { color: var(--cream); }
  .contents a:hover .n { color: var(--champagne); }
}
.contents a:active { color: var(--cream); }
.contents .n {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--champagne);
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.contents .t { font-family: var(--display); font-weight: 300; font-size: 17px; }
.contents .what {
  margin-left: auto;
  text-align: right;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-35);
  white-space: nowrap;
}

/* ---------- the download action ---------- */

.dl {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 10px 0 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--champagne);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 24px;
  text-decoration: none;
  transition: transform 0.16s var(--ease-out), opacity 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .dl:hover { opacity: 0.92; }
}
.dl:active { transform: scale(0.97); }

/* ---------- the file tree ---------- */

.tree {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--cream-55);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  padding: 20px 22px;
  margin: 18px 0;
  overflow-x: auto;
  white-space: pre;
}
.tree b { color: var(--cream); font-weight: 300; }

/* ---------- the journey (welcome) ---------- */

.progress { display: none; margin: 30px 0 8px; }
.pcountline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 12px;
  max-width: none;
  font-variant-numeric: tabular-nums;
}
.pbar { height: 2px; background: var(--line); }
.pfill { height: 100%; width: 0%; background: var(--champagne); }

.stage { margin-top: 40px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { margin: 0; padding: 0; max-width: 100%; border-bottom: 1px solid var(--line); }
.steps label {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 17px 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tick {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid var(--line-input);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
.tick:checked {
  background: var(--champagne) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.5' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E") center/13px 13px no-repeat;
  border-color: var(--champagne);
}
.tick:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.stext { display: block; min-width: 0; }
.snum {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--champagne);
  display: inline-block;
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}
.stitle {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  color: var(--cream);
  font-size: 17px;
  line-height: 1.4;
}
.sline {
  display: block;
  color: var(--cream-55);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 4px;
  padding-left: 32px;
  max-width: 56ch;
}
.tick:checked ~ .stext .stitle { color: var(--cream-55); }
.tick:checked ~ .stext .sline { color: var(--cream-35); }
.tick:checked ~ .stext .snum { color: var(--cream-35); }

/* ---------- the list, quiet capture ---------- */

.list-block {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  padding: 24px 26px 26px;
  margin: 44px 0 0;
}
.list-block h3 { margin: 0 0 10px; }
.list-block p { font-size: 14.5px; color: var(--cream-72); margin-bottom: 16px; max-width: 56ch; }
.list-row { display: flex; gap: 10px; flex-wrap: wrap; }
.list-row input[type="email"], .list-row input[type="text"] {
  flex: 1 1 240px;
  min-height: 46px;
  background: var(--ink);
  border: 1px solid var(--line-input);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  padding: 0 14px;
}
.list-row input[type="email"]::placeholder, .list-row input[type="text"]::placeholder { color: var(--cream-35); }
.list-row button {
  min-height: 46px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--champagne);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 22px;
  transition: transform 0.16s var(--ease-out), opacity 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .list-row button:hover { opacity: 0.92; }
}
.list-row button:active { transform: scale(0.97); }
.list-fine { font-size: 12px !important; color: var(--cream-55) !important; margin: 12px 0 0 !important; }
.list-done { font-size: 15px !important; color: var(--cream) !important; margin: 0 !important; }

/* ---------- footer ---------- */

footer {
  margin-top: 100px;
  color: var(--cream-55);
  font-size: 12.5px;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- motion, one orchestrated arrival ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .pfill { transition: width 0.35s var(--ease-out); }
  .stitle, .sline, .snum { transition: color 0.2s ease; }
  .tick { transition: background-color 0.2s ease, border-color 0.2s ease; }
  .arrive > * {
    opacity: 0;
    transform: translateY(8px);
    animation: arrive 0.5s var(--ease-out) forwards;
  }
  .arrive > *:nth-child(1) { animation-delay: 0ms; }
  .arrive > *:nth-child(2) { animation-delay: 60ms; }
  .arrive > *:nth-child(3) { animation-delay: 120ms; }
  .arrive > *:nth-child(4) { animation-delay: 180ms; }
  .arrive > *:nth-child(5) { animation-delay: 240ms; }
  .arrive > *:nth-child(n+6) { animation-delay: 300ms; }
  @keyframes arrive {
    to { opacity: 1; transform: translateY(0); }
  }
}
