body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Site header nav */
header > .container nav {
  align-items: center;
}

.site-title {
  text-decoration: none;
  color: inherit;
}

/* Landing page */
.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.profile-photo {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info h1 {
  margin-bottom: 0.25rem;
}

.profile-links {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.videos h2 {
  margin-bottom: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.video-grid--list {
  grid-template-columns: 1fr;
  max-width: 700px;
}

.video-grid--list .video-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.video-grid--list .video-card img {
  width: 200px;
  flex-shrink: 0;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-title {
  font-weight: bold;
  margin: 0;
}

.video-meta {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  margin: 0;
}

.video-desc {
  font-size: 0.875rem;
  color: var(--pico-muted-color);
  margin: 0;
  line-height: 1.4;
}

.video-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
}

.video-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.video-card:hover p {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Landing page sections */
.landing-section {
  margin: 1.5rem 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
}

.section-heading a {
  font-size: 0.9rem;
  color: var(--pico-muted-color);
}

/* Blog post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.post-item:last-child {
  border-bottom: none;
}

.post-date {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 1rem;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s;
}

.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--pico-muted-color);
  margin: 0;
  line-height: 1.4;
}

.project-card:hover {
  border-color: var(--pico-primary);
  text-decoration: none;
}

/* Footer layout */
footer > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media print {
  header, footer { display: none; }
}
