.guides-shell,
.guide-page-shell {
  min-height: 100vh;
  background: var(--night);
}

.guides-shell .topbar,
.guide-page-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 17, 26, .96);
  backdrop-filter: blur(14px);
}

.guides-index-main,
.guide-page-main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.guides-index-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .55fr);
  align-items: end;
  gap: 40px;
  padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px);
}

.guides-index-intro .eyebrow,
.guide-hero .eyebrow,
.guide-directory-copy .eyebrow,
.guide-card-copy .eyebrow {
  color: var(--pink);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.guides-index-intro .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -20px;
}

.guides-index-intro h1 {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .92;
}

.guides-index-intro > p:last-child {
  max-width: 50ch;
  margin: 0;
  color: var(--muted-cream);
  font-size: 1rem;
  line-height: 1.6;
}

.guide-directory {
  border-top: 1px solid var(--hairline);
}

.guide-directory-item {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  padding: clamp(48px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--hairline);
}

.guide-directory-item:nth-child(even) .guide-directory-art {
  order: 2;
}

.guide-directory-art {
  position: relative;
  display: block;
  min-height: 390px;
  text-decoration: none;
}

.guide-directory-art::before {
  content: "";
  position: absolute;
  inset: 9% 8% 6%;
  border: 1px solid rgba(169, 147, 255, .34);
  border-radius: 8px;
  background: #1b1b32;
}

.guide-directory-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(45%, 205px);
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .38));
  transition: transform 180ms ease;
}

.guide-directory-art img:nth-child(1) {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-2deg);
}

.guide-directory-art img:nth-child(2) {
  z-index: 2;
  transform: translate(-102%, -47%) rotate(-10deg);
}

.guide-directory-art img:nth-child(3) {
  z-index: 1;
  transform: translate(2%, -46%) rotate(9deg);
}

.guide-directory-art:hover img:nth-child(1),
.guide-directory-art:focus-visible img:nth-child(1) {
  transform: translate(-50%, -53%) rotate(0);
}

.guide-directory-copy {
  max-width: 650px;
}

.guide-directory-copy h2 {
  margin: 12px 0 18px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .98;
}

.guide-directory-copy h2 a {
  text-decoration: none;
}

.guide-directory-copy h2 a:hover,
.guide-directory-copy h2 a:focus-visible {
  color: var(--pink);
}

.guide-directory-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted-cream);
  line-height: 1.65;
}

.guide-read-link,
.guide-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}

.guide-read-link {
  margin-top: 26px;
}

.guide-read-link:hover,
.guide-read-link:focus-visible,
.guide-back-link:hover,
.guide-back-link:focus-visible {
  color: var(--yellow);
}

.guide-page-shell {
  max-width: none;
}

.guide-page-main {
  display: grid;
  gap: 0;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  min-height: 430px;
  padding: clamp(42px, 6vw, 76px) 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guide-hero-copy {
  max-width: 780px;
}

.guide-back-link {
  margin-bottom: 36px;
  font-size: .86rem;
}

.guide-hero h1 {
  max-width: 13ch;
  margin: 12px 0 20px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .94;
}

.guide-hero p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0;
  color: var(--muted-cream);
  font-size: 1.02rem;
  line-height: 1.65;
}

.guide-hero-stack {
  position: relative;
  min-height: 330px;
}

.guide-hero-stack::before {
  content: "";
  position: absolute;
  inset: 9% 6% 7%;
  border: 1px solid rgba(169, 147, 255, .32);
  border-radius: 8px;
  background: #1b1b32;
}

.guide-stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(49%, 190px);
  max-height: 286px;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .38));
}

.guide-stack-card-1 { z-index: 3; transform: translate(-50%, -50%) rotate(-2deg); }
.guide-stack-card-2 { z-index: 2; transform: translate(-96%, -47%) rotate(-10deg); }
.guide-stack-card-3 { z-index: 1; transform: translate(-3%, -46%) rotate(9deg); }

.guide-card-list {
  display: grid;
  gap: 0;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(38px, 6vw, 72px) 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
}

.guide-card:nth-child(even) .guide-card-image {
  order: 2;
}

.guide-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
}

.guide-card-image {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(169, 147, 255, .28);
  border-radius: 8px;
  background: #191927;
}

.guide-card-image img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .34));
  transition: transform 180ms ease;
}

.guide-card-image:hover img,
.guide-card-image:focus-visible img {
  transform: translateY(-4px) rotate(1deg);
}

.guide-card-copy {
  display: grid;
  justify-items: start;
  gap: 13px;
  max-width: 720px;
}

.guide-card-copy h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.guide-card-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.guide-card-copy h2 a:hover,
.guide-card-copy h2 a:focus-visible {
  color: var(--pink);
}

.guide-card-copy .card-subtitle {
  color: var(--muted-cream);
}

.guide-card-copy p:not(.eyebrow):not(.card-subtitle) {
  max-width: 62ch;
  margin: 4px 0 0;
  color: var(--muted-cream);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-card-price {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: none;
}

@media (min-width: 1100px) {
  .guide-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(42px, 5vw, 74px);
  }

  .guide-card,
  .guide-card:nth-child(even) {
    grid-template-columns: minmax(150px, 205px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    min-width: 0;
    padding: clamp(38px, 5vw, 60px) 0;
  }

  .guide-card:nth-child(even) .guide-card-image {
    order: 0;
  }

  .guide-card-copy h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.65rem);
  }

  .guide-card-copy p:not(.eyebrow):not(.card-subtitle) {
    font-size: .94rem;
  }
}

@media (max-width: 900px) {
  .guides-index-intro,
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guides-index-intro .eyebrow {
    margin-bottom: -16px;
  }

  .guide-directory-item {
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 32px;
  }

  .guide-directory-art {
    min-height: 320px;
  }

  .guide-hero-stack {
    display: none;
  }
}

@media (max-width: 680px) {
  .guides-index-main,
  .guide-page-main {
    width: min(100% - 36px, 1320px);
  }

  .guides-index-intro {
    gap: 28px;
    padding-top: 42px;
  }

  .guide-directory-item,
  .guide-card,
  .guide-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .guide-directory-item:nth-child(even) .guide-directory-art,
  .guide-card:nth-child(even) .guide-card-image {
    order: 0;
  }

  .guide-directory-art {
    min-height: 300px;
  }

  .guide-hero {
    min-height: 0;
    padding: 38px 0 46px;
  }

  .guide-back-link {
    margin-bottom: 28px;
  }

  .guide-card-image {
    width: min(100%, 360px);
    box-sizing: border-box;
    justify-self: center;
  }
}
