/* Homepage composition for the approved reference. Other page layouts use editorial.css. */
.home-introduction,
.page-home .home-course {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #0b0b0d;
}
.home-introduction-art,
.home-course-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.home-introduction-art img,
.home-course-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.page-home .home-hero {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: clamp(285px, 32.5vw, 495px);
  gap: clamp(16px, 3.8vw, 64px);
  padding-block: clamp(25px, 3.3vw, 53px);
}
.home-hero .editorial-intro h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5.15vw, 5rem);
  line-height: .99;
  font-weight: 700;
}
.home-hero .editorial-intro .page-intro {
  max-width: 31ch;
  color: #e0dbd8;
}
.home-hero .editorial-intro .text-link {
  text-decoration: underline;
  text-underline-offset: .3em;
}
.home-hero .editorial-book-stage {
  align-self: end;
  padding: 0 0 clamp(0px, 1vw, 15px);
}
.home-hero .editorial-book-stage::before { content: none; }
.home-hero .editorial-book { transform-origin: bottom center; --book-angle: -4deg; }
.home-hero .editorial-book:nth-child(2) { --book-angle: -2deg; }
.home-hero .editorial-book:last-child:not(:first-child) { --book-angle: 3deg; }
.home-hero .editorial-book-stage[data-cover-count="3"] .editorial-book:nth-child(2) { flex-basis: 41%; }
.home-hero .editorial-book img {
  aspect-ratio: auto;
  width: 100%;
  max-height: clamp(180px, 26.5vw, 365px);
  border-right: 4px solid #7d7570;
  box-shadow: 8px 12px 16px #0009;
  filter: none;
}

.home-orientation { background: #efebe4; }
.home-orientation .orientation-grid {
  align-items: stretch;
  grid-template-columns: 1.4fr .9fr repeat(4, minmax(0, .78fr));
  padding-block: clamp(17px, 2.6vw, 36px);
  gap: 0;
}
.home-orientation h2 {
  align-self: center;
  max-width: 12ch;
  font-size: clamp(1.45rem, 2.95vw, 2.65rem);
}
.home-orientation .orientation-grid > p {
  align-self: center;
  margin: 0;
  border-inline-start: 1px solid var(--border);
  padding-inline: clamp(.55rem, 1.6vw, 1.5rem);
  font-size: clamp(.75rem, 1.1vw, .95rem);
  color: var(--muted);
}
.home-orientation .orientation-grid a { min-height: 44px; padding-inline: clamp(.65rem, 1.4vw, 1.4rem); }
.home-orientation .orientation-grid strong { justify-content: start; }
.home-orientation .orientation-grid small { max-width: 22ch; font-size: clamp(.8rem, 1.18vw, .95rem); }

.home-featured { background: #faf8f4; padding-block: clamp(24px, 3.4vw, 52px); }
.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: clamp(15px, 2vw, 28px);
}
.home-section-heading h2 { font-size: clamp(1.8rem, 3.45vw, 3.2rem); margin-top: 4px; }
.home-section-heading > a { gap: .4rem; justify-self: end; }
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
}
.home-edition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.7vw, 22px);
  background: #f1eee8;
  min-width: 0;
  padding: clamp(10px, 1.5vw, 22px);
}
.home-edition-cover { display: block; }
.home-edition-cover img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(5px 8px 7px #30282052);
}
.home-edition h3 { font-size: clamp(1.05rem, 1.8vw, 1.6rem); margin-bottom: .5rem; }
.home-edition h3 a { display: inline-block; min-height: 24px; }
.home-edition p { color: var(--paper-muted); font-size: clamp(.79rem, 1.05vw, .95rem); line-height: 1.4; overflow-wrap: anywhere; }
.home-edition-buy { display: inline-grid; place-items: center; color: var(--paper-accent); width: 44px; min-height: 44px; font-size: 1.35rem; margin-left: -.75rem; }

.page-home .home-course { min-height: clamp(220px, 20vw, 340px); display: grid; align-items: center; }
.home-course-art img { object-position: center 55%; }
.page-home .home-course-grid {
  display: block;
  padding-block: clamp(25px, 3vw, 43px);
}
.home-course-grid > div { max-width: min(46%, 32rem); }
.page-home .home-course-grid h2 { font-size: clamp(1.8rem, 3.7vw, 3.4rem); margin-block: .35rem .5rem; }
.page-home .home-course-grid p { max-width: 33ch; }
.page-home .home-course-grid .button { margin-top: .9rem; }

.page-home .home-editorial-grid {
  gap: 0;
  padding-block: clamp(23px, 3.3vw, 48px);
}
.page-home .home-editorial-grid > section {
  padding-block: 0;
  border: 0;
}
.page-home .home-editorial-grid .latest-guides { padding-right: clamp(18px, 3vw, 48px); }
.page-home .home-editorial-grid .lab-home { border-left: 1px solid var(--border); padding-left: clamp(18px, 3vw, 48px); }
.page-home .home-editorial-grid h2 { font-size: clamp(1.4rem, 2.3vw, 2.2rem); margin: .3rem 0 .85rem; }
.home-guide-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(.6rem, 1.35vw, 1.15rem);
  min-height: 50px;
  padding-block: .48rem;
  border-bottom: 1px solid var(--border);
}
.home-guide-row:has(img) { grid-template-columns: minmax(58px, .29fr) minmax(0,1fr) auto; }
.home-guide-row img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.home-guide-row h3 { font-size: clamp(.95rem, 1.25vw, 1.2rem); letter-spacing: -.02em; }
.home-guide-row small { color: var(--muted); }
.home-guide-row > span,
.home-lab-links a > span { color: var(--paper-accent); }
.home-lab-feature {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(0,.8fr);
  gap: clamp(.75rem, 1.7vw, 1.5rem);
  align-items: center;
}
.home-lab-feature img { width: 100%; height: auto; }
.home-lab-feature p { color: var(--paper-muted); font-size: .95rem; line-height: 1.5; }
.home-lab-feature .text-link { margin-top: .25rem; gap: .4rem; }
.home-lab-links { margin-top: .55rem; font-size: .875rem; }
.home-lab-links a { display: flex; justify-content: space-between; align-items: center; gap: .65rem; border-bottom: 1px solid var(--border); padding: .35rem 0; min-height: 44px; }

.page-home .home-newsletter { background: #be2230; color: #fff; }
.home-newsletter summary,
.home-more-panel > summary { cursor: pointer; }
.home-newsletter summary { list-style: none; }
.home-newsletter summary::-webkit-details-marker { display: none; }
.newsletter-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.8rem, 3vw, 2.6rem);
  min-height: 68px;
  padding-block: .75rem;
}
.newsletter-band strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.newsletter-band > span:nth-child(2) { border-inline-start: 1px solid #ffffff75; padding-inline-start: clamp(.8rem, 2vw, 1.7rem); font-size: .925rem; }
.newsletter-band .newsletter-band-action {
  background: #0b0b0d;
  color: white;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .75rem;
  padding: .5rem .9rem;
  font-weight: 600;
}
.home-newsletter details[open] { padding-bottom: .5rem; }
.home-newsletter-form {
  background: var(--black);
  padding: clamp(14px, 2.5vw, 28px);
}
.home-newsletter-form .newsletter-embed { margin-top: 0; }
.home-newsletter-form .demo-note { color: #d7d2d2; }
.home-more {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  width: min(100% - var(--gutter)*2, var(--container));
  margin: 0 auto;
}
.home-more-panel { margin: 0; }
.home-more-panel:not([open]) { max-width: 100%; }
.home-more-panel[open] { width: 100%; }
.home-more-panel > summary { width: auto; margin: 0; padding: .75rem 0; font-size: .88rem; min-height: 44px; color: #e8e4e1; }
.home-more-panel .container { width: 100%; }
.home-more > .homepage-contact { margin: 0; }
.home-more-panel .section { padding-block: clamp(24px, 5vw, 56px); }
.home-more-panel .paper-surface .container { padding-inline: clamp(.8rem, 3vw, 2rem); }
.home-extra-catalog { padding-block: 1.5rem; }
@media (max-width: 1030px) {
  .home-orientation .orientation-grid { grid-template-columns: 1.16fr .9fr repeat(4,minmax(0,.84fr)); }
}
@media (max-width: 767px) {
  .page-home .home-hero { grid-template-columns: 1fr; gap: .9rem; padding-block: 2.35rem .75rem; }
  .home-hero .editorial-intro h1 { font-size: clamp(2.38rem, 9vw, 3.6rem); }
  .home-hero .editorial-book-stage { width: min(96%, 27rem); padding-block: .45rem .2rem; }
  .home-hero .editorial-book img { max-height: 170px; width: auto; margin-inline: auto; }
  .home-introduction-art img { object-position: 86% bottom; }
  .home-orientation .orientation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .home-orientation h2 { max-width: none; grid-column: 1 / -1; }
  .home-orientation .orientation-grid > p { grid-column: 1 / -1; border: 0; padding: 0; }
  .home-section-heading { align-items: start; flex-direction: column; gap: .2rem; }
  .home-section-heading > a { min-height: 44px; }
  .home-feature-grid { grid-template-columns: 1fr; gap: .65rem; }
  .home-edition { grid-template-columns: minmax(84px,.37fr) minmax(0,1fr); gap: 1rem; padding: 12px; }
  .home-edition-cover img { max-height: 139px; width: min(110px,100%); }
  .page-home .home-course { min-height: 253px; }
  .home-course-grid > div { max-width: 67%; }
  .home-course-art img { object-position: 45% center; opacity: .61; }
  .page-home .home-editorial-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .page-home .home-editorial-grid .latest-guides,
  .page-home .home-editorial-grid .lab-home { padding-inline: 0; border: 0; }
  .page-home .home-editorial-grid .lab-home { border-top: 1px solid var(--border); padding-top: 1.1rem; }
  .newsletter-band { grid-template-columns: minmax(0,1fr) auto; gap: .65rem; }
  .newsletter-band > span:nth-child(2) { grid-area: 2 / 1 / auto / -1; border: 0; padding: 0; }
  .home-more { gap: 0 1rem; }
}
@media (max-width: 390px) {
  .home-lab-feature { grid-template-columns: minmax(0,1fr); }
  .home-lab-feature img { max-height: 205px; object-fit: cover; }
}

@media (max-width: 767px) {
  body.page-home { -webkit-text-size-adjust: 100%; }
  .page-home .home-hero { padding-block: 1.8rem .85rem; }
  .home-introduction-art img { opacity: .67; }
  .home-hero .editorial-intro .page-intro { margin-top: .8rem; }
  .home-hero .page-actions { gap: .75rem; margin-top: .9rem; }
  .home-hero .page-actions .button { padding-inline: .75rem; gap: .35rem; }
  .home-hero .page-actions .text-link { font-size: .82rem; }
  .home-orientation .orientation-grid { gap: .6rem; }
  .home-orientation .orientation-grid > p { line-height: 1.4; }
  .home-orientation .orientation-grid small { font-size: .8125rem; line-height: 1.25; }
}
