:root {
  --ink: #1a1a1a;
  --ink-light: #444;
  --ink-muted: #777;
  --accent: #2c5282;
  --accent-hover: #1e3a5f;
  --rule: #d0d0d0;
  --bg: #ffffff;
  --sidebar-bg: #f5f6f8;
  --page-bg: #f0f0ee;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.resume {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
}

.header {
  padding: 52px 48px 32px;
  border-bottom: 2px solid var(--ink);
}

.content {
  display: grid;
  grid-template-columns: 1fr 220px;
}

.main {
  padding: 32px 40px 56px 48px;
}

.sidebar {
  background: var(--sidebar-bg);
  border-left: 1px solid #e2e4e8;
  padding: 32px 28px 56px 22px;
}

/* ===== HEADER ===== */
h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.contact-row a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-row a:hover { color: var(--accent-hover); text-decoration: underline; }

.summary {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 620px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 16px;
}

.section-title:first-child { margin-top: 0; }

/* ===== EXPERIENCE ===== */
.exp-block { margin-bottom: 20px; }

.exp-company {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.exp-location {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.exp-role {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 10px;
}

.exp-dates {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.exp-bullets {
  list-style: none;
  margin-top: 5px;
}

.exp-bullets li {
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--ink-light);
  padding-left: 16px;
  position: relative;
  margin-bottom: 5px;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hl {
  color: var(--ink);
  font-weight: 500;
}

.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 20px 0;
}

/* ===== SIDEBAR ===== */
.side-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 12px;
}

.side-section-title:first-child { margin-top: 0; }

.skill-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-light);
  background: var(--bg);
  border: 1px solid #dde1e6;
  border-radius: 3px;
  padding: 3px 8px;
  margin: 2px 2px 2px 0;
  line-height: 1.35;
  transition: border-color 0.15s, color 0.15s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.side-item {
  margin-bottom: 14px;
}

.side-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.3;
}

.side-item-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
  font-style: italic;
}

.side-item-date {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.award-item { margin-bottom: 12px; }

.award-name {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.3;
}

.award-detail {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.languages {
  font-size: 0.88rem;
  color: var(--ink-light);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  border-top: 1px solid #e2e4e8;
}

.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.download-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header { padding: 36px 24px 24px; }

  h1 { font-size: 2.2rem; }

  .content {
    display: block;
  }

  .main {
    padding: 24px 24px 32px;
  }

  .sidebar {
    border-left: none;
    border-top: 1px solid #e2e4e8;
    padding: 28px 24px 40px;
  }

  .contact-row { gap: 4px 16px; }
}

@media (max-width: 480px) {
  .header { padding: 28px 18px 20px; }
  h1 { font-size: 1.8rem; }
  .main { padding: 20px 18px 28px; }
  .sidebar { padding: 24px 18px 32px; }
}

/* ===== PRINT ===== */
@media print {
  body { background: white; font-size: 11px; }
  .resume { max-width: 100%; }
  .download-btn, .footer { display: none; }
  /* A4 is narrower than the 768px breakpoint; keep the two-column layout on paper. */
  .content { display: grid; grid-template-columns: 1fr 190px; }
  .sidebar { border-left: 1px solid #e2e4e8; border-top: none; }
  .header { padding: 28px 32px 20px; }
  .main { padding: 20px 28px 24px 32px; }
  .sidebar { padding: 20px 18px 24px 16px; }
}
