:root {
  color-scheme: light;
  --forest: #163f3a;
  --forest-soft: #24534d;
  --paper: #faf8f2;
  --ink: #202d2a;
  --muted: #74817b;
  --line: #dfe3dc;
  --lime: #d4e778;
  --coral: #d77c5c;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 48px 24px;
  color: var(--ink);
  background-color: #e9ede6;
  background-image: repeating-linear-gradient(135deg, rgba(22, 63, 58, 0.025) 0 1px, transparent 1px 8px);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.resume {
  display: grid;
  grid-template-columns: 35% 65%;
  width: min(1060px, 100%);
  min-height: 1430px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(26, 48, 42, 0.15);
  animation: arrive 650ms ease-out both;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 46px 42px 38px;
  color: #f3f5e9;
  background-color: var(--forest);
  background-image: radial-gradient(ellipse at 10% 90%, rgba(212, 231, 120, 0.09), transparent 48%);
}

.sidebar-topline,
.content-header,
.timeline-meta,
.content-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.sidebar-topline { color: #b5c8b7; }

.portrait {
  position: relative;
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  margin: 50px 0 29px;
  border: 1px solid rgba(243, 245, 233, 0.4);
  border-radius: 50%;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 38px;
}

.portrait::before,
.portrait::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  content: '';
}

.portrait::before { top: 10px; right: 11px; }
.portrait::after { bottom: 15px; left: 5px; width: 5px; height: 5px; background: var(--lime); }
.portrait i { position: absolute; inset: 9px; border: 1px solid rgba(243, 245, 233, 0.18); border-radius: 50%; }

.role-label,
.section-number,
.timeline-meta,
.education-year {
  color: var(--coral);
  font-size: 9px;
  font-weight: 700;
}

.role-label { margin: 0 0 12px; color: var(--lime); }

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

h1 {
  margin-bottom: 17px;
  font-family: var(--serif);
  font-size: clamp(43px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.02;
}

.intro {
  max-width: 250px;
  margin-bottom: 36px;
  color: #c1d0c5;
  font-size: 12px;
  line-height: 1.8;
}

.sidebar-section { width: 100%; margin-top: 25px; }
.sidebar-section h2 { margin-bottom: 16px; color: var(--lime); font-size: 10px; font-weight: 700; }
.contact-section { display: grid; gap: 10px; }
.contact-section h2 { margin-bottom: 5px; }
.contact-section a,
.contact-section p { margin: 0; color: #e1e9de; font-size: 10px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.contact-section a:hover { color: var(--lime); }

.skill-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.skill-list li { display: flex; justify-content: space-between; gap: 8px; color: #e1e9de; font-size: 10px; }
.skill-level { display: flex; gap: 3px; align-items: center; }
.skill-level i { width: 5px; height: 5px; border: 1px solid #8da69a; border-radius: 50%; }
.skill-level i:nth-child(-n+4) { border-color: var(--lime); background: var(--lime); }
.skill-list li:nth-child(3) .skill-level i:nth-child(4) { border-color: #8da69a; background: transparent; }

.languages p { display: flex; justify-content: space-between; margin-bottom: 10px; color: #e1e9de; font-size: 10px; }
.languages p span + span { color: #aebfb2; }
.sidebar-index { margin-top: auto; padding-top: 34px; color: #aebfb2; font-size: 9px; }
.sidebar-index span { padding: 0 7px; color: var(--lime); }

.content { display: flex; flex-direction: column; padding: 49px 53px 35px; }
.content-header { align-items: center; gap: 16px; color: var(--muted); font-size: 8px; }
.content-header p { margin: 0; }
.content-header p:first-child span { padding: 0 5px; color: var(--coral); }
.availability { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.availability i { width: 6px; height: 6px; border-radius: 50%; background: #6d9f75; }

.section-block { margin-top: 48px; }
.section-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 19px; }
.section-number { color: var(--coral); }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.summary-copy { max-width: 570px; margin-bottom: 23px; color: #53615b; font-size: 11px; line-height: 1.85; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: grid; gap: 4px; padding: 15px 10px 13px 0; }
.stats div + div { padding-left: 17px; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--serif); font-size: 27px; font-weight: 600; }
.stats strong span { color: var(--coral); font-family: var(--sans); font-size: 17px; }
.stats small { color: var(--muted); font-size: 7px; font-weight: 700; }

.experience { margin-top: 43px; }
.timeline-item { position: relative; margin-left: 5px; padding: 0 0 24px 19px; border-left: 1px solid #cbd5cb; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { position: absolute; top: 2px; left: -4px; width: 7px; height: 7px; border: 1px solid var(--coral); border-radius: 50%; background: var(--paper); content: ''; }
.timeline-meta { color: var(--muted); font-size: 8px; }
.timeline-item h3,
.education-row h3 { margin: 9px 0 3px; font-size: 12px; font-weight: 700; }
.organization { margin-bottom: 10px; color: var(--coral); font-size: 10px; font-weight: 600; }
.timeline-item ul { display: grid; gap: 6px; margin: 0; padding-left: 14px; color: #53615b; font-size: 10px; line-height: 1.65; }
.timeline-item li::marker { color: var(--coral); }

.education { margin-top: 42px; }
.education-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.education-row h3 { margin-top: 0; }
.education-row .organization { margin-bottom: 0; }
.education-year { flex: 0 0 auto; padding-top: 2px; color: var(--muted); white-space: nowrap; }

.content-footer { margin-top: auto; padding-top: 35px; color: #89958f; font-size: 7px; }
.content-footer span:first-child { color: var(--forest); }
.print-button { position: fixed; z-index: 2; top: 20px; right: 22px; padding: 10px 15px; border: 0; border-radius: 3px; color: white; background: var(--forest); font: 600 11px var(--sans); cursor: pointer; }
.print-button:hover { background: var(--forest-soft); }

@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body { padding: 0; background: var(--paper); }
  .resume { grid-template-columns: 1fr; min-height: 0; box-shadow: none; }
  .sidebar { padding: 32px 28px 29px; }
  .portrait { width: 88px; margin: 32px 0 23px; font-size: 31px; }
  h1 { font-size: 48px; }
  .intro { max-width: 440px; margin-bottom: 12px; }
  .sidebar-section { margin-top: 24px; }
  .contact-section { grid-template-columns: 1fr 1fr; }
  .contact-section h2 { grid-column: 1 / -1; }
  .skill-list { grid-template-columns: 1fr 1fr; }
  .languages { max-width: 390px; }
  .sidebar-index { display: none; }
  .content { padding: 35px 28px 28px; }
  .section-block { margin-top: 38px; }
  .content-header { align-items: flex-start; flex-direction: column; }
  .content-footer { gap: 14px; }
}

@media (max-width: 420px) {
  .contact-section,
  .skill-list { grid-template-columns: 1fr; }
  .content { padding-right: 22px; padding-left: 22px; }
  .stats small { font-size: 6px; }
  .stats div + div { padding-left: 9px; }
  .timeline-meta { gap: 10px; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { padding: 0; background: white; }
  .resume { width: 210mm; min-height: 297mm; box-shadow: none; animation: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sidebar { padding: 13mm 10mm 10mm; }
  .content { padding: 13mm 13mm 9mm; }
  .print-button { display: none; }
  .section-block { break-inside: avoid; }
  a { color: inherit; }
}