/* atelier — «Ремесло»: a workshop's site. A bookish serif large and quiet with one italic word, a kicker led by a thin
   line, square buttons and the second action a word underlined, thin rules between the sections and a lot of air;
   the photographs tall, in a frame of a line, beside the words.

   In the design layer: over all of Kit's base whatever the selectors, under a site's own CSS. Colours only by their
   role (var(--foreground), var(--primary)…) — the colour set the owner picks drives them, and a band's colour set
   inside its band. Its second colour is --brand (--accent is a hover's ground). */
@layer design {

.design-atelier {
  --pill: 0;
  --head-gap: 3.5rem;
  /* the font pair's sizes (the cormorant pair's; the others below) */
  --h1: 6rem; --h2: 4.125rem; --h3: 2rem; --h-weight: 500; --h-track: -.015em;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.design-atelier.fonts-playfair { --h1: 4.875rem; --h2: 3.375rem; --h3: 1.6875rem; --h-track: -.02em; }
.design-atelier.fonts-noto     { --h1: 5.375rem; --h2: 3.625rem; --h3: 1.8125rem; --h-weight: 400; --h-track: -.02em; }
@media (max-width: 1023px) {
  .design-atelier { --head-gap: 3rem; --h1: 4.0625rem; --h2: 3.125rem; --h3: 1.75rem; }
  .design-atelier.fonts-playfair { --h1: 3.3125rem; --h2: 2.5625rem; --h3: 1.5rem; }
  .design-atelier.fonts-noto { --h1: 3.625rem; --h2: 2.75rem; --h3: 1.625rem; }
}
@media (max-width: 767px) { .design-atelier { --head-gap: 2rem; --h1: 2.875rem; --h2: 2.25rem; --h3: 1.4375rem; font-size: 1rem; } }

/* The type: the display serif at the pair's weight, large and close-set; its italic at 400, in the second colour, for
   the word set apart. Only a section's heading is set large — a record's «Description», the booking card's and the
   sheet's headings keep the base's sizes (h3 with a size of its own too). */
.design-atelier :is(h1, h2, h3) { font-weight: var(--h-weight); letter-spacing: var(--h-track); }
.design-atelier main h1 { font-size: calc(var(--h1) * .7); line-height: 1.05; }
.design-atelier main .hero h1 { font-size: var(--h1); }
.design-atelier main .section-head h2 { font-size: var(--h2); line-height: 1.05; }
.design-atelier main h3:not([class*="text-"]) { font-family: var(--font-display); font-weight: var(--h-weight); font-size: calc(var(--h3) * .82); line-height: 1.15; letter-spacing: 0; }
/* A small h3 (a label such as the sheet's «Date», «Time») in the serif at 14 px is too thin: the text's face at 600. */
.design-atelier h3[class*="text-sm"] { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.design-atelier :is(h1, h2, h3) em { font-style: italic; font-weight: 400; color: var(--brand); }

/* The kicker: small spaced capitals led by a thin line. */
.design-atelier .eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: .75rem; font-weight: 500; letter-spacing: .18em; }
.design-atelier .eyebrow::before { content: ''; flex: none; width: 2.75rem; height: 1px; background: currentColor; }

/* The buttons: square, 52 px, the text's face at 600. The second action is a word underlined. */
.design-atelier :where(button, [role=button], label) { --btn-radius: 0; --btn-weight: 600; --btn-text: .9375rem; --btn-text-lg: .9375rem; --btn-tracking: .01em; --btn-pad-lg: 1.75rem; }
.design-atelier main :is(button, [role=button]).outline:not(.sm), .design-atelier main :is(.products, .rentals, .related) .card :is(button, [role=button]) {
  --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--foreground);
  min-height: 0; padding: 0 0 .25rem; border-width: 0 0 1px; border-color: var(--foreground); font-weight: 500; }
.design-atelier main :is(.products, .rentals, .related) .card :is(button, [role=button]) { width: auto; align-self: flex-start; }
.design-atelier main :is(:is(button, [role=button]).outline:not(.sm), :is(.products, .rentals, .related) .card :is(button, [role=button])):hover { --btn-bg: transparent; --btn-ink: var(--brand); border-color: var(--brand); }

/* Thin rules between the home page's sections on the page's own ground. */
.design-atelier main > .section.palette-base[class*="home-"] + .section.palette-base[class*="home-"] { border-top: 1px solid var(--border); }

/* The first screen: the photo beside the words in a double frame — a line round it with the ground inside, another
   line further in. */
.design-atelier .hero--side .hero-photo { padding: 1.125rem; background: var(--background); box-shadow: inset 0 0 0 1px var(--border);
  outline: 1px solid var(--border); outline-offset: -.625rem; border-radius: 0; }
@media (min-width: 768px) { .design-atelier .hero--side .hero-photo { inset-block: 2.5rem; right: 4rem; height: auto; } }
.design-atelier .hero .lead { max-width: 31rem; }

/* Cards: no plates — the photo in a frame of a line at 12 px (the words' colour when pointed at), the name in the
   serif under it, the price in the text's face with lining figures. */
.design-atelier :is(.products, .team, .rentals, .related) .card { border: 0; background: none; overflow: visible; }
.design-atelier :is(.products, .rentals, .related) .card > figure { padding: .75rem; background: var(--background); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .2s; }
.design-atelier :is(.products, .rentals, .related) .card:hover > figure { box-shadow: inset 0 0 0 1px var(--foreground); }
.design-atelier :is(.products, .rentals, .related) .card > div { padding-inline: 0; padding-top: 1rem; }
/* The serif's figures are old-style: the cart's sums are set in the text's face like the prices. */
.design-atelier .cart-drawer :is(span, strong)[class*="--font-display"] { font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; }
.design-atelier .price-amount .price { font-family: var(--font-body); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

/* The services and the visits: an index — roman numbers in the serif's italic, the name in the serif, no thumbnail. */
.design-atelier :is(.services, .bookings) [data-slot="offer-grid"].border-t { counter-reset: offer; }
.design-atelier :is(.services, .bookings) [data-slot="offer-grid"].border-t > article { counter-increment: offer; padding-block: 1.5rem; }
.design-atelier :is(.services, .bookings) [data-slot="offer-grid"].border-t > article::before { content: counter(offer, lower-roman) "."; flex: none; width: 3rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--muted-foreground); }
.design-atelier :is(.services, .bookings) [data-slot="offer-grid"].border-t > article > img { display: none; }

/* Reasons and steps under their rules: roman numbers in the serif's italic. */
.design-atelier :is(.features--ruled, .steps--ruled) > .grid { counter-reset: step; }
.design-atelier :is(.features--ruled, .steps--ruled) > .grid > * { counter-increment: step; border-top-color: var(--foreground); }
.design-atelier :is(.features--ruled, .steps--ruled) > .grid > * > [aria-hidden="true"]:first-child { font-size: 0; }
.design-atelier :is(.features--ruled, .steps--ruled) > .grid > * > [aria-hidden="true"]:first-child::before { content: counter(step, lower-roman) ".";
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.625rem; color: var(--muted-foreground); }

/* The team: no cards — a rule of the words' colour over each, the name in the serif. */
.design-atelier .team .card { padding-top: 1.2rem; border-top: 1px solid var(--foreground); }
.design-atelier .team .card > div, .design-atelier .team .card > a { margin-inline: 0; }

/* The reviews: no cards — large in the serif's italic, the name small under it. */
.design-atelier .testimonials .card { border: 0; background: none; padding: 0; }
.design-atelier .testimonials blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.625rem; line-height: 1.3; }
.design-atelier .testimonials blockquote::before { content: '«'; }
.design-atelier .testimonials blockquote::after { content: '»'; }
.design-atelier .testimonials figcaption > span:first-child:not(:only-child) { display: none; }

/* The call to action: on the band's ground with a line inset along it, the words on a plate of the page's ground. */
.design-atelier .cta--boxed::before { content: ''; position: absolute; inset: .875rem 1.875rem; z-index: -1; box-shadow: inset 0 0 0 1px var(--border); pointer-events: none; }
.design-atelier .cta--boxed .container > div { border: 0; box-shadow: none; }

/* The catalogue: the categories as words, the chosen one underlined in the words' colour; the order as words. */
.design-atelier :is(.filters, .catalog-cats) :is(button, [role=button]).sm { --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--text); min-height: 0; padding: 0 0 .375rem; border-width: 0 0 1px; font-size: .9375rem; font-weight: 400; }
.design-atelier :is(.filters, .catalog-cats) :is(button, [role=button]).sm:hover { --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--foreground); }
.design-atelier :is(.filters, .catalog-cats) :is(button, [role=button]).sm:is([aria-pressed=true], [aria-current]:not([aria-current=false])) { --btn-bg: transparent; --btn-ink: var(--foreground); border-color: var(--foreground); }
.design-atelier :is(.filters, .catalog-cats) :is(button, [role=button]).sm > .count { vertical-align: super; font-size: .6875rem; }

/* The fields: a line under the words, no box; a long text and a choice keep their frame; the messengers square. */
.design-atelier main a.rounded-full { border-radius: 0; }
.design-atelier main input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=submit], [type=button]):not([role=group] *) {
  border-width: 0 0 1px; background-color: transparent; padding-inline: .125rem; }
.design-atelier main input:not([role=group] *):focus { box-shadow: none; border-color: var(--foreground); }

/* The header: the name in the serif's capitals spaced wide; the menu plain words, the current one underlined. */
.design-atelier .brand__word { font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.1; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 767px) { .design-atelier [data-header] .brand__word { font-size: 1.1875rem; letter-spacing: .14em; } }
.design-atelier :is(a, summary).link-nav { padding-inline: .875rem; font-size: .9375rem; font-weight: 400; color: var(--foreground); }
.design-atelier :is(a, summary).link-nav:hover { background: none; color: var(--brand); }
.design-atelier :is(a, summary).link-nav:is([aria-current]:not([aria-current=false]), .is-active)::after { left: .875rem; right: .875rem; bottom: .5rem; height: 1px; background: currentColor; }

/* The footer — the sign: the name very large across the page, centred over the columns under a rule; the titles small
   spaced capitals. */
.design-atelier [data-footer] .container > .grid > :first-child { grid-column: 1 / -1; justify-items: center; gap: 2rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border); text-align: center; }
.design-atelier [data-footer] .container > .grid > :first-child > p { max-width: 35rem; }
.design-atelier [data-footer] .brand__word { font-size: clamp(3rem, 13vw, 12rem); line-height: .95; letter-spacing: .03em; white-space: normal; }
.design-atelier [data-footer] h2 { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); }

}
