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

:root {
  color-scheme: light;
  --ink: #202b27;
  --muted: #63706a;
  --green: #173f35;
  --lime: #c8e27a;
  --clay: #bf7655;
  --amber: #e6b45d;
  --paper: #fffefa;
  --line: #dfe4dc;
  --mint: #eef2e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #e9eee8;
  background-image: radial-gradient(#c8d1c6 0.65px, transparent 0.65px);
  background-size: 17px 17px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.65;
}

a { color: inherit; text-decoration-color: rgba(200, 226, 122, .65); text-underline-offset: 3px; }

.resume {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  width: min(100% - 48px, 1020px);
  min-height: 1120px;
  margin: 36px auto;
  border-top: 5px solid var(--clay);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(25, 49, 40, .14);
}

.sidebar {
  position: relative;
  padding: 44px 30px 36px;
  background-color: var(--green);
  background-image: repeating-linear-gradient(135deg, transparent 0 34px, rgba(255, 255, 255, .018) 34px 35px), linear-gradient(155deg, #12382f, #214b3e);
  color: #f4f5e9;
}

.identity { padding-bottom: 27px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.monogram {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 31px;
  border: 1px solid rgba(230, 180, 93, .8);
  border-radius: 4px 50% 50%;
  background: rgba(230, 180, 93, .1);
  color: var(--amber);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
}

.eyebrow { margin: 0 0 10px; color: var(--amber); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.identity h1 { margin: 0; color: #fffefa; font: 700 40px/1.04 'Playfair Display', Georgia, serif; letter-spacing: 0; }
.role { margin: 17px 0 0; color: #d0d9d0; font-size: 12px; }
.role::before { display: block; width: 32px; height: 2px; margin-bottom: 11px; background: var(--lime); content: ''; }
.side-section { padding-top: 25px; }
.side-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--lime); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.side-section h2::after { height: 1px; flex: 1; background: rgba(255, 255, 255, .2); content: ''; }
.contact-list { margin: 0; }
.contact-list div { margin-bottom: 13px; }
.contact-list dt { color: #aebeb4; font-size: 10px; }
.contact-list dd { margin: 1px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.skill-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.skill-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 11px; }
.skill-list li:first-child { padding-top: 0; }
.skill-list li:last-child { border-bottom: 0; }
.skill-level { color: #bdcbbf; font-size: 10px; white-space: nowrap; }
.language { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 9px; font-size: 12px; }
.language span { color: #bdcbbf; }

.content { padding: 48px 54px 32px; }
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  grid-template-areas: "kicker image" "title image" "summary image";
  align-items: start;
  gap: 0 25px;
  padding-bottom: 29px;
  border-bottom: 1px solid var(--line);
}
.intro-visual { position: relative; grid-area: image; width: 100%; aspect-ratio: 4 / 5; margin: 4px 0 8px; overflow: hidden; border: 5px solid var(--paper); border-radius: 3px; background: var(--mint); box-shadow: 8px 9px 0 #e5ebd7, 0 16px 34px rgba(25, 49, 40, .16); transform: rotate(1.5deg); }
.intro-visual::after { position: absolute; inset: 28% 0 0; background: linear-gradient(transparent, rgba(13, 37, 30, .88)); content: ''; }
.intro-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.intro-visual figcaption { position: absolute; z-index: 1; right: 8px; bottom: 9px; left: 8px; color: #fffefa; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-align: center; }
.intro-visual figcaption span { padding: 0 2px; color: var(--amber); }
.intro-visual:hover img { transform: scale(1.07); }
.intro::after { position: absolute; bottom: -1px; left: 0; width: 58px; height: 2px; background: var(--clay); content: ''; }
.intro .eyebrow { grid-area: kicker; color: #a45f42; }
.intro .eyebrow span { padding: 0 5px; color: #a6b199; }
.intro h2, .section-heading h2 { margin: 0; font: 600 27px/1.2 'Playfair Display', Georgia, serif; letter-spacing: 0; }
.intro h2 { grid-area: title; }
.summary { grid-area: summary; max-width: 570px; margin: 13px 0 0; color: #515d56; font-size: 13px; line-height: 1.8; }
.main-section { padding-top: 27px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.section-heading::after { height: 1px; flex: 1; margin-left: 3px; background: linear-gradient(90deg, #d8dfd1, transparent); content: ''; }
.section-number { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid #eedbb9; border-radius: 50%; background: #fff9ee; color: #a45f42; font-size: 9px; font-weight: 700; }
.section-heading h2 { font-size: 20px; }
.entry { position: relative; margin: 0 0 20px 12px; padding: 0 0 1px 21px; border-left: 1px solid var(--line); }
.entry::before { position: absolute; top: 4px; left: -4px; width: 7px; height: 7px; border: 2px solid var(--paper); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 1px var(--clay); content: ''; }
.entry-meta { display: flex; justify-content: space-between; gap: 10px; color: #7a867e; font-size: 10px; }
.entry h3 { margin: 5px 0 2px; color: #273a31; font-size: 14px; font-weight: 700; line-height: 1.4; }
.entry-subtitle { margin: 0 0 7px !important; color: #658044 !important; font-size: 11px !important; font-weight: 600; }
.entry p { margin: 6px 0 0; color: #5e6962; font-size: 11px; line-height: 1.7; }
.detail-list { margin: 6px 0 0; padding-left: 16px; color: #5e6962; font-size: 11px; }
.detail-list li { padding-left: 2px; margin-bottom: 3px; }
.resume-footer { display: flex; justify-content: space-between; margin-top: 29px; padding-top: 12px; border-top: 1px solid var(--line); color: #89938b; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }

@media (max-width: 700px) {
  .resume { grid-template-columns: 1fr; width: min(100% - 24px, 540px); margin: 12px auto; }
  .sidebar { padding: 32px 28px; }
  .identity h1 br { display: none; }
  .identity h1 { font-size: 42px; }
  .monogram { margin-bottom: 22px; }
  .side-section { padding-top: 20px; }
  .contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .content { padding: 34px 26px 26px; }
  .entry-meta { flex-wrap: wrap; }
  .intro { grid-template-columns: minmax(0, 1fr) 125px; gap: 0 14px; }
  .intro-visual { aspect-ratio: 3 / 4; }
}

@media (max-width: 420px) {
  .intro { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "summary" "image"; }
  .intro-visual { width: 100%; max-height: 170px; aspect-ratio: 2 / 1; margin-top: 18px; transform: none; }
}

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; background-image: none; font-size: 10px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .resume { width: 210mm; min-height: 297mm; margin: 0; box-shadow: none; grid-template-columns: 68mm minmax(0, 1fr); }
  .sidebar { padding: 13mm 8mm 10mm; }
  .identity h1 { font-size: 34px; }
  .content { padding: 14mm 12mm 8mm; }
  .intro { grid-template-columns: minmax(0, 1fr) 42mm; column-gap: 5mm; }
  .intro-visual { aspect-ratio: 4 / 5; transform: none; box-shadow: none; }
  .main-section { padding-top: 6mm; }
  .entry { margin-bottom: 4mm; }
  a { text-decoration: none; }
}