/* resume.css — styles for resume.html.
   Kept in its own file rather than an inline <style> block: the site's
   Content-Security-Policy (style-src 'self' + Google Fonts) refuses inline
   styles, which left the live résumé completely unstyled. */

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

:root {
  --sidebar-bg:     #2c2c28;
  --sidebar-border: rgba(184, 149, 106, 0.16);
  --sidebar-text:   #f5f3f0;
  --sidebar-muted:  #b8956a;
  --sidebar-accent: #c9a961;
  --text:           #2c2c28;
  --muted:          #6b6b64;
  --light:          #a8a8a0;
  --border:         #e8e4dc;
  --accent:         #a0523d;
}

html { font-size: 14px; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: #faf8f3;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE ──────────────────────────────────────── */
.page {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-radius: 4px;
  overflow: hidden;
}

/* ── SIDEBAR ───────────────────────────────────── */
.sidebar {
  background: var(--sidebar-bg);
  padding: 40px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
  color-adjust: exact;
}

/* Name block */
.sidebar-name {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-name h1 {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sidebar-title {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--sidebar-accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 10px;
}

.aws-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sidebar-accent);
  border: 1px solid rgba(201, 169, 97, 0.32);
  border-radius: 20px;
  padding: 2px 9px;
  margin-top: 9px;
}

/* Sidebar section heading */
.sidebar-heading {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sidebar-accent);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 12px;
}

/* Contact */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-list li {
  font-size: 0.77rem;
  color: var(--sidebar-muted);
  line-height: 1.4;
  word-break: break-all;
}

.contact-list a {
  color: var(--sidebar-muted);
  text-decoration: none;
}

/* Skills */
.skill-block { margin-bottom: 11px; }
.skill-block:last-child { margin-bottom: 0; }

.skill-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sidebar-text);
  margin-bottom: 3px;
}

.skill-value {
  font-size: 0.74rem;
  color: var(--sidebar-muted);
  line-height: 1.65;
}

/* Education */
.edu-block { margin-bottom: 15px; }
.edu-block:last-child { margin-bottom: 0; }

.edu-school {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sidebar-text);
  line-height: 1.3;
}

.edu-degree {
  font-size: 0.74rem;
  color: var(--sidebar-muted);
  line-height: 1.55;
  margin-top: 3px;
}

.edu-year {
  font-size: 0.69rem;
  color: rgba(245, 243, 240, 0.55);
  margin-top: 3px;
}

/* Certifications */
.cert-block { margin-bottom: 8px; }
.cert-block:last-child { margin-bottom: 0; }

.cert-name {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--sidebar-text);
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.67rem;
  color: rgba(245, 243, 240, 0.55);
  margin-top: 1px;
}

/* ── MAIN ──────────────────────────────────────── */
.main {
  background: #ffffff;
  padding: 40px 44px 56px;
  border-top: 3px solid var(--accent);
}

.main-section { margin-bottom: 22px; }
.main-section:last-child { margin-bottom: 0; }

.section-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 13px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid var(--border);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1.5px;
  width: 32px;
  height: 1.5px;
  background: var(--accent);
}

/* Summary */
.summary-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.72;
}

/* Jobs */
.job {
  margin-bottom: 16px;
  break-inside: avoid;
}

.job + .job {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 5px;
}

.job-company {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.job-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 2px;
}

.job-meta {
  font-size: 0.71rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  line-height: 1.5;
  flex-shrink: 0;
}

.job ul {
  list-style: none;
  margin-top: 5px;
}

.job ul li {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
  margin-bottom: 2px;
}

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

.job ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.3em;
}

/* ── PRINT ─────────────────────────────────────── */
@media print {
  body { background: white; }

  .page {
    margin: 0;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
  }

  .sidebar {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  .job { break-inside: avoid; }

  @page {
    margin: 0;
    size: letter;
  }
}
