/* geist-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-cyrillic-wght-normal.BEAKL7Jp.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-vietnamese-wght-normal.6IgcOCM7.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-latin-ext-wght-normal.DC-KSUi6.woff2) format('woff2-variations');
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-latin-wght-normal.BgDaEnEv.woff2) format('woff2-variations');
  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;
}
/* geist-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-mono-cyrillic-ext-wght-normal.X_5orZeX.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-mono-cyrillic-wght-normal.DiZS0aHC.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-mono-symbols2-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-mono-symbols2-wght-normal.CO5SzqOn.woff2) format('woff2-variations');
  unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
}

/* geist-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-mono-vietnamese-wght-normal.DadHysG0.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-mono-latin-ext-wght-normal.Bwz-egvJ.woff2) format('woff2-variations');
  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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-mono-latin-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/geist-mono-latin-wght-normal.XN7g48iV.woff2) format('woff2-variations');
  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;
}
/* White canvas, dark navy ink. One light theme for the whole site.
   Radius system: buttons 6px, cards and images 12px, small tags full pill. */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --tint: #eaf1fa;
  --line: #e6e9ee;
  --line-strong: #d3d9e1;
  --ink: #0e2340;
  --ink-soft: #3d4b5f;
  --ink-faint: #627082;
  --navy: #1a3a6b;
  --navy-hover: #24497f;

  /* Shades of the same navy, used for markers on the CV timeline */
  --spine-article: #0e2340;
  --spine-preprint: #1a3a6b;
  --spine-summary: #2b4f86;
  --spine-thesis: #3a5a8c;
  /* The one accent: the cobalt of the publication covers. Used sparingly for hover, arrows and one word per statement. */
  --accent: #2a4d8f;

  --sans: 'Geist Variable', 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --measure: 65ch;
  --radius: 12px;
  --radius-btn: 6px;

  /* Shadow as border for containers (make-interfaces-feel-better): ring, lift, ambient depth.
     Plain 1px borders stay only as dividers between list items. */
  --shadow-border:
    0px 0px 0px 1px rgba(14, 35, 64, 0.07),
    0px 1px 2px -1px rgba(14, 35, 64, 0.07),
    0px 2px 4px 0px rgba(14, 35, 64, 0.05);
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Keeps focused and anchored content clear of the sticky header (WCAG 2.4.11) */
  scroll-padding-top: 5.5rem;
  background: var(--bg);
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.25vw + 1rem, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (max-width: 640px) {
  html {
    /* The header stacks to two rows on phones */
    scroll-padding-top: 7.5rem;
  }
}

@media (max-width: 355px) {
  html {
    /* On the narrowest phones the menu wraps to a third row */
    scroll-padding-top: 10rem;
  }
}

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links carry no underline. Standalone links (menus, arrows, lists) read as links by place and arrow;
   links inside a sentence are cobalt and semibold, so they stand out by more than colour alone (WCAG 1.4.1). */
a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

p a:not(.button, .arrow-link) {
  color: var(--accent);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  a:hover,
  p a:not(.button, .arrow-link):hover {
    color: var(--navy-hover);
  }
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 5vw + 1rem, 5rem);
}

/* Section headings stay a step below the hero name, so the page has a clear loud, medium and quiet level */
h2 {
  font-size: clamp(1.85rem, 1.8vw + 1rem, 2.75rem);
}

/* Quiet level: small spaced capitals above a section heading */
.eyebrow {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h3 {
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Emphasis stays in the same family: a lighter navy, no italics */
h1 em,
h2 em,
h3 em {
  font-style: normal;
  color: var(--ink-faint);
  font-weight: 500;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-faint);
}

.meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.page-head {
  padding-block: clamp(6rem, 11vw, 9rem) clamp(2.5rem, 5vw, 4rem);
}

.page-head p {
  margin-top: 1.5rem;
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem) clamp(5.5rem, 11vw, 9rem);
}

/* One-screen pages (home): header on top, main fills exactly the rest of the screen.
   It only scrolls if the content cannot fit, such as on very small screens or with large text. */
body.one-screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.one-screen main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Actions are text, not boxes: cobalt semibold words, no underline */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--accent);
  white-space: nowrap;
  transition:
    color 160ms ease,
    transform 160ms var(--ease-out);
}

/* Tactile press feedback on actions */
.button:active,
.arrow-link:active {
  transform: scale(0.96);
}

.button svg {
  transition: transform 200ms var(--ease-out);
}

.button.ghost {
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    color: var(--navy-hover);
  }
  .button:hover svg {
    transform: translateX(4px);
  }
}

.arrow-link {
  font-weight: 550;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  gap: 0.45em;
  align-items: center;
  color: var(--ink);
}

.arrow-link {
  transition: transform 160ms var(--ease-out);
}

.arrow-link svg {
  color: var(--accent);
  transition: transform 200ms var(--ease-out);
}

/* Extends the clickable area of small inline links to at least 40px without changing layout */
.hit {
  position: relative;
}

.hit::after {
  content: '';
  position: absolute;
  inset: -8px -10px;
}

/* Photos get a neutral hairline so their edges read cleanly on white */
.img-edge {
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover {
    color: var(--accent);
  }
  .arrow-link:hover svg {
    transform: translateX(4px);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Experiment: fine paper grain. A fixed, click-through layer so it never repaints while scrolling. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.14 0 0 0 0 0.25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-transparency: reduce) {
  body::after {
    display: none;
  }
}

/* Reveal on entry. Visible by default; hidden only once JS can reveal it, never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 600ms var(--ease-out),
      transform 600ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
  }

  /* Mask reveals wipe the content inside the frame, not the frame itself: a fully clipped
     element counts as invisible, so the observer would never see it enter the screen. */
  .js [data-reveal='mask'] {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal='mask'] > * {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1000ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal='mask'].is-in > * {
    clip-path: inset(0 0 0 0);
  }
}
.site-header[data-astro-cid-nen7h5rs] {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffffff7;
}

.bar[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.name[data-astro-cid-nen7h5rs] {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

nav[data-astro-cid-nen7h5rs] {
  margin-left: auto;
}

ul[data-astro-cid-nen7h5rs] {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .45rem .75rem;
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color .16s;
}

nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs][aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:hover {
    color: var(--ink);
  }
}

@media (width <= 640px) {
  .bar[data-astro-cid-nen7h5rs] {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    padding-block: .6rem;
  }

  nav[data-astro-cid-nen7h5rs] {
    margin-left: -.4rem;
  }

  ul[data-astro-cid-nen7h5rs] {
    flex-wrap: wrap;
    gap: 0;
  }

  nav[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs] {
    padding: .35rem .4rem;
    font-size: .92rem;
  }
}
.say[data-astro-cid-oqfpxexw] {
  font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.5rem);
}

@media (hover: hover) and (pointer: fine) {
  ul[data-astro-cid-oqfpxexw] a[data-astro-cid-oqfpxexw]:hover {
    color: var(--navy-hover);
  }

  .email:hover {
    color: var(--accent);
  }
}

.invite[data-astro-cid-oqfpxexw] {
  margin: 1.25rem 0 clamp(2rem, 4vw, 3rem);
  max-width: 46ch;
  font-size: clamp(1.125rem, .5vw + 1rem, 1.3rem);
  color: var(--ink-soft);
}

.grid[data-astro-cid-oqfpxexw] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.label[data-astro-cid-oqfpxexw] {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--ink-faint);
  margin-bottom: .5rem;
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

ul[data-astro-cid-oqfpxexw] {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

ul[data-astro-cid-oqfpxexw] a[data-astro-cid-oqfpxexw] {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--accent);
  font-weight: 600;
}
.site-footer[data-astro-cid-jo6i4kqk] {
  background: var(--bg-soft);
  box-shadow: var(--shadow-border);
  padding-block: clamp(4rem, 8vw, 6rem) 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.small[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin: clamp(3rem, 6vw, 4rem) 0 0;
  font-size: .85rem;
  color: var(--ink-faint);
}

.small[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .small[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
    color: var(--navy-hover);
  }
}
.skip[data-astro-cid-hkbrpulz] {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}

.skip[data-astro-cid-hkbrpulz]:focus {
  top: 1rem;
}
