:root {
  --bg: #dfdfdd;
  --surface: #e8e8e5;
  --ink: #3f3f3c;
  --muted: #7a7a75;
  --rule: #9b9b95;
  --rule-soft: #b8b8b2;
  --black: #0d0d0c;
  --focus: #2760d7;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a,
button,
input {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

a {
  text-decoration: none;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus-visible,
button:not(.project-flip, :disabled):hover,
button:not(.project-flip, :disabled):focus-visible {
  text-decoration: underline;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

img {
  display: block;
  max-width: 100%;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(544px, calc(100vw - 32px));
  margin-inline: auto;
}

.site-nav {
  position: absolute;
  inset: 16px 16px auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.intro {
  padding-top: 144px;
  padding-bottom: 120px;
}

.intro p {
  margin-bottom: 24px;
}

.intro p:last-child {
  margin-bottom: 0;
}

.contact-block {
  color: var(--muted);
}

.contact-block a {
  color: var(--ink);
}

.section {
  padding-top: 32px;
  padding-bottom: 94px;
  border-top: 1px solid var(--rule);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  line-height: 1.2;
}

.dated-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

a.dated-row:hover,
a.dated-row:focus-visible {
  text-decoration: none;
}

a.dated-row:hover > span:last-child,
a.dated-row:focus-visible > span:last-child {
  text-decoration: underline;
}

.date-pair {
  display: grid;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.project-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  perspective: 700px;
}

.project-flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(0.2, 0.72, 0.3, 1);
}

.project-flip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.project-card.is-flipped .project-flip {
  transform: rotateY(180deg);
}

.project-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  backface-visibility: hidden;
  background: var(--surface);
}

.project-front {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 38px;
}

.project-back {
  display: flex;
  padding: 9px 8px 31px;
  flex-direction: column;
  align-items: flex-start;
  transform: rotateY(180deg);
  text-align: left;
}

.project-art {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f4f4f1;
}

.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
}

.project-art--righthand {
  display: flex;
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--black);
  color: #f4f4ee;
  text-align: left;
}

.project-art--righthand strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.project-art--righthand span {
  font-size: 9px;
  line-height: 1.25;
}

.project-caption {
  display: flex;
  min-width: 0;
  padding: 5px 6px;
  justify-content: space-between;
  gap: 5px;
  border-top: 1px solid var(--rule-soft);
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
}

.project-caption > span:first-child {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-caption > span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
}

.project-synopsis {
  font-size: 10px;
  line-height: 1.27;
}

.project-attribution {
  margin-top: auto;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}

.project-visit {
  position: absolute;
  bottom: 7px;
  left: 9px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  font-size: 10px;
  line-height: 1.2;
  transition: opacity 100ms linear 80ms;
}

.project-card.is-flipped .project-visit {
  opacity: 1;
  pointer-events: auto;
}

.reading-list {
  display: grid;
  gap: 15px;
}

.reading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.reading-row span:last-child {
  max-width: 190px;
  color: var(--muted);
  text-align: right;
}

.links-section {
  padding-bottom: 116px;
}

.link-line {
  overflow-wrap: anywhere;
}

.page-intro,
.index-page,
.subscribe-page {
  padding-top: 144px;
  padding-bottom: 112px;
}

.page-intro h1,
.index-page h1,
.subscribe-page h1 {
  margin-bottom: 48px;
}

.about-copy p {
  margin-bottom: 20px;
}

.meta-list {
  margin-top: 54px;
  border-top: 1px solid var(--rule-soft);
  font-size: 11px;
}

.meta-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding-block: 6px;
  border-bottom: 1px solid var(--rule-soft);
}

.meta-list dt {
  color: var(--muted);
  text-transform: uppercase;
}

.meta-list dd {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.about-section {
  padding-top: 36px;
  padding-bottom: 140px;
  border-top: 1px solid var(--rule);
}

.about-section > h2 {
  margin-bottom: 48px;
}

.cv-list {
  display: grid;
  gap: 24px;
}

.cv-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 32px;
}

.cv-row > p,
.cv-row div > p,
.cv-row h3 span {
  color: var(--muted);
}

.cv-row h3 {
  margin-bottom: 2px;
}

.resume-link {
  margin-top: 52px;
  padding-left: 124px;
}

.index-page {
  min-height: 72vh;
}

.index-list {
  display: grid;
  gap: 18px;
}

.subscribe-page {
  min-height: 72vh;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.subscribe-form label,
.subscribe-form button {
  padding-bottom: 6px;
  line-height: 1;
}

.subscribe-form input {
  width: 100%;
  min-width: 0;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.subscribe-form input:focus-visible {
  border-bottom-width: 2px;
  border-bottom-color: var(--focus);
}

.form-status {
  grid-column: 2 / -1;
  padding-top: 10px;
}

.article-page {
  padding-top: 144px;
  padding-bottom: 120px;
}

.article-heading {
  margin-bottom: 72px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content figure {
  width: min(860px, calc(100vw - 32px));
  margin: 72px 50%;
  transform: translateX(-50%);
}

.article-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.article-heading p,
.muted {
  color: var(--muted);
}

.article-content h2 {
  margin: 48px 0 24px;
}

.article-content blockquote {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.article-content figure img {
  width: 100%;
  height: auto;
}

.article-footer {
  display: flex;
  gap: 24px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}

.page-return {
  margin-top: 48px;
}

.site-footer {
  min-height: 142px;
  padding: 16px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
    line-height: 1.45;
  }

  .site-nav {
    inset: 9px 10px auto;
  }

  .nav-links {
    gap: 16px;
  }

  .wrap {
    width: min(100vw - 20px, 544px);
  }

  .intro {
    padding-top: 92px;
    padding-bottom: 88px;
  }

  .section {
    padding-top: 25px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .dated-row,
  .cv-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
  }

  .cv-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .cv-row > p {
    white-space: nowrap;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .project-front {
    grid-template-rows: minmax(0, 1fr) 42px;
  }

  .project-art--righthand {
    padding: 13px;
  }

  .project-art--righthand strong {
    font-size: 20px;
  }

  .project-art--righthand span {
    font-size: 11px;
  }

  .project-caption {
    padding: 6px 7px;
    font-size: 11px;
  }

  .project-back {
    padding: 12px 11px 38px;
  }

  .project-synopsis {
    font-size: 12px;
    line-height: 1.3;
  }

  .project-attribution,
  .project-visit {
    font-size: 11px;
  }

  .project-visit {
    bottom: 10px;
    left: 12px;
  }

  .reading-row {
    gap: 18px;
  }

  .reading-row span:last-child {
    max-width: 42vw;
  }

  .links-section {
    padding-bottom: 88px;
  }

  .page-intro,
  .index-page,
  .subscribe-page,
  .article-page {
    padding-top: 94px;
    padding-bottom: 90px;
  }

  .page-intro h1,
  .index-page h1,
  .subscribe-page h1 {
    margin-bottom: 38px;
  }

  .article-heading {
    margin-bottom: 56px;
  }

  .article-content figure {
    width: calc(100vw - 20px);
    margin-block: 56px;
  }

  .article-footer {
    margin-top: 56px;
  }

  .meta-list > div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .about-section {
    padding-top: 28px;
    padding-bottom: 104px;
  }

  .about-section > h2 {
    margin-bottom: 38px;
  }

  .resume-link {
    margin-top: 42px;
    padding-left: 88px;
  }

  .subscribe-form {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .site-footer {
    min-height: 112px;
    padding: 12px 10px;
  }
}

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

  .project-flip {
    transition: none;
  }

  .project-card.is-flipped .project-flip {
    transform: none;
  }

  .project-card.is-flipped .project-front {
    visibility: hidden;
  }

  .project-back {
    transform: none;
    visibility: hidden;
  }

  .project-card.is-flipped .project-back {
    visibility: visible;
  }
}
