:root {
  --bg: #eef1f7;
  --surface: #ffffff;
  --accent: #1f3a8a;
  --text: #1a2233;
  --text-muted: #4e5a70;
  --border: rgba(26, 34, 51, 0.12);
  --radius: 12px;
  font-size: 16px;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.resume {
  width: min(960px, 92vw);
  margin: 64px auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 20px 45px rgba(32, 46, 90, 0.08);
}

.resume-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.resume-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.resume-title {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.resume-contact a,
.resume-contact span {
  display: inline-flex;
  align-items: center;
}

.resume-contact .resume-download {
  font-weight: 600;
}

.resume-section {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.resume-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent);
}

.resume-section p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.resume-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
}

.resume-list.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  padding-left: 0;
  list-style: none;
}

.resume-list.inline li {
  position: relative;
  padding-left: 1.2rem;
}

.resume-list.inline li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.resume-role + .resume-role {
  margin-top: 1.5rem;
}

.resume-role header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.6rem;
}

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

.role-title {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.role-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.resume-section.two-column {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.resume-education {
  display: grid;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .resume {
    margin: 32px auto;
    padding: 28px 20px;
  }

  .resume-header {
    flex-direction: column;
    gap: 1rem;
  }

  .role-meta {
    align-items: flex-start;
  }
}
