:root {
  color-scheme: light;
  --background: #f4f6fa;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5d6778;
  --accent: #2852a3;
  --accent-dark: #173f7c;
  --border: #d9e1ee;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 15.5px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: var(--accent-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10;
  padding: 0.45rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.site-header,
.resume,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.15rem;
}

.identity {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.22;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.button-secondary,
.button-link {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover,
.button-secondary:focus,
.button-link:hover,
.button-link:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.resume {
  padding: 2rem clamp(1.25rem, 4vw, 3.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.resume h2 {
  margin: 2.1rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--accent-dark);
  font-size: 1.32rem;
}

.resume h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.resume h3 {
  margin: 1.35rem 0 0.2rem;
  font-size: 1.02rem;
}

.resume p {
  margin: 0.35rem 0 0.85rem;
}

.resume ul {
  margin: 0.35rem 0 0.9rem;
  padding-left: 1.2rem;
}

.resume li {
  margin: 0.28rem 0;
}

.resume strong {
  color: #101828;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: -0.15rem 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.role-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  padding: 1.2rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  h1 {
    white-space: normal;
  }

  .actions {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .resume,
  .site-footer {
    width: min(100% - 24px, 1080px);
  }

  .button {
    min-height: 36px;
    padding: 0.48rem 0.72rem;
    font-size: 0.88rem;
  }

  .resume {
    border-radius: 16px;
  }
}

@media print {
  :root {
    --surface: #ffffff;
    --text: #000000;
    --muted: #333333;
    --accent: #000000;
    --accent-dark: #000000;
    --border: #bbbbbb;
  }

  body {
    background: #ffffff;
    font-size: 10.5pt;
  }

  .site-header,
  .resume,
  .site-footer {
    width: 100%;
  }

  .site-header {
    padding: 0 0 0.6rem;
  }

  h1 {
    font-size: 24pt;
  }

  .actions,
  .skip-link,
  .site-footer {
    display: none;
  }

  .resume {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .resume h2 {
    break-after: avoid;
    margin-top: 0.8rem;
    padding-top: 0.55rem;
  }

  .resume h3,
  .resume li {
    break-inside: avoid;
  }
}
