:root {
  --bg: #f5f6f8;
  --paper: #ffffff;
  --text: #1c2430;
  --muted: #5d6876;
  --rule: #dce1e7;
  --accent: #214f7b;
  --accent-soft: color-mix(in srgb, var(--accent) 8%, white);
  --max-width: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

.resume {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 36px auto;
  padding: 56px 64px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 30, 40, 0.08);
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 4px;
  font-size: clamp(2.35rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.actions button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 10px 14px;
}

.actions button:hover { filter: brightness(0.94); }

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.contact .separator { color: var(--rule); }

section { margin-top: 36px; }

h2 {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 3px;
  font-size: 1.08rem;
}

.role + .role,
.education + .education { margin-top: 28px; }

.role-heading,
.education {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.role-title,
.education p {
  margin-bottom: 0;
  color: var(--muted);
}

.dates {
  flex: none;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

ul {
  margin: 14px 0 0;
  padding-left: 1.25rem;
}

li + li { margin-top: 8px; }

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.projects article {
  padding: 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  border-radius: 10px;
}

.projects p {
  margin-bottom: 0;
  color: #354352;
  font-size: 0.94rem;
}

.skills { margin-bottom: 0; }
.detail { margin-top: 3px !important; font-size: 0.92rem; }

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p { margin: 0; }
.simple-page { min-height: 360px; }

@supports not (color: color-mix(in srgb, black 50%, white)) {
  .projects article { background: #eef4f9; border-color: #dce8f2; }
}

@media (max-width: 760px) {
  .resume {
    width: 100%;
    margin: 0;
    padding: 36px 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero,
  .role-heading,
  .education { display: block; }

  .actions { margin-top: 20px; }
  .dates { margin-top: 5px; }
  .projects { grid-template-columns: 1fr; }
}
