:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --fg: #16181d;
  --muted: #5c6473;
  --card: #ffffff;
  --accent: #204a8c;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: rgba(15, 23, 42, 0.08);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --fg: #e8eaf0;
    --muted: #9aa3b5;
    --card: #161a22;
    --accent: #7ea5ff;
    --border: rgba(230, 235, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

/* /resume/: full viewport via viewport meta (viewport-fit, interactive-widget) + height chain only */
html.pdf-viewer-root {
  height: 100%;
}

body.pdf-viewer-page {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

.pdf-viewer-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--card);
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: var(--accent);
  color: #fff;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
}

.site-header .wrap {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
}

.profile-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-photo img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px var(--shadow);
}

.eyebrow {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height:1.15;
  margin: 0 0 0.4rem;
  font-weight: 650;
}

.headline {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  max-width: 40rem;
}

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

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

.links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.links a:hover,
.links a:focus-visible {
  border-bottom-color: currentColor;
}

main {
  padding: 2.25rem 0 3rem;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 650;
}

.summary-text {
  margin: 0;
  font-size: 1.05rem;
}

.summary-text .inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.summary-text .inline-link:hover,
.summary-text .inline-link:focus-visible {
  border-bottom-color: currentColor;
}

.job {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.1rem 1.2rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px var(--shadow);
}

.job h3 {
  margin: 0;
  font-size: 1.2rem;
}

.job-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.roles {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.roles li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.dates {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.highlights {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.highlights li {
  margin-bottom: 0.35rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.skill-grid--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 36rem) {
  .skill-grid--two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.skill-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.skill-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.skill-grid li {
  margin-bottom: 0.35rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

code {
  font-size: 0.88em;
}
