.resume-skip:focus-visible {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  clip: auto;
  background: var(--bg);
  color: var(--fg-heading);
  outline: 2px solid var(--accent);
}

.resume-back {
  height: 36px;
  min-width: 78px;
  padding: 0 9px;
}

.resume-section {
  padding-top: 1.5rem;
}

.resume-section .section-header h1 {
  color: var(--fg-heading);
  font-size: clamp(22px, 1.7vw, 24px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.resume-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
}

.resume-intro p {
  color: var(--fg-muted);
  font-size: 16px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-frame {
  height: min(1060px, max(650px, calc(100vh - 260px)));
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #f8f5ef;
  box-shadow: inset 0 2px 0 var(--accent), 0 24px 60px rgba(50, 38, 28, 0.12);
}

html.dark .resume-frame {
  background: #1b1815;
  box-shadow: inset 0 2px 0 var(--accent), 0 28px 70px rgba(0, 0, 0, 0.32);
}

.resume-frame object {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #ffffff;
}

.resume-fallback {
  display: flex;
  height: 100%;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--fg-muted);
  text-align: center;
}

.resume-fallback p {
  flex-basis: 100%;
}

.resume-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resume-content a:focus-visible,
.profile-bar a:focus-visible,
.profile-bar button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .resume-back-label {
    display: none;
  }

  .resume-back {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

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