@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: #f3f3f4;
  --foreground: #17191c;
  --muted: #61656b;
  --soft: #e7e8ea;
  --line: #c4c7cc;
  --accent: #3a6ea5;
  --accent-2: #b07d3c;
  --surface: #fafafb;
  --terminal-shadow: rgba(20, 22, 25, 0.08);
  --body-glow:
    linear-gradient(180deg, rgba(58, 110, 165, 0.06), transparent 22rem),
    linear-gradient(rgba(20, 22, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 25, 0.026) 1px, transparent 1px);
  --prose: #2a2e33;
  --selection-bg: #bcd6ef;
  --selection-fg: #14161a;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --background: #151719;
  --foreground: #e7e9ec;
  --muted: #9ba0a7;
  --soft: #1d2023;
  --line: #363a3f;
  --accent: #7fb0e0;
  --accent-2: #d3a35e;
  --surface: #1b1e21;
  --terminal-shadow: rgba(0, 0, 0, 0.28);
  --body-glow:
    linear-gradient(180deg, rgba(127, 176, 224, 0.06), transparent 22rem),
    linear-gradient(rgba(231, 233, 236, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 233, 236, 0.018) 1px, transparent 1px);
  --prose: #d5dade;
  --selection-bg: #274056;
  --selection-fg: #eef0f2;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  background: var(--body-glow), var(--background);
  background-size: auto, 36px 36px, 36px 36px;
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p,
h1,
h2,
h3,
li {
  overflow-wrap: anywhere;
}

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

/* ---------- page shell ---------- */

.shell {
  margin: 0 auto;
  max-width: 48rem;
  padding: 2rem 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .shell {
    padding: 2.5rem 2rem;
  }
}

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

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--terminal-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  gap: 0.7rem;
  letter-spacing: 0;
}

.brand::before {
  color: var(--accent);
  content: "~/";
}

.brand img {
  height: 26px;
  width: 26px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.icon-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.icon-link:hover {
  color: var(--accent);
}

.icon-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- theme toggle ---------- */

.theme-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-sun {
  display: block;
}

/* ---------- intro ---------- */

.intro {
  padding: 4rem 0 3rem;
}
.profile-photo {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 0.6rem 1.5rem var(--note-shadow);
  display: block;
  height: 6rem;
  margin-bottom: 1.5rem;
  object-fit: cover;
  width: 6rem;
}


.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "$ ";
}

.intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  max-width: 16ch;
}

.intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-top: 1.35rem;
  max-width: 38rem;
}

/* ---------- cv sections ---------- */

.cv-section {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.cv-section h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cv-section h2::before {
  color: var(--accent);
  content: "# ";
}

.cv-section p {
  color: var(--prose);
  line-height: 1.75;
}

.cv-section p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- fact list ---------- */

.fact-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
}

.fact-list li {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding-left: 1.1rem;
  position: relative;
}

.fact-list li::before {
  background: var(--accent);
  border-radius: 0.05rem;
  content: "";
  height: 0.35rem;
  left: 0;
  position: absolute;
  top: 0.72rem;
  width: 0.35rem;
}

.fact-list .role {
  color: var(--foreground);
  font-weight: 700;
}

.fact-list .org {
  color: var(--accent);
}

.fact-list .dates {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 1.6rem 0 3rem;
}
