/* ============================================
   LINKS MAGAZINE — HOME PAGE
   pages/home.css
   ============================================ */

/* ----------------------------------------
   MASTHEAD ISSUE BAND
   ---------------------------------------- */
.issue-band {
  background-color: var(--color-cream);
  border-bottom: 2px solid var(--color-green);
  padding: var(--space-3) 0;
  overflow: hidden;
}

.issue-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.issue-band__ticker {
  position: relative;
  overflow: hidden;
  height: 1.4em;
}

.issue-band__item {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text);
  text-align: center;
  position: absolute;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.issue-band__item.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.issue-band__dot {
  color: var(--color-green);
  font-size: var(--text-base);
  flex-shrink: 0;
}

/* ----------------------------------------
   HERO — FULL VIEWPORT
   ---------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  padding: var(--space-16) 0;
  max-width: 700px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 8vw, 6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.0;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero__deck {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 1.8vw, var(--text-xl));
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  max-width: 580px;
}

.hero__byline {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-8);
}

/* ----------------------------------------
   FEATURED ARTICLES GRID
   ---------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
  gap: var(--space-8);
}

.featured-grid__main {
  grid-column: 1;
}

.featured-grid__aside {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.featured-grid__aside .article-card:not(:last-child) {
  border-bottom: var(--border-thin);
  padding-bottom: var(--space-8);
}

/* ----------------------------------------
   THIS ISSUE DIVIDER
   ---------------------------------------- */
.this-issue-divider {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: var(--space-12) 0;
}

.this-issue-divider::before,
.this-issue-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-green);
}

.this-issue-divider__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-green);
  white-space: nowrap;
}

/* ----------------------------------------
   DESTINATIONS SHOWCASE
   ---------------------------------------- */
.destinations-showcase {
  position: relative;
}

.destinations-strip-wrapper {
  overflow: hidden;
  margin: 0 calc(-1 * var(--space-6));
  padding: 0 var(--space-6);
  cursor: grab;
  user-select: none;
}

.destinations-strip-wrapper:active {
  cursor: grabbing;
}

.destinations-strip {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) var(--color-gray-100);
}

.destinations-strip::-webkit-scrollbar {
  height: 4px;
}

.destinations-strip::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
}

.destinations-strip::-webkit-scrollbar-thumb {
  background-color: var(--color-green);
  border-radius: var(--radius-full);
}

/* ----------------------------------------
   HOMEPAGE PULL QUOTE
   ---------------------------------------- */
.homepage-pull-quote {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
}

.homepage-pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
  max-width: none;
}

.homepage-pull-quote__attribution {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-green);
  margin-top: var(--space-6);
}

/* ----------------------------------------
   TOP COURSES RANKINGS PREVIEW
   ---------------------------------------- */
.rankings-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.rankings-preview-list {
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------
   GEAR SPOTLIGHT
   ---------------------------------------- */
.gear-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ----------------------------------------
   FROM THE ARCHIVE (2-col)
   ---------------------------------------- */
.archive-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.archive-feature__image {
  position: relative;
  overflow: hidden;
}

.archive-feature__image::before {
  content: '';
  display: block;
  padding-top: 130%;
}

.archive-feature__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter var(--transition-slow);
}

.archive-feature__image:hover img {
  filter: grayscale(70%) contrast(1.05);
}

.archive-feature__text {
  padding: var(--space-8) 0;
}

.archive-feature__excerpt {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-top: var(--space-5);
  max-width: none;
}

.archive-feature__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  margin-top: var(--space-3);
}

/* ----------------------------------------
   SUBSCRIBE CTA SECTION
   ---------------------------------------- */
.subscribe-cta {
  text-align: center;
}

.subscribe-cta__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.subscribe-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 300;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.subscribe-cta__sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-8);
  max-width: none;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid__aside {
    grid-column: 1;
    flex-direction: row;
  }

  .featured-grid__aside .article-card:not(:last-child) {
    border-bottom: none;
    border-right: var(--border-thin);
    padding-bottom: 0;
    padding-right: var(--space-8);
  }

  .gear-spotlight {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    max-height: 700px;
  }

  .hero__content {
    padding: var(--space-10) 0;
  }

  .featured-grid__aside {
    flex-direction: column;
  }

  .featured-grid__aside .article-card:not(:last-child) {
    border-right: none;
    border-bottom: var(--border-thin);
    padding-right: 0;
    padding-bottom: var(--space-8);
  }

  .archive-feature {
    grid-template-columns: 1fr;
  }

  .gear-spotlight {
    grid-template-columns: 1fr;
  }

  .homepage-pull-quote {
    padding: var(--space-10) var(--space-4);
  }
}
