/* Homepage — structural clone of the reference layout:
   hero (right-half overlay), promo row, alternating large/small feed with sidebar,
   academy band, featured-products band, full-width newsletter. Grid rebuilt in plain
   CSS (the reference uses Bootstrap; this project forbids it). */

/* ------------------------------------------------------------------ Hero */

.home-featured-article {
  padding-top: var(--sp-5);
}

.hero-mobile-image {
  display: none;
}

.hero-featured {
  position: relative;
  display: flex;
  min-height: 600px;
  background-size: cover !important;
  background-position: center !important;
}

/* Text panel occupies the right half, mirroring col-sm-6 col-sm-offset-6.
   The 20px padding insets the panel from the hero edges, as in the reference. */
.hero-col {
  margin-left: auto;
  width: 50%;
  display: flex;
  align-items: center;
  padding: 20px;
}

/* Semi-opaque panel with tall vertical padding; a soft shadow lifts it off the
   image so the text stays readable over light photos. */
.hero-overlay {
  background: hsla(0, 0%, 100%, 0.9);
  padding: clamp(48px, 9vw, 150px) clamp(32px, 3.4vw, 52px);
  width: 100%;
  box-shadow: 0 10px 40px rgba(9, 9, 9, 0.12);
}

/* Category eyebrow — reference: #B69460, Nunito Sans 13px, letter-spacing 1.5px, uppercase. */
.home-category {
  margin-bottom: var(--sp-4);
}

.home-category a {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 15px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.home-category a:hover {
  color: var(--c-accent-dark);
}

.hero-overlay h2 {
  margin: 0 0 var(--sp-4);
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.005em;
}

.hero-overlay h2 a:hover {
  color: var(--c-accent);
}

.hero-overlay .hero-deck {
  display: block;
  margin: var(--sp-5) 0 var(--sp-5);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--c-ink);
}

.hero-overlay .hero-deck:hover {
  color: var(--c-accent);
}

/* Solid crimson call-to-action, matching the reference hero button. */
.hero-btn {
  padding: 14px 26px;
  font-size: var(--fs-small);
}

/* ----------------------------------------------------------- Promo cards */

.home-promo {
  padding: var(--sp-8) 0 var(--sp-6);
}

.home-title {
  margin-bottom: var(--sp-5);
  font-family: var(--f-serif);
  font-size: var(--fs-h2);
  font-weight: 700;
}

.home-title .subtext {
  font-size: var(--fs-h4);
  font-style: italic;
  color: var(--c-muted);
}

.home-title .subtext a:hover {
  color: var(--c-accent);
}

.promo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

/* Reference: each promo card has a bottom rule; the title is Cardo (serif) 18px, #3b3b3b. */
.featured-col {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid #efefef;
}

.featured-col .featured-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: var(--sp-3);
  background: var(--c-surface-sunk);
}

.featured-col .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.featured-col:hover .featured-image img {
  transform: scale(1.05);
}

.featured-col > a {
  display: block;
  font-family: var(--f-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.28;
  color: #3b3b3b;
}

.featured-col > a:hover {
  color: var(--c-accent);
}

/* ------------------------------------------------------- Section intro */

.section-intro {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-6) 0 calc(var(--sp-4) + 8px);
  margin-bottom: var(--sp-6);
  /* A hand-painted sumi brush stroke stands in for the section rule. */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2016'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%231d1a16'%20d='M0,8%20C110,4%20230,6%20360,5%20C520,3.5%20640,7.5%20800,5.5%20C930,4%201050,7%201200,4%20L1200,9.5%20C1050,12.5%20930,9.5%20800,11%20C640,13%20520,10%20360,11.5%20C230,12.5%20110,11.5%200,13.5%20Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 11px;
}

.section-intro h3 {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-h4);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-intro .updated-date {
  margin-left: auto;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-faint);
}

/* --------------------------------------------------------------- Feed */

/* Main column (8) + gap + sidebar (3), mirroring the reference grid. */
.section-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--sp-8);
  align-items: start;
}

.article-col {
  min-width: 0;
}

/* Large article: full-width image above content. */
.large-article {
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-rule);
}

.large-article .image {
  overflow: hidden;
  aspect-ratio: 615 / 370;
  margin-bottom: var(--sp-4);
  background: var(--c-surface-sunk);
}

.large-article .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.large-article:hover .image img {
  transform: scale(1.03);
}

.large-article h2 {
  margin: var(--sp-3) 0 var(--sp-3);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.14;
}

.large-article h2 a:hover {
  color: var(--c-accent);
}

.large-article p {
  margin: 0 0 var(--sp-3);
  color: var(--c-body);
  font-size: var(--fs-body);
  line-height: 1.7;
}

/* Small article: image left, content right (row-eq-height). */
.small-article {
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-rule);
}

.small-article .row-eq-height {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.small-article .image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--c-surface-sunk);
}

.small-article .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.small-article:hover .image img {
  transform: scale(1.04);
}

/* Reference small-article headline: 24px / 32px line-height. */
.small-article h2 {
  margin: var(--sp-2) 0 var(--sp-4);
  font-size: 1.5rem;
  line-height: 1.33;
}

.small-article h2 a:hover {
  color: var(--c-accent);
}

.small-article .content > p {
  margin: 0 0 var(--sp-4);
  color: var(--c-body);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Reference: #B69460, 12px, letter-spacing 1.5px, uppercase; hover #111. */
.read-more {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.read-more:hover {
  color: #111;
}

.mobile-date {
  display: none;
  font-size: var(--fs-meta);
  color: var(--c-faint);
  margin-bottom: var(--sp-2);
}

.post-meta.author-info {
  margin-top: var(--sp-3);
  font-size: var(--fs-meta);
  color: var(--c-faint);
  letter-spacing: 0.03em;
}

.post-meta.author-info a {
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-meta.author-info a:hover {
  color: var(--c-accent);
}

.feed-block > .large-article:last-child,
.feed-block > .small-article:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

/* --------------------------------------------------------- Home sidebar */

.home-sidebar {
  min-width: 0;
  /* Not sticky: the sidebar is taller than the viewport, so sticky would keep its
     top pinned and cut off the lower cards. It simply scrolls with the page. */
}

.home-sidebar .widget + .widget {
  margin-top: var(--sp-7);
}

.lets-connect .title,
.side-subscribe .title,
.sidebar-cta .title {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-meta);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lets-connect .social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.lets-connect .social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-rule);
  color: var(--c-muted);
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.lets-connect .social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.side-subscribe {
  padding: var(--sp-5);
  background: var(--c-ink);
  color: #b9b9b9;
}

.side-subscribe .title {
  color: #fff;
  border-color: #333;
}

.side-subscribe p {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

/* Stacked promo CTA cards in the sidebar (academy / store / membership). */
.sidebar-cta-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-ink);
}

.sidebar-cta-card + .sidebar-cta-card {
  margin-top: var(--sp-4);
}

.sidebar-cta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-base) var(--ease);
}

.sidebar-cta-card:hover img {
  transform: scale(1.05);
  opacity: 0.55;
}

.sidebar-cta-card .cta-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-4);
  color: #fff;
}

.sidebar-cta-card .cta-body .eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 4px;
}

.sidebar-cta-card .cta-body h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: var(--fs-h4);
  color: #fff;
  line-height: 1.2;
}

/* ----------------------------------------------------- Academy band */

/* Reference: coral→pink gradient band, white card on the left, black Poppins-bold heading. */
.home-academy {
  margin: 30px 0 40px;
}

.academy-full-width {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  background: linear-gradient(81.38deg, #e22b66, #f8645e);
  overflow: hidden;
}

.academy-full-width .column-left {
  display: flex;
  align-items: stretch;
  padding: 20px 0 20px 20px;
}

.academy-left-inner {
  background: var(--c-surface);
  width: 100%;
  padding: 55px 45px 80px;
}

.academy-left-inner .academy-eyebrow {
  font-size: var(--fs-meta);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.academy-left-inner h2 {
  margin: 0 0 25px;
  color: #000;
  font-family: var(--f-poppins);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.academy-cta {
  display: inline-block;
  height: 45px;
  padding: 12px 26px 0;
  background: linear-gradient(81.38deg, #e22b66, #f8645e);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
  transition: filter var(--t-fast) var(--ease);
}

.academy-cta:hover {
  filter: brightness(1.08);
  color: #fff;
}

.academy-full-width .column-right {
  position: relative;
  overflow: hidden;
}

/* Vertical image marquee: each column scrolls continuously, alternating direction
   (down / up / down / up). Pure CSS — the track is rendered twice and shifted by
   half its height for a seamless loop. */
.academy-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.academy-col {
  flex: 1;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.marquee-down {
  animation: mq-down 34s linear infinite;
}

.marquee-up {
  animation: mq-up 34s linear infinite;
}

.marquee-tile {
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.marquee-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -50% moves exactly one of the two rendered copies, so the loop is seamless. */
@keyframes mq-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes mq-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-down, .marquee-up { animation: none; }
}

/* ------------------------------------------------ Featured products band */

/* Reference: full-bleed dark band, white text, product titles in Cardo (serif), uppercase. */
.home-featured-products {
  margin: 30px 0 40px;
  padding: var(--sp-7) 0 var(--sp-8);
  background: #1c1c1c;
  color: #fff;
}

.featured-products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-4);
}

.featured-products-header .eyebrow {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.featured-products-header .header-link {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.featured-products-header .header-link:hover {
  color: var(--c-accent);
}

.featured-products-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.featured-product {
  text-align: center;
}

.featured-product .image-container {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--sp-3);
  background: #2a2a2a;
}

.featured-product .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.featured-product:hover .image-container img {
  transform: scale(1.05);
}

.featured-product .title {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-transform: uppercase;
  color: #fff;
  padding-top: 15px;
  margin-bottom: 3px;
}

.featured-product .title a:hover {
  color: var(--c-accent);
}

.featured-product .price {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.featured-products-footer {
  text-align: center;
  margin-top: var(--sp-7);
}

.featured-products-footer .btn-outline {
  border-color: #fff;
  color: #fff;
}

.featured-products-footer .btn-outline:hover {
  background: var(--c-surface);
  color: var(--c-ink);
}

/* ------------------------------------------------ Full-width newsletter */

/* Full-width signup bar: light grey band, one horizontal row of
   label + first name + email + subscribe. */
.home-newsletter {
  padding: var(--sp-6) 0;
  background: #e9e9e9;
}

.newsletter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.newsletter-bar .nb-label {
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22304a;
}

.newsletter-bar .input {
  height: 46px;
  border: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newsletter-bar .nb-name {
  width: 200px;
}

.newsletter-bar .nb-email {
  width: 250px;
}

.newsletter-bar .nb-btn {
  height: 46px;
  border-radius: 0;
  padding: 0 26px;
}

.newsletter-bar .newsletter-note {
  flex-basis: 100%;
  text-align: center;
  margin: var(--sp-3) 0 0;
}

@media (max-width: 700px) {
  .newsletter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-bar .nb-label {
    text-align: center;
    margin-bottom: var(--sp-2);
  }

  .newsletter-bar .nb-name,
  .newsletter-bar .nb-email {
    width: 100%;
  }
}

/* --------------------------------------------------------- Pagination */

.home-pagination {
  padding: var(--sp-7) 0 0;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1200px) {
  .academy-full-width {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-featured {
    min-height: 0;
    background: none !important;
    display: block;
  }

  .hero-mobile-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--c-surface-sunk);
  }

  .hero-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-col {
    width: 100%;
    padding: 0;
  }

  .hero-overlay {
    box-shadow: none;
    padding: var(--sp-6) 0 0;
  }

  .section-block {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
  }

  .home-sidebar {
    position: static;
  }

  .academy-full-width {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-products-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .mobile-date {
    display: block;
  }

  /* Promo becomes a horizontal snap-scroller. */
  .promo-row {
    display: flex;
    gap: var(--sp-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(var(--container-pad) * -1);
    padding: 0 var(--container-pad);
  }

  .promo-row::-webkit-scrollbar {
    display: none;
  }

  .featured-col {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .hero-overlay h2 {
    font-size: var(--fs-h1);
  }

  /* Small-article stacks its image above the text on phones. */
  .small-article .row-eq-height {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
  }

  .small-article .image {
    aspect-ratio: 16 / 9;
  }

  .featured-products-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
