.guide-page {
  background: var(--paper);
  color: var(--black);
  padding-top: 82px;
}

.guide-hero {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.guide-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: 1.6rem;
}

.guide-hero .lead {
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.guide-rail {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-rail span:last-child {
  color: #555;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.guide-grid {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dedfd8;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: var(--black);
  transform: translateY(-4px);
  outline: none;
}

.guide-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ebe2;
}

.guide-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover .guide-card__media img,
.guide-card:focus-visible .guide-card__media img {
  transform: scale(1.04);
}

.guide-card__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--lime);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
}

.guide-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.35rem 1.6rem;
  flex: 1;
}

.guide-card__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}

.guide-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.guide-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #333;
  max-width: 42ch;
}

.guide-card__cta {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  width: max-content;
}

.guide-note {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.guide-note h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 12ch;
}

.guide-note p {
  max-width: 52ch;
  margin-bottom: 1.4rem;
}

.guide-cta-band {
  background: var(--black);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.guide-cta-band__inner {
  width: min(1100px, 100% - 12vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}

.guide-cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.guide-cta-band p {
  max-width: 48ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.guide-cta-band .button {
  white-space: nowrap;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .guide-card,
  .guide-card__media img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 820px) {
  .guide-page {
    padding-top: 66px;
  }

  .guide-hero,
  .guide-rail,
  .guide-grid,
  .guide-note,
  .guide-cta-band__inner {
    width: calc(100% - 14vw);
  }

  .guide-grid,
  .guide-note,
  .guide-cta-band__inner {
    grid-template-columns: 1fr;
  }

  .guide-cta-band .button {
    justify-self: start;
  }
}
