@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #c62828;
  --ink: #1a1a1a;
  --muted: #666;
  --rule: #e4e4e4;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  max-width: 46rem;
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

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

/* masthead */
.masthead { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; }
.masthead h1 { margin: 0; font-size: 2.1rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.position { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.headline { margin: .9rem 0 0; color: var(--muted); max-width: 34rem; }
.contact-links { margin: .9rem 0 0; font-size: .95rem; }
.contact-links .sep { margin: 0 .5rem; color: var(--muted); }
.photo { border-radius: 10px; flex-shrink: 0; width: 122px; height: 122px; object-fit: cover; }

/* sections */
.sec { margin-top: 2.6rem; }
.sec h2 {
  margin: 0 0 1.1rem;
  padding-bottom: .35rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--rule);
}

/* entries (work, education) */
.entry { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.entry-when { color: var(--muted); font-size: .95rem; padding-top: .15rem; white-space: nowrap; }
.entry-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .02em; }
.entry-body .at { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; }
.entry-meta { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.entry-body ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.entry-body li { margin-bottom: .15rem; }

/* plain lists (projects, certifications, skills, languages) */
ul.plain { margin: 0; padding-left: 1.1rem; }
ul.plain li { margin-bottom: .3rem; }
.sec-list ul.plain { columns: 1; }
#expertise-skills ul.plain, #certifications ul.plain, #languages ul.plain { columns: 2; column-gap: 2.5rem; }

/* grouped lists */
.group { margin-bottom: 1.1rem; }
.group h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 500; color: var(--muted); }

/* key-value blocks */
dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.2rem; margin: 0; }
dt { font-weight: 500; text-transform: capitalize; color: var(--muted); }
dd { margin: 0; }

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 560px) {
  body { padding-top: 2rem; }
  .masthead { flex-direction: column-reverse; }
  .entry { grid-template-columns: 1fr; gap: .1rem; }
  #expertise-skills ul.plain, #certifications ul.plain, #languages ul.plain { columns: 1; }
}

@media print {
  body { padding: 0; max-width: none; font-size: 11px; }
  .sec { margin-top: 1.2rem; break-inside: avoid-page; }
  .entry { break-inside: avoid; }
  a { color: inherit; }
  footer { display: none; }
}
