/* Mobile first */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fafafa;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.header-link:hover {
  border-color: #666;
  background: #f5f5f5;
  opacity: 0.9;
}

.header-link img {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: cover;
}

.content {
  padding: 1.5rem 1rem;
  max-width: 100%;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.portrait {
  display: block;
  width: 200px;
  height: auto;
  margin: 0;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
  background: #e5e5e5;
  flex-shrink: 0;
}

.about h2,
.videos h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.about {
  min-width: 0;
}

.about h2 {
  text-align: center;
}

.about p {
  margin: 0;
  color: #444;
}

.videos {
  margin-bottom: 2rem;
}

.videos > h2 {
  margin-bottom: 1.25rem;
  text-align: center;
}

.video-title {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.video-title:first-of-type {
  margin-top: 0;
}

.video-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin-bottom: 1.5rem;
  background: #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper:last-child {
  margin-bottom: 0;
}

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

/* Desktop: same layout, larger side margins */
@media (min-width: 768px) {
  .content {
    padding-left: 4rem;
    padding-right: 4rem;
    margin: 0 auto;
  }

  .site-header {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .site-header h1 {
    font-size: 1.75rem;
  }

  .intro {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .portrait {
    margin-top: 1.55rem;
  }
}

@media (min-width: 1024px) {
  .content {
    padding-left: 6rem;
    padding-right: 6rem;
    max-width: 900px;
  }

  .site-header {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}
