:root {
  --paper: #efe9e2;
  --rose: #ffafb8;
  --coral: #f36767;
  --mist: #c0b8b8;
  --taupe: #887a7a;
  --ink: #251f1f;
  --muted: #665b5b;
  --white: #fffafa;
  --line: rgba(136, 122, 122, 0.28);
  --shadow: 0 24px 70px rgba(37, 31, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 175, 184, 0.3) 0 16px, transparent 16px),
    var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 64px) 56px;
  background:
    radial-gradient(circle at 84% 18%, rgba(243, 103, 103, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(255, 250, 250, 0.86), rgba(239, 233, 226, 0.94));
}

.nav {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background: var(--coral);
}

.nav-actions,
.nav-links,
.language-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-actions {
  gap: 18px;
  justify-content: flex-end;
}

.nav-links {
  gap: clamp(12px, 2vw, 30px);
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  border-color: var(--coral);
}

.language-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 250, 0.62);
}

.language-switch a {
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.language-switch a.active {
  color: var(--white);
  background: var(--ink);
}

.hero {
  width: min(1160px, 100%);
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--taupe);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 250, 0.46);
}

.print-button {
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
}

.profile-panel {
  padding: 22px;
  background: rgba(255, 250, 250, 0.72);
  border: 1px solid rgba(136, 122, 122, 0.25);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  border: 10px solid var(--paper);
}

.profile-name {
  margin: 18px 0 2px;
  font-size: 1.5rem;
  font-weight: 850;
}

.profile-role {
  margin-bottom: 22px;
  color: var(--muted);
}

.quick-facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.quick-facts div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 2px 0 0;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0;
}

.intro-grid,
.two-column,
.language-band,
.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 84px);
}

.intro-grid {
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro-grid p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.highlight-band {
  width: 100%;
  padding: 0 clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--taupe);
}

.highlight-band article {
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
}

.highlight-band span {
  display: block;
  margin-bottom: 22px;
  color: var(--coral);
  font-weight: 900;
}

.highlight-band p,
.timeline p,
.education-list p,
.skill-grid p,
.language-list span,
.interests,
address {
  color: var(--muted);
}

.section-heading {
  position: sticky;
  top: 22px;
  align-self: start;
}

.timeline,
.education-list {
  display: grid;
  gap: 18px;
}

.timeline-item,
.education-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-item.current h3::after {
  content: attr(data-current-label);
  margin-left: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: var(--coral);
  border-radius: 4px;
  font-size: 0.72rem;
  vertical-align: middle;
}

.date {
  margin: 0;
  color: var(--taupe);
  font-size: 0.9rem;
  font-weight: 850;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.skills-section {
  border-top: 1px solid var(--line);
}

.skills-section .section-heading {
  position: static;
  margin-bottom: 28px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.skill-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 250, 0.84), rgba(255, 250, 250, 0.58));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--taupe);
}

.skill-grid article:nth-child(5n + 1)::before {
  background: var(--coral);
}

.skill-grid article:nth-child(5n + 2)::before {
  background: var(--rose);
}

.skill-grid article:nth-child(5n + 3)::before {
  background: var(--taupe);
}

.skill-grid article:nth-child(5n + 4)::before {
  background: var(--mist);
}

.skill-grid article:nth-child(5n + 5)::before {
  background: var(--ink);
}

.skill-grid h3,
.rating,
.skill-tags {
  position: relative;
}

.rating {
  margin-bottom: 18px;
  display: flex;
  gap: 3px;
  color: var(--coral);
  font-size: 1.08rem;
  line-height: 1;
}

.rating .empty {
  color: rgba(136, 122, 122, 0.38);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(239, 233, 226, 0.72);
  border: 1px solid rgba(136, 122, 122, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.language-band {
  width: 100%;
  padding: 74px max(18px, calc((100% - 1160px) / 2));
  color: var(--white);
  background: var(--ink);
}

.language-band .eyebrow,
.language-band h2,
.language-band strong {
  color: var(--white);
}

.language-list {
  display: grid;
  gap: 14px;
  align-content: center;
}

.language-list p {
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.interests {
  text-align: center;
}

.interest-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.interest-list span {
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 175, 184, 0.36);
  border: 1px solid rgba(243, 103, 103, 0.25);
  border-radius: 999px;
  font-weight: 750;
}

.contact-section {
  margin-bottom: 40px;
  padding: 58px clamp(22px, 4vw, 48px);
  background: var(--white);
  border-top: 6px solid var(--coral);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

address {
  font-style: normal;
}

address p {
  margin-bottom: 8px;
}

address a {
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 250, 250, 0.42);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(37, 31, 31, 0.24);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  z-index: 20;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--coral);
  outline: none;
  transform: translateY(-2px);
}

.print-cv {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
  }

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

  .nav-actions,
  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .intro-grid,
  .two-column,
  .language-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 44px;
  }

  .profile-panel {
    max-width: 420px;
  }

  .section-heading {
    position: static;
  }

  .highlight-band,
  .skill-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

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

  html,
  body {
    min-height: 0;
    color: #251f1f;
    background: #fffafa;
    font-size: 8.5pt;
    line-height: 1.24;
  }

  .site-header,
  main,
  .back-to-top {
    display: none !important;
  }

  .print-cv {
    width: 100%;
    min-height: 0;
    display: block;
  }

  .print-cv h1,
  .print-cv h2,
  .print-cv h3,
  .print-cv p {
    margin: 0;
  }

  .print-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34mm 24mm;
    gap: 6mm;
    align-items: start;
    padding-bottom: 3.5mm;
    border-bottom: 0.6pt solid rgba(136, 122, 122, 0.32);
  }

  .print-header h1 {
    margin: 0 0 1mm;
    font-size: 20pt;
    line-height: 1;
  }

  .print-role,
  .print-header address {
    color: #665b5b;
  }

  .print-role {
    color: #251f1f;
    max-width: none;
    font-size: 10.6pt;
    font-weight: 800;
    line-height: 1.22;
  }

  .print-header address {
    text-align: right;
    font-size: 8.2pt;
  }

  .print-photo {
    width: 24mm;
    height: 30mm;
    object-fit: cover;
    object-position: center top;
    border: 1pt solid rgba(136, 122, 122, 0.28);
    border-radius: 2mm;
  }

  .print-summary {
    margin: 5mm 3mm 9mm;
    padding: 3mm 3.4mm;
    color: #665b5b;
    background: rgba(239, 233, 226, 0.6);
    border: 1.4pt solid #f36767;
    border-radius: 0;
    box-shadow: none;
    font-size: 8.4pt;
    line-height: 1.38;
    min-height: 0;
    overflow: visible;
  }

  .print-layout {
    display: grid;
    grid-template-columns: 62mm 1fr;
    gap: 8mm;
  }

  .print-cv section {
    margin-bottom: 3.8mm;
  }

  .print-cv h2 {
    margin-bottom: 1.6mm;
    color: #f36767;
    font-size: 9.2pt;
    line-height: 1;
    text-transform: uppercase;
  }

  .print-cv h3 {
    font-size: 8.4pt;
    line-height: 1.12;
  }

  .print-main {
    padding-left: 6mm;
    border-left: 0.8pt solid rgba(136, 122, 122, 0.28);
  }

  .print-skills {
    display: grid;
    gap: 1.5mm;
  }

  .print-skill {
    padding-bottom: 1.3mm;
    border-bottom: 0.5pt solid rgba(136, 122, 122, 0.28);
  }

  .print-skill h3 {
    display: inline;
    margin-right: 1.5mm;
  }

  .print-rating {
    display: inline-flex;
    margin: 0;
    gap: 1pt;
    font-size: 7.4pt;
  }

  .print-skill p,
  .print-list p,
  .print-timeline-item p,
  .print-timeline-item li {
    color: #665b5b;
  }

  .print-skill p {
    margin-top: 0.6mm;
    font-size: 7.2pt;
    line-height: 1.16;
  }

  .print-list {
    display: grid;
    gap: 1mm;
  }

  .print-timeline {
    display: grid;
    gap: 2.1mm;
  }

  .print-timeline-item {
    display: grid;
    grid-template-columns: 25mm 1fr;
    gap: 3mm;
    padding-bottom: 1.8mm;
    border-bottom: 0.5pt solid rgba(136, 122, 122, 0.28);
    break-inside: avoid;
  }

  .print-timeline-item .date {
    color: #887a7a;
    font-size: 7.5pt;
  }

  .print-timeline-item ul {
    margin-top: 0.8mm;
    padding-left: 3.2mm;
  }

  .print-timeline-item li {
    margin-bottom: 0.3mm;
    font-size: 7.4pt;
  }

  .print-cv .eyebrow {
    margin-bottom: 1mm;
    font-size: 6.8pt;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--paper);
  }

  .site-header {
    padding-inline: 18px;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 54px 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .timeline-item,
  .education-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .language-list p {
    flex-direction: column;
    gap: 4px;
  }

  .button {
    width: 100%;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
  }
}
