@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/dm-sans-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;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #262b28;
  --muted: #686b65;
  --line: #dedfd7;
  --accent: #365e85;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-space: 48px;
}

* { box-sizing: border-box; }

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

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

::selection { background: #dce7f1; color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
p, h1, h2, h3 { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(100% - 112px, 880px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: calc(68px + var(--section-space) * .65);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}

nav { display: flex; align-items: center; gap: 30px; }
nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  transition: color 160ms ease;
}
nav a:hover { color: var(--accent); }

.intro { padding: 28px 0 var(--section-space); }
.visual-field { display: grid; place-items: center; min-height: 230px; }

h1 {
  margin: 0 0 calc(14px + var(--section-space) * .28);
  font-family: var(--sans);
  font-size: clamp(54px, 8.5vw, 80px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.05em;
}
h1 em { font-style: normal; font-weight: inherit; color: var(--accent); }
.intro-copy { max-width: 570px; margin: 12px auto 0; text-align: center; }
.bio { color: var(--muted); font-size: 16px; line-height: 1.75; }

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #b6b9af;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.text-link span { font-size: 17px; transition: transform 160ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.section { border-top: 1px solid var(--line); }
.section-heading {
  padding-top: calc(var(--section-space) * .6);
}
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.project-list { margin-top: calc(var(--section-space) * .3); }
.project {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: calc(var(--section-space) * .55) 0;
}
.project-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.project-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 12px 0 0; }
.project-links .text-link { gap: 9px; }
.project-links [aria-disabled="true"] { color: var(--muted); cursor: default; }
.project-links [aria-disabled="true"]:hover { text-decoration-color: #b6b9af; }
.project-links [aria-disabled="true"]:hover span { transform: none; }
.project + .project { border-top: 1px solid var(--line); }
h3 { font-family: var(--sans); font-size: 25px; font-weight: 400; line-height: 1.3; letter-spacing: -.025em; }
.project-copy p { max-width: 490px; margin-top: 9px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.projects { padding-bottom: calc(var(--section-space) * .6); }

.contact { padding-bottom: calc(var(--section-space) * .75); }
.contact-links { display: flex; flex-wrap: wrap; gap: 28px; margin: calc(var(--section-space) * .35) 0 0; padding: 0; list-style: none; }
.contact-links .text-link { gap: 16px; }
.lightspeed-accent {
  display: block;
  width: 540px;
  max-width: 100%;
  height: auto;
  margin: 0;
  clip-path: ellipse(50% 50% at 50% 50%);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: calc(14px + var(--section-space) * .25) 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 640px) {
  .page { width: calc(100% - 48px); }
  .site-header { min-height: 88px; }
  .wordmark { font-size: 14px; }
  nav { gap: 16px; }
  nav a { font-size: 12px; }
  .intro { padding-top: 14px; }
  .visual-field { min-height: 170px; }
  h1 { font-size: clamp(42px, 11vw, 66px); }
  .bio { font-size: 15px; }
  .project { grid-template-columns: 1fr; gap: 20px; }
  .project-copy p { font-size: 14px; }
  .contact-links { gap: 25px; }
  .site-footer { gap: 16px; font-size: 10px; }
}

@media (min-width: 641px) and (max-width: 800px) {
  .project { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
