:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #62656b;
  --link: #0645ad;
  --accent: #713647;
  --line: #dfe0e3;
  --paper: #f5f5f6;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  border-top: 5px solid var(--accent);
  color: var(--ink);
  background: #fff;
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 0.75rem; font-size: 2.35rem; font-weight: 500; letter-spacing: -0.035em; }
h2 { margin: 0 0 1.75rem; font-size: 1.65rem; font-weight: 500; letter-spacing: -0.025em; }
h3 { margin: 0 0 0.6rem; font-size: 1.0625rem; font-weight: 600; }
.container { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: 0.5rem 1rem; background: white; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.profile { display: flex; align-items: center; gap: 2.75rem; padding-block: 2.75rem; max-width: 810px; margin: auto; }
.portrait { width: 200px; height: 200px; flex: 0 0 200px; border-radius: 50%; object-fit: cover; }
.intro { max-width: 520px; }
.tagline { font-size: 1.125rem; line-height: 1.55; max-width: 31rem; }
.location { color: var(--muted); font-size: 0.9375rem; margin-block: 0.85rem 0.5rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.profile-links a { padding-block: 0.2rem; }
.section { padding-block: 2.75rem 3rem; }
.work { padding-top: 2rem; }
.bio { max-width: 58rem; }
.bio h2 { margin-bottom: 1.1rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 2.5rem; position: relative; padding-bottom: 1.15rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 187px; top: 0.55rem; bottom: -0.55rem; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ""; position: absolute; left: 183px; top: 0.48rem; width: 9px; height: 9px; border-radius: 50%; background: #b8b8be; box-shadow: 0 0 0 4px white; }
.timeline-item:first-child::after { background: var(--accent); }
.dates { padding-top: 0.05rem; color: var(--muted); text-align: right; font-size: 0.875rem; line-height: 1.55; }
.entry h3 { margin-bottom: 0.2rem; }
.entry-logo { height: 34px; width: auto; margin-bottom: 0.45rem; }
.entry-logo.is-wide { height: 26px; }
.entry-logo.is-tall { height: 40px; }
.organization { color: var(--muted); font-weight: 400; }
.organization::before { content: "· "; }
.entry p { max-width: 49rem; }
.projects { background: var(--paper); border-block: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.8rem; padding-block: 1.75rem; border-top: 1px solid var(--line); align-items: start; }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project-image { display: block; margin-top: 0.2rem; border: 1px solid #d8d9dd; background: white; border-radius: 2px; overflow: hidden; }
.project-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.project p { margin-bottom: 0.65rem; }
.project .tools { color: var(--muted); font-size: 0.875rem; margin-bottom: 0; }
.section-end { margin-top: 0.6rem; }
.videos h2 { margin-bottom: 0.65rem; }
.section-intro { color: var(--muted); margin-bottom: 1.75rem; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; list-style: none; padding: 0; margin: 0 0 1.75rem; }
.video-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); text-decoration: none; background: #fff; }
.video-card:hover { border-color: #989ba3; }
.video-card:hover h3 { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.video-copy { display: flex; flex: 1; flex-direction: column; padding: 0.8rem 0.8rem 0.9rem; }
.video-copy h3 { font-size: 0.9375rem; line-height: 1.45; font-weight: 500; }
.video-copy p { margin-top: auto; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.error-page { max-width: 680px; padding-block: 5rem; }
.error-code { color: var(--accent); margin-bottom: 1rem; }

@media (max-width: 850px) {
  .profile { gap: 2rem; }
  .portrait { width: 170px; height: 170px; flex-basis: 170px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project { grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; }
  .timeline-item { grid-template-columns: 150px minmax(0, 1fr); gap: 2rem; }
  .timeline-item::before { left: 161px; }
  .timeline-item::after { left: 157px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .profile { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: 2rem; }
  .portrait { width: 148px; height: 148px; flex-basis: 148px; }
  h1 { font-size: 2rem; }
  .tagline { font-size: 1.0625rem; }
  .profile-links { gap: 0 1.25rem; }
  .profile-links a { padding-block: 0.6rem; }
  .section { padding-block: 2rem; }
  .work { padding-top: 1.5rem; }
  .timeline-item { display: block; padding-left: 1.3rem; padding-bottom: 1rem; }
  .timeline-item::before { left: 3px; }
  .timeline-item::after { left: -1px; }
  .dates { text-align: left; margin-bottom: 0.25rem; }
  .organization { display: block; margin-top: 0.1rem; }
  .organization::before { content: none; }
  .project { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.5rem; }
  .project-image { max-width: 400px; }
  .video-grid { display: flex; gap: 0.875rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -18px; padding: 0 18px 0.75rem; scroll-padding-inline: 18px; }
  .video-grid > li { flex: 0 0 78%; scroll-snap-align: start; }
  .video-copy { padding: 1rem; }
  .video-copy h3 { font-size: 1rem; }
  .footer-inner { flex-wrap: wrap; }
}

@media print {
  body { border-top: 0; font-size: 10pt; }
  .container { width: 100%; }
  .skip-link, .videos, footer { display: none; }
  .site-header { background: none; border: 0; }
  .profile { padding-block: 1rem; }
  .section { padding-block: 1rem; }
  .projects { background: white; }
  .timeline-item, .project { break-inside: avoid; }
  a { color: inherit; }
}
