:root {
  --page: #ffffff;
  --ink: #1e252c;
  --muted: #5d6874;
  --line: #d8dde3;
  --accent: #1d5f63;
  --accent-soft: #e8f1ef;
  --soft: #f4f7f8;
  --bg: #ece8df;
  --shadow: 0 26px 90px rgba(30, 37, 44, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(30, 37, 44, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.resume-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(30, 37, 44, 0.12);
  background: rgba(236, 232, 223, 0.88);
  backdrop-filter: blur(14px);
  font-size: 0.92rem;
  font-weight: 800;
}

.download-button,
.resume-footer-cta a {
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 14px;
}

.resume-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 960px);
  gap: 26px;
  width: min(1240px, calc(100% - 28px));
  margin: 30px auto 60px;
  align-items: start;
}

.resume-sidebar {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 70px rgba(30, 37, 44, 0.12);
  backdrop-filter: blur(14px);
}

.resume-sidebar img {
  width: 84px;
  height: 84px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
}

.resume-sidebar strong {
  line-height: 1.1;
}

.resume-sidebar span {
  color: var(--muted);
  font-size: 0.86rem;
}

.resume-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.resume-sidebar a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.resume-sidebar a:hover {
  background: var(--ink);
  color: #ffffff;
}

.pdf-mobile-view {
  display: none;
}

.resume-view {
  display: grid;
  gap: 26px;
  justify-items: center;
}

.resume-page {
  width: min(100%, 900px);
  min-height: 1240px;
  padding: 48px;
  background: var(--page);
  box-shadow: var(--shadow);
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--ink);
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resume-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.headline {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
}

.positioning {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.resume-hero img {
  width: 132px;
  height: 132px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.impact-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.impact-snapshot div {
  min-height: 104px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.impact-snapshot div:last-child {
  border-right: 0;
}

.impact-snapshot strong {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1.05;
}

.impact-snapshot span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.resume-section {
  padding-top: 20px;
}

.resume-section h2 {
  margin: 0 0 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.resume-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.best-at-grid,
.depth-matrix,
.skill-list {
  display: grid;
  gap: 8px;
}

.best-at-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.best-at-grid span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.depth-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.depth-matrix div,
.skill-list p {
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
}

.depth-matrix strong,
.skill-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.depth-matrix span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.job {
  padding: 13px 0 15px;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 0;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}

.job-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.job-head p {
  margin-top: 2px;
  color: var(--accent);
  font-weight: 800;
}

.job-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.achievement-block {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  background: #fbfcfc;
  border: 1px solid var(--line);
}

.achievement-block strong {
  color: var(--ink);
}

.job .achievement-block + ul {
  margin-top: 9px;
}

.compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
}

.job-head.simple {
  margin: 0;
}

.resume-footer-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.resume-footer-cta h2 {
  margin: 0;
  font-size: 1.45rem;
}

.resume-footer-cta p {
  max-width: 620px;
  margin: 10px 0 24px;
  color: rgba(255, 255, 255, 0.72);
}

.resume-footer-cta a {
  display: inline-flex;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

@media print {
  body {
    background: #ffffff;
  }

  .resume-toolbar,
  .resume-sidebar,
  .resume-footer-cta {
    display: none;
  }

  .resume-shell,
  .resume-view {
    display: block;
    width: 100%;
    margin: 0;
  }

  .resume-page {
    min-height: auto;
    box-shadow: none;
    page-break-after: always;
  }
}

@media (max-width: 980px) {
  .resume-shell {
    display: block;
    width: min(100%, 960px);
    padding: 0 14px;
  }

  .resume-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .resume-toolbar {
    flex-direction: column;
  }

  .resume-shell {
    width: 100%;
    margin: 18px 0 44px;
    padding: 0 10px;
  }

  .pdf-mobile-view {
    display: grid;
    gap: 12px;
  }

  .pdf-mobile-view iframe {
    width: 100%;
    min-height: 76vh;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .pdf-mobile-view a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 900;
  }

  .resume-view {
    display: none;
  }

  .resume-toolbar {
    position: static;
    gap: 10px;
    padding: 12px 10px;
  }

  .download-button {
    text-align: center;
  }
}
