/* src/styles/site.css */
:root {
  --paper: #eceee6;
  --ink: #233e35;
  --muted: #53665c;
  --rule: #b9c5b9;
  --accent: #497561;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "Space Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button:focus-visible {
  outline: 3px solid #b16039;
  outline-offset: 5px;
}

a:focus-visible {
  outline: 3px solid #b16039;
  outline-offset: 5px;
}

button {
  background: none;
  border: 0;
}

a:hover, .text-link:hover {
  color: var(--accent);
}

img, video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2 {
  font-family: var(--serif);
  letter-spacing: -.025em;
  font-weight: 400;
  line-height: .95;
}

h1 {
  font-size: clamp(76px, 8.4vw, 128px);
}

h2 {
  font-size: clamp(54px, 6vw, 86px);
}

h2 em, h1 em {
  font-weight: 400;
}

h3 {
  letter-spacing: -.035em;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.eyebrow {
  font: 11px / 1.6 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.skip {
  position: fixed;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  padding: 12px;
  top: -100px;
  left: 20px;
}

.skip:focus {
  top: 10px;
}

header {
  position: relative;
  z-index: 30;
  display: flex;
  border-bottom: 1px solid var(--rule);
  justify-content: space-between;
  align-items:  center;
  max-width: 1440px;
  margin: auto;
  padding: 30px 64px;
}

.identity {
  display: flex;
  text-decoration: none;
  align-items:  center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.identity img {
  object-fit: contain;
  width: 48px;
  height: 30px;
}

.identity-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

nav {
  display: flex;
  align-items:  center;
  gap: 32px;
  font-size: 13px;
}

nav > a {
  text-decoration: none;
}

#menu-toggle {
  border: 1px solid var(--rule);
  padding: 8px 15px;
  font-size: 13px;
}

#menu-toggle span {
  margin-left: 15px;
}

#menu {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule);
  width: 270px;
  padding: 15px;
  top: 88px;
  right: 64px;
  box-shadow: 0 12px 30px #0001;
}

#menu a {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding: 12px;
}

main {
  max-width: 1440px;
  margin: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  min-height: 820px;
  padding: 76px 64px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.hero-copy > .eyebrow {
  margin-bottom: 35px;
}

.intro {
  letter-spacing: -.02em;
  margin-top: 33px;
  font-size: 23px;
  line-height: 1.4;
}

.hero-description {
  color: var(--muted);
  max-width: 390px;
  margin-top: 19px;
  font-size: 15px;
}

.hero-links {
  display: flex;
  gap: 34px;
  margin-top: 33px;
  font-size: 14px;
}

.hero-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

.hero-links span {
  margin-left: 22px;
}

.portrait {
  position: relative;
  overflow: hidden;
  align-self:  start;
  height: 630px;
}

.portrait > img {
  position: absolute;
  object-fit: contain;
  object-position: bottom;
  width: 100%;
  height: 580px;
  bottom: 45px;
}

.portrait figcaption {
  position: absolute;
  font: 11px var(--mono);
  bottom: 11px;
  right: 0;
}

.current-role {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 20px;
  padding: 22px 0 27px;
}

.current-role p {
  font-size: 18px;
}

.current-role p span {
  color: var(--muted);
}

.current-role a {
  font-size: 12px;
}

.work, .journey {
  border-top: 1px solid var(--rule);
  padding: 110px 64px 80px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items:  end;
  gap: 35px;
  margin-bottom: 55px;
}

.section-heading .eyebrow {
  margin-bottom: 22px;
}

.section-heading > p {
  color: var(--muted);
  max-width: 360px;
  padding-bottom: 5px;
  font-size: 14px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 62px 38px;
}

.project-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dce1d5;
  width: 100%;
  padding: 28px;
}

.project-image > img, .project-image > video {
  object-fit: contain;
  width: 100%;
  height: 280px;
  transition: transform .35s;
}

.project-image:hover > img, .project-image:hover > video {
  transform: scale(1.025);
}

.open-image {
  position: absolute;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items:  center;
  width: 38px;
  height: 38px;
  bottom: 0;
  right: 0;
}

.project-copy {
  padding: 19px 0 0;
}

.project-copy .eyebrow {
  color: var(--muted);
  margin-bottom: 8px;
}

.project h3 button {
  text-align: left;
  font: inherit;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 0;
}

.project h3 button > span {
  font: 18px var(--sans);
}

.project-copy > p:not(.eyebrow):not(.technology) {
  color: var(--muted);
  max-width: 500px;
  margin-top: 12px;
  font-size: 14px;
}

.technology {
  font: 10px / 1.9 var(--mono);
  color: var(--muted);
  margin-top: 14px;
}

.project-0 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items:  center;
  gap: 48px;
}

.project-0 .project-image {
  padding: 35px;
}

.project-0 .project-image img, .project-0 .project-image video {
  height: 360px;
}

.project-0 h3 {
  font-family: var(--serif);
  font-size: 54px;
}

.project-0 .project-copy > p:not(.eyebrow):not(.technology) {
  max-width: 330px;
  font-size: 17px;
}

.journey-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--muted);
  gap: 60px;
  max-width: 940px;
  margin: 0 0 45px;
  font-size: 17px;
}

.branch-legend {
  display: flex;
  border-top: 1px solid var(--rule);
  font: 12px var(--mono);
  flex-wrap: wrap;
  gap: 26px;
  padding: 22px 0 12px;
}

.branch-legend span, .branch-legend button {
  display: inline-flex;
  align-items:  center;
  gap: 9px;
}

.branch-legend i {
  background: var(--branch);
  display: inline-block;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.timeline-help {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 12px;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items:  start;
  gap: 45px;
}

.commit-row {
  border-bottom: 1px solid var(--rule);
}

.commit {
  position: relative;
  display: flex;
  text-align: left;
  align-items: stretch;
  width: 100%;
  min-height: 112px;
  padding: 0;
}

.tracks {
  position: relative;
  flex: none;
  align-self: stretch;
  width: 88px;
}

.tracks i {
  position: absolute;
  opacity: .4;
  width: 1px;
  top: 0;
  bottom: 0;
}

.tracks b {
  position: absolute;
  border: 3px solid var(--branch);
  background: var(--paper);
  z-index: 1;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  top: 38px;
}

.commit-label {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 20px 12px 20px 6px;
}

.commit-date {
  display: block;
  font: 10px / 1.5 var(--mono);
  color: var(--muted);
  margin-bottom: 7px;
}

.commit-date > span {
  color: var(--branch);
  margin-left: 12px;
}

.commit-label strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.commit-company {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.commit-arrow {
  align-self:  center;
  margin-right: 12px;
}

.selected {
  background: #dde5d9;
}

.selected .tracks b {
  background: var(--branch);
  box-shadow: 0 0 0 4px var(--paper);
}

.event-detail {
  position: sticky;
  border-top: 3px solid var(--accent);
  background: #dce3d6;
  padding: 28px;
  top: 30px;
}

.event-detail > .eyebrow:first-child {
  display: block;
  color: var(--muted);
  margin-bottom: 36px;
}

.event-detail h3, .inline-event h3 {
  font-family: var(--serif);
  margin: 10px 0;
  font-size: 38px;
}

.company {
  margin-bottom: 22px;
  font-size: 15px;
}

.event-detail > p:not(.eyebrow):not(.technology):not(.company), .inline-event > p:not(.eyebrow):not(.technology):not(.company) {
  font-size: 14px;
  line-height: 1.8;
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid;
  margin-top: 24px;
  padding: 0 0 3px;
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--rule);
  display: flex;
  align-items:  center;
  gap: 30px;
  margin: 0 64px;
  padding: 35px 0 50px;
  font-size: 12px;
}

footer p {
  margin-right: auto;
  font-size: 16px;
}

footer p span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  width: min(1000px, 100% - 32px);
  max-height: 90dvh;
  padding: 0;
}

dialog::backdrop {
  backdrop-filter: blur(6px);
  background: #17201ed9;
}

.dialog-bar {
  position: sticky;
  z-index: 2;
  background: var(--paper);
  display: flex;
  border-bottom: 1px solid var(--rule);
  justify-content: space-between;
  align-items:  center;
  padding: 18px 28px;
  top: 0;
}

.dialog-bar button {
  border: 1px solid var(--rule);
  padding: 7px 14px;
  font-size: 12px;
}

.detail-image {
  object-fit: contain;
  background: #e3e6dc;
  width: 100%;
  height: 380px;
  padding: 25px;
}

.detail-copy {
  padding: 35px 50px 50px;
}

.detail-copy h2 {
  margin: 12px 0 25px;
  font-size: 54px;
}

.detail-copy > p:not(.eyebrow):not(.technology) {
  max-width: 750px;
  font-size: 16px;
}

.detail-links {
  display: flex;
  gap: 25px;
  margin-top: 25px;
  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

@media (min-width: 1600px) {
  body {
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    max-width: 1440px;
    margin: auto;
  }
}

@media (max-width: 900px) {
  header {
    padding: 24px;
  }

  .hero {
    min-height: 700px;
    padding: 45px 24px 0;
  }

  .hero h1 {
    font-size: 80px;
  }

  .portrait {
    height: 560px;
  }

  .portrait > img {
    height: 500px;
  }

  .current-role {
    flex-wrap: wrap;
  }

  .work, .journey {
    padding: 75px 24px 50px;
  }

  .section-heading, .project-0 {
    gap: 25px;
  }

  .project-0 .project-image img, .project-0 .project-image video {
    height: 280px;
  }

  .timeline-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
  }

  .event-detail {
    padding: 20px;
  }

  .commit-date > span {
    display: block;
    margin-left: 0;
  }

  footer {
    flex-wrap: wrap;
    margin: 0 24px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 20px;
  }

  header {
    align-items:  center;
    padding: 20px;
  }

  .identity {
    gap: 10px;
    font-size: 13px;
  }

  .identity img {
    width: 37px;
  }

  .identity-sub {
    font-size: 9px;
  }

  nav {
    gap: 15px;
  }

  nav > a {
    display: none;
  }

  #menu-toggle {
    padding: 7px 11px;
  }

  #menu {
    width: min(290px, 100vw - 40px);
    top: 76px;
    right: 20px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 35px 20px 0;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy > .eyebrow {
    margin-bottom: 25px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: 79px;
  }

  .intro {
    margin-top: 24px;
    font-size: 20px;
  }

  .hero-description {
    margin-top: 15px;
    font-size: 14px;
  }

  .hero-links {
    gap: 23px;
    margin-top: 24px;
    font-size: 13px;
  }

  .hero-links span {
    margin-left: 13px;
  }

  .portrait {
    width: 100%;
    height: 400px;
    margin-top: 38px;
  }

  .portrait > img {
    height: 365px;
    bottom: 35px;
  }

  .portrait figcaption {
    font-size: 9px;
    bottom: 5px;
  }

  .current-role {
    display: block;
    margin-top: 18px;
    padding: 20px 0;
  }

  .current-role p {
    margin: 8px 0;
    font-size: 17px;
  }

  .current-role p span {
    display: block;
    font-size: 14px;
  }

  .work, .journey {
    padding: 65px 20px 40px;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
  }

  h2 {
    font-size: 58px;
  }

  .section-heading > p {
    margin-top: 25px;
    font-size: 13px;
  }

  .projects {
    display: block;
  }

  .project, .project-0 {
    display: block;
    margin-bottom: 38px;
  }

  .project-image, .project-0 .project-image {
    padding: 22px;
  }

  .project-image > img, .project-image > video, .project-0 .project-image img, .project-0 .project-image video {
    height: 230px;
  }

  .project-copy {
    padding-top: 16px;
  }

  .project h3, .project-0 h3 {
    font-family: var(--serif);
    font-size: 34px;
  }

  .project-copy > p:not(.eyebrow):not(.technology), .project-0 .project-copy > p:not(.eyebrow):not(.technology) {
    max-width: none;
    font-size: 14px;
  }

  .technology {
    font-size: 9px;
  }

  .journey-intro {
    display: block;
    margin-bottom: 28px;
    font-size: 15px;
  }

  .journey-intro p + p {
    margin-top: 16px;
  }

  .branch-legend {
    gap: 15px 20px;
    font-size: 10px;
  }

  .timeline-layout {
    display: block;
  }

  .event-detail {
    position: static;
    margin-top: 25px;
  }

  .commit {
    min-height: 115px;
  }

  .tracks {
    width: 84px;
  }

  .commit-label {
    padding-right: 3px;
  }

  .commit-label strong {
    font-size: 14px;
  }

  .commit-date {
    font-size: 9px;
  }

  .commit-company {
    font-size: 11px;
  }

  .commit-arrow {
    margin-left: 5px;
    margin-right: 5px;
  }

  .event-detail h3 {
    font-size: 35px;
  }

  footer {
    gap: 18px;
    margin: 0 20px;
    padding: 25px 0;
    font-size: 10px;
  }

  footer p {
    width: 100%;
  }

  dialog {
    max-height: 92dvh;
  }

  .dialog-bar {
    padding: 12px 18px;
  }

  .detail-image {
    height: 245px;
    padding: 16px;
  }

  .detail-copy {
    padding: 25px;
  }

  .detail-copy h2 {
    font-size: 36px;
  }

  .detail-copy > p:not(.eyebrow):not(.technology) {
    font-size: 14px;
  }

  .detail-links {
    flex-wrap: wrap;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

.timeline-layout {
  display: block;
}

.commit-label {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  align-items:  center;
  column-gap: 24px;
}

.commit-date, .commit-company {
  margin: 0;
}

.commit {
  min-height: 90px;
}

.commit-date > span {
  display: block;
  margin-left: 0;
}

.inline-event {
  max-width: 1070px;
  padding: 0 55px 32px 320px;
}

.inline-event > h3, .inline-event > .eyebrow, .inline-event > .company {
  display: none;
}

.inline-event > p:not(.technology) {
  max-width: 650px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .commit-label {
    grid-template-columns: 145px 1fr;
    column-gap: 15px;
  }

  .commit-company {
    grid-column: 2;
  }

  .inline-event {
    padding-left: 250px;
  }
}

@media (max-width: 600px) {
  .commit-label {
    display: block;
  }

  .commit {
    min-height: 112px;
  }

  .commit-date {
    margin-bottom: 7px;
  }

  .commit-date > span {
    display: inline;
    margin-left: 6px;
  }

  .commit-company {
    margin-top: 4px;
  }

  .inline-event {
    padding: 0 18px 25px 90px;
  }

  .inline-event > p:not(.technology) {
    font-size: 13px;
  }
}

.commits {
  position: relative;
}

.git-lines {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: .6;
  top: 0;
  left: 0;
}

.tracks i {
  display: none;
}

.tracks b {
  z-index: 2;
}

:root {
  --professional: #38664f;
  --academic: #3f6b94;
  --research: #8b4c75;
  --personal: #855416;
  --wash: #dde5d9;
  --image: #dce1d5;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #18252e;
  --ink: #e6edf0;
  --muted: #b7c7d1;
  --rule: #526572;
  --accent: #b7d6e7;
  --wash: #263e4c;
  --image: #c6d3db;
  --professional: #a3d2b1;
  --academic: #abcbed;
  --research: #deb5d0;
  --personal: #e8c28d;
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

html[data-theme="dark"] #menu {
  box-shadow: 0 12px 30px #0006;
}

html[data-theme="dark"] dialog::backdrop {
  background: #0b1218d9;
}

body {
  transition: background-color .3s, color .3s;
}

.project-image, .detail-image {
  background: var(--image);
}

.selected {
  background: var(--wash);
}

.noise {
  position: fixed;
  z-index: 9999;
  opacity: .18;
  pointer-events: none;
  animation: 7s steps(10, end) infinite grain;
  background-repeat: repeat;
  background-size: 384px;
  width: 600%;
  height: 600%;
  top: -300%;
  left: -150%;
}

html[data-theme="dark"] .noise {
  opacity: .14;
}

@keyframes grain {
  0%, 100% {
    transform: translate(0);
  }

  10% {
    transform: translate(-5%, -10%);
  }

  20% {
    transform: translate(-15%, 5%);
  }

  30% {
    transform: translate(7%, -25%);
  }

  40% {
    transform: translate(-5%, 25%);
  }

  50% {
    transform: translate(-15%, 10%);
  }

  60% {
    transform: translate(15%);
  }

  70% {
    transform: translateY(15%);
  }

  80% {
    transform: translate(3%, 35%);
  }

  90% {
    transform: translate(-10%, 10%);
  }
}

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

.identity svg {
  display: block;
  color: var(--ink);
  width: 48px;
  height: 35px;
}

#theme-toggle {
  border-bottom: 1px solid var(--ink);
  font: 12px var(--mono);
  padding: 8px 0;
}

nav {
  gap: 28px;
}

.branch-legend {
  gap: 12px 25px;
}

.branch-legend button {
  font: 12px var(--mono);
  border-bottom: 2px solid #0000;
  padding: 8px 0;
}

.branch-legend button[aria-pressed="true"] {
  border-color: var(--ink);
}

.timeline-help {
  font-size: 13px;
}

.commit-label {
  grid-template-columns: 180px minmax(0, 1fr) 195px;
}

.commit-label strong {
  font-size: 18px;
}

.commit-company {
  font-size: 14px;
}

.commit-date {
  font-size: 11px;
}

.commit-date > span {
  display: block;
  margin-top: 4px;
  margin-left: 0;
}

.inline-event {
  background: none;
  padding-bottom: 30px;
}

.inline-event > p:not(.eyebrow):not(.technology):not(.company), .inline-event li {
  font-size: 16px;
  line-height: 1.7;
}

.inline-event ul {
  margin: 16px 0;
  padding-left: 20px;
}

.inline-event li {
  max-width: 830px;
  margin: 9px 0;
}

.technology {
  font-size: 11px;
}

button:focus-visible {
  outline: 3px solid var(--personal);
  outline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid var(--personal);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  header {
    padding: 20px 24px;
  }

  .identity {
    gap: 10px;
    font-size: 13px;
  }

  .identity-sub {
    display: none;
  }

  .identity svg {
    width: 40px;
    height: 29px;
  }

  nav {
    gap: 12px;
  }

  nav > a {
    display: none;
  }

  #theme-toggle, #menu-toggle {
    font-size: 11px;
  }

  #menu-toggle {
    padding: 8px;
  }

  #menu-toggle span {
    display: none;
  }

  #menu {
    top: 80px;
    right: 24px;
  }

  .branch-legend {
    gap: 8px 18px;
    font-size: 11px;
  }

  .timeline-help {
    font-size: 12px;
  }

  .tracks {
    width: 82px;
  }

  .commit-label {
    display: block;
    padding: 20px 6px;
  }

  .commit-label strong {
    font-size: 16px;
  }

  .commit-date {
    font-size: 10px;
  }

  .commit-company {
    font-size: 13px;
  }

  .commit-date > span {
    display: inline;
    margin-left: 8px;
  }

  .inline-event {
    margin-left: 82px;
    padding: 0 10px 24px 6px;
  }

  .inline-event > p:not(.eyebrow):not(.technology):not(.company), .inline-event li {
    font-size: 15px;
  }
}

#bubbles {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  inset: 0;
}

:root {
  --blob-1: #e9ece2;
  --blob-2: #dce6d6;
  --blob-3: #efdcc9;
  --blob-4: #d6e1e2;
  --blob-5: #e6eadc;
  --blob-6: #ead7c3;
  --blob-7: #d3dfd0;
  --blob-8: #f0f1ea;
}

html[data-theme="dark"] {
  --blob-1: #18252e;
  --blob-2: #1c3341;
  --blob-3: #2a3431;
  --blob-4: #2e2b33;
  --blob-5: #172a35;
  --blob-6: #283a4a;
  --blob-7: #1f302b;
  --blob-8: #141f27;
}

body {
  background: none;
}

html {
  background: var(--paper);
}

.contact {
  border-top: 1px solid var(--rule);
  padding: 110px 64px 90px;
}

.contact-mail {
  display: inline-flex;
  font: clamp(30px, 4.6vw, 64px) / 1.1 var(--serif);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  overflow-wrap: anywhere;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 10px;
}

.contact-mail span {
  font: 24px var(--sans);
}

.contact-links {
  display: flex;
  font: 13px var(--mono);
  gap: 30px;
  margin-top: 34px;
}

@media (max-width: 800px) {
  .contact {
    padding: 65px 24px 50px;
  }

  .contact-mail {
    gap: 12px;
    font-size: 26px;
  }

  .contact-mail span {
    font-size: 18px;
  }

  .contact-links {
    gap: 20px;
  }
}

.lang-switch {
  display: flex;
  font: 12px var(--mono);
  align-items:  center;
  gap: 6px;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid #0000;
  padding: 8px 2px;
}

.lang-switch a[aria-current="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

.lang-switch span {
  color: var(--rule);
}

@media (max-width: 800px) {
  .lang-switch {
    font-size: 11px;
  }
}

.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  mix-blend-mode: multiply;
  will-change: transform;
  border-radius: 50%;
  top: 0;
  left: 0;
}

.cursor {
  border: 0 solid var(--cursor-color);
  background: color-mix(in srgb, var(--cursor-color) calc(var(--fill, 0) * 100%), transparent);
  width: 24px;
  height: 24px;
}

.cursor-dot {
  background: var(--cursor-color);
  width: 4px;
  height: 4px;
}

:root {
  --cursor-color: var(--ink);
}

html[data-theme="dark"] .cursor, html[data-theme="dark"] .cursor-dot {
  mix-blend-mode: difference;
}

.section-index {
  position: fixed;
  z-index: 40;
  display: flex;
  font: 10px / 1 var(--mono);
  letter-spacing: .08em;
  flex-direction: column;
  gap: 10px;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.section-index a {
  position: relative;
  display: flex;
  color: var(--muted);
  text-decoration: none;
  justify-content: flex-end;
  align-items:  center;
  gap: 6px;
  padding: 5px 0;
}

.section-index a:after {
  content: "";
  background: currentColor;
  width: 10px;
  height: 1px;
  transition: width .2s;
}

.section-index a:hover, .section-index a[aria-current="true"] {
  color: var(--ink);
}

.section-index a[aria-current="true"]:after {
  width: 22px;
}

.section-index em {
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--rule);
  opacity: 0;
  pointer-events: none;
  margin-right: 8px;
  padding: 5px 8px;
  transition: opacity .2s;
  font-style: normal;
  right: 100%;
}

.section-index a:hover em {
  opacity: 1;
}

.section-index a:focus-visible em {
  opacity: 1;
}

.section-pill {
  display: none;
}

@media (max-width: 900px) {
  .section-index {
    display: none;
  }

  .section-pill {
    position: fixed;
    z-index: 40;
    display: flex;
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    align-items:  flex-end;
    gap: 8px;
    transition: opacity .2s, transform .2s, visibility .2s;
    bottom: 16px;
    right: 16px;
    transform: translateY(8px);
  }

  .section-pill.show {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  #section-toggle {
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    font: 12px var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 22px;
    min-height: 44px;
    padding: 0 16px;
    box-shadow: 0 6px 18px #0002;
  }

  #section-toggle[aria-expanded="true"] span[aria-hidden] {
    display: inline-block;
    transform: rotate(180deg);
  }

  #section-list {
    display: flex;
    border: 1px solid var(--rule);
    background: var(--paper);
    flex-direction: column;
    min-width: 180px;
    padding: 6px 0;
    box-shadow: 0 10px 26px #0003;
  }

  #section-list[hidden] {
    display: none;
  }

  #section-list a {
    display: flex;
    color: var(--ink);
    text-decoration: none;
    font: 15px var(--sans);
    align-items:  center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
  }

  #section-list a span {
    font: 11px var(--mono);
    color: var(--muted);
  }

  #section-list a[aria-current="true"] {
    font-weight: 600;
  }

  #section-list a[aria-current="true"] span {
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-index a:after, .section-index em, .section-pill {
    transition: none;
  }
}

.detail-copy > p + p:not(.technology), .inline-event > p + p:not(.technology) {
  margin-top: 1em;
}

.project-media, .detail-media {
  position: relative;
}

.media-toggle {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  background: var(--ink);
  color: var(--paper);
  font: 11px var(--mono);
  letter-spacing: .05em;
  align-items:  center;
  gap: 8px;
  padding: 9px 13px;
  bottom: 18px;
  left: 18px;
}

.media-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  background: var(--ink);
  color: var(--paper);
  font: 11px var(--mono);
  letter-spacing: .05em;
  opacity: .85;
  padding: 6px 10px;
  top: 18px;
  left: 18px;
}

.media-toggle[hidden], .media-badge[hidden], .project-image > img[hidden], .detail-image[hidden] {
  display: none;
}
