@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color: #172b35;
  background: #eaf0f2;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px 48px;
}

a {
  color: inherit;
  text-decoration-color: #6d9794;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.page {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
}

/* Navigation & Action Bar */
.top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #183843;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-back-link:hover {
  background: #28545f;
  color: #fff;
}

.print-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: #183843;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.print-button:hover {
  background: #28545f;
}

.resume {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 1050px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgb(32 54 65 / 14%);
}

.sidebar {
  padding: 48px 34px;
  background: #183843;
  color: #f2f7f7;
}

.monogram {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 58px;
  place-items: center;
  border: 1px solid rgb(209 232 228 / 55%);
  border-radius: 50%;
  color: #b9ded4;
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sidebar-section + .sidebar-section {
  margin-top: 42px;
}

.sidebar h2,
.content-section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.sidebar h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(219 238 234 / 25%);
  color: #b9ded4;
  letter-spacing: 0.04em;
}

.contact-list,
.tag-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 18px;
}

.contact-label {
  display: block;
  margin-bottom: 5px;
  color: #a8c4c8;
  font-size: 0.76rem;
}

.contact-list li > :last-child {
  font-size: 0.88rem;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 7px 10px;
  border: 1px solid rgb(219 238 234 / 22%);
  border-radius: 999px;
  color: #e2eeee;
  font-size: 0.76rem;
}

.language-name {
  margin: 18px 0 4px;
  font-weight: 600;
}

.muted {
  margin: 0;
  color: #a8c4c8;
  font-size: 0.88rem;
}

.main-content {
  padding: 64px 58px 42px;
}

.profile {
  padding-bottom: 34px;
  border-bottom: 1px solid #e5ecec;
}

.eyebrow {
  margin: 0 0 16px;
  color: #56807d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  color: #183843;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 1.03;
}

.role {
  margin: 22px 0 0;
  color: #56807d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.summary {
  margin: 20px 0 0;
  color: #52646a;
  font-size: 0.94rem;
  line-height: 1.75;
}

.content-section {
  margin-top: 38px;
}

.content-section h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ecec;
  color: #183843;
}

.timeline-item {
  position: relative;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 2px solid #b9ded4;
}

.timeline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.timeline-heading h3 {
  margin: 0;
  color: #243b44;
  font-size: 1rem;
  font-weight: 700;
}

.organization {
  margin: 5px 0 0;
  color: #56807d;
  font-size: 0.9rem;
  font-weight: 600;
}

.date {
  flex: 0 0 auto;
  margin: 3px 0 0;
  color: #6b7c80;
  font-size: 0.8rem;
}

.experience-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #52646a;
  font-size: 0.9rem;
  line-height: 1.8;
}

.detail {
  margin: 10px 0 0;
  color: #52646a;
  font-size: 0.9rem;
}

.resume-footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid #e5ecec;
  color: #718287;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  body {
    padding: 24px 12px 20px;
  }

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

  .sidebar {
    padding: 30px 28px;
  }

  .monogram {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
  }

  .sidebar-section + .sidebar-section {
    margin-top: 28px;
  }

  .main-content {
    padding: 38px 28px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  :root {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body {
    min-width: 0;
    padding: 0;
    background: #fff;
  }

  .no-print,
  .top-nav-bar,
  .print-button {
    display: none !important;
  }

  .page,
  .resume {
    width: 100%;
    min-height: 297mm;
    margin: 0;
  }

  .resume {
    grid-template-columns: 72mm minmax(0, 1fr);
    box-shadow: none;
  }

  .sidebar {
    padding: 15mm 9mm;
  }

  .main-content {
    padding: 18mm 14mm 12mm;
  }
}
