/* getpeek.tech, hand-coded. Soft monochrome: warm paper, warm ink.
   Nothing here is pure black or pure white. */

:root {
  --paper: #faf8f5;
  --card: #fffdfa;
  --wash: #f1ede6;
  --ink: #1c1a17;
  --muted: #6f6961;
  --faint: #a09a90;
  --line: rgba(28, 26, 23, 0.13);
  --line-soft: rgba(28, 26, 23, 0.07);
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 16px; }

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  background: var(--wash);
  flex: none;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-sub { color: var(--faint); font-size: 0.85rem; }

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--card);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease, border-color 0.15s ease;
}

.github-link:hover { color: var(--ink); border-color: var(--muted); }
.github-link:active { transform: scale(0.94); }

/* ---------- hero ---------- */

.hero { padding: 88px 0 72px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 44ch;
}

.hero-actions { display: flex; gap: 12px; margin: 28px 0 40px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:active { transform: scale(0.94); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2b2823; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.hero-stats div { margin: 0; }

.hero-stats dt {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-faces figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  animation: rise 0.7s ease both;
}

.hero-faces figure:nth-child(2) { animation-delay: 0.08s; }
.hero-faces figure:nth-child(3) { animation-delay: 0.16s; }
.hero-faces figure:nth-child(4) { animation-delay: 0.24s; }
.hero-faces figure:nth-child(5) { animation-delay: 0.32s; }
.hero-faces figure:nth-child(6) { animation-delay: 0.4s; }

.hero-faces svg { width: 100%; height: auto; display: block; border-radius: 8px; }

.hero-faces figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.section-wash { background: var(--wash); }

.section-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 14px;
}

.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 44px;
}

/* ---------- family cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top h3 { margin: 0; font-family: var(--mono); font-size: 1.02rem; }

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

.install {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border-radius: 10px;
  padding: 10px 8px 10px 14px;
  margin-top: auto;
}

.install code {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.copy {
  flex: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--paper);
  background: rgba(250, 248, 245, 0.14);
  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}

.copy:hover { background: rgba(250, 248, 245, 0.24); }
.copy:active { transform: scale(0.9); }

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
}

.card-link:hover { border-color: var(--ink); }

/* ---------- determinism ---------- */

.determinism-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.same-faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.same-faces figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  overflow: hidden;
}

.same-faces svg { width: 100%; height: auto; display: block; border-radius: 8px; }

.same-faces figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }

.proof-list li {
  padding-left: 20px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.proof-list strong { color: var(--ink); font-weight: 600; }

.fine-print {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--faint);
  max-width: 72ch;
}

/* ---------- code tabs ---------- */

.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--wash);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
  position: relative;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(28, 26, 23, 0.12);
  transition: transform 0.32s cubic-bezier(0.3, 1.3, 0.4, 1), width 0.32s cubic-bezier(0.3, 1.3, 0.4, 1);
  pointer-events: none;
}

.tab {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.tab:active { transform: scale(0.93); }

.tab.is-active { color: var(--ink); }

.panels { position: relative; overflow: hidden; }

.panels-track {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-repo {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.panel-repo:hover { color: var(--ink); }

.copy-light {
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
}

.copy-light:hover { background: #e7e2d6; border-color: var(--muted); }

.panel {
  flex: 0 0 100%;
  min-width: 0;
  visibility: hidden;
}

.panel.is-active,
.panel.is-moving {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .tab-indicator { transition: none; }
  .panels-track { transition: none; }
}

.panel pre {
  margin: 0;
  background: var(--ink);
  color: #e8e2d8;
  border-radius: var(--radius);
  padding: 28px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.panel code { font-family: inherit; }

.k { color: #b9aef0; }
.s { color: #a8d5a2; }
.f { color: #f0d9a8; }
.c { color: #8a8478; font-style: italic; }

/* ---------- credit ---------- */

.section-credit { background: var(--ink); color: var(--paper); border-top: 0; }

.section-credit .section-no { color: rgba(250, 248, 245, 0.5); }

.section-credit h2 { color: var(--paper); }

.section-credit p { color: rgba(250, 248, 245, 0.72); max-width: 60ch; font-size: 1.05rem; }

.section-credit a { color: var(--paper); }

.section-credit .btn-ghost {
  background: transparent;
  border-color: rgba(250, 248, 245, 0.3);
  color: var(--paper);
  margin-top: 12px;
}

.section-credit .btn-ghost:hover { border-color: var(--paper); }

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

.site-footer { border-top: 1px solid var(--line-soft); padding: 32px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.footer-links { display: flex; gap: 20px; }

.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-faces { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .determinism-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-faces figure { animation: none; }
}
