:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #222321;
  --muted: #767873;
  --rule: #e4e5e0;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, video:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
p { margin: 0 0 24px; }
h2 { font-size: 1.125rem; font-weight: 500; line-height: 1.4; margin: 0 0 18px; letter-spacing: -.02em; }
.wrap { width: min(100% - 64px, 760px); margin-inline: auto; }
.header-inner { padding-block: 56px 32px; border-bottom: 1px solid var(--ink); }
.name { display: inline-block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.name:hover { text-decoration: none; }
main { padding-block: 54px 80px; }
.bio p { margin-bottom: 12px; }
.bio a, .experience a, .education a, .home-project p a { text-decoration: underline; text-underline-offset: 4px; }
.intro-divider { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.previous-intro { margin-bottom: 10px; }
.previous-roles { padding-left: 1.3em; margin: 0; }
.previous-roles li { margin-bottom: 6px; }
.education { border-top: 1px solid var(--rule); padding-top: 30px; margin-top: 42px; }
.education p:last-child { margin-bottom: 0; }
.section { margin-top: 48px; }
.home-project { min-width: 0; margin-bottom: 56px; }
.video-frame { background: #151918; overflow: hidden; border-radius: 8px; margin: 24px 0 15px; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.personal-stats { margin-top: 40px; }
.race-list { list-style: none; padding: 0; margin: 16px 0 0; }
.race-list li { margin-bottom: 10px; }
.race-list span { color: var(--muted); }
.travel { margin-top: 44px; padding-block: 26px; border-block: 1px solid var(--rule); }
.travel-intro { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.travel h2 { font-size: 1rem; font-weight: 400; line-height: 1.65; margin: 0; }
.travel h2 strong { font-size: 1.6rem; font-weight: 500; }
.travel-intro p { margin: 0; font-size: .9375rem; }
.travel-map { display: block; width: 100%; height: auto; margin: 24px 0; }
.travel summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
.country-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; padding: 0; margin: 24px 0 4px; color: #565953; font-size: .9375rem; }
.malabar-project { border-top: 1px solid var(--rule); padding-top: 34px; margin-bottom: 0; }
.malabar-image { display: block; overflow: hidden; margin: 22px 0 26px; background: #f4f4f0; }
.malabar-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 360px; object-fit: contain; mix-blend-mode: multiply; }
.malabar-story { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 24px; align-items: start; }
.malabar-story p { margin: 0; }
.shirt-zoom { display: block; cursor: zoom-in; justify-self: start; }
.shirt-photo { display: block; width: 130px; height: auto; max-height: 200px; object-fit: contain; }
.malabar-site { font-size: .875rem; margin: 14px 0 0; }
.photo-dialog { border: 0; padding: 16px; background: white; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
.photo-dialog::backdrop { background: rgb(0 0 0 / .7); }
.photo-dialog form { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.photo-close { font: inherit; background: white; border: 1px solid var(--rule); padding: 8px 14px; cursor: pointer; }
.photo-dialog > img { display: block; max-width: 100%; width: auto; max-height: calc(100dvh - 120px); height: auto; margin: auto; }
footer .wrap { border-top: 1px solid var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 24px 40px; color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); }
.footer-links a:hover { background: #f1f1ee; }
.footer-links svg { width: 19px; height: 19px; }
.skip { position: absolute; left: 16px; top: -100px; background: white; padding: 8px 16px; z-index: 5; }
.skip:focus { top: 10px; }
::selection { background: #e4e5dd; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { padding-block: 44px 30px; }
  .name { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  main { padding-block: 34px 50px; }
  .home-project { margin-bottom: 42px; }
  .malabar-project { margin-bottom: 0; }
  .footer-inner { gap: 16px; font-size: .8125rem; }
  .footer-links { gap: 2px; }
}
@media (max-width: 600px) {
  .travel-intro { grid-template-columns: 1fr; gap: 16px; }
  .malabar-story { grid-template-columns: minmax(0, 1fr) 90px; gap: 16px; }
  .shirt-photo { width: 90px; max-height: 140px; }
}
@media (max-width: 430px) {
  .country-list { grid-template-columns: 1fr; }
  .footer-links a { width: 38px; height: 42px; }
}
@media (max-width: 380px) {
  .malabar-story { grid-template-columns: 1fr; }
  .shirt-photo { width: 100px; max-height: 155px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.photo-link { text-decoration: underline; text-underline-offset: 4px; cursor: zoom-in; }
