:root {
  --page-bg: #f1f1ee;
  --paper: #ffffff;
  --ink: #2d2d2d;
  --muted: #5a5a5a;
  --rule: #244f7c;
  --accent: #3e74bd;
  --shadow: 0 18px 55px rgba(22, 32, 44, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(36, 79, 124, 0.05), transparent 18rem),
    var(--page-bg);
  color: var(--ink);
  font-family: "Aptos", "Calibri", "Segoe UI", sans-serif;
}

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

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto;
  padding: 2.5rem 2.75rem 3rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  text-align: center;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.7rem;
}

.hero h1 {
  margin: 0;
  color: #444;
  font-family: "Cambria", "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.role {
  margin: 0.55rem 0 0.25rem;
  color: #666;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role span,
.contact span {
  margin: 0 0.45rem;
}

.contact {
  margin: 0;
  font-size: 0.94rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1rem;
}

.sidebar {
  padding-right: 0.8rem;
  border-right: 2px solid rgba(36, 79, 124, 0.25);
}

.main-column {
  min-width: 0;
}

section + section {
  margin-top: 1.45rem;
}

.sidebar section + section,
.main-column section + section {
  margin-top: 1.75rem;
}

h2 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.38rem;
  border-bottom: 2px solid rgba(36, 79, 124, 0.9);
  color: var(--rule);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar h2 {
  font-size: 0.98rem;
  text-transform: none;
}

h3,
h4,
p,
ul {
  margin: 0;
}

.job + .job,
.job + .project-highlights,
.project-highlights + .job {
  margin-top: 1rem;
}

.job-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.5rem;
}

.job-header h3 {
  color: var(--rule);
  font-size: 1rem;
  font-weight: 800;
}

.job-header p {
  color: #444;
  font-style: italic;
}

.job-header span {
  color: #666;
}

.accent-heading {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
}

.highlight + .highlight {
  margin-top: 0.65rem;
}

.highlight h4 {
  margin-bottom: 0.15rem;
  font-size: 0.96rem;
  text-decoration: underline;
}

.detail-list,
.plain-list,
.compact-list {
  padding: 0;
  list-style: none;
}

.detail-list li,
.plain-list li,
.compact-list li,
.main-column p {
  font-size: 0.94rem;
  line-height: 1.48;
}

.detail-list li + li,
.plain-list li + li,
.compact-list li + li {
  margin-top: 0.22rem;
}

.detail-list {
  padding-left: 2rem;
}

.detail-list li {
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.7rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: rgba(36, 79, 124, 0.65);
}

.compact-list {
  margin-top: 0.35rem;
  padding-left: 0.75rem;
}

.compact-list li::before {
  content: "* ";
  margin-left: -0.75rem;
}

.school,
.strong-gap {
  margin-top: 0.2rem;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .page {
    width: min(100%, calc(100% - 1rem));
    margin: 0.5rem auto;
    padding: 1.5rem 1.15rem 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .sidebar {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .contact span,
  .role span {
    display: none;
  }

  .contact a,
  .role {
    display: block;
  }

  .detail-list {
    padding-left: 1.1rem;
  }

  .detail-list li::before {
    left: -0.7rem;
  }
}

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

  .page {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}
