/* sokki.org. Tokens from the Sokki design system (dark is home). */
:root {
  color-scheme: dark;
  --ground: #0e0f11;
  --surface: #16171a;
  --raised: #1d1f23;
  --ink: #ecedef;
  --ink-2: #a3a8b0;
  --ink-3: #858a93;
  --line: #ffffff17;
  --line-strong: #686d76;
  --accent: #8ab4ff;
  --on-accent: #0e0f11;
  --rec: #ff453a;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI Variable Display", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI Variable Text", "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-window: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  --shadow-pill: 0 10px 26px -10px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.sec { padding-top: 160px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: center; }
.split.top { align-items: start; }

/* Type */
.display-xl, .display, .title, .headline { font-family: var(--display); margin: 0; text-wrap: balance; }
.display-xl { font-size: 80px; line-height: 0.95; letter-spacing: -0.035em; font-weight: 700; }
.display { font-size: 56px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.title { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.headline { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lead { margin: 24px 0 0; font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.eyebrow { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--accent); }
.caption { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose p, .prose li { color: var(--ink-2); max-width: 65ch; }
.prose h2 { margin-top: 64px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 19px var(--display); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.links a { color: var(--ink-2); }
.links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.center .buttons { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font: 600 16px var(--sans); cursor: pointer;
  border: 1px solid var(--line-strong); color: var(--ink); background: transparent;
  transition: background 160ms var(--ease);
}
.btn:hover { background: var(--raised); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: #a6c6ff; }
.btn.small { padding: 8px 14px; font-size: 13px; background: var(--raised); }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.key { background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 10px; font-size: 13px; }

/* Recording pill */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px 12px 16px; box-shadow: var(--shadow-pill);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--rec); }
.wave rect { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: wave 1.2s var(--ease) infinite alternate; }
.wave rect:nth-child(3n) { animation-delay: -0.3s; }
.wave rect:nth-child(3n+1) { animation-delay: -0.7s; }
@keyframes wave { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -0.15em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typed { margin: 0; font-size: 24px; line-height: 1.4; max-width: 640px; min-height: 1.4em; }

/* Note */
.note { margin-top: 64px; box-shadow: var(--shadow-window); overflow: hidden; }
.note-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.note-body { display: flex; flex-wrap: wrap; }
.note-side { flex: 1 1 320px; padding: 24px 28px 28px; border-right: 1px solid var(--line); font-size: 15px; }
.note-side h3 { margin: 0; font-size: 15px; font-weight: 600; }
.note-side p, .note-side label { color: var(--ink-2); }
.note-side label { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; }
.note-side input { accent-color: var(--accent); }
.note-transcript { flex: 1.4 1 380px; padding: 24px 28px 28px; font: 13px/1.7 var(--mono); color: var(--ink-2); }
.note-transcript b { color: var(--ink); font-weight: 600; }
.note-transcript span { color: var(--ink-3); }
.note-path { padding: 12px 28px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--ink-3); }

/* Phones */
.phones { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.phone { width: 220px; height: 450px; padding: 18px; border-radius: 40px; display: flex; flex-direction: column; gap: 14px; }
.phone .island { align-self: center; width: 72px; height: 22px; border-radius: 999px; background: var(--ground); }
.phone.rec { align-items: center; gap: 20px; box-shadow: var(--shadow-window); }
.stop { margin-top: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255, 69, 58, 0.18); display: flex; align-items: center; justify-content: center; }
.stop span { width: 22px; height: 22px; border-radius: 5px; background: var(--rec); }
.bubble { max-width: 160px; border-radius: 16px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.bubble.in { margin-top: 24px; align-self: flex-end; background: var(--raised); color: var(--ink-2); }
.bubble.out { background: var(--ground); border: 1px solid var(--line); }
.keys { margin-top: auto; background: var(--ground); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.keys span { height: 26px; border-radius: 6px; background: var(--raised); }
.keys .mic { grid-column: span 3; display: flex; align-items: center; justify-content: center; }

/* Lists */
.rows { border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row span:last-child { color: var(--ink-2); text-align: right; }

/* Install */
.cmd { margin: 40px auto 0; max-width: 820px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; flex-wrap: wrap; border-radius: 10px; }
.cmd code { flex: 1 1 400px; min-width: 0; font: 13px var(--mono); color: var(--ink-2); white-space: nowrap; overflow-x: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 160px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--ink-3); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); }

@media (max-width: 700px) {
  .sec { padding-top: 96px; }
  .footer { margin-top: 96px; }
  .display-xl { font-size: 52px; }
  .display { font-size: 40px; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
