/* ==========================================================================
   peopleskills.dev — landing page
   Aesthetic: engineering dispatch / spec sheet. Warm dossier paper, a single
   signal-amber accent, monospace display type. Written for an agent reader.
   Self-contained: system fonts only, no external requests.
   ========================================================================== */

/* ---------- design tokens : light (default) ---------- */
:root {
  --paper:        #efece3;
  --paper-2:      #e8e4d8;
  --surface:      #faf8f2;
  --surface-2:    #f3efe5;
  --ink:          #1b1917;
  --ink-soft:     #423d36;
  --muted:        #756e62;
  --line:         #d8d1c1;
  --line-strong:  #c3bba7;
  --accent:       #bb4d1b;
  --accent-ink:   #9c3d12;   /* darker, for small text on paper */
  --accent-soft:  rgba(187, 77, 27, 0.10);
  --note:         #f4e2a8;   /* the human's sticky scrap */
  --note-ink:     #4a3f1f;
  --grid:         rgba(27, 25, 23, 0.045);
  --shadow:       28px 30px 60px -30px rgba(40, 30, 18, 0.30);
  --shadow-sm:    0 1px 0 rgba(255,255,255,0.5), 0 14px 30px -18px rgba(40,30,18,0.35);

  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, "Cascadia Code",
          "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  color-scheme: light;
}

/* ---------- design tokens : dark via system preference ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #131110;
    --paper-2:      #191614;
    --surface:      #1d1a17;
    --surface-2:    #232019;
    --ink:          #ece6da;
    --ink-soft:     #cdc6b7;
    --muted:        #9a9184;
    --line:         #2d2925;
    --line-strong:  #3b362d;
    --accent:       #e8813f;
    --accent-ink:   #f0a163;
    --accent-soft:  rgba(232, 129, 63, 0.14);
    --note:         #37301d;
    --note-ink:     #e9d9a7;
    --grid:         rgba(236, 230, 218, 0.05);
    --shadow:       28px 30px 70px -30px rgba(0, 0, 0, 0.7);
    --shadow-sm:    0 1px 0 rgba(255,255,255,0.03), 0 16px 34px -20px rgba(0,0,0,0.7);
    color-scheme: dark;
  }
}

/* ---------- explicit overrides (win over the media query) ---------- */
:root[data-theme="light"] {
  --paper:#efece3;--paper-2:#e8e4d8;--surface:#faf8f2;--surface-2:#f3efe5;
  --ink:#1b1917;--ink-soft:#423d36;--muted:#756e62;--line:#d8d1c1;--line-strong:#c3bba7;
  --accent:#bb4d1b;--accent-ink:#9c3d12;--accent-soft:rgba(187,77,27,0.10);
  --note:#f4e2a8;--note-ink:#4a3f1f;--grid:rgba(27,25,23,0.045);
  --shadow:28px 30px 60px -30px rgba(40,30,18,0.30);
  --shadow-sm:0 1px 0 rgba(255,255,255,0.5),0 14px 30px -18px rgba(40,30,18,0.35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper:#131110;--paper-2:#191614;--surface:#1d1a17;--surface-2:#232019;
  --ink:#ece6da;--ink-soft:#cdc6b7;--muted:#9a9184;--line:#2d2925;--line-strong:#3b362d;
  --accent:#e8813f;--accent-ink:#f0a163;--accent-soft:rgba(232,129,63,0.14);
  --note:#37301d;--note-ink:#e9d9a7;--grid:rgba(236,230,218,0.05);
  --shadow:28px 30px 70px -30px rgba(0,0,0,0.7);
  --shadow-sm:0 1px 0 rgba(255,255,255,0.03),0 16px 34px -20px rgba(0,0,0,0.7);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* faint graph-paper texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: #fff; padding: 8px 14px;
  border-radius: 8px; font-family: var(--mono); font-size: .85rem;
  z-index: 100; transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.eyebrow, .sec-kicker {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--accent-ink);
  text-transform: none;
}
.accent-word { color: var(--accent); }
.brand-inline { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand-inline::before { content: ""; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5ch;
  text-decoration: none; font-family: var(--mono); font-weight: 700;
  letter-spacing: -0.02em; font-size: 1.02rem; color: var(--ink);
}
.brand__mark { color: var(--accent); font-weight: 800; }
.brand__name { color: var(--ink); }
.nav {
  margin-left: auto;
  display: flex; gap: clamp(.9rem, 2.4vw, 1.9rem);
  font-family: var(--mono); font-size: .86rem;
}
.nav a {
  text-decoration: none; color: var(--muted);
  padding: 4px 2px; position: relative; transition: color .16s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

.theme-toggle {
  --sz: 34px;
  width: var(--sz); height: var(--sz);
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); cursor: pointer;
  display: grid; place-items: center; flex: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle__glyph {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -4px -4px 0 0 var(--surface);
}
:root[data-theme="dark"] .theme-toggle__glyph,
.theme-toggle__glyph { transition: box-shadow .2s ease, background .2s ease; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero__glow {
  position: absolute; z-index: 0; top: -18%; left: 50%; transform: translateX(-50%);
  width: min(1200px, 130%); height: 620px;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; margin-bottom: 1.1rem; }
.caret {
  display: inline-block; width: .62ch; height: 1.05em; margin-left: .5ch;
  background: var(--accent); translate: 0 .12em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.5rem + 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero__lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero__lede .quote { font-style: italic; color: var(--muted); }
.hero__lede em { font-style: italic; }

/* ---------- install block (terminal card) ---------- */
.install {
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
  max-width: 640px;
  position: relative;
}
.install::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--accent);
  transition: box-shadow .25s ease;
}
.install.is-copied::after { box-shadow: 0 0 0 2px var(--accent) inset; }
.install__bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .7rem .55rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.install__dots { display: inline-flex; gap: 6px; }
.install__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.install__dots i:first-child { background: var(--accent); opacity: .85; }
.install__title {
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  letter-spacing: .02em;
}
.install__copy {
  margin-left: auto;
  font-family: var(--mono); font-size: .76rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 7px;
  padding: .3rem .7rem; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.install__copy:hover { border-color: var(--accent); color: var(--accent-ink); }
.is-copied .install__copy { color: var(--accent-ink); border-color: var(--accent); }
.install__body {
  padding: 1rem 1.1rem 1.15rem;
  font-family: var(--mono);
  font-size: clamp(.82rem, .78rem + .25vw, .95rem);
  line-height: 1.85;
  overflow-x: auto;
}
.install__comment { color: var(--muted); }
.install__line { white-space: nowrap; }
.install__line .prompt { color: var(--accent); user-select: none; margin-right: .35ch; }
.install__body code {
  font-family: inherit;
  color: var(--ink);
}
.install__body code::selection { background: var(--accent-soft); }

.wink {
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--muted);
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
}
.hero__meta {
  list-style: none; padding: 0; margin-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: .55rem;
  font-family: var(--mono); font-size: .74rem;
}
.hero__meta li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .28rem .8rem; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3.2rem, 8vw, 6rem) 0; position: relative; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.sec-kicker { margin-bottom: .6rem; }
.sec-title {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.7rem);
  letter-spacing: -0.03em; line-height: 1.08; color: var(--ink);
  max-width: 22ch;
}

/* ---------- before / after ---------- */
.ba {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) auto minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.ba__label {
  font-family: var(--mono); font-size: .82rem; color: var(--muted);
  margin-bottom: .9rem;
}
/* the human's scrap */
.note {
  position: relative;
  background: var(--note);
  color: var(--note-ink);
  border-radius: 4px;
  padding: 1.6rem 1.3rem 1.7rem;
  rotate: -1.6deg;
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--note) 70%, #000 8%);
}
.note__pin {
  position: absolute; top: -9px; left: 50%; translate: -50% 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 6px -1px rgba(0,0,0,.4), inset -2px -2px 3px rgba(0,0,0,.25);
}
.note__text {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1rem + 1vw, 1.5rem);
  font-style: italic; font-weight: 500; line-height: 1.35;
}

/* the arrow between */
.ba__arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.ba__arrow-line { width: clamp(18px, 4vw, 46px); height: 2px; background: currentColor; }
.ba__arrow-head { font-size: 1.35rem; line-height: 0; margin-left: -3px; }

/* the brief document */
.doc {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.doc__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.doc__file { font-size: .82rem; color: var(--ink); }
.doc__tag {
  margin-left: auto; font-size: .7rem; color: var(--accent-ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .15rem .6rem;
  background: var(--accent-soft);
}
.doc__body {
  padding: 1.3rem 1.4rem 1.5rem;
  font-family: var(--mono);
  font-size: clamp(.82rem, .78rem + .2vw, .92rem);
  line-height: 1.68;
  overflow-x: auto;
}
.brief-block + .brief-block { margin-top: 1.15rem; }
.brief-h {
  font-family: var(--mono); font-weight: 700; font-size: inherit;
  color: var(--accent); letter-spacing: 0; margin-bottom: .3rem;
}
.doc__body p { color: var(--ink-soft); }
.brief-list { margin: .1rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); }
.brief-list li { margin-bottom: .12rem; }
.brief-list li::marker { color: var(--accent); content: "- "; }
.tok {
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0 .3ch;
  white-space: nowrap;
}
.ba__caption {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .4vw, 1.18rem);
  max-width: 52ch; margin-inline: auto;
}

/* ---------- how it works ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 1.9rem);
  counter-reset: none;
}
.step {
  position: relative;
  padding: 1.5rem 1.3rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.step__no {
  display: block; font-family: var(--mono); font-weight: 700;
  font-size: 1.6rem; color: var(--accent);
  letter-spacing: -0.02em; margin-bottom: .7rem;
}
.step__no::after {
  content: ""; display: block; width: 26px; height: 2px;
  background: var(--line-strong); margin-top: .55rem;
}
.step__text { color: var(--ink-soft); font-size: .98rem; }

/* ---------- faq ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2.2vw, 1.4rem);
}
.qa {
  padding: 1.4rem 1.45rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  transition: transform .16s ease, box-shadow .16s ease;
}
.qa:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.qa__q {
  font-family: var(--mono); font-weight: 700; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -0.01em; margin-bottom: .55rem;
  line-height: 1.35;
}
.qa__mark { color: var(--accent); margin-right: .35ch; }
.qa__a { color: var(--muted); font-size: .98rem; }

/* ---------- measured / benchmark ---------- */
.bench__lede {
  color: var(--ink-soft);
  font-size: clamp(1rem, .96rem + .3vw, 1.15rem);
  line-height: 1.62;
  max-width: 68ch;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 1.9rem);
}
.stat {
  padding: 1.5rem 1.3rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stat__figure {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: .6rem;
}
.stat__unit { font-size: .58em; color: var(--accent-ink); }
.stat__label { color: var(--ink-soft); font-size: .98rem; margin-bottom: .3rem; }
.stat__note {
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.bench__caveat {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-left: 1rem;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  max-width: 72ch;
}
.bench__caveat a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.bench__caveat a:hover { color: var(--accent); }

/* ---------- final cta ---------- */
.cta { text-align: center; }
.cta__inner { display: grid; justify-items: center; gap: 1.8rem; }
.cta__title {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  letter-spacing: -0.03em; color: var(--ink); max-width: 20ch; line-height: 1.1;
}
.install--compact { margin-inline: auto; text-align: left; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
}
.site-foot__brand {
  display: inline-flex; align-items: baseline; gap: .5ch;
  font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em;
}
.site-foot__links {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  font-family: var(--mono); font-size: .84rem;
}
.site-foot__links a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.site-foot__links a:hover { color: var(--accent-ink); }
.site-foot__fine {
  width: 100%;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  padding-top: 1rem; margin-top: .4rem; border-top: 1px solid var(--line);
}

/* ---------- entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .ba { grid-template-columns: 1fr; }
  .ba__said { max-width: 26rem; }
  .ba__arrow { transform: rotate(90deg); margin: .2rem 0; justify-content: flex-start; padding-left: 1.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .brand { font-size: .95rem; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero__lede { font-size: 1.08rem; }
  .wink { margin-top: 1.2rem; }
}

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .caret { animation: none; }
}
