/* kalob.io site styles — layered on top of the Nocturne design system (nocturne.css). */

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

body {
  margin: 0;
  text-wrap: pretty;
  background-repeat: no-repeat;
}

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

/* Page background variants, matching each source page's hero gradient */
body.bg-duo {
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%),
    radial-gradient(1100px 800px at -10% 100%, color-mix(in srgb, black 30%, transparent), transparent 55%),
    var(--color-bg);
}
body.bg-mono {
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%),
    var(--color-bg);
}
body.bg-mono-resume {
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 720px at 82% -160px, color-mix(in srgb, var(--color-accent-900) 75%, transparent), transparent 60%),
    var(--color-bg);
}

/* ── Header / nav ─────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-toggle {
  display: inline-flex;
}
.nav-mobile-panel {
  display: none;
}
.nav-mobile-panel.is-open {
  display: flex;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle.is-open .icon-menu {
  display: none;
}
.nav-toggle.is-open .icon-close {
  display: block;
}

@media (min-width: 780px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle,
  .nav-mobile-panel {
    display: none !important;
  }
}

/* ── Image placeholder slot (static stand-in for the design tool's <image-slot>) ── */
.image-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--color-surface);
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* ── About timeline ───────────────────────────────────────────────────── */
.timeline-item {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 8px 32px;
}
@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ── Contact form state ───────────────────────────────────────────────── */
.contact-result {
  display: none;
}
.contact-result.is-visible {
  display: flex;
}
.contact-form.is-hidden {
  display: none;
}
