/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', serif;

  /* Brand */
  --navy:   #1b2b3a;
  --accent: #5da8d8;

  /* Page */
  --page-bg: #dde2ea;

  /* Sidebar */
  --sidebar-bg:      #1b2b3a;
  --sidebar-text:    #c4d4e0;
  --sidebar-muted:   #93b5c8;
  --sidebar-subdued: #6a8ea0;
  --sidebar-label:   #b8d0de;
  --sidebar-dd:      #7fa4b8;
  --sidebar-white:   #ffffff;
  --sidebar-divider:         rgba(255,255,255,.1);
  --sidebar-section-divider: rgba(93,168,216,.25);
  --sidebar-edu-heading: #dce8f0;

  /* Main */
  --main-bg:       #ffffff;
  --main-text:     #374151;
  --main-heading:  #111827;
  --main-divider:         #f0f3f7;
  --main-section-divider: #e2e8f0;
  --meta-color:    #94a3b8;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   SCREEN STYLES
   ============================================================ */

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: var(--page-bg);
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
}

/* Two-column resume card */
.resume {
  display: grid;
  grid-template-columns: 270px 1fr;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.resume-sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}

/* Header block inside sidebar */
.resume-header {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
}

.resume-name {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sidebar-white);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}

.resume-tagline {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.resume-contact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .8rem;
}

.resume-contact a,
.resume-contact span {
  color: var(--sidebar-muted);
  text-decoration: none;
  transition: color .15s;
}

.resume-contact a:hover {
  color: var(--sidebar-white);
}

/* Sidebar sections */
.resume-sidebar .resume-section {
  margin-bottom: 1.75rem;
}

.resume-sidebar .resume-section:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

/* Shared section heading base */
.resume-section h2 {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding-bottom: .35rem;
  margin-bottom: 1rem;
}

.resume-sidebar .resume-section h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--sidebar-section-divider);
  padding-bottom: .4rem;
}

/* Education */
.edu-degree {
  font-size: .84rem;
  font-weight: 600;
  color: var(--sidebar-edu-heading);
  margin-bottom: .1rem;
}

.edu-school {
  font-size: .8rem;
  color: var(--sidebar-muted);
}

.edu-year {
  font-size: .78rem;
  color: var(--sidebar-subdued);
  margin-top: .1rem;
}

/* Skills */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.skill-row dt {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sidebar-label);
  margin-bottom: .15rem;
}

.skill-row dd {
  font-size: .8rem;
  color: var(--sidebar-dd);
  line-height: 1.45;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.resume-main {
  background: var(--main-bg);
  padding: 2.5rem 2.75rem;
}

.resume-main .resume-section {
  margin-bottom: 0;
}

.resume-main .resume-section h2 {
  color: var(--navy);
  border-bottom: 2px solid var(--main-section-divider);
  margin-bottom: 1.25rem;
}

/* Role entries */
.role {
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--main-divider);
}

.role:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15rem .5rem;
  margin-bottom: .5rem;
}

.role-title-block {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}

.role-company {
  font-size: .97rem;
  font-weight: 700;
  color: var(--main-heading);
}

.role-title {
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
}

.role-meta {
  font-size: .775rem;
  font-weight: 400;
  color: var(--meta-color);
  white-space: nowrap;
}

/* Bullet lists */
.role ul {
  padding-left: 1.1rem;
}

.role ul li {
  font-size: .865rem;
  color: var(--main-text);
  margin-bottom: .28rem;
  line-height: 1.55;
}

.role ul li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 680px) {
  body {
    padding: 0;
    background: var(--sidebar-bg);
  }

  .resume {
    grid-template-columns: 1fr;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  .resume-sidebar {
    padding: 1.75rem 1.25rem;
  }

  .resume-sidebar .resume-section:last-child {
    margin-top: 0;
  }

  .resume-main {
    padding: 1.75rem 1.25rem;
  }

  .role-header {
    flex-direction: column;
    gap: .1rem;
  }

  .role-meta {
    white-space: normal;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  @page {
    margin: 0.45in 0.5in;
    size: letter;
  }

  body {
    font-family: var(--font-serif);
    font-size: 9.5pt;
    line-height: 1.4;
    background: none;
    padding: 0;
    color: #111;
  }

  /* Keep the two-column grid */
  .resume {
    display: grid;
    grid-template-columns: 1.8in 1fr;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    min-height: 0;
  }

  /* Sidebar: light slate instead of dark navy */
  .resume-sidebar {
    background: #eef1f5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: #1a1a1a;
    padding: .25in .2in;
  }

  .resume-header {
    padding-bottom: .15in;
    margin-bottom: .15in;
  }

  .resume-name {
    font-size: 13pt;
    color: #111;
  }

  .resume-tagline {
    font-size: 6.5pt;
    color: #3a7aa8;
    letter-spacing: .12em;
    margin-bottom: .1in;
  }

  .resume-contact {
    gap: 2pt;
  }

  .resume-contact a,
  .resume-contact span {
    color: #2a5a7a;
    font-size: 7.5pt;
  }

  .resume-sidebar .resume-section {
    margin-bottom: .15in;
  }

  /* Override shared h2 base for print sizing/spacing */
  .resume-section h2 {
    padding-bottom: 2pt;
    margin-bottom: 6pt;
  }

  .resume-sidebar .resume-section h2 {
    font-size: 6pt;
    color: #3a7aa8;
    border-bottom-color: #b0c4d4;
    border-bottom-width: 1pt;
  }

  .edu-degree {
    font-size: 8pt;
    color: #111;
  }

  .edu-school {
    font-size: 7.5pt;
    color: #444;
  }

  .edu-year {
    font-size: 7pt;
    color: #666;
  }

  .skills-list {
    gap: 6pt;
  }

  .skill-row dt {
    font-size: 6.5pt;
    color: #1a1a1a;
    letter-spacing: .06em;
  }

  .skill-row dd {
    font-size: 7.5pt;
    color: #333;
    line-height: 1.35;
  }

  /* Main content */
  .resume-main {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: .25in .25in .25in .2in;
  }

  .resume-main .resume-section h2 {
    font-size: 7pt;
    color: var(--navy);
    border-bottom: 1.5pt solid #dde3eb;
    margin-bottom: 8pt;
    page-break-after: avoid;
    break-after: avoid;
  }

  .role {
    border-bottom: .5pt solid #eef1f5;
    padding-bottom: 8pt;
    margin-bottom: 8pt;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .role-company {
    font-size: 9pt;
    color: #111;
  }

  .role-title {
    font-size: 8.5pt;
    color: #3a7aa8;
  }

  .role-meta {
    font-size: 7.5pt;
    color: #666;
  }

  .role ul {
    padding-left: 1em;
  }

  .role ul li {
    font-size: 8pt;
    color: #222;
    margin-bottom: 2pt;
    line-height: 1.4;
  }

  .resume-sidebar {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
