:root {
  color: #272b33;
  background: #fcfbf8;
  font: 100%/1.5 "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Baskervville", Georgia, serif;
  --line: #ced0cc;
  --gold: #8a6635;
}
* {box-sizing: border-box}
body {margin: 0}
a {color: inherit; text-underline-offset: .22em}
a:focus-visible, button:focus-visible {outline: 2px solid var(--gold); outline-offset: 4px}
.skip, .sr {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap}
.skip:focus {width: auto; height: auto; clip-path: none; padding: .6rem; background: white; z-index: 2}
header {position: sticky; top: 0; z-index: 2; pointer-events: none; max-width: 94rem; margin-inline: auto; min-height: 6rem; padding: 1.25rem clamp(1rem,4vw,4.25rem); display: flex; align-items: center; gap: 1rem}
header a, .glass {pointer-events: auto}
.glass {
  display: flex; align-items: center; gap: .16rem; padding: .32rem;
  border: 1px solid rgba(255,255,255,.94); border-radius: 2rem;
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(225,228,230,.54) 58%, rgba(249,249,247,.84));
  box-shadow: inset 0 1px 1px white, inset 0 -1px 2px rgba(132,141,148,.23), 0 0 0 1px rgba(54,63,73,.09), 0 5px 16px -6px rgba(40,48,56,.23);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
}
.glass a {
  position: relative; isolation: isolate; display: inline-flex; align-items: center;
  min-height: 2.65rem; padding: .35rem 1rem; color: #32363b; text-decoration: none;
  font-size: .94rem; border-radius: 2rem;
}
.glass a[aria-current] {color: #25272b; font-weight: 600; background: linear-gradient(#fff, #f6f7f6c9); box-shadow: inset 0 1px 1px white, 0 1px 4px #48536328}
.glass a:hover {background-color: #ffffffbc}
.glass a::before {
  content: "";
  position: absolute;
  inset: -.14rem 0;
  pointer-events: none;
  z-index: -1;
  background: url("assets/nav-ink.svg") var(--ink-position, 0%) center / 400% 100% no-repeat;
}
.glass a:nth-child(2) {--ink-position: calc(100% / 3)}
.glass a:nth-child(3) {--ink-position: calc(200% / 3)}
.glass a:nth-child(4) {--ink-position: 100%}
@media (prefers-reduced-motion: no-preference) {
  .glass a::before {transition: transform 180ms cubic-bezier(.2,.8,.25,1.25)}
  .glass a:is(:hover, :focus-visible, :active)::before {transform: scale(1.04, 1.13)}
}
@media (forced-colors: active) {
  .glass a::before {display: none}
}
.header-end {display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem}
.resume {padding: .5rem; font-size: .94rem; text-decoration: none}
.resume:hover {text-decoration: underline}
.flag {position: relative; width: 4.5rem; display: inline-grid; place-items: center; min-height: 44px}
.flag img {width: 100%; height: auto; display: block; box-shadow: 0 1px 4px #29201a26}
@property --pen-distance {
  syntax: "<number>";
  inherits: true;
  initial-value: -2;
}
.roots-note {
  position: absolute; top: 100%; right: 25%; width: 8.5rem; height: auto;
  color: #484037; visibility: hidden; pointer-events: none;
}
.flag:is(:hover, :focus-visible) .roots-note {visibility: visible}
@media (prefers-reduced-motion: no-preference) {
  .roots-note {
    --pen-distance: -2;
    opacity: 0;
    transition: opacity 160ms ease-out, visibility 0s 160ms, --pen-distance 0s 160ms;
  }
  .flag:is(:hover, :focus-visible) .roots-note {
    --pen-distance: 483;
    opacity: 1;
    transition: opacity 80ms ease-out, --pen-distance 1.3s cubic-bezier(.26,.2,.72,.88);
  }
  .roots-note path {
    stroke-dasharray: 1 2;
    stroke-dashoffset: clamp(0, calc(1 - (var(--pen-distance) - var(--start)) / var(--length)), 1.15);
  }
}
.opening {position: relative; min-height: calc(100svh - 6rem); display: grid; place-items: center; text-align: center; padding: 3rem 1rem 7rem}
.welcome {position: relative; padding: 1rem 0}
h1 {font: 400 clamp(2.4rem,5.4vw,5.1rem)/1.3 var(--display); letter-spacing: -.055em; margin: 0}
.line {display: inline-flex; align-items: baseline; position: relative}
.word {display: inline-flex; align-items: baseline; justify-content: flex-end; position: absolute; right: 100%; bottom: 0; white-space: nowrap}
.name {white-space: nowrap}
.line {margin-left: 2.2ch}
#typed {font-family: "Baskervville", Georgia, "Microsoft Himalaya", "Nirmala UI", "Yu Mincho", serif}
#typed:lang(bo), #typed:lang(ja), #typed:lang(hi), #typed:lang(ne) {font-size: .77em; letter-spacing: 0}
.caret {display: inline-block; height: .68em; width: 1px; background: var(--gold); margin-left: .055em}
.welcome p {margin: .55rem 0 0; color: #655f57; font: italic 400 clamp(1.38rem,2.3vw,2.05rem)/1.35 var(--display); letter-spacing: -.032em}
#pause {position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: #505952; opacity: .22; cursor: pointer}
#pause:hover, #pause:focus-visible {opacity: 1; background: #eeeee8}
.section-links {width: min(84%, 40rem); margin-inline: auto; padding-block: clamp(2rem, 8vh, 6rem)}
.section-links ul {margin-top: 1.4rem}
h2 {font: 400 2rem/1.2 Georgia, serif; letter-spacing: -.04em; margin: 0 0 1rem}
ul {margin: 0; list-style: none; padding: 0}
li + li {margin-top: .6rem}
@media(max-width: 830px) {
  .line {display: flex; flex-direction: column; align-items: center; margin-left: 0}
  .word {position: static; min-height: 1.45em; align-items: center}
  .name {font-size: .89em; white-space: normal; text-wrap: balance}
  .joiner {display: none}
}
@media(max-width: 580px) {
  header {gap: .5rem; min-height: 6rem; padding: .9rem .7rem}
  .glass {padding: .22rem; gap: 0}
  .glass a {min-height: 2.5rem; padding: .3rem .48rem; font-size: .87rem}
  .header-end {flex-direction: column-reverse; align-items: flex-end; gap: .08rem}
  .flag {width: 2.85rem; min-height: 2.15rem}
  .roots-note {right: 100%; width: 7.5rem}
  .resume {padding: .12rem; font-size: .82rem}
  .opening {padding-bottom: 5rem}
}
@media(max-width: 365px) {
  header {padding-inline: .45rem; gap: .3rem}
  .glass a {padding-inline: .35rem; font-size: .82rem}
  .flag {width: 2.5rem}
}
.history {width: min(88%, 43rem); margin: 3rem auto 5rem}
.history h1 {font-size: clamp(2.6rem,6vw,4.6rem); margin: 2rem 0 .85rem}
.history p {max-width: 60ch; font-size: 1.06rem; line-height: 1.7}
.history figure {margin: 2rem 0}
.history figure img {width: min(100%, 24rem); height: auto; display: block}
.history figcaption, .history .credit {font-size: .9rem; color: #595c62; margin-top: .6rem}
@media(prefers-reduced-motion:no-preference) {html {scroll-behavior: smooth}}
