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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: #f6f4f0;
  color: #222;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

a {
  color: #222;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

/* nav */

header {
  padding: 1.5rem 0 0;
}

nav {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
}

nav a:hover {
  color: #222;
}

/* main */

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

section {
  scroll-margin-top: 2rem;
}

/* name */

.name {
  padding-top: 2.5rem;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.25rem;
}

/* photo */

.photo {
  width: 300px;
}

.photo img {
  width: 100%;
  border-radius: 4px;
}

.photo figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
}

/* videos */

#videos h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.video {
  display: flex;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e5e0;
}

.video:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.video-wrap {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  padding-top: 168.75px;
  background: #e5e2dc;
  border-radius: 3px;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
}

.video-info {
  flex: 1;
  min-width: 0;
}

.video-info h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.video-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* project page */

.project-header {
  padding-top: 3rem;
}

.project-header h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.project-subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 560px;
}

.project-body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.project-body h2:first-child {
  margin-top: 0;
}

.project-body p {
  font-size: 1rem;
  color: #444;
  max-width: 600px;
  margin-bottom: 0.85rem;
}

.project-body ol,
.project-body ul {
  margin-left: 1.25rem;
  margin-bottom: 0.85rem;
  max-width: 600px;
}

.project-body li {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.3rem;
}

.project-media {
  position: relative;
  padding-top: 56.25%;
  background: #e5e2dc;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.project-media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
}

/* footer */

footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 2rem;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  font-size: 0.9rem;
}

footer a {
  color: #555;
}

footer a:hover {
  color: #222;
}

/* responsive */

@media (max-width: 600px) {
  .name {
    font-size: 2rem;
    padding-top: 2rem;
    margin-bottom: 1rem;
  }

  .photo {
    width: 240px;
  }

  hr {
    margin: 1.5rem 0;
  }

  .video {
    flex-direction: column;
  }

  .video-wrap {
    width: 100%;
    padding-top: 56.25%;
  }
}
