/* Self-hosted fonts (SIL OFL 1.1, see fonts/OFL-*.txt) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/manrope-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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/manrope-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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-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; }

:root {
  --ink: #0b0c0f;
  --paper: #f1efe9;
  --muted: #a8a79f;
  --blue: #75c9ef;
}

* { box-sizing: border-box; }
::selection { background: var(--blue); color: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.profile { max-width: 640px; margin: 0 auto; padding: clamp(3rem, 10vw, 6rem) 1.5rem; }
.profile > * { animation: enter 700ms cubic-bezier(.2,.7,.2,1) both; }
.profile > :nth-child(2) { animation-delay: 120ms; }
.profile > :nth-child(3) { animation-delay: 200ms; }
.profile > :nth-child(4) { animation-delay: 280ms; }
.profile > :nth-child(5) { animation-delay: 360ms; }
.profile > :nth-child(6) { animation-delay: 440ms; }
.profile > :nth-child(7) { animation-delay: 520ms; }
.profile > :nth-child(8) { animation-delay: 600ms; }
h1 { margin: 0 0 1.75rem; color: var(--paper); font-size: clamp(2.5rem, 10vw, 3.75rem); line-height: 1.05; letter-spacing: -0.05em; font-weight: 700; }
h1 em { position: relative; display: inline-block; font-family: 'Instrument Serif', serif; font-size: 1.15em; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1.25rem; }

/* Hand-drawn annotations */
.squiggle { position: absolute; left: -2%; bottom: -0.1em; width: 104%; height: 0.24em; overflow: visible; pointer-events: none; }
.squiggle path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: draw 1100ms 500ms cubic-bezier(.6,0,.2,1) both; }
.wiggle, .circled { position: relative; display: inline-block; }
.wiggle .squiggle { bottom: -0.15em; height: 0.35em; }
.wiggle .squiggle path, .circled .squiggle path { stroke-width: 2; }
.circled { color: var(--paper); margin: 0 0.2em; }
.circled .squiggle { left: -6%; bottom: -20%; width: 112%; height: 140%; }
.annotate .squiggle path { animation-delay: 600ms; }
.js .annotate:not(.in-view) .squiggle path { animation-play-state: paused; }
.mark { color: var(--paper); background: linear-gradient(transparent 55%, rgba(117, 201, 239, 0.25) 55%) no-repeat 0 0 / 100% 100%; transition: background-size 1400ms 600ms cubic-bezier(.6,0,.2,1); }
.mark ~ .mark { transition-delay: 1000ms; }
.mark ~ .mark ~ .mark { transition-delay: 1400ms; }
.js .mark:not(.in-view) { background-size: 0% 100%; }

/* Links */
a { position: relative; color: var(--paper); text-decoration: none; white-space: nowrap; outline: none; transition: color 220ms ease; }
a::after { content: ''; position: absolute; z-index: -1; left: -0.15em; right: -0.15em; top: 78%; bottom: 0.05em; border-radius: 2px; background: var(--blue); transform: skewX(-12deg); transition: top 220ms cubic-bezier(0, .8, .13, 1), transform 220ms cubic-bezier(0, .8, .13, 1); }
a:hover, a:focus-visible { color: var(--ink); }
a:hover::after, a:focus-visible::after { top: 6%; transform: skewX(-12deg) rotate(-1.5deg); }
a[target="_blank"]::before { content: '↗'; position: absolute; right: -0.95em; top: -0.55em; color: var(--blue); font-size: 0.75em; opacity: 0; transform: translate(-4px, 4px); transition: opacity 200ms ease, transform 200ms cubic-bezier(0, .8, .13, 1); }
a[target="_blank"]:hover::before, a[target="_blank"]:focus-visible::before { opacity: 1; transform: translate(0, 0); }

/* Footer credit */
.credit { position: relative; margin-top: 3.5rem; color: rgba(168, 167, 159, 0.35); font-size: 0.7rem; }
.credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(117, 201, 239, 0.4); text-underline-offset: 2px; }
.credit a::before, .credit a::after { display: none; }
.credit a:hover, .credit a:focus-visible { color: var(--blue); }
.info { display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-left: 0.25rem; padding: 0; vertical-align: -0.15em; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; font-family: 'Instrument Serif', serif; font-size: 0.7rem; font-style: italic; cursor: help; transition: color 200ms ease; }
.info:hover, .info:focus { color: var(--blue); outline: none; }
.tip { position: absolute; left: 0; bottom: calc(100% + 0.5rem); width: min(360px, 100%); padding: 0.5rem 0; background: var(--ink); color: var(--muted); font-size: 0.8rem; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.info:hover + .tip, .info:focus + .tip { opacity: 1; }

@media (min-width: 900px) {
  .profile { margin-left: 12vw; margin-right: auto; }
}
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .profile > *, .squiggle path { animation: none; }
  .js .mark:not(.in-view) { background-size: 100% 100%; }
  .mark { transition: none; }
}
