:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #eef2f6;
  color: #17202a;
}

main {
  width: min(74rem, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.resume-viewer {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #c8d0d8;
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgb(23 32 42 / 10%);
}

header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: #365a7a;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  line-height: 1.1;
}

.intro {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  color: #435466;
  line-height: 1.5;
}

.resume-frame {
  display: block;
  width: 100%;
  height: min(85vh, 1100px);
  min-height: 650px;
  border: 1px solid rgb(127 127 127 / 35%);
  border-radius: 0.5rem;
  background: #ffffff;
}

.resume-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.resume-actions a {
  display: grid;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  place-items: center;
  border: 2px solid #1f5f99;
  border-radius: 0.4rem;
  color: #174c78;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.resume-actions a.primary {
  background: #1f5f99;
  color: #ffffff;
}

.resume-actions a:hover,
.resume-actions a:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  main {
    padding: 0.75rem;
  }

  .resume-viewer {
    padding: 1rem;
  }

  .resume-frame {
    height: 75vh;
    min-height: 500px;
  }

  .resume-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #111820;
    color: #f4f6f8;
  }

  .resume-viewer {
    border-color: #536476;
    background: #19232e;
  }

  .eyebrow,
  .intro {
    color: #c7d8e7;
  }

  .resume-actions a {
    border-color: #87bff0;
    color: #b9dcfa;
  }

  .resume-actions a.primary {
    background: #b9dcfa;
    color: #111820;
  }
}
