/* ------------------------------------------------------------------
   kushal-portfolio - one page, no dependencies, no build step.
   Light and dark follow the visitor's system preference.
------------------------------------------------------------------- */

:root {
  --bg: #fdfdfc;
  --ink: #1e2528;
  --ink-soft: #5c686d;
  --accent: #0b7c81;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101415;
    --ink: #e6e9e9;
    --ink-soft: #93a0a3;
    --accent: #3ec6cc;
  }
}

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

html {
  color-scheme: light dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

main {
  max-width: 36rem;
  width: 100%;
}

/* -- header -------------------------------------------------------- */

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.tagline {
  color: var(--ink-soft);
  margin-top: 0.5rem;
  font-style: italic;
}

/* -- body ---------------------------------------------------------- */

section {
  margin-top: 2.5rem;
}

section p + p {
  margin-top: 1.25rem;
}

/* -- links --------------------------------------------------------- */

nav {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-family: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo,
    Consolas, monospace;
  font-size: 0.95rem;
}

nav span {
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
