:root {
  --bg: #ffffff;
  --fg: #2b2bff;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px clamp(24px, 8vw, 128px);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 96px;
}

.headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 6vw, 300px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
  max-width: 9em;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Links: uppercase display type with a sliding underline on hover */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: clamp(25px, 1vw, 100px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 2px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s ease;
}

.links a:hover,
.links a:focus-visible {
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}

/* Profile photo with a fanned stack of translucent cards behind it */
.stack {
  --size: clamp(10px, 17vw, 380px);
  --step: calc(var(--size) * 0.09);
  position: relative;
  flex: none;
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--step) * 3) calc(var(--step) * 3) 0 auto;
}

.stack img,
.stack span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack span {
  background: var(--fg);
}

.stack span:nth-child(1) { transform: translate(calc(var(--step) * 3), calc(var(--step) * -3)); opacity: 0.35; }
.stack span:nth-child(2) { transform: translate(calc(var(--step) * 2), calc(var(--step) * -2)); opacity: 0.55; }
.stack span:nth-child(3) { transform: translate(var(--step), calc(var(--step) * -1)); opacity: 0.75; }

@media (max-width: 720px) {
  .page {
    padding: 16px 24px;
  }

  main {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    padding-top: 48px;
  }

  .stack {
    --size: 160px;
    align-self: flex-end;
  }
}
