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

:root {
  --text: #171717;
  --text-muted: #50505a;
  --accent: #1f5fbf;
  --border: #d9dde5;
  --bg: #f5f6f8;
  --paper: #ffffff;
  --max-width: 816px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

strong {
  color: #101018;
  font-weight: 650;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 2.35rem 2.7rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

/* Header */

.header {
  text-align: center;
  padding-bottom: 1.1rem;
  margin-bottom: 1.35rem;
  border-bottom: 2px solid var(--accent);
}

.name {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact li:not(:last-child)::after {
  content: none;
}

/* Sections */

.section {
  margin-bottom: 1.18rem;
}

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

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

/* Entries */

.entry {
  margin-bottom: 0.85rem;
}

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

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

.entry-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.entry-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.entry-date {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Bullets */

.bullets {
  padding-left: 1.05rem;
  font-size: 0.85rem;
  color: var(--text);
}

.bullets li {
  margin-bottom: 0.26rem;
}

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

/* Skills */

.skills {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.85rem;
  align-items: baseline;
}

.skill-row dt {
  font-weight: 600;
  color: var(--text);
}

.skill-row dd {
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */

@media (max-width: 640px) {
  .page {
    margin: 0;
    padding: 1.75rem 1.25rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .name {
    font-size: 1.65rem;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .entry-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .entry-date {
    white-space: normal;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Print */

@media print {
  @page {
    size: letter;
    margin: 0.45in;
  }

  body {
    background: white;
    line-height: 1.42;
  }

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

  .section {
    margin-bottom: 0.95rem;
  }

  .entry {
    margin-bottom: 0.7rem;
  }

  .bullets li {
    margin-bottom: 0.18rem;
  }

  .header {
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
  }

  a {
    color: var(--text);
    text-decoration: none;
  }

  .section {
    break-inside: avoid;
  }

  .entry {
    break-inside: avoid;
  }
}
