@layer theme.base {
/* The starter sites' theme: the page at a reading width, the logo and the menu on one line,
   a quiet footer, and room between the parts of a page. Colours and fonts are tokens. */

/* the logo on the left, the menu and the languages on the right */
.fragment-header {
  border-bottom: 1px solid var(--color-line);
  border-top: 4px solid var(--color-primary);
}
.fragment-header > .row {
  align-items: center;
  gap: 0.5rem var(--space-lg);
  padding-block: var(--space);
  /* its own width, centred when the header is a band */
  margin-inline: auto;
}
.fragment-header > .row > * { width: auto; flex: 0 1 auto; padding-inline: 0; }
.fragment-header > .row > :first-child { margin-inline-end: auto; }
.fragment-header .site-logo { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-fg); text-decoration: none; }
.fragment-header .nav__list { gap: 0.25rem 1.25rem; }
.fragment-header .nav__link { text-decoration: none; color: var(--color-fg); }
.fragment-header .nav__link[aria-current="page"] { color: var(--color-primary); font-weight: 600; }

.fragment-footer {
  margin-top: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.95rem;
}
.fragment-footer p { margin: 0; }

/* a heading sits close to what it introduces */
main h2 { margin-top: var(--space-lg); }
main .row > :has(> h2) + * > :first-child { margin-top: 0; }

/* a plain teaser: its picture beside its text on wide screens */
@media (min-width: 48rem) {
  .teaser:not(.teaser--hero):not(.teaser--featured):has(.teaser__media) {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-lg);
    align-items: center;
  }
  .teaser.teaser--image-right:not(.teaser--hero):not(.teaser--featured):has(.teaser__media) { grid-template-columns: 3fr 2fr; }
}
.teaser__title { font-size: 1.4rem; margin-top: 0.25em; }

/* the paragraph under a page's title opens the page: larger and wider */
main .text > h1 + p { font-size: 1.25rem; line-height: 1.55; max-width: 44rem; }

/* the menu on a phone (below the grid's md): the logo, the languages and the Menu button on one
   line; the menu opens as a panel across the screen under the header */
@media (max-width: 767.98px) {
  .fragment-header { position: relative; }
  .fragment-header > .row { flex-wrap: nowrap; gap: 0.75rem; }
  .fragment-header > .row > :has(.nav) { order: 3; }
  .fragment-header .nav--enhanced .nav__list {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 20;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .fragment-header .nav--enhanced .nav__item { border-bottom: 1px solid var(--color-line); }
  .fragment-header .nav--enhanced .nav__link { display: block; padding: 0.9rem 0; font-size: 1.15rem; }
  .fragment-header .nav--enhanced.last-button .nav__item:last-child { border-bottom: 0; padding-top: 1rem; }
  .fragment-header .nav--enhanced.last-button .nav__item:last-child .nav__link { text-align: center; padding: 0.8rem 1rem; }
  .fragment-header .nav__toggle { border-radius: 999px; }
}

/* columns of text, each under its own heading */
.columns { gap: var(--space-lg); }
.columns strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.25rem; }

/* a gallery fills its row: its photos share the width */
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(40%, 12rem), 1fr)); gap: var(--space); margin-block: var(--space) var(--space-lg); }
.gallery img { aspect-ratio: 4 / 5; }

/* a header menu is one line of sections: a page's own subpages are not shown under it */
.fragment-header .nav__sublist { display: none; }

}

@layer theme.base {
/* The starters' variants, on any theme that extends clean: a cover photo hero, colour bands across
   the whole width, stats and quote cards, a dark footer, a button at the end of the menu. Their
   colours and fonts are the theme's tokens (color-dark, color-accent, color-surface, font-heading). */

/* nav (last-button): the last item of the menu as a button (book, contact) */
.nav.last-button .nav__item:last-child .nav__link { background: var(--color-dark); color: #fff; padding: 0.5em 1.1em; border-radius: 999px; }

/* bands: a colour behind a container (its layout's width a band: the colour edge to edge, its content at
   the page width) or behind one component, in its own box */
.band-dark, .band-soft, .band-accent {
  background: var(--band);
  margin-block: 0 !important;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
/* a band in a band (a component's in its container's) takes the outer one's colour and room */
:is(.band-dark, .band-soft, .band-accent) :is(.band-dark, .band-soft, .band-accent) { background: none; padding-block: 0; }
.band-dark { --band: var(--color-dark); color: #f3efe6; }
.band-soft { --band: var(--color-surface); }
.band-accent { --band: var(--color-accent); color: var(--color-dark); }
/* the page's muted gray is made for the page's background: on a band, secondary text takes the band's own text color */
:is(.band-dark, .band-accent) { --color-muted: currentColor; }
.band-dark a:not(.button) { color: inherit; }
.band-dark .button { background: #f3efe6; color: var(--color-dark); }
.band-accent .button { background: var(--color-dark); color: #fff; }
/* a title band runs into the band under it */
.title.band-soft, .title.band-dark { padding-bottom: 0; }

/* hero (cover): the photo across the whole width, darkened, the text on it */
main:has(.hero--cover) { padding-top: 0; }
.hero.hero--cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: min(86vh, 48rem);
  padding-block: var(--space-lg) clamp(3rem, 2rem + 4vw, 6rem);
  /* its text on the page's reading column, however wide its box (edge to edge in its container) */
  padding-inline: max(var(--space), calc((100% - var(--max-width)) / 2));
  color: #fff;
}
.hero--cover .hero__media { position: absolute; inset: 0; z-index: -1; }
.hero--cover .hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero--cover .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--color-dark) 85%, transparent) 0%, color-mix(in srgb, var(--color-dark) 55%, transparent) 45%, color-mix(in srgb, var(--color-dark) 15%, transparent) 100%); }
.hero--cover .hero__body { max-width: 38rem; }
.hero--cover .hero__body p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); }
.hero--cover .button { background: #fff; color: var(--color-dark); }

/* section titles: centered, with room */
.title.section { text-align: center; text-wrap: balance; margin-block: var(--space-lg) var(--space); }

/* facts (stats): large numbers in cards */
.facts.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space); margin-block: var(--space-lg); }
.facts.stats .facts__item { background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.facts.stats .facts__item:first-child { background: var(--color-accent); --color-muted: currentColor; }
.facts.stats .facts__value { margin: 0; font-family: var(--font-heading); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; }
.facts.stats .facts__term { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--color-muted); }

/* cards: soft, with the picture at the top edge */
.cards__item { background: #fff; border: 0; border-radius: var(--radius); padding: 0 0 1.4rem; overflow: hidden; box-shadow: 0 1px 2px rgba(19, 32, 27, 0.06); }
.cards__item img { border-radius: 0; aspect-ratio: 4 / 3; }
.cards__item > :not(img):not(picture) { margin-inline: 1.4rem; }
.cards__item .button { margin-left: 1.4rem; background: transparent; color: var(--color-primary); padding: 0; border-radius: 0; }
.cards__item .button::after { content: " →"; }

/* cards (quotes): what clients say, with their photo */
.cards.quotes .cards__item { padding: 1.6rem; display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.25rem 1rem; align-items: center; }
.cards.quotes .cards__item img { width: 3.5rem; height: 3.5rem; aspect-ratio: 1; border-radius: 50%; grid-row: 2; }
.cards.quotes .cards__item > * { margin: 0; }
.cards.quotes .cards__body { display: contents; }
.cards.quotes .cards__body > p:first-child { grid-column: 2; grid-row: 2; }
.cards.quotes .cards__body > p:first-child strong { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.cards.quotes .cards__body > p:last-child { grid-column: 1 / -1; grid-row: 1; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.4; margin-bottom: 1.2rem; }

/* teaser in a dark band: the text and its picture side by side */
.teaser.band-dark .teaser__media img { border-radius: var(--radius); }
.teaser.band-dark .teaser__pretitle { color: var(--color-accent); }
.teaser__title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.12; }

/* the call to action: the title, a line and the button, centered */
.cta { border-radius: var(--radius); }
.cta.band-accent, .cta.band-dark { border-radius: 0; flex-direction: column; justify-content: center; text-align: center; gap: 0.5rem; }
.cta.band-accent > *, .cta.band-dark > * { margin: 0; }
.cta.band-accent p, .cta.band-dark p { max-width: 36rem; font-size: 1.1rem; }
.cta.band-accent .button, .cta.band-dark .button { margin-top: 1rem; }
/* a band at the end of the page runs into the footer */
main:has(> .row > :last-child > .band-accent, > .row > :last-child > .band-dark) { padding-bottom: 0; }
.cta.band-accent strong, .cta.band-dark strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.12; margin-bottom: 0.5rem; }

/* accordion: questions as rows */
.accordion summary { font-family: var(--font-heading); font-size: 1.3rem; padding-block: 1rem; }

/* footer (dark) */
.fragment-footer.fragment--dark { margin-top: 0; border-top: 0; color: rgba(243, 239, 230, 0.75); background: var(--color-dark); }
.fragment--dark a { color: #f3efe6; }
.fragment--dark .columns { margin-block: 0 var(--space-lg); }
.fragment--dark .columns strong { color: #fff; font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; }

/* the team, centered under its title */
.profiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 14rem)); justify-content: center; }
.profile__name, .profile .name { font-family: var(--font-heading); }

/* image (wide): a photo as wide as its box (a container edge to edge makes it the screen's), not too tall */
.image.wide img { width: 100%; height: clamp(16rem, 42vw, 34rem); object-fit: cover; border-radius: 0; }
.image.wide figcaption { text-align: center; }

}

@layer theme.base {
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: optional; src: url("../brass/fonts/karla-latin-variable-690fabf2f1.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 500; font-display: optional; src: url("../brass/fonts/zilla-slab-latin-500-normal-7212ca62b5.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 700; font-display: optional; src: url("../brass/fonts/zilla-slab-latin-700-normal-6d5ec30c78.woff2") format("woff2"); }

}

@layer theme.base {
/* Brass: a barbershop and grooming studio. Navy and brass on bone, a slab serif, photos in black and
   white with a brass frame, a scissors ornament over the section titles, prices like a salon's list. */

:root {
  --scissors: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='8' cy='6' r='4.2'/%3E%3Ccircle cx='8' cy='18' r='4.2'/%3E%3Cpath d='M11.5 8.2 46 20.5M11.5 15.8 46 3.5'/%3E%3C/g%3E%3C/svg%3E");
}
body { font-size: 1.0625rem; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 1.8rem + 3.8vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.button { border-radius: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; padding: 1em 1.6em; }

/* header: navy, the logo in slab capitals, Book in brass */
.fragment-header { border: 0; color: #f3efe6; background: var(--color-dark); }
.fragment-header .site-logo { color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.4rem; }
.fragment-header .site-logo::before { content: ""; display: inline-block; width: 1.6em; height: 0.8em; margin-right: 0.5em; vertical-align: -0.05em; background: var(--color-accent); -webkit-mask: var(--scissors) center / contain no-repeat; mask: var(--scissors) center / contain no-repeat; }
.fragment-header .nav__link, .fragment-header .language-switcher a { color: #e9e4d8; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 600; }
.fragment-header .nav__link[aria-current="page"] { color: var(--color-accent); }
.fragment-header .nav__toggle { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: transparent; }
@media (max-width: 767.98px) { .fragment-header .nav--enhanced .nav__list { background: var(--color-dark); border-color: rgba(255, 255, 255, 0.12); } .fragment-header .nav--enhanced .nav__item { border-color: rgba(255, 255, 255, 0.12); } }
.nav.last-button .nav__item:last-child .nav__link { background: var(--color-accent); color: var(--color-dark); border-radius: 2px; }

/* black and white photos, warmed a little */
.hero.barber img, .cards.frames img, .cards.barbers img, .image img { filter: grayscale(1) contrast(1.05) sepia(0.12); }

/* hero (barber): the navy carries on from the header; the photo in black and white on a brass block */
main:has(> .row:first-child .hero.barber) { padding-top: 0; }
.hero.barber { color: #f3efe6; padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero.barber h1 { color: #fff; }
.hero.barber p { font-size: 1.15rem; color: rgba(243, 239, 230, 0.8); max-width: 30rem; }
.hero.barber .button { background: var(--color-accent); color: var(--color-dark); }
.hero.barber .hero__media { box-shadow: 16px 16px 0 var(--color-accent); margin-right: 16px; line-height: 0; }
.hero.barber .hero__media img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }

/* title (ornament): a centred title in capitals under brass scissors, a short brass rule below */
.title.ornament { margin: clamp(3rem, 2rem + 3vw, 5rem) 0 var(--space-lg); text-align: center; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
.title.ornament::before { content: ""; display: block; width: 3rem; height: 1.5rem; margin: 0 auto 0.75rem; background: var(--color-accent); -webkit-mask: var(--scissors) center / contain no-repeat; mask: var(--scissors) center / contain no-repeat; }
.title.ornament::after { content: ""; display: block; width: 4rem; height: 2px; margin: 0.9rem auto 0; background: var(--color-accent); }

/* facts (rating): the numbers people trust, in brass, between thin rules */
.facts.rating { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin: var(--space-lg) 0; border-block: 1px solid var(--color-line); text-align: center; }
.facts.rating .facts__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.5rem 1rem; }
.facts.rating .facts__item + .facts__item { border-left: 1px solid var(--color-line); }
.facts.rating .facts__value { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); color: var(--color-accent-text); line-height: 1; }
.facts.rating .facts__term { margin-top: 0.4rem; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--color-muted); }
@media (max-width: 40rem) { .facts.rating .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--color-line); } }

/* facts (week): the opening hours, a dotted line between the day and the time */
.facts.week { display: block; margin-block: var(--space) var(--space-lg); }
.facts.week .facts__item { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0; }
.facts.week .facts__term { order: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--color-fg); font-weight: 700; }
.facts.week .facts__item::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--color-muted); }
.facts.week .facts__value { order: 2; margin: 0; font-variant-numeric: tabular-nums; }

/* cards (frames): the services, a black and white photo that takes a brass frame on hover */
.cards.frames .cards__item { position: relative; isolation: isolate; border: 0; padding: 0; background: none; box-shadow: none; gap: 0.6rem; }
.cards.frames .cards__item img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; transition: transform 0.25s ease; }
.cards.frames .cards__item::before { content: ""; position: absolute; top: 0; left: 0; z-index: -1; width: 100%; aspect-ratio: 4 / 5; background: var(--color-accent); opacity: 0; transition: opacity 0.25s ease; }
.cards.frames .cards__item:hover::before { opacity: 1; }
.cards.frames .cards__item:hover img { transform: translate(-10px, -10px); }
@media (max-width: 39.99rem) { .cards.frames .cards__item img, .cards.frames .cards__item::before { aspect-ratio: 4 / 3; } }
.cards.frames .cards__body { padding: 0; }
.cards.frames .cards__body strong { display: block; color: var(--color-fg); font-family: var(--font-heading); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cards.frames .cards__body p { margin: 0.2rem 0 0; color: var(--color-muted); }
.cards.frames .button { align-self: flex-start; background: none; color: var(--color-fg); padding: 0; border-bottom: 2px solid var(--color-accent); border-radius: 0; }
.cards.frames .cards__item a::after { content: ""; position: absolute; inset: 0; }

/* cards (reviews): what clients said, under five brass stars */
.cards.reviews .cards__item { border: 0; border-top: 3px solid var(--color-accent); border-radius: 2px; background: var(--color-surface); box-shadow: none; padding: 1.5rem; }
.cards.reviews .cards__body::before { content: "\2605\2605\2605\2605\2605"; display: block; color: var(--color-accent); letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.cards.reviews .cards__body { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 0; }
.cards.reviews .cards__body p { margin: 0; }
.cards.reviews .cards__body strong { color: var(--color-fg); }
.cards.reviews .cards__body p:has(> strong) { margin-top: 0.75rem; color: var(--color-muted); font-size: 0.95rem; }
.cards.reviews .cards__body p:not(:has(> strong)) { font-family: var(--font-heading); font-weight: 500; font-size: 1.2rem; line-height: 1.35; }
.cards.reviews .cards__body::before { order: 3; }

/* cards (barbers): the team, tall portraits in black and white */
.cards.barbers .cards__item { border: 0; padding: 0; background: none; box-shadow: none; gap: 0.5rem; }
.cards.barbers .cards__item img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.cards.barbers .cards__body { padding: 0; }
.cards.barbers .cards__body strong { display: block; color: var(--color-fg); font-family: var(--font-heading); font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.5rem; }
.cards.barbers .cards__body p { margin: 0.15rem 0 0; color: var(--color-muted); }
.cards.barbers .button { align-self: flex-start; background: none; color: var(--color-fg); padding: 0.6em 1.1em; border: 1px solid var(--color-fg); }

/* dishes (prices): the price list, one column, a tab for each section, a Book button per service */
.dishes.prices .dishes__index { gap: 0; border-bottom: 1px solid var(--color-line); margin-bottom: var(--space-lg); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.dishes.prices .dishes__index a { border: 0; border-radius: 0; padding: 0.8em 1.2em; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.dishes.prices .dishes__index a:hover { border-bottom-color: var(--color-accent); }
.dishes.prices .dishes__section { margin-bottom: var(--space-lg); scroll-margin-top: 1rem; }
.dishes.prices .dishes__heading { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent-text); margin-bottom: 0.5rem; }
.dishes.prices .dishes__item { padding: 1rem 0; border-bottom: 1px solid var(--color-line); }
.dishes.prices .dishes__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.dishes.prices .dishes__price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.dishes.prices .dishes__book { border: 0; border-radius: 2px; background: var(--color-primary); color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; padding: 0.7em 1.1em; }
.dishes.prices .dishes__badge { border-radius: 2px; background: var(--color-accent); color: var(--color-dark); }
.dishes.prices .dishes__line { align-items: center; }

/* products (shelf): what we sell at the counter, ordered on WhatsApp */
.products.shelf { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.products.shelf .products__item { background: var(--color-surface); padding: 1rem; border-radius: 2px; }
.products.shelf .products__image { aspect-ratio: 1; border-radius: 2px; }
.products.shelf .products__name { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.products.shelf .products__price { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-accent-text); }
.products.shelf .products__chat { background: var(--color-primary); color: #fff; border: 0; }

/* the gift band in brass */
.cta.band-accent .button { background: var(--color-dark); color: #fff; }
.cta.band-accent { text-align: center; }

/* footer */
.fragment--dark .columns strong { text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.15rem; color: var(--color-accent); }

}
