:root {
  color-scheme: light;
  --cream: #fff7f0;
  --peach: #f5c7b8;
  --rose: #e8a2b4;
  --berry: #7a3e52;
  --ink: #3b2b30;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(122, 62, 82, 0.12);
  --radius: 20px;
}

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

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(232, 162, 180, 0.2) 2px, transparent 2.5px),
    radial-gradient(circle at 0 0, rgba(245, 199, 184, 0.25) 3px, transparent 4px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 247, 240, 0.9));
  background-size: 80px 80px, 140px 140px, 100% 100%;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--berry);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  background: linear-gradient(135deg, #fff1ea, #fce2ef);
  padding: 32px 8vw 72px;
  text-align: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--berry);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  color: var(--berry);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.cta {
  display: inline-block;
  background: var(--berry);
  color: white;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta.primary {
  background: var(--berry);
}

.cta.secondary {
  background: #ffffff;
  color: var(--berry);
  border: 2px solid rgba(122, 62, 82, 0.25);
}

.channel-link {
  font-weight: 700;
  text-decoration: underline;
}

.section {
  padding: 72px 8vw;
  display: grid;
  gap: 36px;
  justify-items: center;
}

.section-header {
  max-width: 760px;
  text-align: center;
  display: grid;
  gap: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--berry);
}

.muted {
  color: rgba(59, 43, 48, 0.7);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: min(980px, 100%);
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.journal {
  background: #fffdfb;
}

.entry-grid {
  display: grid;
  gap: 20px;
  width: min(1200px, 100%);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
}

.entry-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

/* Past Project Journal: whole card is a link, description expands on hover */
.entry-card-link {
  padding: 0;
  gap: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-card-link:hover,
.entry-card-link:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(122, 62, 82, 0.18);
  text-decoration: none;
}

.entry-card-thumb {
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  line-height: 0;
}

.entry-card-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.entry-card-link:hover .entry-card-thumb img,
.entry-card-link:focus-within .entry-card-thumb img {
  transform: scale(1.03);
}

.entry-card-link h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  padding: 14px 20px 0;
  color: var(--berry);
}

.entry-card-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}

.entry-card-link:hover .entry-card-desc,
.entry-card-link:focus-within .entry-card-desc {
  max-height: 180px;
  opacity: 1;
  padding: 10px 20px 20px;
}

.entry-meta {
  display: flex;
  gap: 18px;
  color: var(--berry);
  font-weight: 600;
  font-size: 0.9rem;
}

.entry-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.entry-card li::before {
  content: "✿";
  margin-right: 8px;
  color: var(--rose);
}

.video-thumb-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fdf3f6;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(122, 62, 82, 0.16);
}

.video-thumb-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-thumb-card {
  display: grid;
  gap: 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(122, 62, 82, 0.18);
}

.video-thumb-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-thumb-card .video-thumb-label {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--berry);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.videos {
  padding-top: 40px;
}

.video-grid {
  display: grid;
  gap: 16px;
  width: min(1200px, 100%);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.channel-spotlight {
  background: #fff6f4;
}

.channel-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(980px, 100%);
  display: grid;
}

.channel-banner {
  min-height: 180px;
  background: url("images/channels4_banner.jpg") center/cover no-repeat;
  background-size: cover;
  background-position: center;
}

.channel-info {
  display: grid;
  gap: 18px;
  padding: 24px;
  align-items: center;
  grid-template-columns: auto 1fr;
  text-align: left;
}

.channel-info > div {
  display: grid;
  gap: 10px;
}

.channel-info .cta {
  width: fit-content;
  justify-self: start;
}

.hero .channel-card {
  width: 100%;
  margin: 0 auto;
}

.channel-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow);
  object-fit: cover;
  background: #ffffff;
}

.thumbnails {
  background: #fffaf8;
}

.thumb-grid {
  display: grid;
  gap: 22px;
  width: min(1100px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.thumb-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  color: inherit;
}

.thumb-image {
  background: #f6eef1;
  height: 160px;
  overflow: hidden;
}

.thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-info {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.thumb-info h4 {
  font-size: 1rem;
  color: var(--berry);
}


.shorts {
  background: #fff3f1;
}

.shorts-grid {
  display: grid;
  gap: 22px;
  width: min(1100px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.shorts-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shorts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(122, 62, 82, 0.16);
}

.shorts-card .thumb-image {
  aspect-ratio: 9 / 16;
  height: auto;
}

.shorts-card .thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shorts-card .thumb-info {
  padding: 16px;
}

.footer {
  text-align: center;
  padding: 32px 8vw 48px;
  background: #f9e7ee;
  color: var(--berry);
  display: grid;
  gap: 10px;
}

@media (max-width: 720px) {
  .nav {
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .entry-card-link {
    padding: 0;
  }

  .entry-card-link h3 {
    padding: 12px 16px 0;
  }

  .entry-card-link:hover .entry-card-desc,
  .entry-card-link:focus-within .entry-card-desc {
    padding: 8px 16px 16px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-thumb-card .video-thumb-label {
    font-size: 0.75rem;
    padding: 8px 10px;
    -webkit-line-clamp: 2;
  }

  /* Shorts section: smaller cards, more per row on mobile */
  .shorts-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .shorts-card {
    border-radius: 12px;
  }

  .shorts-card .thumb-image {
    min-height: 0;
  }

  .shorts-card .thumb-info {
    padding: 8px 10px;
  }

  .shorts-card .thumb-info h4 {
    font-size: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

