/* ==========================================================================
   UrineColorCheck — colors-index.css
   /colors/  ·  colour overview page.
   Grid: 1 col mobile · 2 cols ≥768px · 3 cols ≥1024px
   ========================================================================== */

/* ==========================================================================
   1. Intro block
   ========================================================================== */

.colors-intro {
  max-width: 62ch;
  margin-bottom: var(--sp-6);
}

.breadcrumb--page {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-4);
}

@media (min-width: 768px) {
  .breadcrumb--page {
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-5);
  }
}

.colors-intro__title {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .colors-intro__title {
    font-size: var(--fs-3xl);
  }
}

.colors-intro__lead {
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--c-muted);
}

@media (min-width: 768px) {
  .colors-intro__lead {
    font-size: var(--fs-lg);
  }
}

/* ==========================================================================
   2. Colour grid
   ========================================================================== */

.colors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .colors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
}

@media (min-width: 1024px) {
  .colors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
  }
}

/* ==========================================================================
   3. Colour tile
   ========================================================================== */

.color-tile {
  display: flex;
  flex-direction: column;
  background-color: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color var(--t-fast),
              box-shadow var(--t-fast),
              transform var(--t-fast);
}

.color-tile:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-md);
}

.color-tile:active {
  transform: translateY(1px);
}

/* ---------- Colour chip ---------- */

.color-tile__chip {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-bottom: 1px solid var(--c-border-strong);
  background-color: var(--chip-color, var(--c-surface-alt));
}

@media (min-width: 768px) {
  .color-tile__chip {
    aspect-ratio: 16 / 6;
  }
}

/* ---------- Text body ---------- */

.color-tile__body {
  display: block;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}

@media (min-width: 1024px) {
  .color-tile__body {
    padding: var(--sp-4);
  }
}

.color-tile__name {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--c-link);
}

.color-tile:hover .color-tile__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.color-tile__summary {
  display: block;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--c-muted);
}

/* ==========================================================================
   4. Explore / internal link section
   ========================================================================== */

.colors-explore {
  margin-bottom: var(--sp-7);
}

.colors-explore .section-title {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

@media (min-width: 768px) {
  .colors-explore .section-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-6);
  }
}

/* ==========================================================================
   5. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .color-tile {
    transition: none;
  }
}