:root {
  --bg: #0f0f10;
  --text: #ebebfa;
  --muted: #94949e;
  --subtle: #6f6f7b;
  --line: #212124;
  --measure: 700px;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-400.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 65%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

.page-shell {
  width: min(var(--measure), calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 82px;
}

.intro {
  min-height: 214px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1 {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.lede,
.muted,
.section-copy,
.entry p,
.award dd,
.contact p,
.site-footer {
  color: var(--muted);
}

.lede,
.muted,
.section-copy,
.contact p {
  font-size: 16px;
  line-height: 1.45;
}

.lede {
  max-width: 700px;
  margin-top: 34px;
}

em {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--muted);
}

.muted {
  margin-top: 36px;
  /* #44444c failed WCAG AA on --bg; raised to maintain legibility */
  color: #6e6e7a;
}

.section {
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.work {
  padding-top: 31px;
}

.section + .section {
  margin-top: 64px;
}

.section-copy {
  max-width: 700px;
  margin-top: 28px;
  color: var(--text);
}

.section-copy em {
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.project {
  display: block;
  border-radius: 8px;
  text-decoration: none;
}

.project:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 42%, transparent);
  outline-offset: 4px;
}

.case-study:target h3 {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 45%, transparent);
  text-underline-offset: 4px;
}

.project img {
  display: block;
  width: 100%;
  aspect-ratio: 342 / 257;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  background: #050506;
  transition: filter 180ms ease, transform 180ms ease;
}

.project:hover img {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.project-title,
.project-client {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.project-title {
  margin-top: 12px;
  color: var(--text);
  font-weight: 700;
}

.project-client {
  margin-top: 4px;
  color: var(--muted);
}

.project-details {
  scroll-margin-top: 36px;
}

.case-study {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 36px;
}

.case-study:first-of-type {
  margin-top: 30px;
}

.case-study p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.timeline {
  margin-top: 30px;
}

.entry {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.entry + .entry {
  padding-top: 26px;
}

.entry .date {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.entry > p:last-child {
  max-width: 760px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.contact {
  border-top: 0;
  margin-top: 54px;
  padding-top: 0;
}

.contact p {
  margin-top: 28px;
  color: var(--text);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0 max(20px, calc((100vw - var(--measure)) / 2));
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer time {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 809px) {
  .page-shell {
    width: calc(100% - 40px);
    padding-top: 94px;
    padding-bottom: 76px;
  }

  .intro {
    min-height: 248px;
  }

  .lede,
  .muted,
  .section-copy,
  .contact p {
    font-size: 16px;
  }

  .lede {
    margin-top: 38px;
  }

  .muted {
    margin-top: 40px;
  }

  .section,
  .work {
    padding-top: 62px;
  }

  .section + .section {
    margin-top: 62px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer {
    padding: 0 20px;
  }
}


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

  .project img {
    transition: none;
  }
}
