/* Homepage Magazine-Style Layout */
.home {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  --home-image-title-gap: 0.7rem;
}

/* Magazine Masthead/Hero */
.home-masthead {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  color: #fff;
  padding: 3rem 0;
  border-bottom: 3px solid #000;
}

.masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.masthead-label {
  font-family: var(--font-misc);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0.8;
}

.masthead-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
}

.masthead-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1rem;
  opacity: 0.9;
  max-width: 600px;
}

/* Now Reading bar */
.home .now-reading {
  position: sticky;
  top: var(--header-offset, 0px);
  z-index: 560;
  background: #fff;
  border-bottom: 1px solid #000;
}

.home .now-reading-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  font-family: var(--font-misc);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
}

.home .nr-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

.home .nr-title-wrap {
  overflow: hidden;
  flex: 1;
  height: 1.25em;
  position: relative;
}

.home .nr-title-line {
  display: block;
  white-space: nowrap;
  position: absolute;
  left: 0;
  right: 0;
  will-change: transform;
}

.home .nr-title-line.marquee {
  animation: nr-marquee 40s linear infinite;
}

/* Switch-style slide animation */
.home .nr-title-line.enter {
  animation: nr-enter .35s cubic-bezier(.22, 1, .36, 1) forwards;
}

.home .nr-title-line.leave {
  animation: nr-leave .28s ease-in forwards;
}

.home .nr-title-line.current {
  transform: translateY(0);
}

@keyframes nr-enter {
  0% {
    transform: translateY(100%);
  }

  80% {
    transform: translateY(-3%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes nr-leave {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes nr-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.home .nr-progress {
  height: 3px;
  background: #e5e5e5;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.home .nr-progress-bar {
  height: 100%;
  width: 0;
  background: #000;
  transition: width .2s ease;
}

/* Hero collections - Magazine Grid Style */
.home-hero {
  padding: 3.2rem 0;
  border-bottom: none;
}

.home-hero-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.home-hero-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}

.hero-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

/* Varied collection card sizes for visual interest */
.hero-card {
  border: none;
  text-decoration: none;
  color: #000;
  background: transparent;
  transition: opacity 0.3s ease;
  overflow: hidden;
  grid-column: span 4;
  border-radius: 0;
}

/* Create visual rhythm with varied sizes */
.hero-card:nth-child(6n+1) {
  grid-column: span 6;
}

.hero-card:nth-child(6n+2) {
  grid-column: span 6;
}

.hero-card:hover {
  opacity: 0.85;
}

.hero-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.hero-card:nth-child(6n+1) img,
.hero-card:nth-child(6n+2) img {
  height: auto;
}

.hero-title {
  display: block;
  padding: var(--home-image-title-gap) 0 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 400;
}

/* Magazine-style sections */
.home-section {
  padding: 3.2rem 0;
  border-bottom: none;
}

.home-section:last-child {
  border-bottom: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.section-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}

.feed-more {
  border: 1px solid #000;
  padding: .65rem 1.25rem;
  background: #fff;
  font-family: var(--font-misc);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.feed-more:hover {
  background: #000;
  color: #fff;
}

/* Magazine Grid - Editorial Style with Varied Layouts */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

/* Default: All cards span 4 columns (3 per row) */
.cards > .article-card {
  grid-column: span 4;
}

/* Featured Layout - Sophisticated Editorial Grid */
.cards.cards--featured {
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

/* First item: 2/3 width, natural height */
.cards--featured > .article-card:first-child {
  grid-column: span 8;
}

.cards--featured > .article-card:first-child img {
  height: auto;
  object-fit: cover;
}

/* Second item: 1/3 width, natural height */
.cards--featured > .article-card:nth-child(2) {
  grid-column: span 4;
}

.cards--featured > .article-card:nth-child(2) img {
  height: auto;
  object-fit: cover;
}

/* Third and fourth: Equal split */
.cards--featured > .article-card:nth-child(3) {
  grid-column: span 6;
}

.cards--featured > .article-card:nth-child(3) img {
  height: auto;
}

.cards--featured > .article-card:nth-child(4) {
  grid-column: span 6;
}

.cards--featured > .article-card:nth-child(4) img {
  height: auto;
}

/* Fifth and beyond: Standard 4-column grid */
.cards--featured > .article-card:nth-child(n+5) {
  grid-column: span 4;
}

/* Article cards - Magazine Style (borderless) */
.article-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  overflow: hidden;
  transition: none;
  border-radius: 0;
  box-shadow: none;
}

.article-card:hover {
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.article-link {
  display: block;
  text-decoration: none;
  color: #000;
  height: 100%;
}

.article-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.home .article-card .article-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  letter-spacing: -0.02em;
  padding: var(--home-image-title-gap) 1rem 0;
  line-height: 1.2;
  font-weight: 400;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.article-card .article-excerpt {
  padding: 0 1rem 1rem;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-grey);
  margin-top: 0.5rem;
}

/* Picks cards - Magazine Grid */
.picks-cards {
  display: none; /* Removed - using glass shelves instead */
}

.picks-cards .pick-card {
  display: none;
}

/* Glass Shelf Section - Magazine Integration */
.home-shelf {
  --shelf-h: 40px;
  --reflect-h: var(--shelf-h);
  --media-h: clamp(140px, 18vw, 220px);
  background: transparent;
  position: relative;
  padding: 2.4rem 0;
  border-top: none;
  border-bottom: none;
}

/* Keep shelf titles aligned with other section headings */
.home-section.home-shelf {
  padding: 3.2rem 0;
}

.page--items .home-section.home-shelf {
  padding: 2.4rem 0;
}

.home-shelf:nth-of-type(even) {
  background: transparent;
}

.home-shelf:nth-of-type(odd) {
  background: transparent;
}

/* Section head alignment for full-bleed sections */
.home-shelf .section-head {
  margin-bottom: 2.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.home-shelf .section-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}

/* Navigation bar for shelf — spans full viewport when inside shelf-wrap */
.home-shelf .shelf-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: none;
  z-index: 10;
}

.home-shelf .shelf-nav .shelf-arrow {
  position: relative;
  flex: 0 0 clamp(56px, 10vw, 96px);
  width: clamp(56px, 10vw, 96px);
  align-self: stretch;
  background: transparent;
  border: 0;
  font-size: 1.35rem;
  cursor: pointer;
  color: inherit;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.home-shelf .shelf-nav .shelf-arrow:hover {
  background: rgba(0, 0, 0, 0.05);
}

.home-shelf .shelf-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-shelf .shelf-row {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  padding: 0 var(--page-padding);
  perspective: 600px;
  padding-bottom: var(--reflect-h);
  min-height: calc(var(--media-h) + var(--reflect-h) + var(--shelf-h) + 6px);
  overflow: hidden;
}

/* Non-carousel shelf rows should lay out evenly without cutoff */
.home-shelf .shelf-row:not(.is-carousel) {
  justify-content: space-evenly;
  overflow: hidden;
}

.home-shelf .shelf-track { 
  z-index: 9;
  display: flex; 
  align-items: flex-end; 
  gap: 1.25rem; 
  will-change: transform; 
}

/* Featured shelf overrides (All Picks) */
.home-shelf--featured {
  background: transparent;
}

.home-shelf--featured .shelf-row { 
  gap: 1.75rem; 
}

.home-shelf--featured .shelf-item { 
  width: clamp(190px, 28vw, 320px); 
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.home-shelf--featured { 
  --media-h: clamp(160px, 20vw, 260px); 
}

/* Prevent drag on shelf items */
.home-shelf .shelf-item img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.home-shelf .shelf-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--reflect-h);
  height: var(--shelf-h);
  z-index: 0;
  background: transparent;
}

.home-shelf .shelf-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: rgba(190, 224, 221, 0.916);
  box-shadow: 0 0px 2px rgba(110, 110, 110, 0.7) inset;
  border-top: 1px solid rgba(191, 191, 191, 0.328);
  border-radius: 1px;
}

.home-shelf .shelf-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(183, 183, 183, 0.65), rgba(224, 233, 234, 0.28));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -1px 0 rgba(0, 0, 0, .14) inset, 0 10px 22px rgba(0, 0, 0, .10);
  transform: 0;
  transform-origin: center top;
}

.home-shelf .shelf-item {
  width: clamp(100px, 16vw, 170px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  height: calc(var(--media-h) + var(--reflect-h) + var(--shelf-h));
  transition: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.home-shelf .shelf-item:hover {
  transform: none;
}

.home-shelf .shelf-media {
  position: absolute;
  left: 50%;
  bottom: calc(var(--shelf-h) - 17px);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--media-h);
  width: 100%;
}

.home-shelf .shelf-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-shelf .shelf-reflect {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: calc(var(--reflect-h) - 15px);
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.home-shelf .shelf-reflect img {
  width: 100%;
  height: var(--media-h);
  transform: translateX(-50%) scaleY(-1);
  transform-origin: center bottom;
  bottom: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: .42;
  filter: blur(1px);
  position: absolute;
  left: 50%;
}

.home-shelf .shelf-reflect::before,
.home-shelf .shelf-reflect::after {
  content: none;
}

.home-shelf .shelf-caption {
  font-family: var(--font-misc);
  font-size: var(--font-size-xs);
  margin-top: .55rem;
  line-height: 1.2;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

/* Magazine-style Hover Effects and Details */
.hero-card:hover .hero-title,
.article-card:hover .article-title {
  text-decoration: none;
  opacity: 0.7;
}

/* Visual rhythm between section groups */
.home-hero + .home-section {
  position: relative;
}

/* Subtle divider lines (very minimal) */
.home-section + .home-section {
  position: relative;
}

/* Remove heavy dividers for cleaner look */
.home-section + .home-section::before {
  display: none;
}

/* Stronger visual break between pattern repetitions */
.home-shelf + .home-hero {
  margin-top: 2rem;
  position: relative;
}

.home-shelf + .home-hero::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #000;
}

/* Featured badge for standout items */
.article-card.is-featured::after {
  content: 'FEATURED';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #000;
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-misc);
  font-size: var(--font-size-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}

/* Add subtle animation on scroll */
@media (prefers-reduced-motion: no-preference) {
  .article-card,
  .hero-card,
  .pick-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
  }

  .article-card:nth-child(1) { animation-delay: 0.05s; }
  .article-card:nth-child(2) { animation-delay: 0.1s; }
  .article-card:nth-child(3) { animation-delay: 0.15s; }
  .article-card:nth-child(4) { animation-delay: 0.2s; }
  .article-card:nth-child(5) { animation-delay: 0.25s; }
  .article-card:nth-child(6) { animation-delay: 0.3s; }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Magazine-style pull quotes or callouts */
.home-callout {
  background: #f9f9f9;
  border-left: 4px solid #000;
  padding: 2rem 0;
  margin: 3rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  font-style: italic;
}

/* Typography enhancements */
.article-title,
.hero-title,
.collection-title {
  font-weight: 400;
  font-feature-settings: 'ss01', 'ss02';
}

/* Improve link states for accessibility */
.article-link:focus,
.hero-card:focus,
.pick-card:focus {
  outline: 3px solid #000;
  outline-offset: 4px;
}

/* Print styles for magazine layouts */
@media print {
  .home-shelf,
  .feed-more,
  .shelf-nav {
    display: none;
  }

  .hero-track,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card,
  .hero-card {
    page-break-inside: avoid;
  }
}
@media (max-width: 1200px) {
  .home-hero {
    padding: 2.5rem 0;
  }

  .hero-track {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
  }

  /* Reset editorial span pattern to avoid squished tracks on resize */
  .hero-card,
  .hero-card:nth-child(6n+1),
  .hero-card:nth-child(6n+2) {
    grid-column: auto !important;
  }

  .cards,
  .cards.cards--featured {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
  }

  /* Reset card spanning when using auto-fill columns */
  .cards > .article-card,
  .cards--featured > .article-card:first-child,
  .cards--featured > .article-card:nth-child(2),
  .cards--featured > .article-card:nth-child(3),
  .cards--featured > .article-card:nth-child(4),
  .cards--featured > .article-card:nth-child(n+5) {
    grid-column: auto !important;
  }

  .home-section {
    padding: 2.75rem 0;
  }

  .home-section.home-shelf {
    padding: 2.75rem 0;
  }
}

@media (max-width: 1024px) {
  .home-hero {
    padding: 2.5rem 0;
  }

  /* Simplify hero grid on tablet */
  .hero-card {
    grid-column: span 6 !important;
  }

  .hero-card img {
    height: auto !important;
  }

  .cards,
  .cards.cards--featured {
    gap: 2rem;
  }

  .cards.cards--featured > .article-card img {
    height: auto !important;
  }

  .home-section {
    padding: 2.5rem 0;
  }

  .home-section.home-shelf {
    padding: 2.5rem 0;
  }
}

@media (max-width: 768px) {
  .masthead-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .masthead-subtitle {
    font-size: var(--font-size-base);
  }

  .home-masthead {
    padding: 2rem 0;
  }

  .home-hero {
    padding: 2rem 0;
  }

  .home-hero-header h2,
  .section-head h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Single column for hero on mobile */
  .hero-track {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-card {
    grid-column: span 1 !important;
  }

  .hero-card img {
    height: auto !important;
  }

  /* Single column for articles on mobile */
  .cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Hard lock homepage article feeds to one column on mobile */
  #feed-articles,
  #feed-articles-2,
  #feed-articles-3,
  #feed-articles.cards--featured,
  #feed-articles-3.cards--featured {
    grid-template-columns: 1fr !important;
  }

  .cards > .article-card,
  .cards--featured > .article-card:first-child,
  .cards--featured > .article-card:nth-child(2),
  .cards--featured > .article-card:nth-child(3),
  .cards--featured > .article-card:nth-child(4),
  .cards--featured > .article-card:nth-child(n+5) {
    grid-column: span 1 !important;
    min-width: 0;
  }

  .article-card img {
    height: auto !important;
  }

  .cards--featured > .article-card:first-child img {
    height: auto !important;
  }

  .home-section {
    padding: 2rem 0;
  }

  .home-section.home-shelf {
    padding: 2rem 0;
  }

  .page--items .home-section.home-shelf {
    padding: 2rem 0;
  }

  .section-head {
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.5rem;
  }

  .home-shelf .section-head h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .home-shelf .shelf-row {
    gap: .75rem;
  }

  .home-shelf .shelf-item {
    width: clamp(90px, 28vw, 140px);
  }

  .home-shelf .shelf-caption {
    font-size: 0.62rem;
  }

  .feed-more {
    padding: .5rem 1rem;
    font-size: var(--font-size-2xs);
  }

  .home .article-card .article-title {
    font-size: var(--font-size-lg);
    padding: var(--home-image-title-gap) 1rem 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .article-card .article-excerpt {
    font-size: var(--font-size-xs);
  }

  .hero-title {
    padding: var(--home-image-title-gap) 0 0;
  }
}

@media (max-width: 480px) {
  .home-masthead {
    padding: 1.5rem 0;
  }

  .masthead-title {
    font-size: clamp(1.75rem, 12vw, 3rem);
  }

  .home-hero,
  .home-section {
    padding: 1.5rem 0;
  }

  .home-section.home-shelf {
    padding: 1.5rem 0;
  }

  .page--items .home-section.home-shelf {
    padding: 1.5rem 0;
  }

  .hero-track,
  .cards {
    gap: 1.5rem;
  }

  .hero-card img {
    height: auto !important;
  }

  .article-card img {
    height: auto !important;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-head h3,
  .home-hero-header h2 {
    font-size: var(--font-size-xl);
  }

  .home-shelf .shelf-item {
    width: clamp(86px, 29vw, 130px);
  }

  .collections-grid {
    gap: 1rem;
  }
}

/* Home Page Collection Grid */
.home {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.collection-card {
  background: transparent;
  border: none;
  overflow: hidden;
  transition: opacity 0.3s ease;
  border-radius: 0;
}

.collection-card:hover {
  opacity: 0.85;
}

.collection-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.collection-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--color-background);
  border-radius: 0;
}

.collection-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.collection-content {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
}

.collection-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: normal;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: var(--line-height-snug);
}

.collection-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--color-text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-meta {
  margin-top: auto;
}

.collection-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-light);
  font-style: italic;
  grid-column: 1 / -1;
}

/* Responsive adjustments for collection grid */
@media (max-width: 768px) {
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .collection-content {
    padding: 0.75rem 0;
  }

  .collection-image {
    height: auto;
  }

  .collection-image img {
    height: auto;
  }

  .home .article-card .article-title {
    padding: var(--home-image-title-gap) 1rem 0;
  }

  .hero-title {
    padding: var(--home-image-title-gap) 0 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .collection-card {
    background: transparent;
  }

  .collection-image {
    background: var(--color-background-dark);
  }
}