/* HAIDI fragrance guide hub and articles */

body.haidi-guide-body,
body.haidi-guide-article-body {
  margin: 0;
  background: #faf7f1;
}

body.haidi-guide-body > *:not(.haidi-home),
body.haidi-guide-article-body > *:not(.haidi-home) {
  display: none !important;
}

.haidi-guide-page {
  min-height: 100vh;
  overflow-x: clip;
  background: #faf7f1;
  color: var(--ink, #262019);
  font-family: var(--sans, 'Outfit', system-ui, sans-serif);
}

.haidi-guide-page .dheader {
  background: rgba(250, 247, 241, 0.94) !important;
}

.haidi-guide-main {
  padding-top: 61px;
}

.haidi-guide-shell {
  width: var(--haidi-shell, min(100% - 36px, 1200px));
  max-width: 1200px;
  margin: 0 auto;
}

.haidi-guide-page section.haidi-guide-hero,
.haidi-guide-page section.haidi-guide-section,
.haidi-guide-page section.haidi-guide-quiz {
  padding: 0;
}

.haidi-guide-kicker {
  margin: 0 0 16px;
  color: var(--wine, #5d2434);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

/* Hub hero */
.haidi-guide-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg, #faf7f1);
}

.haidi-guide-hero-media {
  position: relative;
  width: 100%;
  height: clamp(360px, 112vw, 520px);
  background-color: var(--surface, #f1ebe1);
  background-image: var(--haidi-guide-hero-mobile);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.haidi-guide-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 247, 241, 0) 64%, #faf7f1 100%);
  content: "";
}

.haidi-guide-hero--empty .haidi-guide-hero-media {
  background:
    linear-gradient(135deg, rgba(93, 36, 52, 0.05), transparent 52%),
    var(--surface, #f1ebe1);
}

.haidi-guide-hero-shell {
  position: relative;
  z-index: 2;
  padding: 46px 0 78px;
}

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

.haidi-guide-hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 13vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.haidi-guide-hero h1 span,
.haidi-guide-hero h1 em {
  display: block;
}

.haidi-guide-hero h1 em {
  margin-top: 5px;
  color: var(--wine, #5d2434);
  font-weight: 500;
}

.haidi-guide-hero-text {
  max-width: 520px;
  margin-top: 26px;
  color: #655e55;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
}

.haidi-guide-hero-text p {
  margin: 0 0 1em;
}

.haidi-guide-hero-text p:last-child {
  margin-bottom: 0;
}

/* In this guide */
.haidi-guide-page section.haidi-guide-overview {
  padding: 92px 0 100px;
}

.haidi-guide-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 22px;
  margin-top: 46px;
}

.haidi-guide-note {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 16px;
  color: var(--ink, #262019);
  text-decoration: none;
}

.haidi-guide-note-icon {
  display: block;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: var(--wine, #5d2434);
}

.haidi-guide-note-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.haidi-guide-note-copy,
.haidi-guide-note-copy strong,
.haidi-guide-note-copy small {
  display: block;
}

.haidi-guide-note-copy {
  min-width: 0;
}

.haidi-guide-note-copy strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.haidi-guide-note-copy small {
  margin-top: 6px;
  color: #8c8375;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.haidi-guide-note:hover strong {
  color: var(--wine, #5d2434);
}

.haidi-guide-note:focus-visible,
.haidi-guide-row:focus-visible,
.haidi-guide-back:focus-visible {
  outline: 2px solid var(--wine, #5d2434);
  outline-offset: 5px;
}

.haidi-guide-empty {
  margin: 32px 0 0;
  color: #71695f;
  font-size: 14px;
}

.haidi-guide-divider {
  width: var(--haidi-shell, min(100% - 36px, 1200px));
  max-width: 1200px;
  height: 1px;
  margin: 0 auto;
  background: rgba(38, 32, 25, 0.15);
}

/* Article list: compact linked rows on mobile */
.haidi-guide-page section.haidi-guide-articles {
  padding: 62px 0 104px;
}

.haidi-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
  gap: 20px;
  min-height: 186px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(38, 32, 25, 0.13);
  color: var(--ink, #262019);
  text-decoration: none;
}

.haidi-guide-row:first-child {
  padding-top: 0;
}

.haidi-guide-row-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface, #f1ebe1);
}

.haidi-guide-row-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.haidi-guide-row--no-image .haidi-guide-row-media {
  background:
    linear-gradient(145deg, rgba(93, 36, 52, 0.07), transparent 60%),
    var(--surface, #f1ebe1);
}

.haidi-guide-row-copy {
  position: relative;
  min-width: 0;
  padding: 3px 0 30px;
}

.haidi-guide-row-number {
  display: block;
  margin-bottom: 16px;
  color: #9b9185;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.haidi-guide-row .haidi-guide-kicker {
  margin-bottom: 7px;
  font-size: 8px;
}

.haidi-guide-row h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 6.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.haidi-guide-row-excerpt,
.haidi-guide-learn {
  display: none;
}

.haidi-guide-row-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--wine, #5d2434);
  font-size: 22px;
  line-height: 1;
}

.haidi-guide-row:hover .haidi-guide-row-media img {
  transform: scale(1.025);
}

/* Reused scent quiz CTA */
.haidi-guide-page section.haidi-guide-quiz {
  padding: 92px 18px 96px;
}

.haidi-guide-quiz .btn {
  border-radius: 0;
}

/* Individual article */
.haidi-guide-single-hero {
  padding: 46px 0 80px;
}

.haidi-guide-single-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
}

.haidi-guide-single-heading {
  align-self: center;
}

.haidi-guide-back {
  display: inline-block;
  margin-bottom: 46px;
  color: #71695f;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.haidi-guide-single-heading h1 {
  max-width: 720px;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 12vw, 66px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.haidi-guide-single-intro {
  max-width: 580px;
  margin: 24px 0 0;
  color: #71695f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
}

.haidi-guide-single-media {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: var(--surface, #f1ebe1);
}

.haidi-guide-single-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haidi-guide-single-hero--no-image .haidi-guide-single-media {
  background:
    linear-gradient(145deg, rgba(93, 36, 52, 0.07), transparent 60%),
    var(--surface, #f1ebe1);
}

.haidi-guide-single-content {
  max-width: 760px;
  padding-bottom: 108px;
  color: #4f4942;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
}

.haidi-guide-single-content > *:first-child {
  margin-top: 0;
}

.haidi-guide-single-content > *:last-child {
  margin-bottom: 0;
}

.haidi-guide-single-content h2,
.haidi-guide-single-content h3,
.haidi-guide-single-content h4 {
  color: var(--ink, #262019);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.haidi-guide-single-content h2 {
  margin: 1.55em 0 0.55em;
  font-size: clamp(35px, 8vw, 48px);
}

.haidi-guide-single-content h3 {
  margin: 1.45em 0 0.5em;
  font-size: 31px;
}

.haidi-guide-single-content h4 {
  margin: 1.35em 0 0.45em;
  font-size: 25px;
}

.haidi-guide-single-content p,
.haidi-guide-single-content ul,
.haidi-guide-single-content ol,
.haidi-guide-single-content blockquote,
.haidi-guide-single-content figure {
  margin: 0 0 1.25em;
}

.haidi-guide-single-content ul,
.haidi-guide-single-content ol {
  padding-left: 1.25em;
}

.haidi-guide-single-content li {
  margin-bottom: 0.45em;
}

.haidi-guide-single-content blockquote {
  padding: 10px 0 10px 20px;
  border-left: 2px solid var(--wine, #5d2434);
  color: #71695f;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.35;
}

.haidi-guide-single-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.haidi-guide-single-content a {
  color: var(--wine, #5d2434);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .haidi-guide-note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px 40px;
  }

  .haidi-guide-note-copy strong {
    font-size: 24px;
  }

  .haidi-guide-single-media {
    min-height: 580px;
  }
}

@media (min-width: 900px) {
  .haidi-guide-main {
    padding-top: 77px;
  }

  .haidi-guide-hero {
    min-height: 690px;
  }

  .haidi-guide-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    height: auto;
    background-image: var(--haidi-guide-hero-desktop);
    background-position: center right;
  }

  .haidi-guide-hero-media::after {
    background: linear-gradient(
      90deg,
      #faf7f1 0%,
      rgba(250, 247, 241, 0.97) 13%,
      rgba(250, 247, 241, 0.66) 34%,
      rgba(250, 247, 241, 0) 68%
    );
  }

  .haidi-guide-hero-shell {
    display: flex;
    min-height: 690px;
    align-items: center;
    padding: 76px 0;
  }

  .haidi-guide-hero-copy {
    width: 52%;
  }

  .haidi-guide-hero h1 {
    font-size: clamp(62px, 5.7vw, 82px);
  }

  .haidi-guide-hero-text {
    font-size: 15px;
  }

  .haidi-guide-page section.haidi-guide-overview {
    padding: 118px 0 126px;
  }

  .haidi-guide-note-grid {
    margin-top: 62px;
    gap: 64px 72px;
  }

  .haidi-guide-note {
    gap: 21px;
  }

  .haidi-guide-note-icon {
    width: 36px;
    height: 36px;
  }

  .haidi-guide-note-copy strong {
    font-size: 27px;
  }

  .haidi-guide-note-copy small {
    margin-top: 7px;
    font-size: 11px;
  }

  .haidi-guide-page section.haidi-guide-articles {
    padding: 126px 0 144px;
  }

  .haidi-guide-row {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(72px, 9vw, 130px);
    min-height: 560px;
    padding: 0;
    border-bottom: 0;
    align-items: center;
  }

  .haidi-guide-row + .haidi-guide-row {
    margin-top: 128px;
  }

  .haidi-guide-row:nth-child(even) .haidi-guide-row-media {
    order: 2;
  }

  .haidi-guide-row:nth-child(even) .haidi-guide-row-copy {
    order: 1;
  }

  .haidi-guide-row-media {
    height: 100%;
    min-height: 560px;
  }

  .haidi-guide-row-copy {
    padding: 0;
  }

  .haidi-guide-row-number {
    margin-bottom: 38px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .haidi-guide-row .haidi-guide-kicker {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .haidi-guide-row h2 {
    max-width: 570px;
    font-size: clamp(48px, 4.2vw, 64px);
  }

  .haidi-guide-row-excerpt {
    display: block;
    max-width: 530px;
    margin: 24px 0 0;
    color: #71695f;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.72;
  }

  .haidi-guide-learn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 30px;
    padding: 14px 30px;
    border: 1px solid var(--ink, #262019);
    background: var(--ink, #262019);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .haidi-guide-row-arrow {
    display: none;
  }

  .haidi-guide-row:hover .haidi-guide-learn {
    border-color: var(--wine, #5d2434);
    background: var(--wine, #5d2434);
  }

  .haidi-guide-page section.haidi-guide-quiz {
    padding: 120px 32px;
  }

  .haidi-guide-single-hero {
    padding: 92px 0 130px;
  }

  .haidi-guide-single-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(70px, 8vw, 120px);
    align-items: center;
  }

  .haidi-guide-back {
    margin-bottom: 72px;
  }

  .haidi-guide-single-heading h1 {
    font-size: clamp(62px, 5.5vw, 80px);
  }

  .haidi-guide-single-intro {
    margin-top: 28px;
    font-size: 15px;
  }

  .haidi-guide-single-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .haidi-guide-single-content {
    padding-bottom: 142px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haidi-guide-page *,
  .haidi-guide-page *::before,
  .haidi-guide-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
