/* ─── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --bg:       #0f1214;
  --surface:  #171c1f;
  --border:   #232a2f;
  --text:     #dde1e5;
  --muted:    #6a7480;
  --accent:   #c8ff00;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", monospace;

  --max-width: 680px;
  --gap: 3rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:       #f0f2f4;
    --surface:  #ffffff;
    --border:   #d4d9df;
    --text:     #111418;
    --muted:    #606870;
    --accent:   #3a7a00;
  }
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */

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

/* ─── Base ───────────────────────────────────────────────────────────────── */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.nav-identity {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}


/* ─── Main ───────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-text {
  flex: 1;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.role {
  color: var(--muted);
  font-weight: 400;
}

.tagline {
  margin-top: 0.6rem;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}

.profile-photo {
  width: 160px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
  /* blend the photo's gray background with the page background */
  mix-blend-mode: luminosity;
  opacity: 0.85;
  transition: opacity 0.2s, mix-blend-mode 0.2s;
}

.profile-photo:hover {
  mix-blend-mode: normal;
  opacity: 1;
}

@media (prefers-color-scheme: light) {
  .profile-photo {
    mix-blend-mode: normal;
    opacity: 1;
  }
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

h2 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

p {
  font-size: 0.9375rem;
  color: var(--text);
  max-width: 60ch;
}

p.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ─── Lists ──────────────────────────────────────────────────────────────── */

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

li {
  font-size: 0.9375rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}

li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ─── Link list ──────────────────────────────────────────────────────────── */

.link-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.link-list li {
  padding-left: 0;
}

.link-list li::before {
  display: none;
}

.link-list a {
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

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

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ─── Accessibility ──────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --gap: 2rem;
  }

  .page-header {
    flex-direction: row;
    align-items: center;
  }

  .profile-photo {
    width: 110px;
  }
}
