/* Magazine homepage. Shared by the public page and the actual editor iframe.
   Content, cover selection, visibility and free geometry still come from the CMS. */
.fw-editorial-intro { text-align: center; padding: 56px 0 66px; }
.framework-site .fw-editorial-intro h1 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.25; letter-spacing: .09em; }
.framework-site:lang(en) .fw-editorial-intro h1 { letter-spacing: -.045em; }
.framework-site .fw-editorial-intro p { max-width: 680px; margin: 20px auto 0; font-size: 15px; line-height: 1.9; }
body[data-framework-page="home"] .fw-home-series { display: grid; grid-template-columns: 1fr 2.1fr 1fr; align-items: start; gap: 0 32px; }
body[data-framework-page="home"] .fw-home-block { --hb-auto-width: 100%; margin: 0 0 var(--hb-gap) !important; }
body[data-framework-page="home"] .fw-home-block[hidden] { display: none; }
body[data-framework-page="home"] .fw-home-block:not(.fw-home-feature) { grid-column: 1 / -1; }
body[data-framework-page="home"] .fw-home-feature { --hb-auto-width: min(100%, calc(42svh * var(--fw-feature-ratio, 1.5))); }
body[data-framework-page="home"] .fw-home-feature:nth-child(1 of .fw-home-feature:not([hidden])) { grid-column: 2; grid-row: 1; --hb-auto-width: min(100%, calc(72svh * var(--fw-feature-ratio, 1.5))); }
body[data-framework-page="home"] .fw-home-feature:nth-child(2 of .fw-home-feature:not([hidden])) { grid-column: 1; grid-row: 1; }
body[data-framework-page="home"] .fw-home-feature:nth-child(3 of .fw-home-feature:not([hidden])) { grid-column: 3; grid-row: 1; }
body[data-framework-page="home"] .fw-home-feature:nth-child(1 of .fw-home-feature:not([hidden])):nth-last-child(1 of .fw-home-feature:not([hidden])) { grid-column: 1 / -1; }
body[data-framework-page="home"] .fw-feature-caption { display: flex; flex-direction: column; padding-top: 20px; text-align: center; }
body[data-framework-page="home"] .fw-feature-heading { display: contents; }
body[data-framework-page="home"] .fw-feature-heading h2 { font-family: var(--fw-serif); font-size: 25px; line-height: 1.4; letter-spacing: .02em; margin: 0; }
body[data-framework-page="home"] .fw-home-feature:nth-child(1 of .fw-home-feature:not([hidden])) h2 { font-size: 34px; }
body[data-framework-page="home"] .fw-feature-heading h2 a > span[aria-hidden] { display: none; }
body[data-framework-page="home"] .fw-feature-subtitle { order: -1; margin: 0 0 10px; font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em; line-height: 1.6; }
body[data-framework-page="home"] .fw-feature-count { order: 3; margin-top: 16px; font-size: 11px; letter-spacing: .1em; }
body[data-framework-page="home"] .fw-feature-description { margin: 14px auto 0; font-family: var(--font-sans); font-size: 13px; line-height: 1.85; color: var(--muted); }
body[data-framework-page="home"] .fw-home-more { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.fw-editorial-archive { margin-top: 72px; }
.fw-editorial-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid #111; }
.framework-site .fw-editorial-section-heading h2 { margin: 0; font: 16px/1.5 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.fw-editorial-section-heading > a { font-size: 12px; }
.fw-editorial-archive .photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: start; gap: 28px; columns: auto; }
.fw-editorial-archive .photo-grid__item { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fw-editorial-archive .photo-grid__caption { text-align: center; }
@media (min-width: 640px) and (max-width: 1099px) {
  body[data-framework-page="home"] .fw-home-series { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
  body[data-framework-page="home"] .fw-home-feature:nth-child(1 of .fw-home-feature:not([hidden])) { grid-column: 1 / -1; grid-row: auto; --hb-auto-width: min(100%, calc(55svh * var(--fw-feature-ratio, 1.5))); }
  body[data-framework-page="home"] .fw-home-feature:nth-child(2 of .fw-home-feature:not([hidden])), body[data-framework-page="home"] .fw-home-feature:nth-child(3 of .fw-home-feature:not([hidden])) { grid-column: auto; grid-row: auto; }
  .fw-editorial-archive .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px 28px; }
}
@media (max-width: 639px) {
  .fw-editorial-intro { padding: 36px 0 38px; }
  .framework-site .fw-editorial-intro h1 { font-size: 36px; }
  .framework-site .fw-editorial-intro p { margin-top: 16px; font-size: 13px; line-height: 1.9; }
  body[data-framework-page="home"] .fw-home-series { display: block; }
  body[data-framework-page="home"] .fw-home-feature { --hb-auto-width: 100%; }
  body[data-framework-page="home"] .fw-home-feature:nth-child(1 of .fw-home-feature:not([hidden])) { --hb-auto-width: 100%; }
  body[data-framework-page="home"] .fw-home-block:not([hidden]):not(:last-child) { margin-bottom: var(--hb-gap) !important; }
  body[data-framework-page="home"] .fw-feature-heading h2, body[data-framework-page="home"] .fw-home-feature:nth-child(1 of .fw-home-feature:not([hidden])) h2 { font-size: 26px; }
  body[data-framework-page="home"] .fw-home-more { margin-top: 40px; }
  .fw-editorial-archive { margin-top: 48px; }
  .fw-editorial-section-heading { align-items: center; padding-block: 20px; }
  .framework-site .fw-editorial-section-heading h2 { font-size: 14px; }
  .fw-editorial-archive .photo-grid { grid-template-columns: 1fr; gap: 32px; }
}
