:root {
  --paper: #f7f2e8;
  --ink: #172033;
  --muted: #5b6476;
  --accent: #d45d34;
  --accent-soft: #f0d4bf;
  --line: #d9d0c2;
  --panel: #fffdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(212, 93, 52, 0.14), transparent 24%),
    linear-gradient(180deg, #f2ede3 0%, #ece5d9 100%);
  padding: 2rem;
}

.resume {
  max-width: 980px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 28px 80px rgba(23, 32, 51, 0.12);
}

.resume-header {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  padding: 3rem;
  background:
    linear-gradient(135deg, rgba(212, 93, 52, 0.12), transparent 50%),
    linear-gradient(180deg, #fffdf8 0%, #fcf8f1 100%);
}

.kicker,
.section-label {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.summary,
.role ul,
.contact-card li,
.list-block p,
.resume-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.summary {
  max-width: 60ch;
  font-size: 1.02rem;
  margin-top: 1.25rem;
}

.contact-card {
  align-self: start;
  background: #fffaf2;
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.cv-actions a {
  text-decoration: none;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.resume-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 2rem 3rem;
  border-top: 1px solid var(--line);
}

.section-body {
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 2rem;
}

.role + .role {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.role-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.role-header h2 {
  font-size: 1.8rem;
}

.company,
.dates,
.location {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.dates {
  white-space: nowrap;
  font-weight: 700;
  color: var(--accent);
}

.role ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.split {
  grid-template-columns: 1fr 1fr;
}

.split > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
}

.list-block p {
  margin: 0 0 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(217, 208, 194, 0.7);
}

.resume-footer {
  padding: 1.5rem 3rem 2.5rem;
  border-top: 1px solid var(--line);
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .resume {
    box-shadow: none;
    border: 0;
  }
}

@media (max-width: 820px) {
  body {
    padding: 0.75rem;
  }

  .resume-header,
  .resume-section,
  .split,
  .split > div {
    grid-template-columns: 1fr;
  }

  .resume-header,
  .resume-section,
  .resume-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .dates {
    white-space: normal;
  }
}
