/* Self-hosted fonts (SIL Open Font License, see assets/fonts). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("../fonts/geist-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 600; font-display: swap; src: url("../fonts/geist-mono-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); }

/* Metric-matched system fallbacks, so the swap to the real fonts barely moves the layout. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica");
  ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("Times");
  ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; size-adjust: 90%; }


/* Cool violet throughout; --lilac is the softer second accent, kept for small highlights. */
:root {
  color-scheme: light dark;

  --paper:       #F6F2FF;
  --raised:      rgba(255, 255, 255, .72);
  --ink:         #1E1036;
  --ink-2:       #4A3D66;
  --ink-3:       #5E5280;
  --accent:      #7C5CFF;
  --accent-text: #5B3BD6;
  --lilac:       #A78BFA;
  --lilac-text:  #5B3BD6;
  --lilac-soft:  #E4D8FF;
  --lilac-ink:   #4B2FB8;
  --line:        #E4DAFA;
  --pill-bg:     #EEE7FF;
  --pill-ink:    #4B2FB8;
  --focus:       #6D4AE8;
  --selection:   #C9B6FF;
  --btn-bg:      #6D4AE8;
  --btn-ink:     #FFFFFF;
  --shadow-tint: 45, 20, 110;

  --card-base:   #ECE3FF;
  --card-line:   rgba(255, 255, 255, .9);
  --mesh-1:      #FFFFFF;
  --mesh-2:      #D7C6FF;
  --mesh-3:      #C9B6FF;
  --mesh-4:      #F6DDFF;
  --blob:        rgba(160, 128, 255, .38);
  --role:        #6D4AE8;
  --frost:       rgba(255, 255, 255, .58);
  --frost-hover: rgba(255, 255, 255, .85);
  --frost-line:  rgba(255, 255, 255, .9);
  --frost-shadow: 0 1px 2px rgba(var(--shadow-tint), .06), 0 8px 24px -12px rgba(var(--shadow-tint), .18);

  /* Cursor glow strengths, low enough that every text colour stays AA on top of it */
  --glow-a:      rgba(124, 92, 255, .14);
  --glow-b:      rgba(200, 150, 255, .10);

  --sans:  "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Instrument Serif Fallback", "Iowan Old Style", Georgia, serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 1rem;
  --radius: 1.75rem;
  --ease:   cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Deep indigo-violet */
    --paper:       #120B1F;
    --raised:      rgba(255, 255, 255, .045);
    --ink:         #EFE9FF;
    --ink-2:       #C4B8DE;
    --ink-3:       #A396C0;
    --accent:      #9B7CFF;
    --accent-text: #C9B6FF;
    --lilac:       #C9B6FF;
    --lilac-text:  #C9B6FF;
    --lilac-soft:  #2F1F55;
    --lilac-ink:   #E9E1FF;
    --line:        #2A1E44;
    --pill-bg:     #251843;
    --pill-ink:    #D9CCFF;
    --focus:       #C9B6FF;
    --selection:   #4B2F8F;
    --btn-bg:      #C9B6FF;
    --btn-ink:     #1E1036;
    --shadow-tint: 0, 0, 0;

    --card-base:   #1A1030;
    --card-line:   rgba(201, 182, 255, .12);
    --mesh-1:      #2C1B52;
    --mesh-2:      #3A2370;
    --mesh-3:      #452A85;
    --mesh-4:      #2E1745;
    --blob:        rgba(124, 92, 255, .3);
    --role:        #C9B6FF;
    --frost:       rgba(255, 255, 255, .06);
    --frost-hover: rgba(255, 255, 255, .11);
    --frost-line:  rgba(255, 255, 255, .1);
    --frost-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5);

    --glow-a:      rgba(155, 124, 255, .12);
    --glow-b:      rgba(201, 182, 255, .06);
  }
}


/* Base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--selection); color: var(--ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: .375rem; }
main:focus { outline: none; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: .75rem 1.125rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500;
}
.skip:focus { top: var(--gutter); }

/* Cursor glow: a fixed layer under the page, moved with transform only. The page script sets --gx/--gy. */
.glow-layer { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .glow-layer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
}
.glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 46rem;
  height: 46rem;
  margin: -23rem 0 0 -23rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-a) 0%, var(--glow-b) 38%, transparent 68%);
  opacity: 0;
  transform: translate3d(var(--gx, 50vw), var(--gy, 40vh), 0);
  transition: opacity .8s var(--ease);
  will-change: transform;
}
.glow-layer.is-on .glow { opacity: 1; }

.page { position: relative; z-index: 1; }


/* Layout: one column on phones and tablets, a sticky card beside the reading column on wide screens */

.page {
  display: grid;
  gap: clamp(3.5rem, 8vw, 5rem);
  max-width: 84rem;
  margin-inline: auto;
  padding: var(--gutter);
}

.content { container: content / inline-size; min-width: 0; max-width: 46rem; }

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
  .content { justify-self: center; width: 100%; }
}

@media (min-width: 64em) {
  .page {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    padding-inline: clamp(1.5rem, 3vw, 3rem);
  }
  .content { justify-self: start; padding-top: .75rem; }
}

/* Sticky only when the whole card fits on screen; on short screens it scrolls away like the rest.
   The narrow two-column range wraps the tagline more, so it needs a taller screen. */
@media (min-width: 64em) and (min-height: 53.5em), (min-width: 75em) and (min-height: 48em) {
  .intro {
    position: sticky;
    top: var(--gutter);
    align-self: start;
    height: min(calc(100vh - 2 * var(--gutter)), 58rem);
    height: min(calc(100dvh - 2 * var(--gutter)), 58rem);
  }
  /* Safety net for odd font settings: scroll inside the card rather than clip it. */
  .card { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .card .now { margin-top: auto; }
}


/* The card: the one loud thing on the page */

.card {
  container: card / inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background:
    radial-gradient(70% 55% at 12% 6%, var(--mesh-1) 0%, transparent 70%),
    radial-gradient(60% 50% at 95% 18%, var(--mesh-2) 0%, transparent 72%),
    radial-gradient(80% 60% at 78% 100%, var(--mesh-3) 0%, transparent 70%),
    radial-gradient(55% 45% at 0% 78%, var(--mesh-4) 0%, transparent 70%),
    var(--card-base);
}
@media (min-width: 40em) { .card { padding: 1.75rem; } }

.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  right: -18%;
  top: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blob) 0%, transparent 68%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30%, -22%) scale(1.15); }
}

.name {
  margin-top: .25rem;
  font: 400 clamp(3rem, 13vw, 5.25rem)/.9 var(--serif);
  letter-spacing: -.015em;
  color: var(--ink);
}
@supports (font-size: 1cqi) {
  .name { font-size: min(23cqi, 5.25rem); }
}
.name span { display: block; }

.role {
  margin-top: .375rem;
  font: italic 400 clamp(1.75rem, 8vw, 2.625rem)/1.1 var(--serif);
  color: var(--role);
}
@supports (font-size: 1cqi) {
  .role { font-size: min(10.5cqi, 2.625rem); }
}

.where {
  margin-top: .625rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.where span { margin-inline: .125rem; color: var(--lilac-text); }

.tagline {
  margin-top: 1rem;
  max-width: 46ch;
  color: var(--ink-2);
  text-wrap: balance;
}

.status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .5rem;
  margin-block: 1rem 1.25rem;
  padding: .4375rem .875rem .4375rem .75rem;
  border-radius: 1.125rem;
  background: var(--frost);
  border: 1px solid var(--frost-line);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.dot {
  position: relative;
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.status .dot { background: var(--lilac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lilac) 28%, transparent); }
.status .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--lilac);
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping {
  0%       { transform: scale(1); opacity: .55; }
  70%, to  { transform: scale(2.8); opacity: 0; }
}

/* Frosted "Currently building" card, same look as the GitHub README header */
.now {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding: .75rem 1.125rem;
  border-radius: 1.25rem;
  background: var(--frost);
  border: 1px solid var(--frost-line);
  box-shadow: var(--frost-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .3s var(--ease);
}
.now:hover { background: var(--frost-hover); }
.now-label {
  font: 500 .6875rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lilac-text);
}
.now-title { grid-column: 1; font: 400 1.625rem/1.15 var(--serif); }
.now-desc { grid-column: 1; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.now-arrow {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  width: 1.25rem; height: 1.25rem; color: var(--accent-text);
  transition: transform .3s var(--ease);
}
.now:hover .now-arrow { transform: translateY(3px); }

/* Section nav, styled as a segmented control */
.sections { margin-top: .75rem; }
.sections ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
  gap: .25rem;
  padding: .25rem;
  border-radius: 1rem;
  background: var(--frost);
  border: 1px solid var(--frost-line);
}
@container card (min-width: 22rem) {
  .sections ul { display: flex; }
  .sections li { flex: 1 1 auto; }
}
.sections a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .25rem .75rem;
  border-radius: .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.sections a:hover { color: var(--ink); background: var(--frost-hover); }
.sections a[aria-current] {
  color: var(--accent-text);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(var(--shadow-tint), .1);
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
}
.social-cta { margin-left: auto; }
@container card (max-width: 17rem) {
  .social-cta { flex-basis: 100%; }
  .social-cta .btn { width: 100%; justify-content: center; }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--frost);
  border: 1px solid var(--frost-line);
  color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn svg { width: 1.125rem; height: 1.125rem; fill: currentColor; transition: transform .35s var(--ease); }
.icon-btn:hover { background: var(--frost-hover); color: var(--accent-text); transform: translateY(-2px); }
.icon-btn:hover svg { transform: scale(1.1); }
.icon-btn:active { transform: translateY(0) scale(.96); }
.icon-btn:focus-visible { border-radius: 50%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: .9375rem;
  font-weight: 500;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px var(--btn-bg), 0 0 0 3px color-mix(in srgb, var(--lilac) 30%, transparent); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible { border-radius: 999px; }


/* Reading column */

section { scroll-margin-top: var(--gutter); }
section + section { margin-top: clamp(5rem, 11vw, 7.5rem); }

h2 {
  margin-bottom: 1.5rem;
  font: 400 clamp(2.25rem, 5vw, 2.875rem)/1.05 var(--serif);
  letter-spacing: -.01em;
}

section > p { max-width: 62ch; color: var(--ink-2); }
section > p + p { margin-top: 1rem; }
section > p:first-of-type { color: var(--ink); }

.link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--lilac);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: text-decoration-color .2s, text-underline-offset .2s;
}
.link:hover { text-decoration-color: currentColor; text-underline-offset: .28em; }

.label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 3rem 0 1rem;
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.toolkit div {
  display: grid;
  gap: .125rem 1.5rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
}
.toolkit div:last-child { border-bottom: 1px solid var(--line); }
.toolkit dt { font: 500 .75rem/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding-top: .2rem; }
.toolkit dd { color: var(--ink); line-height: 1.55; }
@container content (min-width: 30rem) {
  .toolkit div { grid-template-columns: 9.5rem minmax(0, 1fr); }
}


/* Experience */

.jobs { display: grid; gap: .5rem; }

.job {
  position: relative;
  padding: 1.5rem 0;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.job + .job { border-top: 1px solid var(--line); }

@media (min-width: 40em) {
  .job { padding: 1.5rem 1.5rem; margin-inline: -1.5rem; border-radius: 1.25rem; }
  .job + .job { border-top: 0; }
  .job + .job::before {
    content: ""; position: absolute; top: -.25rem; left: 1.5rem; right: 1.5rem;
    height: 1px; background: var(--line);
    transition: opacity .3s var(--ease);
  }
}

@media (hover: hover) {
  .job--link:hover { background: var(--raised); box-shadow: 0 0 0 1px var(--line), 0 16px 36px -28px rgba(var(--shadow-tint), .45); }
  .job--link:hover::before,
  .job--link:hover + .job::before { opacity: 0; }
  .job--link:hover .job-title { color: var(--accent-text); }
  .job--link:hover .meta span + span::before { color: var(--lilac); }
  .job--link:hover .row-link svg { transform: translate(2px, -2px); }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font: 500 .75rem/1.5 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta span + span::before { content: "·"; margin-right: .75rem; color: var(--accent); transition: color .25s var(--ease); }

.job-title {
  margin-top: .5rem;
  font: 400 clamp(1.625rem, 4vw, 1.875rem)/1.15 var(--serif);
  transition: color .25s var(--ease);
  overflow-wrap: anywhere;
}
.job-org {
  font: 400 .875rem/1 var(--sans);
  color: var(--ink-3);
  margin-left: .25rem;
  white-space: nowrap;
}
.job-role { margin-top: .125rem; font-weight: 500; color: var(--ink); }

.job > p:not(.meta, .job-role, .job-links) { margin-top: .75rem; max-width: 62ch; color: var(--ink-2); }

.points { display: grid; gap: .375rem; margin-top: .75rem; max-width: 62ch; color: var(--ink-2); }
.points li { position: relative; padding-left: 1.25rem; }
.points li::before {
  content: "";
  position: absolute;
  left: .125rem;
  top: .62em;
  width: .375rem;
  height: .375rem;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
  opacity: .7;
}

/* Pills sit above a row's stretched link so they can take their own hover. */
.pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: 1rem;
}
.pills li {
  padding: .3125rem .75rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) {
  .pills li:hover { background: var(--lilac-soft); color: var(--lilac-ink); transform: translateY(-2px); }
}

.job-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: .5rem;
}
.out {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 2.75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--accent-text);
}
.out svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.out:hover svg { transform: translate(2px, -2px); }
.out:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* The first link stretches over its row so the whole row is clickable; the others sit above it. */
.row-link { position: static; }
.row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }

.training li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 1rem;
  padding: .875rem 0;
  border-top: 1px solid var(--line);
}
.training li:last-child { border-bottom: 1px solid var(--line); }
.training b { font-weight: 500; }
.training span { grid-column: 1; color: var(--ink-2); font-size: .9375rem; }
.training .when {
  grid-column: 2; grid-row: 1;
  font: 500 .75rem/1.9 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}


/* Projects */

.project {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background:
    radial-gradient(55% 90% at 100% 0%, var(--mesh-2) 0%, transparent 70%),
    radial-gradient(45% 70% at 0% 100%, var(--mesh-4) 0%, transparent 70%),
    var(--card-base);
}
@media (min-width: 40em) { .project { padding: 2rem; } }
.project p:not(.tag) { margin-top: .5rem; max-width: 52ch; color: var(--ink-2); }
.project .pills { margin-top: 1.25rem; }
.project .pills li:not(:hover) { background: var(--frost-hover); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.project-title {
  margin-top: .75rem;
  font: 400 clamp(2rem, 5vw, 2.5rem)/1.1 var(--serif);
}


/* Contact */

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.75rem;
}
.email {
  min-width: 0;
  font: 400 clamp(1.75rem, 6vw, 2.75rem)/1.15 var(--serif);
  overflow-wrap: anywhere;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--lilac);
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.email:hover { color: var(--accent-text); text-decoration-color: currentColor; }

.copy {
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  font: 500 .8125rem/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-text);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.copy:hover { border-color: var(--mesh-3); background: var(--pill-bg); }
.copy:focus-visible { border-radius: 999px; }

.contact-list { margin-top: 2rem; }
.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1rem;
  align-items: center;
  gap: .25rem 1rem;
  min-height: 3.5rem;
  padding: .75rem .25rem;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.contact-k {
  font: 500 .75rem/1.6 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-v { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.contact-list svg { width: 1rem; height: 1rem; color: var(--accent-text); transition: transform .25s var(--ease); }
.contact-list a:hover { color: var(--accent-text); }
.contact-list a:hover .contact-v { text-decoration: underline 1px var(--lilac); text-underline-offset: .25em; }
.contact-list a:hover svg { transform: translate(2px, -2px); }

.foot {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: clamp(5rem, 11vw, 7.5rem);
  padding: 1.5rem 0 .5rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-3);
}


/* Entrance and scroll reveals.
   Both only run once JS has tagged <html>, and use "backwards" fill so nothing is left
   hidden or transformed after they finish. Without JS everything simply shows. */

@media (prefers-reduced-motion: no-preference) {
  .js .card                  { animation: card-in 1s var(--ease) backwards; }
  .js .card > *              { animation: rise .8s var(--ease) backwards; }
  .js .name span:first-child { animation: rise .9s var(--ease) .12s backwards; }
  .js .name span:last-child  { animation: rise .9s var(--ease) .2s backwards; }
  .js .role                  { animation-delay: .3s; }
  .js .where                 { animation-delay: .38s; }
  .js .tagline               { animation-delay: .44s; }
  .js .status                { animation-delay: .5s; }
  .js .now                   { animation-delay: .56s; }
  .js .sections              { animation-delay: .62s; }
  .js .social                { animation-delay: .68s; }
  .js .content               { animation: rise 1s var(--ease) .5s backwards; }
  .js .name                  { animation: none; }

  .reveal:not(.is-in) { opacity: 0; }
  .reveal.is-in { animation: rise .8s var(--ease) var(--d, 0ms) backwards; }
}

@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes rise    { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; }
}


/* Print: just the words, in black */

@media print {
  :root {
    --paper: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --accent-text: #000;
    --line: #ccc; --pill-bg: transparent; --pill-ink: #000;
  }
  body { font-size: 11pt; line-height: 1.5; background: #fff; color: #000; }
  .skip, .sprite, .glow-layer, .now, .sections, .social, .copy, .job-links, .card::before { display: none !important; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1 !important; }
  .page { display: block; padding: 0; max-width: none; }
  .intro { position: static; height: auto; }
  .card { height: auto; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .name { margin-top: 0; font-size: 36pt; }
  .name span { display: inline; }
  .role { font-size: 18pt; color: #000; }
  .where span { color: #000; }
  .status { padding: 0; border: 0; background: none; }
  .dot { display: none; }
  .content { max-width: none; margin-top: 18pt; padding: 0; }
  section + section { margin-top: 24pt; }
  h2 { font-size: 22pt; margin-bottom: 8pt; break-after: avoid; }
  .job { padding: 10pt 0; margin: 0; break-inside: avoid; }
  .job + .job::before { display: none; }
  .pills li { padding: 0 6pt 0 0; }
  .project { overflow: visible; border: 0; padding: 0; background: none; break-inside: avoid; }
  .contact-list a[href^="http"]::after { content: attr(href); grid-column: 1 / -1; font-size: 9pt; color: #444; }
  .foot { margin-top: 24pt; border-top: 0; }
}
