:root {
  --bg:      #fbfaf7;
  --fg:      #1b1b19;
  --muted:   #6f6d66;
  --rule:    #e2e0d9;
  --accent:  #9c5f11;
  --bg-blur: rgba(251, 250, 247, 0.88);

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, "Cascadia Mono",
           "Roboto Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #151513;
    --fg:      #e7e4dd;
    --muted:   #918e85;
    --rule:    #2b2b28;
    --accent:  #d9a45e;
    --bg-blur: rgba(21, 21, 19, 0.88);
  }
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 120ms ease;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  z-index: 100;
}
.skip:focus { left: 0; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-blur);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.masthead nav a:hover { color: var(--fg); }
.masthead nav a[aria-current="true"] {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

section {
  padding: 4rem 0;
  scroll-margin-top: 4rem;
}
section + section > .wrap { border-top: 1px solid var(--rule); padding-top: 4rem; }
section + section { padding-top: 0; }

h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  max-width: 34rem;
}

h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 2rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.intro p { max-width: 34rem; }

.intro-head {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.intro-text { min-width: 0; }
.intro-text h1 { margin: 0 0 1rem; }
.intro-text .lede { margin-bottom: 0; }

.portrait {
  flex: 0 0 auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  object-fit: cover;
  display: block;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.intro-links a { color: var(--muted); }
.intro-links a:hover { color: var(--fg); }

.experience-list {
  margin: 0;
  padding-left: 1.5rem;
}

.experience-list > li::marker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.experience-list > li + li {
  margin-top: 2rem;
}

.experience-main { min-width: 0; }

.experience-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.experience-role {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
}

.experience-org {
  margin: 0.25rem 0 0;
}

.experience-type,
.experience-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.experience-type { margin: 0.45rem 0 0; }

.experience-year {
  flex: 0 0 auto;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 2.5rem;
}

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: border-color 140ms ease;
}

.shot img,
.shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-empty::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tile-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 1rem 0 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}

.tile-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.tile-desc { margin: 0.7rem 0 0; }

.tile-more {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 140ms ease;
}

.tile-meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.tile:hover .shot { border-color: var(--accent); }
.tile:hover .tile-title { border-bottom-color: var(--accent); }
.tile:hover .tile-more { color: var(--accent); }

.strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

.strip-item {
  flex: 0 0 17rem;
  scroll-snap-align: start;
  padding: 0 1.75rem;
  border-left: 1px solid var(--rule);
}
.strip-item:first-child { padding-left: 0; border-left: none; }
.strip-item:last-child { padding-right: 0; }

.strip-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.strip-org { margin: 0.35rem 0 0; }

.strip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.6rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.strip-meta a { color: var(--muted); }
.strip-meta a:hover { color: var(--fg); }

.elsewhere {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  max-width: 34rem;
}
.elsewhere li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.elsewhere li:first-child { border-top: none; }
.elsewhere .label {
  color: var(--muted);
  min-width: 6rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.75;
}

.case { padding: 3rem 0 4rem; }
.case p,
.case ul:not(.case-meta) { max-width: 34rem; }

.crumb {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--fg); }

.case-meta {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  max-width: 40rem;
}
.case-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}
.case-meta li:first-child { border-top: none; }
.case-meta .label {
  color: var(--muted);
  min-width: 6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.8;
}
.case-meta .value { flex: 1 1 18rem; }
.case-meta .value a { margin-right: 1.25rem; }

.figure { margin: 0 0 2.5rem; }
.figure .shot { aspect-ratio: 16 / 9; }
.figure figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.case pre {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.15rem;
  padding-left: 1.5rem;
  overflow-x: auto;
}

.case h2 { margin: 3rem 0 1rem; }
.case h2:first-of-type { margin-top: 0; }

@media (max-width: 46rem) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .intro-head { flex-direction: column; gap: 1.5rem; }
  .portrait { width: 9rem; height: 9rem; }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  .lede { font-size: 1.0625rem; }
  section { padding: 3rem 0; }
  section + section > .wrap { padding-top: 3rem; }
  .strip-item { flex-basis: 14rem; padding: 0 1.25rem; }
  .portrait { width: 7rem; height: 7rem; }
}

@media print {
  :root { --bg: #fff; --fg: #000; --muted: #444; --rule: #ccc; --accent: #000; }
  .masthead { position: static; }
  .masthead nav, .skip { display: none; }
  section { padding: 1.5rem 0; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .strip { overflow: visible; flex-wrap: wrap; }
  a { text-decoration: none; }
}
