/* Anybody, self-hosted. Width axis (font-stretch) is the whole design. */
@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url('fonts/anybody-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url('fonts/anybody-normal-latin.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 {
  --paper: #E8EAF3;
  --ink: #12142A;
  --accent: #2B35E8;

  --display: 'Anybody', 'Arial Narrow', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1022;
    --ink: #E8EAF3;
    --accent: #8C96FF;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

main {
  min-height: 100svh;
  max-width: 90rem;
  margin-inline: auto;
  padding: 4rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* The name: letter width swells from narrow "s l p" to wide "x x" and back. */
.mark {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-weight: 800;
  font-size: min(22vw, 19rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
}
.mark span {
  display: block;
  font-stretch: var(--w, 100%);
  animation: settle 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.mark span:nth-child(1) { --w: 75%;  --i: 0; }
.mark span:nth-child(2) { --w: 50%;  --i: 1; }
.mark span:nth-child(3) { --w: 100%; --i: 2; }
.mark span:nth-child(4) { --w: 150%; --i: 3; color: var(--accent); }
.mark span:nth-child(5) { --w: 150%; --i: 4; color: var(--accent); }
.mark span:nth-child(6) { --w: 75%;  --i: 5; }

@keyframes settle {
  from { font-stretch: 50%; }
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.5rem;
  margin: 4.5rem 0 0; /* room for the descender of the "p" */
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-stretch: 110%;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: -1rem; /* closer to the links than they are to each other */
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.25em;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .mark span { animation: none; }
}
