/* =========================================================
   PRINTCAST — Responsive Editorial Framework
   FlexCast
   v0.2
   ========================================================= */


/* =========================================================
   01. TOKENS
   ========================================================= */

:root {
  /* Colours */
  --pc-bg: #0a0a0a;
  --pc-paper: #f3f0e8;
  --pc-paper-alt: #ffffff;
  --pc-ink: #151515;
  --pc-muted: #6f6f6f;
  --pc-dark: #080808;
  --pc-light: #ffffff;
  --pc-accent: #6f43ff;

  /* Layout */
  --pc-page-padding: clamp(1.5rem, 0.8rem + 3.2vw, 5rem);
  --pc-gap: clamp(1rem, 0.75rem + 1vw, 2rem);

  --pc-copy-width: 42rem;
  --pc-lead-width: 34rem;

  /* Typography — mobile / default */
  --pc-display-size: clamp(4rem, 2rem + 10vw, 10rem);
  --pc-heading-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem);
  --pc-subheading-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem);
  --pc-body-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.125rem);
  --pc-quote-size: clamp(2.25rem, 1rem + 4vw, 5.5rem);
  --pc-display-quote-size: clamp(3.5rem, 1.5rem + 8vw, 9rem);

  /* Article rhythm */
  --pc-article-gap: clamp(0.75rem, 1.4vh, 1.25rem);
  --pc-section-gap: clamp(1.5rem, 3vh, 3rem);

  /* UI */
  --pc-menu-width: min(42rem, 100vw);
  --pc-transition: 360ms cubic-bezier(.77, 0, .18, 1);
}


/* =========================================================
   02. RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--pc-ink);
  background: var(--pc-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--pc-body-size);
  line-height: 1.65;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}


/* =========================================================
   03. ROOT / SCROLLER
   ========================================================= */

.printcast {
  width: 100dvw;
  height: 100dvh;

  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 0;

  scrollbar-width: thin;

  background: var(--pc-bg);
}


/* =========================================================
   04. SPREAD
   ========================================================= */

.spread {
  display: contents;
  user-select: none;
  outline: none;
}


/* =========================================================
   05. PAGE
   ========================================================= */

.page {
  position: relative;
  display: grid;

  width: 100dvw;
  min-width: 0;

  min-height: 100lvh;
  height: auto;

  overflow: visible;
  isolation: isolate;

  color: var(--pc-ink);
  background: var(--pc-paper);

  scrollbar-width: none;
  -ms-overflow-style: none;
  
  user-select: none;
  outline: none;
}




#chapter .page:focus {
  outline: none;
}

.page--light {
  background: var(--pc-paper-alt);
}

.page--dark {
  color: var(--pc-light);
  background: var(--pc-dark);
}

.page--accent {
  color: var(--pc-light);
  background: var(--pc-accent);
}


/* Fixed-height editorial pages */
.page--image,
.page--cover,
.page--quote {
  height: 100dvh;
  overflow: hidden;
}


/* Content-heavy page */
.page--article {
  min-height: 100lvh;
  height: auto;
}


/* =========================================================
   06. PAGE CONTENT
   ========================================================= */

.page__content,
.page__overlay {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;
  min-width: 0;

  padding:
    max(var(--pc-page-padding), env(safe-area-inset-top))
    max(var(--pc-page-padding), env(safe-area-inset-right))
    max(var(--pc-page-padding), env(safe-area-inset-bottom))
    max(var(--pc-page-padding), env(safe-area-inset-left));
}

.page__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page__content--top {
  justify-content: flex-start;
}

.page__content--bottom {
  justify-content: flex-end;
}

.page__content--between {
  justify-content: space-between;
}


/*
   Article pages use grid instead of space-between.
   This gives the browser more control over vertical
   spacing when viewport height becomes limited.
*/
.page--article .page__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: space-between;
  row-gap: var(--pc-section-gap);
}


/* =========================================================
   07. MEDIA / IMAGE PAGES
   ========================================================= */

.page--image {
  color: var(--pc-light);
  background: var(--pc-dark);
}

.page__background {
  position: absolute;
  z-index: -2;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.page--image::after {
  position: absolute;
  z-index: -1;
  inset: 0;

  content: "";

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .08) 5%,
      rgba(0, 0, 0, .5) 100%
    );

  pointer-events: none;
}

.page--image.image--clean::after {
  background: rgba(0, 0, 0, .1);
}

.page__overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page__overlay--left {
  align-items: flex-start;
  text-align: left;
}

.page__overlay--right {
  align-items: flex-end;
  text-align: right;
}

.page__overlay--top {
  justify-content: flex-start;
}

.page__overlay--center {
  justify-content: center;
}





/* =========================================================
   08. TYPOGRAPHY
   ========================================================= */

.eyebrow {
  margin-bottom: clamp(.6rem, 1.2vh, 1rem);

  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;

  letter-spacing: .18em;
  text-transform: uppercase;
}


.display {
  max-width: 8ch;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);

  font-size: var(--pc-display-size);
  font-weight: 500;
  line-height: .82;

  letter-spacing: -.06em;
  text-wrap: balance;
}


.heading {
  max-width: 11ch;
  margin-bottom: clamp(.6rem, 1.5vh, 1rem);

  font-size: var(--pc-heading-size);
  font-weight: 500;
  line-height: .92;

  letter-spacing: -.05em;
  text-wrap: balance;
}


.subheading,
.lead {
  max-width: var(--pc-lead-width);

  font-size: var(--pc-subheading-size);
  line-height: 1.42;

  text-wrap: pretty;
}

.subheading {
  margin-bottom: clamp(.75rem, 1.6vh, 2rem);
}


/*
   Compact subheading:
   intended for heading + paragraph article blocks.
*/
.subheading--compact {
  margin-top: 0;
  margin-bottom: clamp(.25rem, .7vh, .55rem);

  font-weight: 700;
  line-height: 1.2;
}


.paragraph-heading {
  margin-bottom: clamp(.3rem, .6vh, .65rem);

  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
}


.paragraph {
  width: 100%;
  max-width: var(--pc-copy-width);

  line-height: 1.66;

  text-align: justify;
  text-align-last: left;

  hyphens: auto;
  overflow-wrap: break-word;
}


.paragraph + .paragraph {
  margin-top: clamp(.7rem, 1.4vh, 1.2rem);
}


/* =========================================================
   09. ARTICLE
   ========================================================= */

.article {
  display: grid;

  width: min(100%, var(--pc-copy-width));
  min-width: 0;

  gap: var(--pc-article-gap);
}

.article > * {
  min-width: 0;
}


/* Tight heading + paragraph grouping */
.article--compact {
  gap: clamp(.3rem, .6vh, .55rem);
}

.article--compact .subheading {
  margin-bottom: 0;
}


/* Optional vertical centering */
.article--center {
  margin-block: auto;
}


/* Columns */
.article--columns {
  display: block;

  columns: 1;
  column-gap: 2rem;
}

.article--columns p {
  break-inside: avoid;
}


/* =========================================================
   10. QUOTES
   ========================================================= */

.quote {
  max-width: 18ch;

  margin-block: clamp(.75rem, 2vh, 1.5rem);
  padding-block: clamp(.75rem, 1.7vh, 1.25rem);

  border-block: 1px solid currentColor;

  font-size: var(--pc-quote-size);
  font-weight: 500;
  line-height: 1.02;

  letter-spacing: -.035em;
  text-wrap: balance;
}


.display-quote {
  max-width: 11ch;

  font-size: var(--pc-display-quote-size);
  font-weight: 500;
  line-height: .86;

  letter-spacing: -.06em;
  text-wrap: balance;
}

.page__overlay--right .display-quote {
  margin-left: auto;
}


/* =========================================================
   11. SIMPLE GRIDS / STATS
   ========================================================= */

.grid {
  display: grid;
  gap: var(--pc-gap);
}

.grid--2 {
  grid-template-columns: 1fr;
}


.stats {
  display: grid;
  gap: 0;

  border-top: 1px solid currentColor;
}

.stat {
  padding: 1.25rem 0;
  border-bottom: 1px solid currentColor;
}

.stat strong {
  display: block;

  font-size: clamp(3rem, 10vw, 7rem);
  line-height: .9;

  letter-spacing: -.06em;
}

.stat span {
  display: block;

  max-width: 18rem;
  margin-top: .75rem;

  opacity: .7;
}


/* =========================================================
   12. FIGURES
   ========================================================= */

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;

  object-fit: cover;
}

.figure--portrait img {
  aspect-ratio: 3 / 4;
}

.figure--landscape img {
  aspect-ratio: 16 / 10;
}

.figure figcaption {
  margin-top: .6rem;

  font-size: .75rem;
  opacity: .65;
}


/* =========================================================
   13. EDITORIAL PRIMITIVES
   ========================================================= */

.rule {
  width: 100%;
  height: 1px;

  margin-block: clamp(.8rem, 1.5vh, 1.25rem);

  background: currentColor;
  opacity: .22;
}


.kicker {
  max-width: 28rem;

  font-size: clamp(.82rem, .76rem + .2vw, .95rem);
  line-height: 1.55;
  letter-spacing: .02em;

  opacity: .72;
}


.dropcap::first-letter {
  float: left;

  margin: .06em .12em 0 0;

  font-size: 5.4em;
  font-weight: 700;
  line-height: .72;
}


.chapter-number {
  display: block;

  margin-bottom: clamp(.5rem, 1.2vh, 1rem);

  font-size: clamp(5rem, 17vw, 12rem);
  font-weight: 700;
  line-height: .72;

  letter-spacing: -.08em;
  opacity: .12;
}


/* =========================================================
   14. INDEX LIST
   ========================================================= */

.index-list {
  display: grid;

  width: 100%;
  margin-top: clamp(1.5rem, 4vh, 3rem);

  border-top: 1px solid currentColor;
}

.index-list__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;

  gap: 1rem;

  padding-block: clamp(.65rem, 1.4vh, 1.2rem);

  border-bottom: 1px solid currentColor;
}

.index-list__item span {
  font-size: .7rem;
  letter-spacing: .16em;

  opacity: .5;
}

.index-list__item strong {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.1;
}


/* =========================================================
   15. FEATURE GRID
   ========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;

  gap: var(--pc-gap);
}

.feature-grid .figure img {
  max-height: 42dvh;
}


/* =========================================================
   16. MOSAIC
   ========================================================= */

.mosaic {
  display: grid;

  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.2fr .8fr;

  gap: clamp(.45rem, 1vw, .9rem);

  height: min(65dvh, 42rem);
}

.mosaic figure {
  position: relative;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  margin: 0;
}

.mosaic figure:first-child {
  grid-row: 1 / -1;
}

.mosaic img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   17. PRINCIPLES
   ========================================================= */

.principles {
  display: grid;

  width: 100%;

  border-top: 1px solid currentColor;
}

.principle {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);

  gap: 1rem;

  padding-block: clamp(.8rem, 1.6vh, 1.25rem);

  border-bottom: 1px solid currentColor;
}

.principle > span {
  font-size: .72rem;
  letter-spacing: .15em;

  opacity: .5;
}

.principle h3 {
  margin: 0 0 .35rem;

  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.1;
}

.principle p {
  max-width: 34rem;
  margin: 0;

  font-size: clamp(.86rem, .8rem + .2vw, 1rem);
  line-height: 1.55;

  opacity: .72;
}


/* =========================================================
   18. NUMBERS / CAPTIONS
   ========================================================= */

.big-number {
  display: block;

  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 700;
  line-height: .72;

  letter-spacing: -.09em;
}


.caption-line {
  display: flex;
  justify-content: space-between;

  gap: 1rem;

  width: 100%;
  padding-top: .75rem;

  border-top: 1px solid currentColor;

  font-size: .68rem;
  line-height: 1.35;

  letter-spacing: .08em;
  text-transform: uppercase;

  opacity: .68;
}


/* =========================================================
   19. PAGE NUMBER
   ========================================================= */

.page-number {
  position: absolute;
  z-index: 3;

  right: var(--pc-page-padding);
  bottom: calc(var(--pc-page-padding) * .55);

  font-size: .68rem;

  letter-spacing: .16em;
  text-transform: uppercase;

  opacity: .65;
}


/* =========================================================
   20. BUTTONS
   ========================================================= */

.editorial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 3rem;

  min-width: 290px;

  padding: 1.15rem 1.35rem;

  color: #ffffff;
  background: #604f97;

  border: 1px solid rgba(17, 17, 17, .8);

  font-size: .82rem;
  font-weight: 600;
  line-height: 1;

  letter-spacing: .06em;
  text-decoration: none;

  transition:
    background-color 220ms ease,
    color 220ms ease,
    padding 220ms ease;
}

.editorial-cta__arrow {
  font-size: 1.15rem;
  font-weight: 400;

  transition: transform 220ms ease;
}

.editorial-cta:hover {
  color: #fff;
  background: #605f97;
}

.editorial-cta:hover .editorial-cta__arrow {
  transform: translate(3px, -3px);
}

.editorial-cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* =========================================================
   21. EDITORIAL RIBBON
   ========================================================= */

.ribbon {
  position: fixed;
  z-index: 1000;

  top: 0;
  right: clamp(.75rem, 2vw, 1.5rem);

  display: grid;
  place-items: center;

  width: clamp(3.3rem, 4.5vw, 4.4rem);
  height: clamp(6.75rem, 13vh, 9rem);

  padding: .8rem .45rem 1rem;

  color: #fff;
  background: var(--pc-accent);

  border: 0;
  border-radius: 0 0 .2rem .2rem;

  cursor: pointer;

  box-shadow: 0 .5rem 1.7rem rgba(0, 0, 0, .2);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ribbon:hover {
  transform: translateY(.35rem);

  box-shadow: 0 .7rem 2rem rgba(0, 0, 0, .28);
}

.ribbon:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ribbon__icon {
  width: 2rem;
  height: 2rem;

  object-fit: contain;
  object-position: left;

  filter: brightness(0) invert(1);
}

.ribbon__label {
  writing-mode: vertical-rl;

  transform: rotate(180deg);

  font-size: .58rem;
  font-weight: 700;

  letter-spacing: .18em;
  text-transform: uppercase;
}

.ribbon::after {
  position: absolute;

  left: 0;
  right: 0;
  bottom: -1rem;

  width: 0;
  height: 0;

  margin: auto;

  content: "";

  border-left:
    calc(clamp(3.3rem, 4.5vw, 4.4rem) / 2)
    solid transparent;

  border-right:
    calc(clamp(3.3rem, 4.5vw, 4.4rem) / 2)
    solid transparent;

  border-top:
    1rem solid var(--pc-accent);
}


/* =========================================================
   22. CONTENTS DRAWER
   ========================================================= */

.menu-backdrop {
  position: fixed;
  z-index: 1090;

  inset: 0;

  background: rgba(0, 0, 0, .52);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}


.contents {
  position: fixed;
  z-index: 1100;

  inset: 0 0 0 auto;

  width: var(--pc-menu-width);
  height: 100dvh;

  color: #fff;
  background: #0a0a0a;

  transform: translateX(100%);

  transition: transform var(--pc-transition);
}

.contents.is-open {
  transform: translateX(0);
}


.contents__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;

  height: 100%;

  padding: clamp(1.5rem, 4vw, 4rem);
}


.contents__header,
.contents__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
}


.contents__brand {
  display: flex;
  align-items: center;

  gap: 1rem;
}

.contents__brand img {
  width: min(12rem, 46vw);
  height: auto;
}


.contents__close {
  color: inherit;
  background: none;

  border: 0;

  cursor: pointer;

  font-size: .75rem;

  letter-spacing: .12em;
  text-transform: uppercase;
}


.contents__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow-y: auto;

  padding-block: 1rem;

  overscroll-behavior: contain;
}

.contents__nav a {
  display: grid;
  grid-template-columns: 3rem 1fr;

  flex: 0 0 auto;

  gap: 1rem;

  padding-block: clamp(.55rem, 1.2vh, 1rem);

  color: inherit;

  border-top: 1px solid rgba(255, 255, 255, .2);

  text-decoration: none;
}

.contents__nav a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.contents__nav span {
  align-self: end;

  font-size: .72rem;

  opacity: .45;
}

.contents__nav strong {
  font-size: clamp(1.15rem, 2.7vw, 2.4rem);
  font-weight: 400;
  line-height: .95;
}

.contents__footer {
  font-size: .75rem;

  opacity: .55;
}


/* =========================================================
   23. TABLET+
   ========================================================= */

@media (min-width: 48rem) {

  .feature-grid {
    grid-template-columns:
      minmax(0, .9fr)
      minmax(0, 1.1fr);
  }

}


/* =========================================================
   24. DESKTOP / WIDE LANDSCAPE
   ========================================================= */

@media
  (min-width: 64rem),
  (orientation: landscape)
  and (min-width: 56rem)
  and (min-height: 30rem) {

  /*
     On desktop typography responds to BOTH width and height.

     Width determines the editorial scale.
     Height prevents content from falling below the fold.
  */
  :root {
    --pc-page-padding:
      clamp(
        1.75rem,
        min(3.8vw, 5.5vh),
        5rem
      );

    --pc-display-size:
      clamp(
        4rem,
        min(6vw, 11vh),
        9rem
      );

    --pc-heading-size:
      clamp(
        2.75rem,
        min(4.5vw, 7.8vh),
        6.5rem
      );

    --pc-subheading-size:
      clamp(
        1rem,
        min(1.45vw, 2.55vh),
        1.55rem
      );

    --pc-body-size:
      clamp(
        .84rem,
        min(.92vw, 1.85vh),
        1.08rem
      );

    --pc-quote-size:
      clamp(
        2rem,
        min(4vw, 6.8vh),
        5.5rem
      );

    --pc-display-quote-size:
      clamp(
        3.5rem,
        min(6vw, 10vh),
        8rem
      );

    --pc-article-gap:
      clamp(
        .35rem,
        1vh,
        1rem
      );

    --pc-section-gap:
      clamp(
        .8rem,
        2.2vh,
        2.5rem
      );
  }


  .spread {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100dvw;
    height: 100dvh;

  }


  .page {
    width: 100%;
    height: 100dvh;
    min-height: 0;
  }


  /*
     Article pages remain one viewport high on desktop,
     but their typography/spacing now responds to viewport height.
  */
  .page--article {
    height: 100dvh;
    min-height: 0;

    overflow: hidden;
  }


  .page--article .page__content {
    height: 100%;

    align-content: space-between;

    row-gap: var(--pc-section-gap);
  }


  .page--article .chapter-number {
    font-size:
      clamp(
        4rem,
        min(10vw, 14vh),
        10rem
      );
  }


  .page--article .heading {
    font-size:
      clamp(
        2.6rem,
        min(4.25vw, 7vh),
        5.75rem
      );
  }


  .page--article .subheading {
    font-size:
      clamp(
        .95rem,
        min(1.35vw, 2.3vh),
        1.4rem
      );
  }


  .page--article .paragraph {
    font-size:
      clamp(
        .82rem,
        min(.9vw, 1.72vh),
        1.025rem
      );

    line-height:
      clamp(
        1.42,
        1.55,
        1.65
      );
  }


  .page--article .subheading--compact {
    margin-bottom:
      clamp(
        .18rem,
        .55vh,
        .5rem
      );
  }


  .display {
    font-size: var(--pc-display-size);
  }

  .heading {
    font-size: var(--pc-heading-size);
  }

  .display-quote {
    font-size: var(--pc-display-quote-size);
  }


  .grid--2 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .article--columns {
    columns: 2;
  }


  .stats {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .stat {
    padding: 1.5rem;

    border-right: 1px solid currentColor;
  }

  .stat:first-child {
    padding-left: 0;
  }

  .stat:last-child {
    padding-right: 0;
    border-right: 0;
  }


  .feature-grid {
    grid-template-columns:
      minmax(0, .88fr)
      minmax(0, 1.12fr);

    gap: clamp(1.5rem, 2.5vw, 3rem);
  }


  .feature-grid .figure img {
    max-height: 48dvh;
  }


  .spread--single::after {
    display: block;

    width: 100%;
    height: 100dvh;

    content: "";

    background:
      radial-gradient(
        circle at 80% 20%,
        rgba(111, 67, 255, .18),
        transparent 34%
      ),
      #080808;
  }

}


/* =========================================================
   25. COMPACT DESKTOP HEIGHT
   Laptops / browser windows with limited vertical space
   ========================================================= */

@media
  (min-width: 56rem)
  and (orientation: landscape)
  and (max-height: 52rem) {

  :root {
    --pc-page-padding:
      clamp(
        1.35rem,
        3.6vh,
        2.6rem
      );

    --pc-section-gap:
      clamp(
        .55rem,
        1.45vh,
        1.2rem
      );

    --pc-article-gap:
      clamp(
        .25rem,
        .65vh,
        .6rem
      );
  }


  .page--article .chapter-number {
    margin-bottom: .3rem;

    font-size:
      clamp(
        3.75rem,
        11vh,
        6.5rem
      );
  }


  .page--article .eyebrow {
    margin-bottom:
      clamp(
        .3rem,
        .65vh,
        .6rem
      );

    font-size:
      clamp(
        .58rem,
        1.15vh,
        .7rem
      );
  }


  .page--article .heading {
    margin-bottom:
      clamp(
        .25rem,
        .65vh,
        .5rem
      );

    font-size:
      clamp(
        2.4rem,
        6.3vh,
        4rem
      );

    line-height: .94;
  }


  .page--article .subheading {
    font-size:
      clamp(
        .9rem,
        2.15vh,
        1.15rem
      );

    line-height: 1.2;
  }


  .page--article .paragraph {
    font-size:
      clamp(
        .78rem,
        1.65vh,
        .94rem
      );

    line-height: 1.5;
  }


  .page--article .paragraph + .paragraph {
    margin-top:
      clamp(
        .4rem,
        .8vh,
        .75rem
      );
  }


  .page--article .article {
    gap:
      clamp(
        .25rem,
        .55vh,
        .5rem
      );
  }


  .page-number {
    bottom: 1rem;
  }

}


/* =========================================================
   26. VERY SHORT DESKTOP WINDOWS
   Safety net for extreme landscape/browser heights
   ========================================================= */

@media
  (min-width: 56rem)
  and (orientation: landscape)
  and (max-height: 40rem) {

  :root {
    --pc-page-padding: clamp(1rem, 2.8vh, 1.7rem);
    --pc-section-gap: clamp(.35rem, .9vh, .7rem);
  }


  .page--article .chapter-number {
    font-size: clamp(3rem, 9vh, 4.5rem);
  }


  .page--article .heading {
    font-size: clamp(2rem, 5.5vh, 3rem);
  }


  .page--article .subheading {
    font-size: clamp(.82rem, 1.9vh, 1rem);
  }


  .page--article .paragraph {
    font-size: clamp(.72rem, 1.5vh, .84rem);
    line-height: 1.42;
  }

}


/* =========================================================
   27. SMALL LANDSCAPE
   ========================================================= */

@media
  (orientation: landscape)
  and (max-width: 55.999rem) {

  :root {
    --pc-page-padding:
      clamp(1.1rem, 3vw, 2.1rem);

    --pc-display-size:
      clamp(3rem, 10vh, 5.5rem);

    --pc-heading-size:
      clamp(2.1rem, 8vh, 4.1rem);

    --pc-subheading-size:
      clamp(1rem, 3vh, 1.25rem);

    --pc-body-size:
      clamp(.88rem, 2.4vh, 1rem);

    --pc-section-gap:
      clamp(1rem, 2vh, 1.8rem);
  }


  .article {
    gap: .65rem;
  }

  .quote {
    margin-block: .7rem;
    padding-block: .7rem;
  }

  .ribbon {
    height: 5.7rem;
  }

}


/* =========================================================
   28. MOBILE
   ========================================================= */

@media (max-width: 47.999rem) {

  :root {
    --pc-page-padding:
      clamp(1.25rem, 5vw, 2rem);

    --pc-body-size:
      clamp(.96rem, 3.8vw, 1.05rem);

    --pc-heading-size:
	  clamp(2.5rem, 10.5vw, 4.5rem);

    --pc-section-gap:
      clamp(2rem, 6vh, 4rem);
  }


  :root {
    --pc-display-size: clamp(3.2rem, 13vw, 5rem);
    --pc-heading-size: clamp(2.5rem, 10.5vw, 4.5rem);
  }

  .display,
  .heading {
    max-width: 100%;
  }
  
  
	.heading,
	.display {
	  max-width: 100%;
	  overflow-wrap: normal;
	  word-break: normal;
	}

  .page {
    min-height: 100lvh;
    height: auto;

    overflow: visible;
  }


  /*
     Important:
     Article pages are allowed to grow on mobile.
     Never shrink body copy simply to force it into 100vh.
  */
  .page--article {
    height: auto;
    min-height: 100lvh;

    overflow: visible;
  }


  .page--article .page__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    gap: var(--pc-section-gap);
  }


  .paragraph {
    text-align: left;
    hyphens: none;
  }


  .contents {
    width: calc(100vw - .5rem);
  }


  .ribbon {
    right: .75rem;
  }


  .page-number {
    right: 1rem;
    bottom: .8rem;
  }


  .editorial-cta {
    width: 100%;
    min-width: 0;
  }


  .mosaic {
    height: min(56dvh, 34rem);
  }


  .index-list__item {
    grid-template-columns:
      2.5rem minmax(0, 1fr);
  }


  .principle {
    grid-template-columns:
      2.25rem minmax(0, 1fr);
  }

}


/* =========================================================
   29. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .printcast {
    scroll-behavior: auto;
  }

  .contents,
  .menu-backdrop,
  .ribbon {
    transition: none;
  }

}


/* =========================================================
   30. PRINT
   ========================================================= */

@media print {

  html,
  body {
    height: auto;
    overflow: visible;
  }


  .printcast {
    width: auto;
    height: auto;
    overflow: visible;
  }


  .spread {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    height: auto;
    break-after: page;
  }


  .page,
  .page--article {
    width: auto;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }


  .ribbon,
  .contents,
  .menu-backdrop {
    display: none !important;
  }

}


/* =========================================================
   CUSTOMER LOGOS
   ========================================================= */

.logo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-items: center;

	width: 100%;
	gap: clamp(1.5rem, 3vw, 3.5rem);

	margin-top: clamp(.75rem, 1.5vh, 1.5rem);
}

.logo-grid__item {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	min-width: 0;
	height: clamp(2.5rem, 6vh, 4.5rem);
}

.logo-grid__item img {
	display: block;

	width: auto;
	max-width: 100%;
	max-height: 100%;

	margin: 0 auto;

	object-fit: contain;
	object-position: center;

	filter: grayscale(1);
}


/* Mobile */

@media (max-width: 47.999rem) {

	.logo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem 2.5rem;
	}

	.logo-grid__item {
		height: 3rem;
	}

}



/* Desktop: beide pagina’s krijgen de hoogte van de langste pagina. */
@media screen and (min-width: 48rem) {

    #chapter.printcast > .spread {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;

        align-items: stretch;

        height: auto;
        min-height: 100vh;
        min-height: 100lvh;
        max-height: none;

        overflow: visible;
    }

    /* Alle paginatypes mogen met hun inhoud meegroeien. */
    #chapter.printcast > .spread > .page {
        align-self: stretch;

        width: 100%;
        min-width: 0;

        height: auto;
        min-height: 100vh;
        min-height: 100lvh;
        max-height: none;

        overflow: visible;
        box-sizing: border-box;
    }

    /* Hef ook de vaste hoogtes van de binnenste containers op. */
    #chapter.printcast > .spread > .page > .page__content,
    #chapter.printcast > .spread > .page > .page__overlay,
    #chapter.printcast > .spread > .page > .ed__inner,
    #chapter.printcast > .spread > .page > .fp-inner {
        height: auto;
        min-height: 0;
        max-height: none;

        overflow: visible;
        box-sizing: border-box;
    }

    /* Editorial- en prijslayouts vullen de volledige paginahoogte. */
    #chapter.printcast > .spread > .page > .ed__inner,
    #chapter.printcast > .spread > .page > .fp-inner {
        flex: 1 1 auto;
    }
}








#chapter.printcast {
  scroll-snap-type: none !important;
  scroll-behavior: auto;
}





















@media screen and (min-width: 48rem) {
  #chapter > .spread {
    position: relative;
  }

  #chapter > .spread:not(.spread--single)::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 5vw;
    transform: translateX(-50%);
    pointer-events: none;

    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.015) 35%,
      rgba(0, 0, 0, 0.055) 50%,
      rgba(0, 0, 0, 0.015) 65%,
      transparent 100%
    );
  }
}



@media screen and (min-width: 48rem) {
  #chapter > .spread + .spread::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.055);
    pointer-events: none;
  }
}

@media screen and (max-width: 47.999rem) {
  #chapter > .spread > .page {
    position: relative;
  }

  #chapter > .spread + .spread > .page:first-child::before,
  #chapter > .spread > .page + .page::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.055);
    pointer-events: none;
  }
}