/**
 * Atelier — Home (T1). Composes shared components: .atl-header, .atl-footer,
 * .atl-btn (components/_buttons.css), .atl-section* (components/_section.css),
 * .atl-product-card/.atl-category-card (components/_product-card.css).
 * Only Home-specific sections (banner, hero, editorial, newsletter) live here.
 * Source of truth: design/store-theme/01-atelier-fashion/pages/Home.dc.html
 */

/*
 * Home renders full-bleed (banner/hero/sections reach the viewport edge), but
 * our "content" block is injected into Magento's default .page-main/.columns/
 * .column.main wrapper chain, which caps width at ~1280px and centers it --
 * the footer already breaks out of this (it's a sibling container, not nested
 * in .column.main), but the home page-main content never did. S4 Team-Lead
 * review caught this on the deployed build (2026-07-12): live sections
 * measured ~1240px/centered vs design's full viewport width. Scoped to the
 * home body class only -- other pages (category, PDP, account, etc.) still
 * want Magento's normal contained-column layout.
 */
body.atl-page-home .page-main,
body.atl-page-home .columns,
body.atl-page-home .column.main {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.atl-home-banner {
  background: var(--atl-band);
  color: var(--atl-band-text);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.atl-hero { position: relative; }
.atl-hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.atl-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.atl-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  gap: 28px;
}
.atl-hero-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--atl-accent-2);
}
.atl-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.atl-hero-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0;
  color: var(--atl-text-subtle);
}
.atl-hero-actions { display: flex; gap: 16px; }
.atl-hero-media {
  background: repeating-linear-gradient(45deg,
    color-mix(in oklab, var(--atl-accent) 12%, var(--atl-bg)),
    color-mix(in oklab, var(--atl-accent) 12%, var(--atl-bg)) 12px,
    color-mix(in oklab, var(--atl-accent) 5%, var(--atl-bg)) 12px,
    color-mix(in oklab, var(--atl-accent) 5%, var(--atl-bg)) 24px);
  display: grid;
  place-items: center;
}
.atl-hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.atl-hero-dot { width: 26px; height: 2px; background: var(--atl-border-strong); border: none; padding: 0; cursor: pointer; }
.atl-hero-dot[aria-current="true"] { background: var(--atl-text); }
.atl-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid var(--atl-border-strong);
  background: var(--atl-bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--atl-text);
}
.atl-hero-arrow:focus-visible { outline: 2px solid var(--atl-focus-ring); outline-offset: 2px; }
.atl-hero-arrow--prev { left: 18px; }
.atl-hero-arrow--next { right: 18px; }

.atl-editorial {
  background: var(--atl-surface);
  border-top: 1px solid var(--atl-border);
  border-bottom: 1px solid var(--atl-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.atl-editorial-media {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(-45deg,
    color-mix(in oklab, var(--atl-accent) 10%, var(--atl-surface)),
    color-mix(in oklab, var(--atl-accent) 10%, var(--atl-surface)) 12px,
    color-mix(in oklab, var(--atl-accent) 4%, var(--atl-surface)) 12px,
    color-mix(in oklab, var(--atl-accent) 4%, var(--atl-surface)) 24px);
}
.atl-editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px; gap: 20px; }
.atl-editorial-title { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 400; margin: 0; line-height: 1.15; }
.atl-editorial-body { font-size: 15px; font-weight: 300; line-height: 1.75; margin: 0; max-width: 50ch; color: var(--atl-text-subtle); }

.atl-newsletter {
  padding: 88px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.atl-newsletter-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 400; margin: 0; }
.atl-newsletter-body { font-size: 14px; font-weight: 300; margin: 0; color: var(--atl-text-muted); }
.atl-newsletter-form { display: flex; gap: 0; margin-top: 8px; }
.atl-newsletter-input { border-right: none; width: 300px; }
.atl-newsletter-submit {
  background: var(--atl-text);
  color: var(--atl-band-text);
  border: 1px solid var(--atl-text);
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
}
.atl-newsletter-submit:hover { background: var(--atl-accent-hover); }
.atl-newsletter-submit:focus-visible { outline: 2px solid var(--atl-focus-ring); outline-offset: 2px; }

/* Mobile (375 design viewport) */
@media (max-width: 767px) {
  .atl-hero-slide { grid-template-columns: 1fr; min-height: auto; }
  .atl-hero-copy { padding: 32px 20px; gap: 18px; order: 2; }
  .atl-hero-media { aspect-ratio: 4/3; order: 1; }
  .atl-hero-title { font-size: 34px; }
  .atl-hero-body { font-size: 14px; max-width: none; }
  .atl-hero-actions { flex-direction: column; gap: 10px; }
  .atl-hero-arrow, .atl-hero-dots { display: none; }

  .atl-editorial { grid-template-columns: 1fr; }
  .atl-editorial-copy { padding: 32px 20px; }
  .atl-editorial-title { font-size: 28px; }

  .atl-newsletter { padding: 48px 20px; }
  .atl-newsletter-form { flex-direction: column; gap: 8px; width: 100%; }
  .atl-newsletter-input { width: 100%; border-right: 1px solid var(--atl-border-strong); }
}
