@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/helvetica-now-display/HelveticaNowDisplay-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/helvetica-now-display/HelveticaNowDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("assets/fonts/helvetica-now-display/HelveticaNowDisplay-RegIta.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --text: #f5f4f4;
  --link: #008b8b;
  --link-hover: #77d8cd;
  --page-gutter: clamp(32px, 5.4167vw, 104px);
  --footer-height: 70px;
  background: #211f24;
}

:root[data-theme="light"] {
  color-scheme: light;
  --text: #232129;
  --link: #006b6b;
  --link-hover: #003f3f;
  background: #e2ddd6;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: "Helvetica Now Display", Helvetica, Arial, sans-serif;
  font-weight: 300;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: url("assets/images/bg.svg") center center / cover no-repeat;
  content: "";
  pointer-events: none;
}

[data-theme="light"] body::before {
  filter: invert(1) sepia(0.16);
}

.profile {
  padding: clamp(48px, 10.1852vh, 110px) var(--page-gutter) calc(var(--footer-height) + 48px);
}

.portrait {
  display: block;
  width: 250px;
  height: 250px;
  margin-left: -26px;
  object-fit: contain;
}

.intro {
  margin-top: 5px;
}

h1,
p {
  margin: 0;
}

/* The reference stretches its type vertically; preserve that narrow lettering. */
h1 {
  width: max-content;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -1.7px;
  line-height: 1.07;
  transform: scaleX(0.84);
  transform-origin: left center;
}

.tagline {
  width: max-content;
  max-width: 125%;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.7px;
  line-height: 1.4;
  transform: scaleX(0.86);
  transform-origin: left center;
}

.affiliation {
  margin-top: 1px;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.8px;
  line-height: 1.4;
  transform: scaleX(0.86);
  transform-origin: left center;
}

.links {
  margin-top: 18px;
}

.links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li {
  height: 26px;
}

.links a {
  display: inline-block;
  color: var(--link);
  font-size: 22px;
  font-weight: 300;
  line-height: 26px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transform: scaleX(0.78);
  transform-origin: left center;
}

.links a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 4px;
}

::selection {
  background: #008080;
  color: #fff;
}

.footer {
  position: fixed;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: calc(var(--footer-height) + env(safe-area-inset-bottom));
  padding: 0 var(--page-gutter) env(safe-area-inset-bottom);
  background: #414141 url("assets/images/footer-pattern.svg") left bottom / 1920px 70px repeat-x;
}

.footer-label {
  padding: 1px 0;
  border: 0;
  border-radius: 0;
  background: #202020;
  color: #f7f7f7;
  font: 400 14px/1.2 "Helvetica Now Display", Helvetica, Arial, sans-serif;
  text-decoration: none;
}

.controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

[hidden] {
  display: none !important;
}

button {
  cursor: pointer;
}

button:hover,
.footer a:hover,
#sound-toggle[aria-pressed="true"] {
  color: #82e2d9;
}

@media (max-width: 600px) {
  :root {
    --footer-height: 54px;
  }

  .profile {
    padding-top: 40px;
  }

  .portrait {
    width: 220px;
    height: 220px;
    margin-left: -23px;
  }

  h1 {
    font-size: 39px;
  }

  .tagline {
    max-width: 116%;
    font-size: 14px;
    letter-spacing: 1.3px;
  }

  .links {
    margin-top: 20px;
  }

  .links li,
  .links a {
    min-height: 32px;
    line-height: 32px;
  }

  .footer-label {
    font-size: 13px;
  }
}

@media (pointer: coarse) {
  .controls button {
    position: relative;
  }

  .controls button::after {
    position: absolute;
    inset: -13px -6px;
    content: "";
  }
}
