/* Papiers découpés: flat paper colours pasted in layers on a calm ground, depth by overlap only. */

:root {
  --ground: #f2f1ec;
  --sheet-light: #faf9f5;
  --ink: #141414;
  --ink-soft: #55554f;
  --red: #e4312b;
  --blue: #1e57c8;
  --yellow: #f4b400;
  --green: #1b8f5a;
  --green-deep: #157a4c;
  --accent: var(--blue);
  --focus: var(--blue);
  --select-bg: var(--yellow);
  --select-ink: var(--ink);
  --paper: var(--blue);
  --on-paper: #ffffff;
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cut: 3px 7px 4px 8px / 6px 3px 7px 4px;
  --lay: 0 1px 1.5px rgba(20, 20, 20, 0.28), 0 3px 6px -2px rgba(20, 20, 20, 0.18);
  --lift: 0 2px 3px rgba(20, 20, 20, 0.2), 0 14px 22px -8px rgba(20, 20, 20, 0.3);
}

/* One colour per show, everywhere it appears. */
[data-show="huis-clos"] { --paper: var(--red); --on-paper: #ffffff; }
[data-show="titou"] { --paper: var(--yellow); --on-paper: var(--ink); }

.wrap {
  max-width: 96rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.centered {
  text-align: center;
}

.centered > p {
  max-width: 38em;
  margin-inline: auto;
}

/* Header */

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 2rem;
  padding-block: 0.5rem;
}

.logo img {
  width: clamp(9.5rem, 15vw, 13rem);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem clamp(0.5rem, 1.4vw, 1.5rem);
}

.site-nav a,
.nav-toggle {
  font-family: "Archivo", sans-serif;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  display: inline-block;
  padding: 0.7rem 0.5rem;
  text-decoration: none;
  border-radius: var(--cut);
  background: linear-gradient(var(--yellow), var(--yellow)) center / 100% 0 no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-size: 100% 62%;
}

.nav-toggle {
  display: none;
  justify-self: end;
  min-height: 3rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: var(--cut);
  background: var(--ink);
  color: var(--ground);
  box-shadow: var(--lay);
  cursor: pointer;
}

/* Hero: the roundel is cut by the page edge on purpose. */

.hero {
  overflow-x: clip;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
  align-items: center;
  column-gap: clamp(1.5rem, 3vw, 4rem);
  padding-block: clamp(1rem, 2.4vw, 2.5rem) clamp(4rem, 6vw, 6rem);
}

h1 {
  /* sized so "Porteuses de sens." holds on one line in its column: three lines, dates above the fold */
  font-size: clamp(3.25rem, 6.9vw, 6.25rem);
  line-height: 0.92;
}

.lede {
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  line-height: 1.45;
  max-width: 34em;
}

.hero .lede {
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

.rosace {
  margin-right: clamp(-9rem, -7vw, -2rem);
}

.rosace img {
  width: 100%;
}

@supports (animation-timeline: scroll()) {
  .rosace img {
    animation: turn linear both;
    animation-timeline: scroll(root);
    animation-range: 0 120vh;
  }
}

@keyframes turn {
  to { transform: rotate(38deg); }
}

/* Dates: one strip of cut paper each. */

.dates {
  margin-top: clamp(2rem, 3.2vw, 3rem);
  max-width: 46rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 0.95;
}

.dates h2 {
  font-size: clamp(1.625rem, 2.3vw, 2rem);
  margin-bottom: 0.9rem;
}

.dates ol {
  display: grid;
  gap: 0.7rem;
}

.strip {
  position: relative;
  display: grid;
  grid-template-columns: 8.75rem minmax(5rem, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(0.75rem, 1.6vw, 1.5rem);
  min-height: 3.75rem;
  padding: 0.5rem 1.35rem;
  background: var(--paper);
  color: var(--on-paper);
  border-radius: var(--cut);
  box-shadow: var(--lay);
  transform: rotate(var(--tilt, -0.5deg));
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  animation: settle 0.9s var(--ease-out) backwards;
}

.strip:nth-child(2) { --tilt: 0.45deg; animation-delay: 0.09s; border-radius: 6px 3px 8px 4px / 3px 7px 4px 6px; }
.strip:nth-child(3) { --tilt: -0.25deg; animation-delay: 0.18s; }

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(-1.1rem) rotate(-3deg);
  }
}

.strip:hover,
.strip:focus-within {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: var(--lift);
}

.strip-when,
.strip-show {
  font-size: 1.3125rem;
  line-height: 1.1;
}

.strip-where {
  white-space: nowrap;
}

.strip-book {
  font-weight: 700;
  padding-block: 0.6rem;
}

.strip-book::before {
  content: "";
  position: absolute;
  inset: 0;
}

.strip :focus-visible {
  outline-color: var(--ink);
}

.dates .sample-note {
  margin-top: 0.8rem;
}

/* Sheets: every section is pasted over the one before. */

.sheet {
  position: relative;
  margin-top: -1.5rem;
  padding-block: clamp(3.75rem, 6.5vw, 6.5rem);
  background: var(--ground);
  box-shadow: 0 -1px 0 rgba(20, 20, 20, 0.1), 0 -12px 22px -14px rgba(20, 20, 20, 0.32);
}

.sheet-light {
  background: var(--sheet-light);
}

/* News */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  row-gap: 1.25rem;
  align-items: start;
}

.news h2 {
  font-size: clamp(2rem, 3.4vw, 2.875rem);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: var(--cut);
  box-shadow: var(--lay);
  transform: rotate(-1.5deg);
}

.tag-blue { background: var(--blue); }
.tag-green { background: var(--green-deep); transform: rotate(1.2deg); }

.news h3,
.trio h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.news h3 {
  margin-top: 0.85rem;
}

.news h3 a {
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s ease-out;
}

.news h3 a:hover,
.news h3 a:focus-visible {
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.news article p:last-child {
  margin-top: 0.5rem;
  max-width: 34em;
}

.news .sample-note {
  grid-column: 2 / -1;
}

/* Shows: two halves of one folded sheet, the fold drawn between them. */

.shows h2 {
  text-align: center;
}

.fold {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.show {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding-inline: clamp(1rem, 2.5vw, 3rem);
}

.show + .show {
  border-left: 1px dashed rgba(20, 20, 20, 0.45);
}

/* Each show pairs its cut-paper piece with a stage photo; the pairs mirror across the fold. */
.diptych {
  display: grid;
  /* tall cut-paper piece beside an uncropped landscape photo */
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: 100%;
}

.show[data-show="titou"] .diptych {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.cutout {
  width: 100%;
  transition: transform 0.7s var(--ease-out);
}

.show:hover .cutout {
  transform: translateY(-6px) rotate(-1deg);
}

.show h3 {
  margin-top: 1.5rem;
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  line-height: 0.9;
}

.show-by {
  margin-top: 0.4rem;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.show-by + p {
  margin-top: 1.1rem;
  max-width: 32em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin-top: 1.5rem;
}

.facts dt {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.facts dd {
  font-weight: 600;
}

/* Photos are prints pasted on the sheet: white margin, slight tilt, caption on the margin. */

.print {
  --tilt: -1deg;
  padding: 0.5rem 0.5rem 0;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: var(--lay);
  transform: rotate(var(--tilt));
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.print:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: var(--lift);
}

.print img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.print figcaption {
  padding: 0.4rem 0.1rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: left;
  color: var(--ink-soft);
}

.news-photo {
  margin-bottom: 1.1rem;
}

.news article:nth-of-type(2) .print,
.show[data-show="titou"] .print,
.workshops-photo {
  --tilt: 0.9deg;
}

.company-photo,
.workshops-photo {
  max-width: 52rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.company-photo img {
  aspect-ratio: 16 / 9;
  object-position: center 35%;
}

.workshops-photo {
  max-width: 40rem;
}

/* Paper buttons */

.paper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  margin-top: 1.9rem;
  padding: 0 1.75rem;
  background: var(--paper);
  color: var(--on-paper);
  font-family: "Imbue", "Bodoni 72", "Didot", serif;
  font-weight: 650;
  font-size: 1.625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--cut);
  box-shadow: var(--lay);
  transform: rotate(-0.8deg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.paper-btn:hover,
.paper-btn:focus-visible {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: var(--lift);
}

.paper-red { --paper: var(--red); --on-paper: #ffffff; }
.paper-blue { --paper: var(--blue); --on-paper: #ffffff; transform: rotate(0.7deg); }

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding-block: 0.5rem;
  font-stretch: 68%;
  font-weight: 800;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--red);
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--blue);
}

/* Company */

.company h2 {
  max-width: 11em;
  margin-inline: auto;
}

.company p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

/* Workshops */

.workshops {
  padding-bottom: 0;
}

.workshops .lede {
  margin-top: 1rem;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.trio li {
  padding-inline: clamp(1rem, 2.5vw, 2.75rem);
}

.trio li + li {
  border-left: 1px dashed rgba(20, 20, 20, 0.45);
}

.trio p {
  margin-top: 0.4rem;
}

/* A frieze of cut-paper hands closes the sheet, resting on the edge of the next one. */
.frieze {
  width: min(46rem, 92vw);
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
}

.frieze img {
  width: 100%;
}

/* Support */

.support .lede {
  margin-top: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.fineprint {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Footer: the last sheet is black paper. */

.site-footer {
  --focus: var(--yellow);
  background: var(--ink);
  color: var(--ground);
  padding-bottom: 2.5rem;
}

.site-footer h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-cols p + p {
  margin-top: 0.5rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  text-decoration-color: var(--yellow);
}

.site-footer .sample-note {
  margin-top: 2.5rem;
  color: #c9c8c2;
}

/* Narrow screens */

@media (max-width: 56rem) {
  .js .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    grid-column: 1 / -1;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 0.75rem;
  }

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

  .rosace {
    order: -1;
    width: 56%;
    margin-left: auto;
    margin-right: -14%;
    margin-bottom: 0.75rem;
  }

  .news-grid,
  .fold,
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }

  .news .sample-note {
    grid-column: auto;
  }

  .show + .show {
    margin-top: 3rem;
    padding-top: 3rem;
    border-left: 0;
    border-top: 1px dashed rgba(20, 20, 20, 0.45);
  }

  .trio li + li {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-left: 0;
    border-top: 1px dashed rgba(20, 20, 20, 0.45);
  }
}

@media (max-width: 38rem) {
  .strip {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "when book"
      "show book"
      "where book";
    row-gap: 0.1rem;
    padding-block: 0.8rem;
  }

  .strip-when { grid-area: when; }
  .strip-show { grid-area: show; }
  .strip-where { grid-area: where; font-size: 0.9375rem; }
  .strip-book { grid-area: book; }

  .actions .paper-btn {
    width: 100%;
  }
}
