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

:root {
  --bg:             #F8F7F4;
  --text:           #111111;
  --muted:          #6B7280;
  --accent:         #0F2F5A;
  --secondary-text: #374151;
  --divider:        #E2E0DB;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  padding: 0 24px;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 0 80px;
}


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

header {
  margin-bottom: 52px;
}

h1 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 10vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.headline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ─── About ───────────────────────────────────────── */

.about {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--divider);
}

.about p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
}


/* ─── Experience ──────────────────────────────────── */

.experience {
  margin-bottom: 64px;
}

.experience h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.experience ol {
  list-style: none;
}

.experience li {
  padding: 26px 0;
  border-bottom: 1px solid var(--divider);
}

.experience li:first-child {
  padding-top: 0;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.period {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.role-title {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}

.role-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--secondary-text);
}


/* ─── Links ───────────────────────────────────────── */

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.65;
}

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

.company a {
  color: inherit;
}

.company a:hover {
  color: var(--accent);
  opacity: 1;
}


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

footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 48px;
}

footer a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease, opacity 0.15s ease;
}

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


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

@media (max-width: 600px) {
  body {
    padding: 0 20px;
  }

  main {
    padding: 64px 0 56px;
  }

  header {
    margin-bottom: 44px;
  }

  .about {
    margin-bottom: 52px;
    padding-bottom: 52px;
  }

  .about p {
    font-size: 17px;
  }

  .role-header {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .period {
    order: 2;
  }
}
