/* Atelier: warm and handmade. Signature details: paper grain, arched photos, handwritten notes. */

body[data-style="atelier"] {
  font-size: 1.075rem;

  /* Paper grain over the whole page, the one texture that says "printed, not rendered". */
  &::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  & h1,
  & h2,
  & h3 {
    letter-spacing: -0.01em;
  }

  & .h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  & .section-head p,
  & .about__text p,
  & .svc__item p {
    color: color-mix(in srgb, var(--c-text) 82%, transparent);
  }

  /* Buttons: soft pills */
  & .btn {
    border-radius: 999px;
    font-weight: 600;
  }

  & .btn:hover {
    transform: translateY(-2px);
  }

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

  /* Header: a stamp-like monogram and a dashed edge */
  & .hdr {
    border-bottom: 1.5px dashed color-mix(in srgb, var(--c-text) 22%, transparent);
  }

  & .hdr__mark {
    border-radius: 50%;
    box-shadow:
      0 0 0 3px var(--c-bg),
      0 0 0 4.5px var(--c-primary);
    font-size: 0.95rem;
  }

  & .hdr__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.15;
  }

  & .hdr__nav a {
    text-underline-offset: 6px;
  }

  & .hdr__nav a:hover {
    text-decoration: underline wavy var(--c-accent);
  }

  /* Hero: text beside an arched photo, with a handwritten kicker */
  & .hero {
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  }

  & .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "kicker media"
      "title media"
      "lead media"
      "actions media"
      "badges media";
    align-content: center;
    align-items: start;
  }

  & .hero__kicker {
    grid-area: kicker;
    align-self: end;
    margin: 0;
    font-family: var(--font-note);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1;
    color: var(--c-primary);
    transform: rotate(-2deg);
    transform-origin: left;
  }

  & .hero__title {
    grid-area: title;
    font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  }

  & .hero__lead {
    grid-area: lead;
    color: color-mix(in srgb, var(--c-text) 85%, transparent);
  }

  & .hero__actions {
    grid-area: actions;
    margin-top: 0.75rem;
  }

  & .hero__badges {
    grid-area: badges;
    margin-top: 0.5rem;
    font-family: var(--font-note);
    font-size: 1.85rem;
    line-height: 1.2;
    color: var(--c-text);
  }

  & .hero__badges li + li::before {
    content: "✶";
    margin-right: 1.1rem;
    font-size: 0.9rem;
    color: var(--c-accent);
  }

  & .hero__media {
    grid-area: media;
    position: relative;
    align-self: center;
  }

  & .hero__media img {
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 20px 20px;
  }

  & .hero__media::after {
    content: "";
    position: absolute;
    inset: -14px -14px 14px 14px;
    z-index: -1;
    border: 1.5px dashed color-mix(in srgb, var(--c-primary) 55%, transparent);
    border-radius: 999px 999px 24px 24px;
  }

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

    & .hero__media {
      margin: 1.5rem 1rem 0 0;
    }

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

  /* Services */
  & .svc__media img {
    border-radius: 999px 999px 16px 16px;
    aspect-ratio: 4 / 5;
  }

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

  & .svc--cards .svc__item {
    padding: 1.6rem;
    border: 1.5px dashed color-mix(in srgb, var(--c-text) 28%, transparent);
    border-radius: 20px;
  }

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

  & .svc__price {
    display: inline-block;
    margin-top: 0.6rem;
    font-family: var(--font-note);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--c-primary);
  }

  & .svc__row {
    border-bottom-style: dashed;
  }

  /* Steps: hand-drawn rings */
  & .steps__num {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 2px solid var(--c-primary);
    border-radius: 52% 46% 55% 44% / 47% 55% 45% 53%;
    color: var(--c-primary);
    font-size: 1.5rem;
  }

  /* Gallery: snapshots pinned on a board, captions by hand */
  & .gal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.25rem 1.75rem;
  }

  & .gal__item {
    width: min(100%, calc(33.333% - 1.2rem));
    padding: 0.7rem 0.7rem 0;
    background: var(--c-surface);
    box-shadow:
      0 1px 0 color-mix(in srgb, var(--c-text) 10%, transparent),
      0 18px 30px -22px rgb(0 0 0 / 0.55);
    transform: rotate(-1.4deg);
    transition: transform 0.4s ease;
  }

  & .gal__item:nth-child(2n) {
    transform: rotate(1.2deg);
  }

  & .gal__item:nth-child(3n) {
    transform: rotate(-0.5deg);
  }

  & .gal__item:hover {
    transform: rotate(0) scale(1.02);
  }

  & .gal__cap {
    padding: 0.45rem 0.2rem 0.7rem;
    font-family: var(--font-note);
    font-size: 1.45rem;
    line-height: 1.1;
  }

  & .gal__item:not(:has(.gal__cap)) {
    padding-bottom: 0.7rem;
  }

  @media (max-width: 760px) {
    & .gal__item {
      width: min(100%, calc(50% - 0.9rem));
    }
  }

  /* About */
  & .about__media img {
    border-radius: 999px 999px 20px 20px;
  }

  & .about__facts {
    padding-top: 1.75rem;
    border-top: 1.5px dashed color-mix(in srgb, var(--c-text) 25%, transparent);
  }

  & .about__facts dd {
    color: var(--c-primary);
  }

  /* Testimonials: paper notes held by tape */
  & .tst__stars {
    color: var(--c-accent);
  }

  & .tst__list {
    gap: 2.5rem 2rem;
  }

  & .tst__item {
    position: relative;
    padding: 2rem 1.75rem 1.6rem;
    background: var(--c-surface);
    box-shadow: 0 16px 28px -22px rgb(0 0 0 / 0.5);
    transform: rotate(-0.7deg);
  }

  & .tst__item:nth-child(2n) {
    transform: rotate(0.9deg);
  }

  & .tst__item::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 92px;
    height: 26px;
    background: color-mix(in srgb, var(--c-accent) 45%, transparent);
    transform: translateX(-50%) rotate(-3deg);
  }

  & .tst__item blockquote p {
    font-size: 1.08rem;
  }

  & .tst__item figcaption strong {
    font-family: var(--font-note);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--c-primary);
  }

  & .tst__item figcaption span {
    opacity: 0.7;
  }

  /* Menu */
  & .menu__cat h3 {
    text-decoration: underline wavy var(--c-accent);
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
  }

  & .menu__dots {
    border-bottom-style: dashed;
  }

  & .menu__price {
    color: var(--c-primary);
  }

  /* FAQ */
  & .faq__list details {
    border-bottom-style: dashed;
  }

  & .faq__list summary::after {
    font-family: var(--font-note);
    font-size: 2rem;
    color: var(--c-primary);
  }

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

  & .cta__inner {
    margin-inline: auto;
  }

  /* Contact */
  & .contact__list svg {
    color: var(--c-primary);
  }

  & .contact__area li {
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-primary) 11%, transparent);
  }

  & .contact__form {
    border: 1.5px dashed color-mix(in srgb, var(--c-text) 28%, transparent);
    border-radius: 24px;
  }

  & .contact__form h3 {
    font-size: 1.5rem;
  }

  & .contact__form input,
  & .contact__form textarea {
    border-radius: 12px;
  }

  & .contact__success {
    border-radius: 12px;
  }

  /* Footer */
  & .ftr {
    background: var(--c-primary);
    color: var(--c-on-primary);
  }

  & .ftr__bottom {
    border-top: 1.5px dashed color-mix(in srgb, var(--c-on-primary) 30%, transparent);
  }

  /* Motion: a slow fade, never a slide */
  html.js & .reveal {
    opacity: 0;
    transition: opacity 1s ease;
  }

  html.js & .reveal.is-visible {
    opacity: 1;
  }
}
