:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0066cc;
  --hairline: #d2d2d7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #2997ff;
    --hairline: #38383a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero, main, footer { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }

/* Visually hidden but still read by screen readers and present in textContent. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0.25rem; }

.hero { text-align: center; padding-block: 4rem 2rem; }
.portrait { display: block; margin: 0 auto 2rem; width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; }
h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 4.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.name, .role { display: block; }
.role { margin-top: 0.75rem; color: var(--muted); font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.summary { max-width: 36rem; margin: 1.5rem auto 0; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.pills a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; }

section { padding-top: 4rem; }
h2 { margin: 0 0 2rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h3 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

.cards { display: grid; gap: 1rem; }
/* Featured projects get more room and larger type so they lead the page. */
.feature { padding: 2rem; gap: 0.75rem; }
.feature h3 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; }
.feature p { font-size: 1.125rem; }
/* The global ul reset removes markers, so bullets restore them to stay a readable list. */
.bullets { list-style: disc; padding-left: 1.25rem; margin: 0.25rem 0 0; }
.bullets li { margin: 0.4rem 0; padding-left: 0.25rem; }
.feature .bullets { font-size: 1.0625rem; }
.groups { display: grid; gap: 1.5rem; margin-top: 0.5rem; }
.group h4 { margin: 0 0 0.25rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 48rem) {
  .wide { grid-column: 1 / -1; }
  .groups { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border-radius: 1.25rem; background: var(--surface); }
.muted { color: var(--muted); }
/* Company is an accent eyebrow, role is quiet text, period is a pill: three levels instead of one long line. */
/* Scoped to .card so the card role does not override the large role line in the hero heading. */
.company { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card .role { margin: 0; font-size: 0.9375rem; color: var(--muted); }
/* Pills use a tint of the accent over the card so dates and status stay visible in light and dark. */
.period, .badge { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text); font-weight: 600; }
.period { align-self: flex-start; margin: 0.35rem 0; padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.store { margin-top: auto; padding-top: 0.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.store a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.store a::after { content: "\2192"; margin-left: 0.35em; }
.store .muted { display: inline-flex; align-items: center; min-height: 2.75rem; }
.badge { display: inline-block; vertical-align: middle; margin-left: 0.5rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.8125rem; letter-spacing: 0; }

.links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; }
/* flex: none keeps the icon from shrinking when the label wraps on narrow screens. */
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

footer { margin-top: 4rem; padding-block: 1.5rem 3rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.8125rem; }

@media (min-width: 48rem) {
  .hero { padding-block: 6rem 3rem; }
  .portrait { width: 11rem; height: 11rem; }
  section { padding-top: 6rem; }
  .cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
