/* ============================================================
   Sonal Gaud — portfolio
   Palette grounded in the Go/OpenTelemetry world: near-black
   canvas, Go's own cyan as the single accent, monospace used
   only where it's actually doing a job (labels, meta, code).
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-hover: #17171b;
  --line: #232327;
  --text: #ededed;
  --text-dim: #8b8b93;
  --text-faint: #56565c;
  --accent: #00acd7;
  /* Go cyan */
  --accent-dim: #00acd733;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 640px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- nav ---------- */

header.site-nav {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-name span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.nav-links a {
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
  border-color: var(--accent);
}

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

.hero {
  padding: 76px 0 56px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 14ch;
}

.hero-role {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: var(--measure);
  margin: 0 0 28px;
}

.hero-role strong {
  color: var(--text);
  font-weight: 500;
}

.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pill:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.pill.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #04121a;
  font-weight: 600;
}

.pill.solid:hover {
  background: #29c1e3;
}

/* ---------- section shell ---------- */

section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- experience timeline ---------- */

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

.tl-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.tl-item:first-child {
  border-top: none;
  padding-top: 0;
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  padding-top: 3px;
}

.tl-role {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.tl-org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 14px;
}

.tl-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.tl-item li {
  margin-bottom: 7px;
}

.tl-item li:last-child {
  margin-bottom: 0;
}

/* ---------- open source ---------- */

.oss-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 28px;
  margin-bottom: 18px;
}

.oss-card:last-child {
  margin-bottom: 0;
}

.oss-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.oss-title {
  font-weight: 600;
  font-size: 1rem;
}

.oss-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 2px 8px;
  border-radius: 999px;
}

.oss-repo {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.oss-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 14px;
}

.oss-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.oss-card li {
  margin-bottom: 6px;
}

.oss-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
}

.oss-link:hover {
  border-color: var(--accent);
}

/* ---------- skills ---------- */

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-dim);
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a {
  color: var(--text-faint);
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--accent);
}

/* ---------- speaking page ---------- */

.talk-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 26px;
  margin-bottom: 16px;
}

.talk-card:last-child {
  margin-bottom: 0;
}

.talk-event {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.talk-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.talk-desc {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 12px;
}

.talk-links {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.talk-links a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
}

.talk-links a:hover {
  border-color: var(--accent);
}

/* empty state */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 48px 32px;
  text-align: center;
}

.empty-state .glyph {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 44ch;
  margin: 0 auto;
}

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

@media (max-width: 620px) {
  .tl-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}