:root {
  color-scheme: light;
  --background: #f7f7f3;
  --text: #1f201d;
  --muted: #70716b;
  --line: #d8d8d1;
  --link: #285744;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  color: var(--background);
  background: var(--text);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(48rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.75rem;
}

.wordmark {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.intro {
  padding-block: clamp(4rem, 9vw, 6rem) 0;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3.25rem, 10vw, 5.75rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

.intro-copy {
  max-width: 34rem;
  margin: 0;
  color: #3d3e39;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.content-section {
  padding-block: clamp(3.25rem, 7vw, 5rem) 0;
  scroll-margin-top: 1rem;
}

.section-heading {
  margin-bottom: 2.25rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.project-list {
  margin: 0;
  padding-left: 1.4rem;
}

.project-list li {
  padding-left: 0.3rem;
  font-size: clamp(1.08rem, 2.7vw, 1.35rem);
  line-height: 1.55;
}

.project-list li + li {
  margin-top: 0.75rem;
}

.project-list li::marker {
  color: var(--text);
}

.project-list a {
  font-weight: 500;
}

.project-showcase {
  display: grid;
  gap: 1.75rem;
}

.project-card {
  display: block;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(31, 32, 29, 0.07);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: #b7b8af;
  box-shadow: 0 22px 55px rgba(31, 32, 29, 0.12);
  text-decoration: none;
  transform: translateY(-3px);
}

.project-card:focus-visible {
  border-radius: 14px;
}

.project-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e9e9e3;
  border-bottom: 1px solid var(--line);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-media-sammy {
  background: #c4ebff;
}

.project-media-sammy img {
  object-position: center;
}

.project-media-sidequest img {
  object-fit: cover;
  object-position: 75% center;
}

.project-details {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 1.3rem;
}

.project-name {
  color: var(--link);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.project-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.comedy-project {
  margin-bottom: 2.25rem;
}

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

.media-embed {
  min-width: 0;
}

.media-embed iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.instagram-embed iframe {
  height: 38rem;
}

.youtube-embed {
  grid-column: 1 / -1;
}

.youtube-embed iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.media-embed > a {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

figure {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 3px;
  object-fit: cover;
}

footer {
  padding-block: clamp(3.25rem, 7vw, 4.5rem) 4rem;
}

footer p {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  line-height: 1.35;
  overflow-wrap: normal;
  white-space: nowrap;
}

footer a {
  font-size: 1.65rem;
  font-weight: 600;
}

@media (min-width: 621px) and (max-width: 899px) {
  .project-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .project-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-name {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 48rem);
  }

  .project-card {
    width: min(100%, 21rem);
    margin-inline: auto;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .intro {
    padding-top: 3.5rem;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

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

  .instagram-embed iframe {
    height: 36rem;
  }

  .youtube-embed {
    grid-column: auto;
  }

  footer p {
    font-size: 0.95rem;
  }

  footer a {
    font-size: 1.35rem;
  }
}

@media (max-width: 360px) {
  footer p {
    font-size: 0.84rem;
  }
}

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

  .project-card {
    transition: none;
  }
}
