/* ==========================================================================
   Brew-method links — circular liquid-glass icon tiles (same treatment as the
   hero badges) with the method name below, in a responsive grid. Loaded AFTER
   reading.css so `.reading a.method-tile` overrides the prose-link styling.
   ========================================================================== */
.method-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* mobile + narrow tablet */
  justify-items: center;
  gap: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 48px);
  margin: 44px auto 0;
  max-width: 560px;
  padding: 0;
  text-align: center;
}

/* Four across on wider screens. */
@media (min-width: 860px) {
  .method-links {
    grid-template-columns: repeat(4, 1fr);
    max-width: 680px;
  }
}

/* .reading a scope + a.method-tile to beat the prose-link rule (accent + underline). */
.reading a.method-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: clamp(94px, 20vw, 108px);
  text-decoration: none;
  color: var(--color-body);
}

.method-tile__icon {
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid transparent;
  overflow: hidden;
  background:
    linear-gradient(180deg, #1d1d1d, #131313) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.14)) border-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.method-tile__icon img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
}

.method-tile__label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-body);
  transition: color 0.2s ease;
}

.method-tile:hover .method-tile__icon {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.method-tile:hover .method-tile__label {
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .method-tile__icon {
    transition: box-shadow 0.2s ease;
  }

  .method-tile:hover .method-tile__icon {
    transform: none;
  }
}