/* keeno.krispltd.com — dark design system */
:root {
  --bg: #0b0e14;
  --surface: #131a24;
  --border: #1f2937;
  --text: #e6ebf2;
  --muted: #8b95a7;
  --accent: #2de0a7;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --maxw: 1080px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--accent);
  color: #06251b;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

section, header.hero, footer.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------- */
.hero { padding-top: 96px; padding-bottom: 40px; }

.kicker {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 10px;
}
.subtitle .accent { color: var(--accent); }

.hook {
  max-width: 640px;
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text);
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #06251b;
  font-weight: 600;
}
.btn-solid:hover { background: #4bead7; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 32px;
  padding-top: 32px;
  padding-bottom: 56px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.stat { display: flex; flex-direction: column; }

.num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.lbl { font-size: 0.85rem; color: var(--muted); max-width: 160px; }

/* ---------- projects ---------- */
.projects { padding-bottom: 40px; }
.projects h2 { margin-bottom: 24px; }

.projects {
  display: block;
}

.projects .card {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.projects .card:hover { border-color: var(--accent); transform: translateY(-2px); }

.shot-frame { position: relative; background: #0d1117; border-right: 1px solid var(--border); }
.shot-frame img { object-fit: cover; }

.dots {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.card-internal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45, 224, 167, 0.06), transparent 60%),
    #0d1117;
  border-right: 1px solid var(--border);
  padding: 40px 24px;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: center;
  min-height: 220px;
}
.card-internal svg { color: var(--accent); opacity: 0.7; }

.card-body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 12px; }

.card h3 { font-size: 1.25rem; }
.card p { color: var(--text); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.metrics {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.live {
  font-size: 0.9rem;
  text-decoration: none;
  width: fit-content;
}
.live:hover { text-decoration: underline; }

/* ---------- how i build ---------- */
.how { padding-top: 32px; padding-bottom: 56px; border-top: 1px solid var(--border); }
.how-intro { color: var(--muted); margin-bottom: 20px; }
.how-list { list-style: none; display: grid; gap: 14px; max-width: 760px; }
.how-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.98rem;
}
.how-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.how-list strong { color: var(--text); }

.stack-line {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 760px;
}
.stack-label { color: var(--accent); }

/* ---------- also shipped ---------- */
.more { padding-bottom: 56px; }
.more-list { list-style: none; display: grid; gap: 10px; max-width: 760px; }
.more-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}
.more-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.more-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.more-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}

/* ---------- story ---------- */
.story { padding-bottom: 72px; }
.story p { max-width: 680px; font-size: 1.02rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.footer a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.fine { margin-top: 8px; font-size: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .projects .card { grid-template-columns: 1fr; }
  .shot-frame, .card-internal { border-right: none; border-bottom: 1px solid var(--border); }
  .card-body { padding: 20px; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
