:root {
  --bg: #f0f0f0;
  --text: #595959;
  --heading: #1a1a1a;
  --accent: #c95d10;
  --accent-light: #fff5ed;
  --border: #d4d4d4;
  --muted: #777777;
  --link: #c95d10;
}

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

body {
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.header-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.page-header h1 {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.tagline {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.85rem;
}

.contact-links .location {
  color: var(--muted);
}

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

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

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.75rem 2rem 2.5rem;
}

.summary {
  margin-bottom: 1.75rem;
}

.summary p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text);
}

section > h2 {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skills {
  margin-bottom: 1.75rem;
}

.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-group {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.skill-group h3 {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  min-width: 6.5rem;
  text-align: right;
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-tags span {
  background: var(--accent-light);
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 2px;
  color: var(--text);
  line-height: 1.6;
}

/* ── Experience section ── */

.experience {
  margin-bottom: 1.75rem;
  position: relative;
}

.experience::after {
  content: "";
  position: absolute;
  left: 12.75rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}


/* ── Experience column headers ── */

.experience-headers {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.experience-header {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.experience-header:last-child {
  padding-left: 0.5rem;
}

/* ── Employer block grid ── */

.employer-block {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.employer-block::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 12.75rem;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.employer-block:last-child {
  margin-bottom: 0;
}

/* ── Employer info (left column) ── */

.employer-info {
  align-self: start;
  position: relative;
  z-index: 1;
}

.employer-name-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--bg);
  width: fit-content;
  padding-right: 0.25rem;
}

.employer-name {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.employer-dates {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  padding-left: calc(20px + 0.6rem);
}


/* ── Employer projects (right column) ── */

.employer-projects {
  padding-left: 0.5rem;
}

.employer-projects ul {
  list-style: none;
  padding-left: 0;
}

.employer-projects li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.65;
}

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

.employer-projects li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.employer-projects > .tech,
.project-entry > .tech {
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

/* ── Project entries (within multi-project employers) ── */

.project-entry {
  margin-bottom: 1.5rem;
}

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

.project-entry header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.project-entry:first-child header {
  background: var(--bg);
  align-self: start;
}

.project-title {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.project-meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.project-role {
  color: var(--muted);
}

.project-dates {
  color: var(--muted);
}

.project-dates::before {
  content: "·";
  margin: 0 0.3rem;
}

/* ── Shared ── */

.logo {
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
  margin-top: 0.1rem;
}

.logo-wide {
  object-fit: contain;
}

.tech {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ── Projects section ── */

.projects {
  margin-bottom: 1.75rem;
}

.project {
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.project:first-of-type {
  padding-top: 0;
  border-top: none;
}

.project > header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.project-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}

.project-info h3 {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}

.project > .project-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.project > p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 0.2rem;
}

/* ── Education ── */

.education {
  margin-bottom: 1rem;
}

.edu-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  margin-bottom: 0.35rem;
}

.edu-entry h3 {
  font-family: "Saira", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Mobile ── */

@media (max-width: 640px) {
  .header-inner {
    padding: 1.25rem 1.25rem 1rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .contact-links {
    gap: 0.2rem 0.75rem;
    font-size: 0.8rem;
  }

  main {
    padding: 1.25rem 1.25rem 2rem;
  }

  .employer-block {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
  }

  .employer-info {
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .experience-headers {
    display: none;
  }

  .experience::after {
    display: none;
  }

  .skill-group {
    flex-direction: column;
    gap: 0.2rem;
  }

  .skill-group h3 {
    text-align: left;
    min-width: unset;
  }
}

/* ── Print ── */

@media print {
  @page {
    margin: 0;
    size: letter;
  }

  :root {
    --bg: white;
    --text: #1a1a1a;
    --heading: #000000;
    --muted: #444444;
    --border: #cccccc;
  }

  body {
    font-size: 9.5pt;
    line-height: 1.45;
    background: white;
    color: var(--text);
    padding: 0.5in 0.65in;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  main {
    max-width: none;
    padding: 0;
    margin: 0;
  }

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

  .page-header {
    background: white;
    color: var(--heading);
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    padding: 0 0 0.4rem;
  }

  .page-header h1 {
    font-size: 18pt;
    color: var(--heading);
  }

  .tagline {
    font-size: 10pt;
    color: var(--muted);
    margin-bottom: 0.3rem;
  }

  .contact-links {
    font-size: 8.5pt;
    gap: 0.15rem 0.75rem;
    color: var(--muted);
  }

  .contact-links .location,
  .contact-links a {
    color: var(--muted);
  }

  .summary {
    margin-bottom: 0.5rem;
  }

  .summary p {
    font-size: 9pt;
    line-height: 1.4;
  }

  section > h2 {
    font-size: 8pt;
    letter-spacing: 0.18em;
    margin-bottom: 0.4rem;
    padding-bottom: 0.15rem;
    break-after: avoid;
  }

  .skills {
    margin-bottom: 0.5rem;
  }

  .skill-groups {
    gap: 0.1rem;
  }

  .skill-group {
    gap: 0.4rem;
  }

  .skill-group h3 {
    font-size: 7.5pt;
    min-width: 5rem;
  }

  .skill-tags {
    gap: 0;
    display: inline;
  }

  .skill-tags span {
    background: none;
    padding: 0;
    font-size: 8.5pt;
    border-radius: 0;
    display: inline;
  }

  .skill-tags span::after {
    content: ", ";
  }

  .skill-tags span:last-child::after {
    content: "";
  }

  .experience {
    margin-bottom: 0.5rem;
  }

  .employer-block {
    grid-template-columns: 10.5rem 1fr;
    gap: 0 1rem;
    margin-bottom: 0.3rem;
  }

  .page-header {
    margin-bottom: 0.5rem;
  }

  .employer-block::before {
    height: 1px;
    top: 0.45rem;
    left: 0;
    width: 11rem;
  }

  .experience::after {
    left: 11rem;
    top: 1.5rem;
    width: 1px;
  }

  .employer-name-row,
  .project-entry:first-child header {
    background: white;
  }

  .experience-headers {
    grid-template-columns: 10.5rem 1fr;
    gap: 0 1rem;
  }

  .employer-name,
  .project-title {
    font-size: 9.5pt;
  }

  .employer-dates,
  .project-meta {
    font-size: 7.5pt;
  }

  .print-page-break {
    break-before: page;
    padding-top: 0.5in;
  }

  .employer-projects {
    padding-left: 0.5rem;
  }

  .project-entry { margin-bottom: 0.3rem; }
  .project-entry header { margin-bottom: 0.1rem; break-after: avoid; }

  .employer-projects li {
    font-size: 8.5pt;
    line-height: 1.4;
    margin-bottom: 0.15rem;
    padding-left: 0.75rem;
    break-inside: avoid;
  }

  .employer-projects li::before {
    font-weight: 400;
  }

  .employer-projects > .tech,
  .project-entry > .tech {
    font-size: 7.5pt;
    margin-bottom: 0.1rem;
  }

  .projects {
    margin-bottom: 0.5rem;
  }

  .project {
    margin-bottom: 0.35rem;
    padding-top: 0.35rem;
    break-inside: avoid;
  }

  .project-info h3 {
    font-size: 9.5pt;
  }

  .project > p {
    font-size: 8.5pt;
    line-height: 1.4;
  }

  .edu-entry h3 {
    font-size: 9.5pt;
  }

  .edu-detail {
    font-size: 8.5pt;
  }


  .education {
    break-inside: avoid;
  }

}
