/* ── Resume — matches the printed PDF layout ── */

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

body {
  background: #e8e8e6;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  line-height: 1.4;
  padding: 40px 16px 80px;
  -webkit-font-smoothing: antialiased;
}

/* The "sheet of paper" */
.sheet {
  width: 100%;
  max-width: 8.5in;
  margin: 0 auto;
  background: #fff;
  padding: 0.62in 0.68in 0.7in;
  box-shadow: 0 6px 34px rgba(0,0,0,0.16);
}

/* ── Header ── */
.r-name {
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.r-tagline {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 11px;
}

.r-contact {
  text-align: center;
  font-size: 11.5px;
  line-height: 1.9;
}
.r-contact a {
  color: inherit;
  text-decoration: none;
}
.r-contact a:hover { text-decoration: underline; }
.r-contact i {
  font-size: 10.5px;
  margin-right: 4px;
}
.r-contact .sep { display: inline-block; width: 18px; }

/* ── Section headings ── */
.r-section {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  border-bottom: 1.4px solid #1a1a1a;
  padding-bottom: 2px;
  margin: 19px 0 9px;
}

/* ── About paragraph ── */
.r-about {
  font-size: 11.8px;
  line-height: 1.5;
  text-align: justify;
}

/* ── Experience entries ── */
.r-entry { margin-bottom: 11px; }
.r-entry:last-child { margin-bottom: 0; }

.r-entry-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
}

.r-role {
  font-size: 12.3px;
  font-weight: 700;
}

.r-org {
  font-size: 11.8px;
  font-style: italic;
}

.r-meta {
  font-size: 11.3px;
  text-align: right;
  white-space: nowrap;
}

.r-entry ul {
  margin: 2px 0 0 15px;
  padding: 0;
}

.r-entry li {
  font-size: 11.5px;
  line-height: 1.42;
  margin-bottom: 1px;
}

.r-entry p.r-para {
  font-size: 11.5px;
  line-height: 1.42;
  margin-top: 2px;
}

.r-entry strong { font-weight: 700; }

.r-note {
  font-size: 11.5px;
  line-height: 1.42;
}

/* ── Two-column blocks (languages, software, skills) ── */
.r-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 34px;
}

.r-block-title {
  font-size: 11.8px;
  font-weight: 700;
}

.r-block-body {
  font-size: 11.5px;
}

/* Core skills bullets across two columns */
.r-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 34px;
  margin-left: 15px;
}
.r-skills li {
  font-size: 11.5px;
  line-height: 1.5;
}

/* ── Screen-only toolbar ── */
.r-bar {
  max-width: 8.5in;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'Inter', -apple-system, sans-serif;
}

.r-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.16);
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.r-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
}

.r-btn-primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.r-bar-spacer { flex: 1; }

/* ── Print ── */
@page {
  size: letter;
  margin: 0.5in;
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .sheet {
    max-width: none;
    width: auto;
    box-shadow: none;
    padding: 0;
  }
  .r-bar { display: none !important; }

  /* Never split an entry across a page break */
  .r-entry, .r-block, .r-skills li { break-inside: avoid; }
  .r-section { break-after: avoid; }
}

/* ── Small screens ── */
@media (max-width: 700px) {
  body { padding: 16px 10px 60px; }
  .sheet { padding: 26px 20px 30px; }
  .r-name { font-size: 21px; letter-spacing: 1.4px; }
  .r-contact .sep { width: 0; display: block; height: 0; }
  .r-entry-head { grid-template-columns: 1fr; gap: 0; }
  .r-meta { text-align: left; }
  .r-two-col, .r-skills { grid-template-columns: 1fr; }
}
