/* Marketing voor Coaches, the case page (cases/marketing-voor-coaches.html).

   The portfolio's voice in the colours and forms of the page I designed for the challenge. David's: the
   bold line with a cushion, Neue Haas for what he says, Satoshi for reading, the orange close. The page's:
   coffee, paper, sand and terracotta as grounds, Gilda Display for the turns of phrase, Noto Sans JP for
   the small text, pill buttons and soft cards with a low warm shadow. The odd couple: Neue Haas at its
   most rotund, next to a quiet editorial serif. */

.case--marketing-voor-coaches {
  --mvc-coffee: #3d2b1f;
  --mvc-paper: #fbf6f1;
  --mvc-sand: #efe4d7;
  --mvc-terracotta: #9c5f44; /* the page's #ac6f53, a shade deeper so white text on it reaches 4.5:1 */
  --mvc-terracotta-deep: #864d34;
  --mvc-terracotta-light: #e2b49c;
  --mvc-serif: "Gilda Display", Georgia, serif;
  --mvc-small: "Noto Sans JP", var(--font-body);
  --mvc-shadow: 0 1.5rem 3rem -1.5rem rgb(61 43 31 / 0.28), 0 0.25rem 0.75rem -0.25rem rgb(61 43 31 / 0.08);
}

.case--marketing-voor-coaches [data-theme="dark"] {
  --bg: var(--mvc-coffee);
  --fg: var(--mvc-paper);
  --fg-muted: rgb(251 246 241 / 0.7);
  --room: var(--mvc-coffee);
  --mvc-accent: var(--mvc-terracotta-light);
}

.case--marketing-voor-coaches [data-theme="light"],
.case--marketing-voor-coaches [data-theme="sand"] {
  --bg: var(--mvc-paper);
  --fg: var(--mvc-coffee);
  --fg-muted: rgb(61 43 31 / 0.7);
  --mvc-accent: var(--mvc-terracotta-deep);
  background: var(--bg);
  color: var(--fg);
}

.case--marketing-voor-coaches [data-theme="sand"] {
  --bg: var(--mvc-sand);
}

.case--marketing-voor-coaches ::selection {
  background: var(--mvc-terracotta);
  color: #fff;
}

.case--marketing-voor-coaches :focus-visible {
  outline-color: var(--mvc-accent, var(--mvc-terracotta));
  border-radius: 999px;
}

/* ------------------------------------------------------------------ Shared */

.mvc-section {
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}

.mvc-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* A turn of phrase in the page's serif, as its terracotta lines ("Op een manier die heel natuurlijk voelt.") */
.mvc-turn {
  font-family: var(--mvc-serif);
  font-weight: 400;
  color: var(--mvc-accent);
  letter-spacing: -0.01em;
}

.mvc-center {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}

.mvc-center p {
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

/* The page's pill button: terracotta, white text, fully round */
.mvc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.8em 1.5em;
  border: 1.5px solid var(--mvc-terracotta);
  border-radius: 999px;
  background: var(--mvc-terracotta);
  color: #fff;
  font-family: var(--mvc-small);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.mvc-pill:hover {
  border-color: var(--mvc-terracotta-deep);
  background: var(--mvc-terracotta-deep);
}

.mvc-pill svg {
  width: 1em;
  height: 1em;
  transition: translate 0.3s var(--ease-out);
}

.mvc-pill:hover svg {
  translate: 0.15em 0;
}

.mvc-hero .mvc-pill:hover svg {
  translate: 0 0.15em;
}

.mvc-pill--line {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.mvc-pill--line:hover {
  border-color: var(--mvc-terracotta-light);
  background: transparent;
  color: var(--mvc-terracotta-light);
}

/* The outlined pill under each card: a label here, not a button */
/* It is a label, not a button: it does not react to the pointer */
.mvc-pill--tag,
.mvc-pill--tag:hover {
  min-height: 0;
  padding: 0.45em 1.1em;
  border-color: var(--mvc-terracotta);
  background: transparent;
  color: var(--mvc-terracotta-deep);
  font-size: 0.8125rem;
  cursor: default;
}

/* Soft card: the page's white panel with its low warm shadow */
.mvc-soft {
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: var(--mvc-shadow);
}

/* ------------------------------------------------------------------ 1. The opening */

.mvc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  padding-top: clamp(6.5rem, 11vw, 9.5rem);
  text-align: center;
}

.mvc-crumbs {
  display: flex;
  gap: 0.6em;
  color: var(--fg-muted);
  font-family: var(--mvc-small);
  font-size: 0.8125rem;
}

.mvc-crumbs a {
  color: var(--fg);
  transition: color 0.2s var(--ease-out);
}

.mvc-crumbs a:hover {
  color: var(--mvc-terracotta-light);
}

.mvc-hero__name {
  width: 100%;
  margin-top: clamp(0.5rem, 1.5vw, 1.5rem);
}

.cushion--mvc svg {
  width: 72%;
  height: 72%;
}

/* The headline: David's words in Neue Haas, the turn in the page's serif and its terracotta */
.mvc-hero__statement {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.2vw, 4.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.mvc-hero__statement span:last-child {
  font-family: var(--mvc-serif);
  letter-spacing: -0.015em;
  color: var(--mvc-terracotta-light);
}

.mvc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.mvc-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.25rem;
  max-width: 62rem;
  margin: 0.5rem 0 0;
  font-family: var(--mvc-small);
  font-size: 0.875rem;
}

/* The facts as the page's soft pills */
.mvc-facts div {
  display: flex;
  gap: 0.5em;
  padding: 0.55em 1.1em;
  border: 1px solid rgb(251 246 241 / 0.18);
  border-radius: 999px;
  background: rgb(251 246 241 / 0.07);
}

.mvc-facts dt {
  color: var(--fg-muted);
}

.mvc-facts dt::after {
  content: ":";
}

.mvc-facts dd {
  margin: 0;
}

/* The large soft card under the hero, which on her page holds the video */
.mvc-cover {
  width: 100%;
  margin: clamp(1.5rem, 4vw, 3.5rem) 0 0;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.mvc-cover__card {
  position: relative;
  padding: clamp(1.25rem, 4.5vw, 4.5rem) clamp(1.25rem, 9vw, 9rem) clamp(2rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  border-radius: clamp(1.25rem, 2.6vw, 2.5rem);
  background:
    radial-gradient(80% 90% at 30% 10%, #fff, transparent 70%),
    var(--mvc-sand);
  box-shadow: 0 2.5rem 5rem -2.5rem rgb(0 0 0 / 0.55);
}

.mvc-screen {
  overflow: hidden;
  background: #fff;
  box-shadow: var(--mvc-shadow);
}

.mvc-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.mvc-screen--desktop {
  width: 88%;
  border-radius: clamp(0.6rem, 1.2vw, 1.1rem);
}

/* The window bar keeps the portfolio's three tiny cushions, in the page's sand */
.mvc-screen__bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: var(--mvc-paper);
  border-bottom: 1px solid rgb(61 43 31 / 0.08);
}

.mvc-screen__bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-cushion);
  background: rgb(172 111 83 / 0.45);
}

.mvc-screen--phone {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 4vw, 4rem);
  width: clamp(5.5rem, 16%, 13rem);
  padding: 0.45rem;
  border-radius: clamp(1.1rem, 2.4vw, 2.25rem);
  background: var(--mvc-coffee);
}

.mvc-screen--phone img {
  border-radius: clamp(0.8rem, 1.9vw, 1.8rem);
}

.mvc-cover figcaption {
  margin-top: 1rem;
  color: var(--fg-muted);
  font-family: var(--mvc-small);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ 2. The brief */

.mvc-brief {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  align-items: center;
}

.mvc-brief__media {
  grid-column: 1 / 7;
  margin: 0;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: var(--mvc-shadow);
}

.mvc-brief__media img {
  display: block;
  width: 100%;
  height: auto;
}

.mvc-brief__text {
  grid-column: 8 / 13;
  display: grid;
  gap: 1rem;
}

.mvc-brief__text .mvc-title {
  margin-bottom: 0.75rem;
}

.mvc-brief__text p {
  max-width: 34rem;
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.6;
}

.mvc-brief__text .mvc-turn {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  line-height: 1.1;
}

/* ------------------------------------------------------------------ 3. The rules */

.mvc-rules__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.mvc-rules__head .mvc-title {
  grid-column: 1 / 6;
}

.mvc-rules__big {
  grid-column: 6 / 13;
  margin: 0;
  font-family: var(--mvc-serif);
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.mvc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mvc-cards li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  border-radius: 1.5rem;
  background: var(--mvc-paper);
  box-shadow: var(--mvc-shadow);
}

.mvc-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--mvc-terracotta);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvc-cards h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 2.125rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.mvc-cards p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.55;
}

.mvc-rules__close {
  display: grid;
  max-width: 40rem;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  font-family: var(--mvc-serif);
  font-size: clamp(1.625rem, 2.8vw, 2.75rem);
  line-height: 1.15;
  text-align: center;
  color: var(--mvc-accent);
  text-wrap: balance;
}

.mvc-rules__close span:first-child {
  color: var(--fg);
}

/* ------------------------------------------------------------------ 4. What I did */

.mvc-did__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2.25rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.mvc-did__card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.75rem;
  padding: clamp(0.75rem, 1.2vw, 1.1rem) clamp(0.75rem, 1.2vw, 1.1rem) clamp(1.5rem, 2.4vw, 2.25rem);
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: var(--mvc-shadow);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.mvc-did__card:hover {
  translate: 0 -0.25rem;
}

.mvc-did__card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 1.15rem;
}

.mvc-did__card h3,
.mvc-did__card p {
  padding-inline: clamp(0.5rem, 1.2vw, 1.25rem);
}

.mvc-did__card h3 {
  margin: 0;
  font-family: var(--mvc-serif);
  font-size: clamp(1.5rem, 2.1vw, 2.125rem);
  font-weight: 400;
  line-height: 1.1;
}

.mvc-did__card p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.55;
}

.mvc-did__card .mvc-pill--tag {
  margin: 0.5rem 0 0 clamp(0.5rem, 1.2vw, 1.25rem);
}

/* ------------------------------------------------------------------ 6. The result */

/* The terracotta block of "Even zelf ervaren": everything centred and white */
.mvc-block {
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 6vw, 6rem);
  border-radius: 2rem;
  background: var(--mvc-terracotta);
  color: #fff;
  text-align: center;
  box-shadow: var(--mvc-shadow);
}

.mvc-block .mvc-title {
  font-family: var(--mvc-serif);
  font-size: clamp(2.25rem, 4.4vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.mvc-quote {
  margin: 0;
}

.mvc-quote blockquote {
  margin: 0;
}

.mvc-quote blockquote p {
  max-width: 26ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mvc-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 1.5rem;
  font-family: var(--mvc-small);
  font-size: 0.9375rem;
  color: #fff;
}

.mvc-quote figcaption b {
  color: #fff;
}

.mvc-stars {
  display: inline-flex;
  gap: 0.15rem;
}

.mvc-stars svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: #fff;
}

/* "Waarom dit zo goed werkt": the heading in the serif and a list with checks over hairlines */
.mvc-why {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
  max-width: 64rem;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
}

.mvc-why__title {
  grid-column: 1 / 6;
  margin: 0;
  font-family: var(--mvc-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.mvc-checks {
  grid-column: 6 / 13;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mvc-small);
}

.mvc-checks li {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(61 43 31 / 0.14);
  color: var(--fg-muted);
}

.mvc-checks li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.75rem;
  margin: 0.15rem 0.35rem 0 0.25rem;
  border-right: 1.5px solid var(--mvc-terracotta);
  border-bottom: 1.5px solid var(--mvc-terracotta);
  rotate: 40deg;
}

/* ------------------------------------------------------------------ 7. Next project */

.mvc-next {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem var(--gutter);
  align-items: center;
}

.mvc-next__text {
  grid-column: 1 / 6;
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}

.mvc-next__name {
  display: grid;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

/* The turn before the name, in the page's serif */
.mvc-next__name span {
  margin-bottom: 0.3em;
  font-family: var(--mvc-serif);
  font-size: 0.3em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mvc-terracotta-light);
}

.mvc-next__text p:not([class]) {
  max-width: 34ch;
  margin: 0 0 0.5rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.mvc-next__poster {
  grid-column: 7 / 13;
  display: block;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.6);
}

.mvc-next__poster img {
  display: block;
  width: 100%;
  height: auto;
  transition: scale 0.8s var(--ease-out);
}

.mvc-next__poster:hover img {
  scale: 1.03;
}

@media (max-width: 960px) {
  .mvc-brief__media,
  .mvc-brief__text,
  .mvc-rules__head .mvc-title,
  .mvc-rules__big,
  .mvc-why__title,
  .mvc-checks,
  .mvc-next__text,
  .mvc-next__poster {
    grid-column: 1 / -1;
  }

  .mvc-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  }

@media (max-width: 700px) {
  .mvc-hero__statement {
    font-size: 8.6vw;
  }

  .mvc-facts {
    display: grid;
    gap: 0.4rem;
  }

  .mvc-facts div {
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 1.25rem;
  }

  .mvc-cover__card {
    padding: 1rem 1rem 1.75rem;
  }

  .mvc-screen--phone {
    right: 0.75rem;
    bottom: 0.9rem;
    width: 27%;
    padding: 0.25rem;
  }

  .mvc-did__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mvc-hero .mvc-pill {
    flex: 1 1 100%;
  }
}

/* Body copy without a word left alone on its last line */
.case--marketing-voor-coaches p {
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ The page, length by length, as one still sheet

   The opening large and the four lengths after it, in the page's soft cards; labels as its terracotta pills
   in the serif */
.mosaic--mvc {
  --mosaic-radius: 1.25rem;
  --mosaic-shadow: var(--mvc-shadow);
  --mosaic-chip-bg: var(--mvc-terracotta);
}

.mosaic--mvc .mosaic__label {
  font-family: var(--mvc-serif);
  font-size: 1rem;
  font-weight: 400;
}

@media (min-width: 701px) {
  .mosaic--mvc {
    --mosaic-cols: repeat(4, minmax(0, 1fr));
    --mosaic-areas: "a a b c" "a a d e";
    --mosaic-row: clamp(13rem, 20vw, 21rem);
  }

  .mosaic--mvc .mosaic__tile:nth-child(1) { grid-area: a; }
  .mosaic--mvc .mosaic__tile:nth-child(2) { grid-area: b; }
  .mosaic--mvc .mosaic__tile:nth-child(3) { grid-area: c; }
  .mosaic--mvc .mosaic__tile:nth-child(4) { grid-area: d; }
  .mosaic--mvc .mosaic__tile:nth-child(5) { grid-area: e; }
}
