* {
  box-sizing: border-box;
}

:root {
  --measure: min(44rem, 92vw);
  --measure-wide: min(60rem, 92vw);
}

body {
  width: var(--measure);
  margin: 0 auto;
  padding-block: 2.5rem 4rem;
  line-height: 1.5;
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 300;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.skip-link {
  position: absolute;
  left: -100vw;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}

.site-header__avatar {
  flex-shrink: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  overflow: hidden;
}

.site-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.9);
  transform-origin: 44% 41%;
}

.site-header h1 {
  margin-bottom: 0.25rem;
}

.site-header p {
  max-width: 42rem;
  margin-block: 0.25rem;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.45rem;
}

section + section {
  margin-top: 4.5rem;
}

h2 {
  margin: 0 0 0.75rem;
}

.project-list {
  margin-top: 2rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
}

.project__media {
  margin: 0;
}

.project__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 1rem;
  object-fit: contain;
  text-align: center;
}

div.project__image {
  display: grid;
  place-items: center;
}

img.project__image {
  display: block;
  height: auto;
  padding: 0;
}

figcaption {
  margin-top: 0.4rem;
}

.project h3 {
  margin: 0 0 0.35rem;
}

.project__meta {
  margin: 0 0 0.8rem;
}

.project__premise {
  max-width: 42rem;
  margin: 0;
}

#profile p {
  max-width: 42rem;
}

.site-footer {
  margin-top: 4.5rem;
}

.site-footer p {
  margin: 0;
}

.record-page {
  width: var(--measure-wide);
}

.record-header {
  padding-bottom: 2rem;
}

.record-nav {
  margin-bottom: 4.5rem;
}

.record-meta,
.record-step {
  margin-block: 0 0.75rem;
}

.record-header h1 {
  max-width: 52rem;
  margin-block: 0;
}

.record-deck,
.record-question,
.record-section > p,
.record-method,
.record-source {
  max-width: 42rem;
}

.record-deck {
  margin-block: 0.75rem 2rem;
}

.record-question {
  margin-bottom: 2rem;
}

.record-main {
  margin-top: 4.5rem;
}

.record-figure {
  margin: 3rem auto 0;
  max-width: 22rem;
}

.record-figure--opening {
  margin-top: 0;
}

.record-figure--wide {
  max-width: 34rem;
}

.record-figure--xwide {
  max-width: var(--measure-wide);
}

.record-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.record-figure figcaption {
  max-width: 42rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #666;
}

.record-section {
  margin-top: 5rem;
  padding-top: 1.25rem;
}

.record-section h2 {
  max-width: 42rem;
}

.record-method {
  margin-bottom: 0;
}

.record-method dt {
  margin-top: 1.25rem;
}

.record-method dd {
  margin: 0.25rem 0 0;
}

.record-source {
  margin-top: 2rem;
}

.record-footer {
  margin-top: 5rem;
}

@media (max-width: 42rem) {
  body {
    padding-block-start: 1.5rem;
  }

  .site-header,
  section + section,
  .site-footer {
    margin-top: 3rem;
  }

  .site-header {
    margin-top: 0;
    margin-bottom: 3rem;
  }

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

  .project__media {
    max-width: 24rem;
  }

  .record-nav {
    margin-bottom: 3rem;
  }

  .record-main,
  .record-section,
  .record-footer {
    margin-top: 3rem;
  }
}
