@import url("tokens.css");

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.resume-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 0 4vw 4rem;
}

.resume-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.resume-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.resume-sub {
  margin-top: 0.4rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease-reveal), border-color 0.25s var(--ease-reveal), background 0.25s var(--ease-reveal);
}

.resume-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.resume-btn.primary {
  border-color: rgba(58, 159, 217, 0.55);
  background: rgba(58, 159, 217, 0.12);
}

.resume-btn.primary:hover {
  border-color: rgba(58, 159, 217, 0.85);
  background: rgba(58, 159, 217, 0.18);
}

.resume-frame {
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.resume-embed {
  width: 100%;
  height: min(76vh, 980px);
  border: 0;
  display: block;
  background: var(--bg-elevated);
}

.resume-fallback {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.resume-fallback a {
  color: var(--accent);
  text-decoration: none;
}

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

.resume-updated {
  margin-top: 2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .resume-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-actions {
    justify-content: flex-start;
  }

  .resume-embed {
    height: 72vh;
  }
}

