:root {
  --ink: #f1f5f5;
  --muted: #a7b2b5;
  --night: #11191e;
  --night-soft: #1a272e;
  --line: #35434a;
  --electric: #41677b;
  --signal: #9ec6d9;
  --display: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Avenir Next", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
}

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

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--night);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.resume-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--line);
  background: rgb(17 25 30 / 92%);
  backdrop-filter: blur(16px);
}

.identity {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 18px;
}

.brand {
  font-size: 18px;
  font-weight: 750;
}

.page-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.header-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--night);
}

.button-primary:hover {
  background: white;
}

.button-accent {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--night);
}

.button-accent:hover {
  background: #c8dde6;
}

.button-quiet:hover {
  border-color: var(--signal);
  background: var(--night-soft);
  color: var(--signal);
}

.viewer-shell {
  display: grid;
  grid-template-columns: minmax(320px, .34fr) minmax(0, 1fr);
  height: calc(100dvh - 82px);
}

.viewer-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 4vw, 64px) 3.5vw;
  border-right: 1px solid var(--line);
}

.viewer-aside::after {
  position: absolute;
  right: -210px;
  bottom: -210px;
  width: 380px;
  height: 380px;
  border: 1px solid rgb(158 198 217 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgb(65 103 123 / 10%), 0 0 0 120px rgb(158 198 217 / 3%);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.viewer-aside h1,
.download-card h1,
.mobile-document-action h2 {
  font-family: var(--display);
  margin: 0;
  font-size: clamp(42px, 5vw, 78px);
  line-height: .92;
  font-weight: 750;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.viewer-aside h1 {
  max-width: 100%;
  font-size: clamp(42px, 3.1vw, 62px);
}

.viewer-note {
  position: relative;
  z-index: 1;
  max-width: 27ch;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.document-stage {
  min-width: 0;
  padding: clamp(12px, 1.8vw, 28px);
  background: var(--night-soft);
}

.document-frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  background: white;
}

.mobile-document-action {
  display: none;
}

.download-page {
  display: grid;
  min-height: calc(100dvh - 82px);
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr);
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 130px) 6vw;
  background: #101216;
}

.download-card h1 {
  max-width: 800px;
  font-size: clamp(58px, 8vw, 118px);
}

.download-copy {
  max-width: 620px;
  margin: 34px 0 0;
  color: #c6c7c4;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}

.download-actions {
  margin-top: 42px;
}

.download-status {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px) 4vw;
  border-left: 1px solid var(--line);
  background: #365466;
  color: white;
}

.status-mark {
  width: 44px;
  height: 8px;
  background: var(--signal);
}

.download-status p {
  max-width: 24ch;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .resume-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .header-actions {
    width: 100%;
  }

  .viewer-shell {
    height: auto;
    min-height: calc(100dvh - 143px);
    grid-template-columns: 1fr;
  }

  .viewer-aside {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .viewer-aside h1 {
    max-width: 10ch;
  }

  .document-stage {
    height: 78dvh;
    min-height: 560px;
  }

  .download-page {
    min-height: calc(100dvh - 143px);
    grid-template-columns: 1fr;
  }

  .download-status {
    min-height: 230px;
    border-top: 1px solid rgb(255 255 255 / 30%);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .header-actions .button {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    font-size: 11px;
  }

  .header-actions .button-accent {
    grid-column: 1 / -1;
  }

  .viewer-aside,
  .download-card,
  .download-status {
    padding-right: 20px;
    padding-left: 20px;
  }

  .document-stage {
    display: grid;
    height: auto;
    min-height: 390px;
    padding: 20px;
  }

  .document-frame {
    display: none;
  }

  .mobile-document-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--night);
  }

  .mobile-document-action .eyebrow {
    margin-bottom: 18px;
  }

  .mobile-document-action h2 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(34px, 11vw, 48px);
    line-height: .95;
    letter-spacing: -.055em;
  }

  .mobile-document-action > p:not(.eyebrow) {
    max-width: 34ch;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
  }

  .mobile-document-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .mobile-document-actions .button {
    width: 100%;
  }

  .download-actions,
  .download-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
