/* Opening cover, chapter register and matching closing colophon. */
body.home-editorial {
  --cover-dark: #221511;
  --cover-mid: #402621;
  --cover-warm: #57332b;
  --cover-halo: #724136;
  --cover-ivory: #fff1e3;
}
body.home-editorial:has(main.hero) .site-header.site-header:not([data-menu="open"])::before {
  opacity: 1;
  background: linear-gradient(105deg, var(--cover-dark), var(--cover-mid) 68%, var(--cover-warm));
  border: 0;
  box-shadow: none;
}
body.home-editorial:has(main.hero) .site-header.site-header.is-scrolled:not([data-menu="open"])::before {
  background: linear-gradient(105deg, #291a16f5, #422820f0 70%, #4c2c25ef);
  border-block-end: 1px solid #b4866e50;
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 .3rem 1.2rem #27171028;
}
body.home-editorial:has(main.hero) .site-header.site-header:not([data-menu="open"]) .wordmark img {
  filter: brightness(1.33) saturate(.82);
}
body.home-editorial:has(main.hero) .site-header.site-header:not([data-menu="open"]) .nav-toggle {
  border-color: #d4a18e86;
  background: linear-gradient(145deg, #74483a, #542f27);
  color: var(--cover-ivory);
  box-shadow: inset 0 1px #e5aa9052;
}
body.home-editorial:has(main.hero) .site-header.site-header:not([data-menu="open"]) .nav-toggle:is(:hover,:focus-visible) {
  background: #825143;
  border-color: #f3b8a1;
}
@media (min-width: 1280px) {
  body.home-editorial:has(main.hero) .site-header:not([data-nav="compact"]):not([data-menu="open"]) .primary-nav .nav-list a:not(.nav-cta) {
    color: var(--cover-ivory);
  }
  body.home-editorial:has(main.hero) .site-header:not([data-nav="compact"]):not([data-menu="open"]) .primary-nav .nav-list a.nav-cta {
    background: linear-gradient(145deg, #74483a, #542f27);
    color: var(--cover-ivory);
    border-color: #d4a18eb0;
    box-shadow: inset 0 1px #e5aa9052;
  }
  body.home-editorial:has(main.hero) .site-header:not([data-nav="compact"]):not([data-menu="open"]) .primary-nav .nav-list a.nav-cta:is(:hover,:focus-visible) {
    background: #825143;
    border-color: #f3b8a1;
  }
}
main.hero[data-home-edition] .home-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  color: var(--cover-ivory);
  background:
    radial-gradient(ellipse at 85% 38%, var(--cover-halo), transparent 52%),
    linear-gradient(105deg, var(--cover-dark), var(--cover-mid) 68%, var(--cover-warm));
}
main.hero[data-home-edition] .home-mast-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: clamp(2.25rem, 6vw, 6.5rem) var(--edition-margin) clamp(2.8rem, 6vw, 6.5rem);
  text-align: start;
}
main.hero[data-home-edition] .home-mast-index {
  margin: 0 0 clamp(1.35rem, 4vw, 3.75rem);
  padding-block-end: .9rem;
  width: 100%;
  border-block-end: 1px solid #d5a99b66;
  color: #efcfc0;
  font: 550 .72rem/1.45 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}
main.hero[data-home-edition] .home-mast-label {
  margin: 0 0 1rem;
  color: #ffc4ad;
  font: 650 clamp(.68rem, .62rem + .25vw, .82rem)/1.6 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
main.hero[data-home-edition] .home-mast-copy h1.display {
  width: 100%;
  max-width: 19ch;
  margin: 0;
  color: inherit;
  font: 400 clamp(2.05rem, 1.05rem + 3vw, 4.8rem)/1.04 var(--display);
  letter-spacing: -.037em;
  text-align: start;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
main.hero[data-home-edition] .home-mast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.5rem;
  margin-block-start: clamp(1.55rem, 3.2vw, 2.9rem);
}
main.hero[data-home-edition] .home-mast-actions a:is(:link,:visited) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 44px;
  color: #fff1e3;
  font: 650 .86rem/1.35 var(--sans);
  text-decoration: none;
}
main.hero[data-home-edition] .home-mast-actions a:first-child:is(:link,:visited) {
  padding: .55rem 1.05rem;
  border-radius: 100vmax;
  background: #f6c8b3;
  color: #301d18;
}
main.hero[data-home-edition] .home-mast-actions a:hover { text-decoration: underline; text-underline-offset: .25em; }
main.hero[data-home-edition] .home-mast-actions a:focus-visible { outline-color: #fff1e3; }
main.hero[data-home-edition] .home-mast-portrait {
  display: grid;
  min-width: 0;
  place-items: center;
  margin: 0;
  background: radial-gradient(ellipse at 50% 55%, #98595150, transparent 75%);
}
main.hero[data-home-edition] .home-mast-portrait picture {
  width: min(100%, 27rem);
  display: block;
}
main.hero[data-home-edition] .home-mast-portrait img { width: 100%; height: auto; display: block; }
main.hero[data-home-edition] .hero-ways.home-chapters {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .8rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 3.5vw, 3rem) var(--edition-margin) 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(#f0d8cb, var(--edition-rose-transition));
}
main.hero[data-home-edition] .hero-ways.home-chapters .way {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  min-width: 0;
  min-height: 44px;
  gap: .25rem .8rem;
  padding: clamp(.85rem, 1.9vw, 1.45rem) clamp(1rem, 2.2vw, 1.7rem);
  border: 1px solid #96584b58;
  border-radius: .7rem;
  background: linear-gradient(153deg, #fff9ef 0%, #f6e1d4d9 47%, #eed1c2 100%);
  box-shadow:
    inset 0 1px 0 #fffdfa,
    inset 0 -2px 0 #b5746340,
    0 .45rem .85rem -.5rem #61392d75;
  color: var(--edition-ink);
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
main.hero[data-home-edition] .hero-ways.home-chapters .way:is(:hover, :focus-visible) {
  background: linear-gradient(153deg, #fffdf6 0%, #f8e8de 45%, #f1cab9 100%);
  box-shadow: inset 0 1px 0 #fffdfa, inset 0 -2px 0 #a0635169, 0 .6rem 1.15rem -.58rem #61392d85;
}
main.hero[data-home-edition] .hero-ways.home-chapters .way:active {
  box-shadow: inset 0 2px .45rem #9d5c493b, 0 .2rem .65rem -.5rem #61392d65;
}
main.hero[data-home-edition] .home-chapters .way > :is(.way-name,.way-line) {
  grid-column: 1;
  display: block;
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: start;
  overflow-wrap: anywhere;
}
main.hero[data-home-edition] .home-chapters .way-name {
  color: var(--edition-ink);
  font: 400 clamp(1.65rem, 1.2rem + 1.7vw, 2.55rem)/1.06 var(--display);
  letter-spacing: -.025em;
}
main.hero[data-home-edition] .home-chapters .way-name::after { content: none; }
main.hero[data-home-edition] .home-chapters .way-line {
  color: #543933;
  font: 500 .88rem/1.5 var(--sans);
}
main.hero[data-home-edition] .hero-ways.home-chapters .way::after {
  content: "";
  align-self: center;
  grid-area: 1 / 2 / 3 / 3;
  width: .6rem;
  height: .6rem;
  border: solid var(--edition-accent);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
main.hero[data-home-edition] .home-chapters .way:is(:hover,:focus-visible) .way-name {
  color: var(--edition-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
body.home-editorial .site-footer.editorial-footer {
  --footer-rule: #a575696e;
  --footer-accent: #ffc5b2;
  border-block-start: 1px solid #ac756c;
  background: radial-gradient(ellipse at 12% 12%, #58332d, transparent 69%), #271917;
}
body.home-editorial .editorial-footer .footer-edition {
  width: min(100% - 2 * clamp(1.25rem, 6vw, 6rem), 76rem);
  padding-block-start: clamp(2.4rem, 5vw, 4.6rem);
}
body.home-editorial .editorial-footer .social {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 0;
}
body.home-editorial .editorial-footer .social a {
  border: 0;
  border-block-end: 1px solid var(--footer-rule);
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}
@media (min-width: 45rem) {
  main.hero[data-home-edition] .hero-ways.home-chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(.9rem, 2.6vw, 2.35rem);
  }
}
@media (min-width: 49rem) {
  main.hero[data-home-edition] .home-mast {
    --cover-gutter: max(clamp(1.75rem, 3.6vw, 4.75rem), (100% - 86rem) / 2);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    padding-inline: var(--cover-gutter);
    column-gap: clamp(1.1rem, 3.4vw, 3.9rem);
  }
  main.hero[data-home-edition] .home-mast-copy { padding-inline: 0; }
  main.hero[data-home-edition] .home-mast-portrait {
    position: relative;
    align-content: start;
    justify-items: end;
    padding: clamp(.65rem, 1.4vw, 1.4rem) 0;
  }
  main.hero[data-home-edition] .home-mast-portrait::before {
    position: absolute;
    inset-block: 10%;
    inset-inline-start: 0;
    width: 1px;
    background: linear-gradient(transparent, #b47c69a0 30%, #e2ab91c9 58%, transparent);
    content: "";
  }
  main.hero[data-home-edition] .home-mast-portrait picture {
    box-sizing: border-box;
    /* Keep the full, uncropped portrait inside the opening frame. */
    width: min(100% - clamp(.65rem, 1.6vw, 1.5rem), 42rem, max(22rem, (100svh - 6.75rem) * .667));
    padding: .28rem;
    border: 1px solid #e8ad958c;
    background: #5f342a;
    box-shadow: 0 1rem 2.25rem #1d100e52;
  }
}
@media (max-width: 48.99rem) {
  main.hero[data-home-edition] .home-mast-portrait { order: -1; }
  main.hero[data-home-edition] .home-mast-portrait picture { width: min(70%, 25rem); }
}
@media (prefers-reduced-motion: reduce) {
  main.hero[data-home-edition] .hero-ways.home-chapters .way { transition: none; }
}
@media (forced-colors: active) {
  main.hero[data-home-edition] .home-mast-actions a:first-child { border: 1px solid LinkText; }
  main.hero[data-home-edition] :is(.career-plate,.career-plate-inset,.way) { border-color: CanvasText; }
}
