@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

body, h1, h2, h3, p, ul, li, a { margin: 0; padding: 0; }

body {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f4f4f2;
  padding: 2rem;
}

.container {
  background: #fff;
  max-width: 8.5in;
  margin: 0 auto;
  padding: 3rem 3.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  border-radius: 4px;
}

/* Header */
.cv-header { margin-bottom: 2rem; border-bottom: 2px solid #1a1a1a; padding-bottom: 1.25rem; }
.cv-header h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #000; }
.cv-header .cv-title { font-size: 1rem; font-weight: 500; color: #555; margin-top: 0.3rem; }
.cv-header .cv-contact {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  margin-top: 0.75rem; font-size: 0.8rem; color: #444;
}

/* Sections */
.section { margin-bottom: 1.75rem; }
.section h2 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.3rem;
  margin-bottom: 0.85rem;
}

/* Lists */
ul { list-style: none; padding: 0; }
ul li { padding: 0.35rem 0 0.35rem 1rem; position: relative; }
ul li::before { content: "–"; position: absolute; left: 0; color: #bbb; }

/* Work/Teaching entries */
.entry { margin-bottom: 0.75rem; }
.entry-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.25rem; }
.entry-title { font-weight: 600; font-size: 0.9rem; color: #111; }
.entry-company { font-size: 0.85rem; color: #444; }
.entry-date { font-size: 0.78rem; color: #888; white-space: nowrap; }
.entry-desc { font-size: 0.82rem; color: #555; margin-top: 0.2rem; }

/* Skills */
.skills-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  background: #f0f0ee;
  border: 1px solid #e0e0de;
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: #333;
}

/* Controls */
.no-print {
  max-width: 8.5in;
  margin: 1.5rem auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.no-print button, .no-print a {
  padding: 0.5rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.no-print button {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
.no-print button:hover { background: #333; }

.no-print a {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
}
.no-print a:hover { color: #111; border-color: #888; }

/* Print */
@media print {
  body { background: #fff; padding: 0; }
  .container { box-shadow: none; border-radius: 0; padding: 2rem 2.5rem; }
  .no-print { display: none !important; }
  .section { page-break-inside: avoid; }
}
