:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #2d4a3e;
  --accent-light: #e8f0ed;
  --border: #e4e0d8;
  --max-width: 720px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  background: var(--accent);
  color: #f5f5f3;
  padding: 3rem 0 2.5rem;
}

.name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.title {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.85;
  margin: 0 0 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.925rem;
}

.contact li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.15s;
}

.contact a:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.socials {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #f5f5f3;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  transition: background 0.15s, transform 0.15s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Main content */

main {
  padding: 2.5rem 0 3rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

.summary {
  padding-top: 1.5rem;
}

.summary p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-column h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.skill-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-column li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.skill-column li:last-child {
  border-bottom: none;
}

/* Jobs & education */

.job,
.education {
  margin-bottom: 2rem;
}

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

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.job h3,
.education h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.company {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.dates {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.job ul {
  margin: 0;
  padding-left: 1.25rem;
}

.job li {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.job li::marker {
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .job-header {
    flex-direction: column;
    gap: 0.35rem;
  }

  .dates {
    white-space: normal;
  }

  .site-header {
    padding: 2.25rem 0 2rem;
  }
}

/* Print */

@media print {
  body {
    background: white;
    font-size: 11pt;
  }

  .site-header {
    background: white;
    color: black;
    padding: 0 0 1rem;
    border-bottom: 2px solid black;
  }

  .contact a {
    border: none;
  }

  .site-footer {
    display: none;
  }

  .section {
    break-inside: avoid;
  }
}
