/* bloechle.ch/cuisines — one stylesheet for every page.
   The previous site's look, brought to 2026: black-and-white header photos, the round "B"
   in charcoal, Libre Franklin, quiet greys; the magenta of the 125-year logo as the only accent. */

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/LibreFranklin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* the colours' KNOBS, typed (@property): every other shade is derived from them on :root (color-mix in oklab), so one
   changed changes the whole site. Defacto's « Réglages » sets --accent and --charcoal (assets/defacto-theme.css, linked after
   this file: theme.json's settings `css`); a value there that is no colour falls back to the default here. */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #bc3a8e; }     /* the 125-year logo, 5:1 on white */
@property --charcoal { syntax: "<color>"; inherits: true; initial-value: #383838; }   /* the logo, the footer */
@property --ink { syntax: "<color>"; inherits: true; initial-value: #222; }           /* the text */
@property --paper { syntax: "<color>"; inherits: true; initial-value: #fff; }         /* the page, and the type on the photos and the viewer */
@property --dark { syntax: "<color>"; inherits: true; initial-value: #000; }          /* the shade on the photos */
:root {
  color-scheme: only light;   /* one light design: no browser's forced dark re-tinting it */
  accent-color: var(--charcoal);   /* the forms' own controls: checkboxes, a range, a progress */
  --qry-speed-slow: .8s;   /* the qry stack's slow pace: the header slideshow fades over 1.6 s */
  --grey: color-mix(in oklab, var(--ink) 72%, var(--paper));      /* the old site's text grey, 7:1 on white */
  --line: color-mix(in oklab, var(--charcoal) 17%, var(--paper));
  --mist: color-mix(in oklab, var(--ink) 5%, var(--paper));
  --night: color-mix(in oklab, var(--charcoal) 52%, var(--dark));  /* the viewer */
  --radius: 4px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --wide: 76rem;
  --measure: 40rem;
  --font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* more contrast asked for (the system's setting): the greys to the ink, the lines firmer — the knobs' shades, nothing else */
@media (prefers-contrast: more) { :root { --grey: var(--ink); --line: color-mix(in oklab, var(--charcoal) 45%, var(--paper)); } }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--charcoal); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; }
main > section > h2:first-child { margin-top: 0; }   /* home sections: the divider or band above sets the space */

p { margin: 0 0 1em; }
p { text-wrap: pretty; }   /* no word alone on a last line (where the browser can) */
address { font-style: normal; }


.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 30; padding: 0.5rem 1rem; background: var(--paper); color: var(--ink); }
.skip:focus { top: 0.75rem; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* anchors land below the sticky menu, not under it */
[id] { scroll-margin-top: 4.5rem; }

/* the old site's quotes, now with French guillemets in the accent */
.quote { max-width: 46rem; margin: 0 0 2rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 300; line-height: 1.45; color: var(--grey); }
.quote .q { color: var(--accent); }
.quote:has(+ .quote-by) { margin-bottom: .4rem; }
.quote-by { margin: 0 0 2rem; color: var(--grey); font-size: .95rem; }
.quote-by::before { content: "— "; }

.more { font-weight: 600; }

/* ── header: the black-and-white photo, the round B, the name ─────────── */

.masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(18rem, 55svh, 34rem);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--paper);
}
.masthead.is-home { min-height: clamp(20rem, 88svh, 60rem); }
.masthead::after { /* keeps the white type readable on any photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, color-mix(in oklab, var(--dark) 62%, transparent) 0%, color-mix(in oklab, var(--dark) 15%, transparent) 55%, color-mix(in oklab, var(--dark) 45%, transparent) 100%);   /* the top: the name stays readable on a bright window */
}
.backdrop { position: absolute; inset: 0; z-index: -2; }
.backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* several photos (home): only the current one shows; site.js (makeSlideshow) moves .is-current every 6 s
   and cross-fades them over 2 × --qry-speed-slow (1.6 s, :root) — no CSS transition here */
[data-slideshow] img { opacity: 0; }
[data-slideshow] img.is-current { opacity: 1; }
/* a photo is loaded only when its turn comes near (makeSlideshow marks .is-next the one after the current): hidden, a lazy
   image is never fetched — a phone no longer downloads the five at once */
[data-slideshow] img:not(.is-current, .is-next) { display: none; }

.masthead-inner { width: 100%; max-width: var(--wide); margin-inline: auto; padding: 5.5rem var(--gutter) clamp(2rem, 5vw, 3.5rem); }
.brand { position: absolute; top: 1.25rem; left: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); display: inline-flex; align-items: center; gap: 0.75rem; color: var(--paper); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.brand:hover { color: var(--paper); }
.logo { width: 2.75rem; height: 2.75rem; fill: currentColor; }
.is-home .brand .logo { width: 3.5rem; height: 3.5rem; }
.is-home .brand span { display: none; }  /* the name is the <h1> right below */
.masthead h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; text-shadow: 0 1px 12px color-mix(in oklab, var(--dark) 35%, transparent); }
.tagline { margin: 0.75rem 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 400; }

/* ── the menu, sticky under the header ────────────────────────────────── */

.menu { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu-inner { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.menu ul { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.5rem; overflow-x: auto; scrollbar-width: none; }
/* a short hairline between the B (home) and the pages */
.menu ul::before { content: ""; flex: none; width: 1px; height: 1.25rem; background: var(--line); }
/* the call button: a round handset on phones, the number in a pill on wide screens; tablets show neither */
.menu a.menu-call { display: none; }
/* the padding is 1 px heavier on top: Libre Franklin's line box sits its capitals 1 px high (measured) */
.menu a { position: relative; display: block; padding: calc(0.95rem + 1px) 0 calc(0.95rem - 1px); color: var(--charcoal); font-weight: 500; font-size: 0.98rem; text-decoration: none; white-space: nowrap; }
/* the page's mark: a magenta line on the menu's edge, the whole width of the words (on hover too) */
.menu a:not(.menu-call)::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); opacity: 0; transition: opacity 0.2s; }
.menu a[aria-current] { color: var(--ink); }
.menu a[aria-current]::after { opacity: 1; }
.menu a.menu-home { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; }
.menu a:focus-visible { outline-offset: -3px; }   /* the scrolling list would clip an outer ring */
.menu-logo { width: 1.6rem; height: 1.6rem; fill: var(--charcoal); }
@media (width <= 64rem) { .menu-home span, .menu ul::before { display: none; } }   /* the B alone leads home, no hairline: every page fits an iPad */
/* what does not fit, wherever (site.js menu(): a narrow window, a larger font, a zoom): the B alone, then the round handset */
.menu.is-tight .menu-home span, .menu.is-tight ul::before { display: none; }
@media (width >= 48rem) {
  .menu.is-tighter a.menu-call { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--charcoal); }
  .menu.is-tighter .menu-call span { display: none; }
  .menu.is-tighter .menu-call svg { width: 1.15rem; height: 1.15rem; fill: var(--paper); }
}
@media (width > 64rem) {   /* wide screens: the number at the right, in a pill */
  .menu a.menu-call { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
  .menu-call svg { width: 1rem; height: 1rem; fill: currentColor; }
}
@media (width < 48rem) {   /* phones; an iPad in portrait (768 px) shows the whole menu */
  .menu-inner { gap: 1rem; }
  .menu a.menu-call { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--charcoal); }
  .menu-call span { display: none; }
  .menu-call svg { width: 1.15rem; height: 1.15rem; fill: var(--paper); }
  .menu a.menu-call:hover { background: var(--accent); }
  /* the items scroll sideways on phones; an edge fades where there is more (site.js marks .more-before /
     .more-after), and the current page is brought to the middle on load (no scroll snapping: it would pull
     the current page back under a fade) */
}
/* the strip's edges fade where there is more (site.js .more-before / .more-after): on phones, and wherever the whole
   menu still does not fit (a large font, a zoom) */
.menu ul.more-after { mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent); }
.menu ul.more-before { mask-image: linear-gradient(90deg, transparent, #000 1.5rem); }
.menu ul.more-before.more-after { mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent); }

.notice { margin: 0; padding: 0.9rem var(--gutter); background: var(--charcoal); color: var(--paper); text-align: center; font-weight: 500; }
/* a notice that arrives after the page (not yet known in this browser) slides in instead of jumping in */
@media (prefers-reduced-motion: no-preference) {
  .notice.is-new { animation: notice-in var(--qry-speed-slow, .5s) var(--qry-ease, ease) both; overflow: hidden; }
  @keyframes notice-in { from { max-height: 0; padding-block: 0; } to { max-height: 12rem; } }
}

/* ── home ─────────────────────────────────────────────────────────────── */

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); color: var(--grey); }
.facts li { padding: 1.4rem clamp(0.75rem, 3vw, 1.5rem); }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.1; color: var(--charcoal); }

/* between home sections: a hairline with the round B in the middle */
.divider { display: flex; align-items: center; gap: 1.5rem; width: 100%; max-width: var(--wide); margin: clamp(3.5rem, 8vw, 5.5rem) auto; padding-inline: var(--gutter); }
.trades .divider { padding-inline: 0; }   /* already inside .wrap */
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider-logo { width: 1.5rem; height: 1.5rem; fill: color-mix(in oklab, var(--ink) 23%, var(--paper)); }

.trades { display: grid; padding-top: clamp(4.5rem, 10vw, 7rem); }   /* the first section under the header */
.trade { position: relative; display: grid; gap: 1.5rem 4rem; align-items: center; }
@media (min-width: 56rem) {
  .trade { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .trade:nth-of-type(even) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }   /* photos keep the wide column */
  .trade:nth-of-type(even) .trade-text { order: 2; }   /* nth-of-type: the dividers between trades are divs */
}
.trade h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.trade .quote { font-size: 1.15rem; margin-bottom: 1.5rem; }
/* the title's link covers the whole section: photos, line and arrow all open the gallery */
.stretched { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.trade:has(.stretched:focus-visible) { outline: 3px solid var(--accent); outline-offset: 0.75rem; border-radius: var(--radius); }
.stretched:focus-visible { outline: none; }
.go { width: 3rem; height: 3rem; fill: none; stroke: var(--charcoal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease, stroke 0.3s ease; }
.go circle { transition: fill 0.3s ease; }

/* one large photo, two small, every one in landscape 3:2: columns 2 : 1, so the whole frame is
   (2 + 1) wide for (2 × 2/3) high = 9 : 4, the same for every mosaic whatever the photos' sizes */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; aspect-ratio: 9 / 4; }
.mosaic li { overflow: hidden; border-radius: var(--radius); min-height: 0; }
.mosaic li:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

/* made here */
.atelier { background: var(--mist); padding-block: clamp(4rem, 9vw, 6.5rem); margin-block: clamp(4rem, 9vw, 6.5rem); }
.atelier-inner { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 56rem) {
  .atelier-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .atelier-inner .mosaic { order: 2; }   /* photos on the right: the family section above has its photo on the left */
}
.atelier h2 { margin-top: 0; }
.atelier p { color: var(--grey); }

/* sections rise into place once, as they scroll into view (site.js: $.web's reveal() marks
   <html class="qry-js"> and adds .is-in; without JavaScript, or with reduced motion, they are simply there) */
@media (prefers-reduced-motion: no-preference) {
  .qry-js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.8s ease, transform 0.8s ease; }
  .qry-js .reveal.is-in { opacity: 1; transform: none; }
}


/* the family, closing the home page: the 1899 workshop photo on the left, who we are and the
   key figures on the right; the band meets the footer */
.family { display: grid; margin-top: clamp(5rem, 11vw, 8rem); background: var(--mist); }
main:has(> .family:last-child) + .colophon { margin-top: 0; }
.family > * { min-width: 0; }   /* grid items may shrink below their content: the figures wrap instead */
.family img { width: 100%; height: 100%; min-height: 20rem; object-fit: cover; filter: grayscale(1); }
.family-text { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); align-self: center; max-width: 42rem; }
.family h2 { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; }
.family .facts { margin: 2rem 0; }
@media (min-width: 56rem) { .family { grid-template-columns: 1fr 1fr; } }

/* ── galleries ───────────────────────────────────────────────────────── */

.gallery {
  --gap: 0.6rem;
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap);
  /* never more than --cols columns (set per gallery to avoid a lonely last photo), fewer on small screens */
  grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 15rem), calc((100% - (var(--cols, 4) - 1) * var(--gap)) / var(--cols, 4))), 1fr));
}
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.caption { margin: 0.4rem 0 0; font-size: 0.92rem; color: var(--grey); }

.page { padding-top: clamp(2.5rem, 6vw, 4rem); }
.intro { margin-bottom: clamp(2rem, 5vw, 3rem); }
/* the legal page: a term, then its text — side by side from tablets */
.terms { max-width: var(--measure); margin: 0 0 2.5rem; display: grid; gap: 0.35rem 2rem; }
.terms dt { font-weight: 600; margin-top: 0.9rem; }
.terms dd { margin: 0; color: var(--ink); }
@media (min-width: 48rem) { .terms { grid-template-columns: 14rem 1fr; } .terms dt { margin-top: 0; } }
.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.25em; }
.ad { max-width: 34rem; margin: 3rem 0 0; }
.ad img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.ad video, .ad audio { display: block; width: 100%; }
.ad figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--grey); }

/* ── pager: previous / home / next at the end of a page ─────────────── */

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: clamp(4rem, 9vw, 6rem); padding-top: 2rem;
  /* a hairline as wide as the content above it (the padding of .wrap stays clear) */
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.pager a { text-decoration: none; font-weight: 600; font-size: 1.1rem; color: var(--charcoal); }
.pager-next { justify-self: end; text-align: right; }
.pager-hint { display: block; font-size: 0.85rem; font-weight: 400; color: var(--grey); }
.pager-prev .pager-hint::before { content: "← " / ""; }   /* decorative: not read aloud */
.pager-next .pager-hint::after { content: " →" / ""; }
.pager a.pager-home { display: grid; place-items: center; width: 3rem; height: 3rem; }
.pager-logo { width: 2.25rem; height: 2.25rem; fill: var(--charcoal); }
.pager + .colophon { margin-top: clamp(3rem, 7vw, 4.5rem); }

/* ── contact ─────────────────────────────────────────────────────────── */

.coords { display: grid; gap: 1rem 3rem; align-items: start; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--mist); border-radius: var(--radius); }
@media (min-width: 52rem) { .coords { grid-template-columns: repeat(3, auto); justify-content: start; } }
.coords p, .coords address { margin: 0; }
.hours { display: grid; grid-template-columns: auto auto; gap: 0.2rem 1rem; margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.project { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--mist); border-radius: var(--radius); }
.project h2 { margin-top: 0; }
.project p { max-width: 36rem; }
.coords .hours-note { margin-top: 0.6rem; max-width: 22rem; font-size: 0.9em; color: var(--grey); }
.actions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { display: inline-block; padding: 0.7rem 1.2rem; border: 2px solid var(--charcoal); border-radius: var(--radius); background: var(--charcoal); color: var(--paper); font-weight: 600; text-decoration: none; }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button.ghost { background: transparent; color: var(--charcoal); }
.button.ghost:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }

.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 2rem; }
.team img { width: 9rem; height: 9rem; object-fit: cover; border-radius: 50%; margin-bottom: 0.9rem; }
@media (width < 36rem) {   /* phones: two by two, the portraits a little smaller */
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .team img { width: 7.5rem; height: 7.5rem; }
}
.team .name { margin: 0; font-weight: 600; }
.team .role { margin: 0.2rem 0 0; color: var(--grey); font-size: 0.95rem; }

/* ── the viewer (makeViewer builds it, site.js) ─────────────────────────────────────── */

.qry-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--night); color: var(--paper); }
.qry-viewer::backdrop { background: var(--night); }
.qry-viewer figure { height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; padding: 3.5rem 4rem 1rem; }
/* every photo fills the space it is given, small originals included (scaled up, never cropped) */
.qry-viewer img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.qry-viewer figcaption { min-height: 1.6em; padding-top: 0.6rem; font-size: 0.95rem; color: color-mix(in oklab, var(--ink) 14%, var(--paper)); }
.qry-viewer button { position: absolute; width: 3rem; height: 3rem; border: 0; border-radius: var(--radius); background: color-mix(in oklab, var(--paper) 12%, transparent); color: var(--paper); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.qry-viewer button:hover { background: color-mix(in oklab, var(--paper) 25%, transparent); }
.qry-viewer .close { top: 0.75rem; right: 0.75rem; }
.qry-viewer [data-go="-1"] { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.qry-viewer [data-go="1"] { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.qry-viewer :focus-visible { outline-color: var(--paper); }
@media (max-width: 40rem) {
  .qry-viewer figure { padding: 3.5rem 0.5rem 4.5rem; }
  .qry-viewer [data-go] { top: auto; bottom: 0.75rem; transform: none; }
}

/* ── footer ──────────────────────────────────────────────────────────── */

.colophon { margin-top: clamp(4rem, 9vw, 6rem); background: var(--charcoal); color: color-mix(in oklab, var(--ink) 9%, var(--paper)); font-size: 0.95rem; }
.colophon-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 3rem; padding-block: 2.25rem 2.75rem; }
.colophon p { margin: 0; }
.colophon a { color: var(--paper); }
.colophon a:hover { color: color-mix(in oklab, var(--accent) 32%, var(--paper)); }
.colophon .admin-link { font-size: .85em; opacity: .75; }   /* discreet: the way to the site's admin (its footer template) */
.colophon .admin-link:hover, .colophon .admin-link:focus-visible { opacity: 1; }
.colophon .brand { position: static; font-size: 1.05rem; }
.colophon .logo { width: 2.25rem; height: 2.25rem; }
.colophon :focus-visible { outline-color: var(--paper); }
.to-top { margin-left: auto; align-self: center; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--paper); border-radius: 50%; }
.to-top::before { content: ""; width: 0.8rem; height: 0.8rem; margin-top: 0.3rem; border: solid var(--paper); border-width: 2px 0 0 2px; transform: rotate(45deg); }
.to-top:hover { background: var(--paper); }
.to-top:hover::before { border-color: var(--charcoal); }

/* ── Defacto (Apps/Defacto): the pages it publishes are blocks, each in its wrapper .blk .t-<type> ──────
   The same look as the built pages: the space under the header, the hairline with the B between two previews of
   the home, every other preview's photos on the left, the family band glued to the footer. */

.page-main { padding-top: clamp(2.5rem, 6vw, 4rem); }
#blocks > .t-teaser:first-child { padding-top: clamp(4.5rem, 10vw, 7rem); }
.t-teaser + .t-teaser::before {
  content: ""; display: block; height: 1.5rem; max-width: var(--wide); margin: clamp(3.5rem, 8vw, 5.5rem) auto; padding-inline: var(--gutter);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 900' fill='%23c9c6c0'%3E%3Cpath d='M534.1%2C319.8 C517.5%2C297.9 495.4%2C287.6 468.3%2C286.3 C468.3%2C203.5 468.3%2C120.8 468.3%2C37.5 C471.9%2C37.6 475.6%2C37.7 479.3%2C38.0 C547.2%2C43.7 610.3%2C63.8 667.3%2C101.3 C702.2%2C124.2 731.3%2C153.1 749.7%2C191.1 C779.1%2C252.0 772.7%2C310.5 735.2%2C365.9 C712.8%2C399.1 682.1%2C423.5 648.3%2C444.2 C647.1%2C444.9 646.0%2C445.6 645.5%2C445.9 C659.4%2C455.7 673.9%2C464.8 687.3%2C475.4 C720.7%2C501.7 746.7%2C533.8 759.7%2C574.8 C777.7%2C632.0 765.7%2C684.2 730.5%2C731.6 C706.4%2C764.1 675.0%2C787.7 639.8%2C807.0 C592.8%2C832.7 542.5%2C847.6 489.3%2C853.0 C482.4%2C853.7 475.5%2C854.3 468.2%2C854.9 C468.2%2C771.5 468.2%2C688.6 468.2%2C605.2 C494.3%2C604.0 516.5%2C594.3 532.8%2C573.3 C543.7%2C559.3 548.6%2C543.2 548.1%2C525.4 C547.2%2C493.3 519.5%2C454.5 468.3%2C452.2 C468.3%2C448.0 468.3%2C443.8 468.3%2C439.2 C501.9%2C436.8 528.3%2C422.6 542.3%2C390.7 C553.0%2C366.0 549.4%2C342.2 534.1%2C319.8 z'/%3E%3Cpath d='M426.8%2C357.0 C426.8%2C523.1 426.8%2C688.7 426.8%2C855.3 C412.5%2C853.7 398.6%2C852.6 384.9%2C850.5 C326.6%2C841.6 272.7%2C820.8 223.3%2C788.5 C214.6%2C782.9 206.3%2C776.7 198.1%2C770.5 C196.5%2C769.2 195.2%2C766.5 195.2%2C764.4 C194.9%2C749.9 195.1%2C735.4 195.1%2C720.9 C195.1%2C523.8 195.1%2C326.7 194.9%2C129.5 C194.9%2C125.2 196.4%2C122.6 199.7%2C120.1 C257.4%2C76.7 321.9%2C49.9 393.5%2C40.3 C404.3%2C38.9 415.2%2C38.1 426.8%2C37.0 C426.8%2C144.0 426.8%2C250.2 426.8%2C357.0 z'/%3E%3Cpath d='M154.0%2C626.0 C154.0%2C661.0 154.0%2C695.6 154.0%2C730.7 C1.8%2C578.3 -2.3%2C319.4 154.0%2C161.2 C154.0%2C316.3 154.0%2C470.9 154.0%2C626.0 z'/%3E%3Cpath d='M796.4%2C337.3 C805.9%2C310.8 810.1%2C283.9 808.8%2C255.8 C830.1%2C277.4 856.4%2C383.2 856.6%2C445.9 C856.8%2C517.0 837.5%2C584.9 809.0%2C637.3 C811.4%2C556.9 775.5%2C496.0 716.7%2C445.9 C752.1%2C416.2 780.2%2C381.3 796.4%2C337.3 z'/%3E%3C/svg%3E") center / 1.5rem no-repeat content-box,
    linear-gradient(var(--line), var(--line)) left center / calc(50% - 1.75rem) 1px no-repeat content-box,
    linear-gradient(var(--line), var(--line)) right center / calc(50% - 1.75rem) 1px no-repeat content-box;
}
@media (min-width: 56rem) {
  .t-teaser:nth-child(even of .t-teaser) .trade { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .t-teaser:nth-child(even of .t-teaser) .trade-text { order: 2; }
}
.t-text:not(:has(.prose > h2:last-child)) + .t-gallery { margin-top: clamp(2rem, 5vw, 3rem); }        /* as .intro: the words, then the photos */
.family-img { position: relative; min-height: 20rem; }
.family-img img { position: absolute; inset: 0; min-height: 0; }
main:has(#blocks > .t-family:last-child) + .colophon { margin-top: 0; }
.tp { width: 9rem; }
@media (width < 36rem) { .tp { width: 7.5rem; } }
/* the contact form (Defacto's « forms »: .df-form, defacto-visitors.css — linked after this sheet, so each rule here
   names the block too): the site's column, its fields and its button */
#blocks > .t-contactform { max-width: var(--wide); padding-inline: var(--gutter); }
.t-contactform .df-form :is(input, textarea) { border-color: var(--line); border-radius: var(--radius); background: var(--paper); }
.t-contactform .df-form :is(input, textarea):focus-visible { outline: 2px solid var(--charcoal); outline-offset: 1px; }
.t-contactform .df-form button { padding: 0.7rem 1.2rem; border: 2px solid var(--charcoal); border-radius: var(--radius); background: var(--charcoal); color: var(--paper); font-weight: 600; }
.t-contactform .df-form button:hover { background: var(--accent); border-color: var(--accent); }
.ph-empty { aspect-ratio: 3 / 2; background: var(--mist); display: grid; place-items: center; color: var(--grey); border-radius: var(--radius); }

/* hover effects only where a pointer really hovers: no effect stuck on after a tap */
@media (hover: hover) {
  .menu a:hover { color: var(--ink); }
  .menu a:hover::after { opacity: 1; }
  .menu a.menu-call:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
  .trade:hover h2 a { color: var(--accent); }
  .trade:hover .go { transform: translateX(0.5rem); stroke: var(--paper); }
  .trade:hover .go circle { fill: var(--accent); stroke: var(--accent); }
  .trade:hover .mosaic img { transform: scale(1.04); }
  .gallery a:hover img { transform: scale(1.03); }
  .pager a:hover { color: var(--accent); }
  .pager a.pager-home:hover .pager-logo { fill: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .mosaic img, .go, .go circle { transition: none; }
}

/* Print: the content and the contact details, without the menu and what moves */
@media print {
  *, *::before, *::after { background: transparent !important; color: var(--dark) !important; box-shadow: none !important; text-shadow: none !important; }
  .menu, .notice, .skip, .to-top, .qry-viewer, .pager, .pager-hint, .menu-call, .backdrop { display: none !important; }
  .masthead { min-height: auto !important; }                     /* no photo on paper: the title in black on white */
  img, figure { break-inside: avoid; }
  .qry-js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }   /* the sections not yet scrolled to print too */
  h1, h2, h3 { break-after: avoid; }
}

/* page to page: a cross-fade where the browser can (view transitions; others just change page) —
   the qry stack's motion signature (--qry-speed, --qry-ease) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-group(root) { animation-duration: var(--qry-speed, .2s); animation-timing-function: var(--qry-ease, cubic-bezier(.2, .7, .2, 1)); }

/* Windows' high contrast (forced colours): the system's palette everywhere — what a background or a fill drew kept visible */
@media (forced-colors: active) {
  .menu-logo, .pager-logo, .divider-logo { fill: CanvasText; }   /* the round B, drawn in the charcoal */
}
