/* ============================================================
   Kush Patel — kushpatel.ai
   One stylesheet, no framework, no build step.
   System fonts only, so there is zero font-loading delay.
   Page speed is a real Google ranking factor; this should load
   in well under a second.
   ============================================================ */

/* --- Design tokens -------------------------------------------------- */
:root {
  --bg:      #ffffff;
  --fg:      #14171a;
  --muted:   #5b6570;
  --accent:  #1449e6;
  --rule:    #e6e8eb;

  --measure: 38rem;   /* max line length — keeps text readable */
  --step:    1.5rem;
}

/* Automatic dark mode: follows the reader's OS setting. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #0e1113;
    --fg:     #e8eaed;
    --muted:  #9aa4af;
    --accent: #7aa2ff;
    --rule:   #262b30;
  }
}

/* --- Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 var(--step);
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main, .site-header > nav, .site-footer {
  max-width: var(--measure);
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

/* Visible focus ring — required for keyboard accessibility. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Skip link (hidden until focused) -------------------------------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--step);
  top: var(--step);
  padding: 0.5rem 0.75rem;
  background: var(--fg);
  color: var(--bg);
  z-index: 10;
}

/* --- Header ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: calc(var(--step) * 2.5);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--step) 0;
}
.wordmark {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.site-header ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

/* --- Content --------------------------------------------------------- */
.hero { margin-bottom: calc(var(--step) * 2); }

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.1875rem;
  color: var(--muted);
  margin: 0;
}

h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: calc(var(--step) * 2) 0 0.75rem;
}

h3 { font-size: 1.0625rem; margin: 0 0 0.25rem; }

section p { margin: 0 0 1rem; }

.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.work-list p { color: var(--muted); margin: 0; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Footer ---------------------------------------------------------- */
.site-footer {
  margin-top: calc(var(--step) * 3);
  padding: var(--step) 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer p { margin: 0; }
