:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #5f625c;
  --line: #d9d6cd;
  --accent: #3d6f7a;
  --accent-2: #b9695f;
  --shadow: 0 18px 44px rgba(23, 23, 23, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0 44px;
}

.cv-intro {
  margin-bottom: 18px;
}

.cv-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.42;
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.masthead > div {
  flex: 1 1 auto;
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: lowercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 74px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .98;
}

.intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.ao-home {
  width: 42px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.button.ao-home img {
  width: 38px;
  height: 38px;
  display: block;
}

.viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.document-link {
  display: block;
  padding: clamp(10px, 2vw, 22px);
  background: #ece9e0;
}

.document-link img {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 23, 23, .12);
}

.secondary-documents {
  margin-top: 16px;
}

.secondary-document {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(23, 23, 23, .06);
}

.secondary-document img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  background: #ffffff;
}

.secondary-document span {
  display: grid;
  gap: 3px;
}

.secondary-document strong {
  font-size: 15px;
  line-height: 1.2;
  text-transform: lowercase;
}

.secondary-document span span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: lowercase;
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 24px);
    padding-top: 28px;
  }

  .masthead {
    display: grid;
    align-items: start;
  }

  h1 {
    font-size: 36px;
    line-height: 1;
    max-width: 10.7ch;
  }

  .actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }

  .document-link {
    padding: 8px;
  }

  .secondary-document {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 34px;
    max-width: 10.7ch;
  }
}
