:root {
    --ink: #0e0e0e;
    --ink-muted: #555;
    --paper: #f5f5f5;
    --accent: #1a1aff;
    --rule: hsl(0, 0%, 85.1%);
    --white: #fff;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 16px; scroll-behavior: smooth; }
  body {
    background: var(--paper); color: var(--ink);
    font-family: 'DM Sans', sans-serif; font-weight: 400;
    line-height: 1.7; -webkit-font-smoothing: antialiased;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 3rem;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a { font-size: 0.85rem; color: var(--ink-muted); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

  .read { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

  .page-header {
    padding-top: 7rem; padding-bottom: 3rem;
    background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .page-header-inner {
    max-width: 720px; margin: 0 auto;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  }
  .page-header h1 {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900; letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
  }
  .page-header p { font-size: 0.9rem; color: var(--ink-muted); }
  .download-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--ink); color: var(--white);
    text-decoration: none; border-radius: 10px;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.03em;
    white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
  }
  .download-btn:hover { background: #333; }

  .resume-body { padding: 4rem 0; }

  .section { margin-bottom: 3.5rem; }
  .section-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.25rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
  }

  /* Experience */
  .job { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
  .job:last-child { border-bottom: none; }
  .job-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.25rem; }
  .job-title { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
  .job-dates { font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; }
  .job-company { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.75rem; }
  .job ul { padding-left: 1.1rem; }
  .job li { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 0.4rem; }
  .job li:last-child { margin-bottom: 0; }

  /* Skills */
  .skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .skill-group-title { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
  .skill-list { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.7; }

  /* Education */
  .edu-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .edu-item:last-child { border-bottom: none; }
  .edu-degree { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
  .edu-school { font-size: 0.85rem; color: var(--ink-muted); }
  .edu-year { font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; }

  footer { border-top: 1px solid var(--rule); padding: 3.5rem 0; background: var(--white); }
  .footer-inner { max-width: 720px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr auto auto; gap: 4rem; align-items: start; }
  .footer-name { font-family: 'Source Serif 4', serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
  .footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-links a { font-size: 0.875rem; color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--ink); }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .read { padding: 0 1.5rem; }
    .page-header-inner { flex-direction: column; align-items: flex-start; }
    .skills-grid { grid-template-columns: 1fr; }
    .job-header { flex-direction: column; gap: 0.1rem; }
    .edu-item { flex-direction: column; gap: 0.2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  }
