@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/outfit.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #090908;
  --ink: #f4efe6;
  --muted: #b3ab9f;
  --gold: #d7c09a;
  --line: rgba(244, 239, 230, 0.14);
  --card: rgba(255, 252, 247, 0.04);
  --card-hover: rgba(255, 252, 247, 0.07);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(540px 440px at 16% 12%, rgba(215, 192, 154, 0.16), transparent 62%),
    radial-gradient(720px 520px at 100% 100%, rgba(215, 192, 154, 0.07), transparent 58%);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(215, 192, 154, 0.35);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 5;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.page {
  width: min(460px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
  display: grid;
  gap: 32px;
}

.identity {
  min-width: 0;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #322c24, #141310 70%);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(215, 192, 154, 0.62);
  pointer-events: none;
}

.avatar picture,
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avatar picture {
  display: block;
}

.avatar img {
  object-fit: cover;
}

.avatar:has(img) .monogram {
  display: none;
}

.monogram {
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

h1 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 12vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: 20px;
  background: var(--gold);
}

.bio {
  max-width: 36ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.social a svg {
  display: block;
  flex: none;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.links li:first-child {
  margin-bottom: 4px;
}

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.card:visited {
  color: inherit;
}

.card-featured {
  padding: 16px;
  border-color: rgba(215, 192, 154, 0.5);
  background:
    linear-gradient(180deg, rgba(215, 192, 154, 0.1), rgba(255, 252, 247, 0.035));
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  flex: none;
  background: #101010;
  box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.1);
}

.card-featured .mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(215, 192, 154, 0.4);
}

.mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-copy {
  min-width: 0;
}

.kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card-featured h2 {
  font-size: 1.25rem;
}

.card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.arrow {
  display: block;
  color: var(--muted);
}

.card:hover,
.social a:hover {
  border-color: rgba(244, 239, 230, 0.32);
  background: var(--card-hover);
}

.card-featured:hover {
  border-color: rgba(215, 192, 154, 0.78);
  background:
    linear-gradient(180deg, rgba(215, 192, 154, 0.16), rgba(255, 252, 247, 0.06));
}

.card:hover .arrow {
  color: var(--gold);
}

.card:focus-visible,
.social a:focus-visible,
.skip:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.colophon {
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  padding-top: 18px;
}

.colophon p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 960px) {
  body {
    display: flex;
    flex-direction: column;
  }

  .page {
    flex: 1;
    width: min(1080px, calc(100% - 96px));
    grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1.14fr);
    grid-template-areas:
      "identity links"
      "footer footer";
    column-gap: 88px;
    row-gap: 48px;
    align-items: start;
    align-content: center;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .identity {
    grid-area: identity;
    position: sticky;
    top: 9vh;
  }

  main {
    grid-area: links;
    min-width: 0;
  }

  .colophon {
    grid-area: footer;
  }

  .avatar {
    width: 112px;
    height: 112px;
  }

  .monogram {
    font-size: 2.7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .identity,
  .card {
    animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .links li:nth-child(1) .card { animation-delay: 70ms; }
  .links li:nth-child(2) .card { animation-delay: 140ms; }
  .links li:nth-child(3) .card { animation-delay: 210ms; }
  .links li:nth-child(4) .card { animation-delay: 280ms; }

  .card,
  .social a,
  .arrow {
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }

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

  .card:hover .arrow {
    transform: translate(2px, -2px);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity,
  .card,
  .social a,
  .arrow {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .card,
  .social a,
  .avatar {
    border: 1px solid CanvasText;
  }

  .skip:focus {
    background: Canvas;
    color: CanvasText;
  }
}
