/* Éditorial: a magazine. Signature details: masthead header, giant Bodoni headline,
   italic serif kickers instead of capital labels, drop cap, one big pull quote. No boxes, no rounded corners. */

body[data-style="editorial"] {
  font-size: 1.15rem;
  line-height: 1.55;

  & h1,
  & h2 {
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  & h3 {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.005em;
  }

  & .h2 {
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1;
  }

  /* Section heads read like a spread: title on the left, standfirst on the right, under a rule */
  & .section-head {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0.75rem 3rem;
    align-items: end;
    max-width: none;
    padding-top: 1.1rem;
    border-top: 1px solid var(--c-text);
  }

  & .section-head .h2 {
    margin: 0;
  }

  & .section-head p {
    margin: 0;
    font-style: italic;
    color: color-mix(in srgb, var(--c-text) 80%, transparent);
  }

  @media (max-width: 760px) {
    & .section-head {
      grid-template-columns: 1fr;
    }
  }

  & .btn {
    border-radius: 0;
    padding: 0.85rem 1.45rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  & .btn--ghost {
    border-width: 1px;
  }

  & .btn:hover {
    box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--c-text) 10%, transparent);
  }

  /* Masthead: the business name set large between rules, navigation underneath */
  & .hdr {
    position: relative;
  }

  & .hdr__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      ". brand actions"
      "nav nav nav";
    align-items: center;
    gap: 0;
    padding-top: 0.9rem;
    border-bottom: 1px solid var(--c-text);
  }

  & .hdr__brand {
    grid-area: brand;
    justify-self: center;
  }

  & .hdr__mark {
    display: none;
  }

  & .hdr__name {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
  }

  & .hdr__actions {
    grid-area: actions;
    justify-self: end;
  }

  & .hdr__phone {
    padding: 0;
    border-bottom: 1px solid currentColor;
    background: none;
    color: var(--c-text);
    font-weight: 500;
  }

  & .hdr__phone svg {
    display: none;
  }

  & .hdr__nav {
    grid-area: nav;
    margin: 0.8rem 0 0;
    padding-block: 0.55rem;
    border-top: 1px solid color-mix(in srgb, var(--c-text) 22%, transparent);
  }

  & .hdr__nav ul {
    justify-content: center;
    gap: 2.2rem;
  }

  & .hdr__nav a {
    font-style: italic;
  }

  & .hdr__nav a:hover {
    color: var(--c-accent);
  }

  @media (max-width: 960px) {
    & .hdr__inner {
      grid-template-columns: 1fr auto;
      grid-template-areas: "brand actions";
      padding-bottom: 0.6rem;
    }

    & .hdr__brand {
      justify-self: start;
    }

    & .hdr__name {
      font-size: 1.5rem;
      text-align: left;
    }

    & .hdr__nav {
      margin: 0;
      border-top: 1px solid var(--c-text);
    }

    & .hdr__nav ul {
      justify-content: flex-start;
    }
  }

  @media (max-width: 560px) {
    & .hdr__phone {
      padding: 0.4rem;
      border: 0;
    }

    & .hdr__phone svg {
      display: block;
    }
  }

  /* Hero: a cover. Headline across the page, standfirst and actions side by side, a wide photograph below */
  & .hero {
    padding-block: clamp(2rem, 5vw, 4rem) 0;
  }

  & .hero__inner {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas:
      "kicker kicker"
      "title title"
      "lead actions"
      "media media"
      "badges badges";
    gap: 1.5rem 3rem;
  }

  & .hero__kicker {
    grid-area: kicker;
    margin: 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--c-accent);
  }

  & .hero__title {
    grid-area: title;
    font-size: clamp(3rem, 8.4vw, 7.4rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
  }

  & .hero__lead {
    grid-area: lead;
    max-width: 34rem;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  }

  & .hero__actions {
    grid-area: actions;
    align-self: end;
    justify-content: flex-end;
  }

  & .hero__media {
    grid-area: media;
    margin-top: 1rem;
  }

  & .hero__media img {
    aspect-ratio: 21 / 9;
  }

  & .hero__badges {
    grid-area: badges;
    font-style: italic;
    font-size: 1rem;
    color: color-mix(in srgb, var(--c-text) 75%, transparent);
  }

  & .hero__badges li + li::before {
    content: "·";
    margin-right: 1.25rem;
  }

  @media (max-width: 760px) {
    & .hero__inner {
      grid-template-columns: 1fr;
      grid-template-areas: "kicker" "title" "lead" "actions" "media" "badges";
    }

    & .hero__actions {
      justify-content: flex-start;
    }

    & .hero__media img {
      aspect-ratio: 4 / 3;
    }
  }

  /* Services */
  & .svc__media img {
    aspect-ratio: 3 / 4;
  }

  & .svc__body {
    padding-top: 1rem;
  }

  & .svc--cards .svc__item {
    padding-top: 1.2rem;
    border-top: 1px solid var(--c-text);
  }

  & .svc__title {
    font-size: 1.3rem;
  }

  & .svc__price {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    font-weight: 500;
    color: var(--c-accent);
  }

  /* Steps: oversized italic numerals */
  & .steps__num {
    font-style: italic;
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--c-accent);
  }

  /* Gallery: an asymmetric spread, captions under the pictures */
  & .gal {
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem 1.5rem;
    align-items: start;
  }

  & .gal__item {
    grid-column: span 2;
    overflow: visible;
  }

  & .gal--3 .gal__item:first-child {
    grid-column: span 6;
  }

  & .gal--3 .gal__item:not(:first-child) {
    grid-column: span 3;
  }

  & .gal--4 .gal__item:nth-child(1),
  & .gal--4 .gal__item:nth-child(4),
  & .gal--5 .gal__item:nth-child(1),
  & .gal--6 .gal__item:nth-child(1) {
    grid-column: span 4;
  }

  & .gal--6 .gal__item:nth-child(n + 3) {
    grid-column: span 3;
  }

  & .gal__item img {
    aspect-ratio: 4 / 3;
  }

  & .gal__cap {
    margin-top: 0.6rem;
    font-style: italic;
    font-size: 1rem;
    color: color-mix(in srgb, var(--c-text) 75%, transparent);
  }

  @media (max-width: 760px) {
    & .gal {
      grid-template-columns: 1fr 1fr;
    }

    & .gal .gal__item {
      grid-column: span 1;
    }

    & .gal .gal__item:first-child {
      grid-column: span 2;
    }
  }

  /* About: drop cap */
  & .about__text p:first-of-type::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-family: var(--font-heading);
    font-size: 4.4em;
    font-weight: 500;
    line-height: 0.8;
    color: var(--c-accent);
  }

  & .about__facts {
    gap: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-text);
  }

  & .about__facts div {
    padding-inline: 1.25rem;
    border-left: 1px solid color-mix(in srgb, var(--c-text) 22%, transparent);
  }

  & .about__facts div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  & .about__facts dd {
    font-weight: 500;
  }

  & .about__facts dt {
    font-style: italic;
  }

  /* Testimonials: the first one becomes a pull quote */
  & .tst__summary {
    grid-column: 2;
    font-style: italic;
  }

  & .tst__score {
    font-style: normal;
  }

  & .tst__list {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }

  & .tst__item:first-child {
    grid-column: 1 / -1;
  }

  & .tst__item blockquote p::before {
    content: "« ";
  }

  & .tst__item blockquote p::after {
    content: " »";
  }

  & .tst__item:first-child blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  & .tst__item:not(:first-child) blockquote p {
    font-size: 1.2rem;
  }

  & .tst__item figcaption span {
    font-style: italic;
  }

  @media (max-width: 760px) {
    & .tst__list {
      grid-template-columns: 1fr;
    }
  }

  /* Menu: a printed carte */
  & .menu__cat h3 {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--c-text);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    font-weight: 500;
  }

  & .menu__dots {
    border-bottom: 1px dotted color-mix(in srgb, var(--c-text) 45%, transparent);
  }

  & .menu__price {
    font-weight: 500;
  }

  & .menu__desc {
    font-style: italic;
  }

  /* FAQ */
  & .faq__list details {
    border-bottom-color: color-mix(in srgb, var(--c-text) 30%, transparent);
  }

  & .faq__list summary {
    font-weight: 500;
  }

  & .faq__list summary::after {
    font-family: var(--font-heading);
  }

  /* Call to action */
  & .cta {
    text-align: center;
  }

  & .cta__inner {
    margin-inline: auto;
  }

  & .cta .h2 {
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    font-style: italic;
  }

  /* Contact: underlined fields, like a form in print */
  & .contact__list svg {
    color: var(--c-accent);
  }

  & .contact__area li {
    border: 1px solid color-mix(in srgb, var(--c-text) 35%, transparent);
    font-style: italic;
  }

  & .contact__form {
    border: 1px solid var(--c-text);
    background: transparent;
  }

  & .contact__form h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 500;
  }

  & .contact__form label span {
    font-style: italic;
    font-weight: 400;
  }

  & .contact__form input,
  & .contact__form textarea {
    padding-inline: 0;
    border: 0;
    border-bottom: 1px solid var(--c-text);
    background: transparent;
  }

  /* Footer */
  & .ftr {
    border-top: 3px double var(--c-text);
  }

  & .ftr__name {
    font-size: 2.2rem;
    font-weight: 500;
  }

  & .ftr__title {
    font-style: italic;
    font-weight: 400;
  }

  & .ftr__bottom {
    border-top: 1px solid color-mix(in srgb, var(--c-text) 25%, transparent);
  }
}
