/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors — light mode */
  --color-bg:      #ffffff;
  --color-text:    #111111;
  --color-muted:   #555555;
  --color-link:    #0a66c2; /* LinkedIn blue */
  --color-link-hover: #004182;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
  --size-name:    2.5rem;   /* h1 */
  --size-tagline: 1.1rem;
  --size-body:    1rem;
  --size-link:    1rem;

  /* Spacing */
  --gap: 1.25rem;
  --max-width: 560px;
  --padding: 2rem;
}

/* Dark mode — automatically applies when the OS is set to dark */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:    #0f0f0f;
    --color-text:  #efefef;
    --color-muted: #999999;
    --color-link:  #70a8ff;
    --color-link-hover: #a8c8ff;
  }
}

/* ─── Layout ─────────────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.6;

  /* Center content vertically and horizontally */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--padding);
}

main {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ─── Name ───────────────────────────────────────────────────── */
h1 {
  font-size: var(--size-name);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ─── Tagline ─────────────────────────────────────────────────── */
.tagline {
  font-size: var(--size-tagline);
  color: var(--color-muted);
  font-weight: 400;
}

/* ─── Bio ─────────────────────────────────────────────────────── */
.bio {
  font-size: var(--size-body);
  color: var(--color-text);
  max-width: 48ch; /* ~48 characters wide — comfortable reading line length */
}

/* ─── Navigation / Links ─────────────────────────────────────── */
nav {
  margin-top: 0.5rem;
}

nav a {
  display: inline-block;
  color: var(--color-link);
  text-decoration: none;
  font-size: var(--size-link);
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}
