:root {
  color-scheme: light dark;
  --bg: #f4f4f2;
  --bar: rgba(255, 255, 255, 0.92);
  --text: #282725;
  --muted: #77736e;
  --border: rgba(40, 39, 37, 0.12);
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Quicksand", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.resume-bar {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bar);
  backdrop-filter: blur(14px);
}

.back-link,
.resume-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link {
  justify-self: start;
}

.back-link:hover,
.back-link:focus-visible,
.resume-actions a:hover,
.resume-actions a:focus-visible {
  color: var(--accent);
  outline: none;
}

.back-link svg,
.resume-actions svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.resume-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.resume-title strong {
  font-size: 1rem;
  font-weight: 600;
}

.resume-title span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.resume-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.resume-viewer {
  height: calc(100vh - 68px);
}

.resume-viewer object {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-fallback {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.pdf-fallback p {
  margin: 0;
  color: var(--muted);
}

.pdf-fallback a {
  color: var(--accent);
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171719;
    --bar: rgba(25, 25, 27, 0.92);
    --text: #f2efeb;
    --muted: #aaa39c;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #60a5fa;
  }
}

@media (max-width: 640px) {
  .resume-bar {
    height: 60px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 0 14px;
  }

  .resume-title {
    justify-self: center;
  }

  .back-link span,
  .resume-actions span,
  .resume-title span {
    display: none;
  }

  .resume-actions {
    gap: 14px;
  }

  .resume-viewer {
    height: calc(100vh - 60px);
  }
}
