/* Shared by the public pages (home, /courtage/, /fabriq/, /fabriq/ecrans/): page base, top bar, tags, links, the film, contact and footer.
   Tokens and fields come from /assets/raixon.css; each page keeps its own sections in its <style>, the case pages also load /assets/case.css. */
body { background: var(--ink); }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* A larger hit area for small links and buttons, without moving them. */
.hit { position: relative; }
.hit::before { content: ""; position: absolute; inset: -12px -6px; }
/* Rules take the field's text colour, so one declaration works on every field. */
.f-red, .f-ink, .f-paper { --rule: color-mix(in srgb, currentColor 30%, transparent); }
.f-ink :focus-visible { outline-color: var(--red); }

.field { position: relative; padding: clamp(72px, 14vh, 160px) var(--pad); }
.tag { display: flex; gap: 10px; align-items: center; font: 650 15px/1.35 var(--f); font-stretch: 100%; }
.tag i { flex: none; width: 10px; height: 10px; background: var(--red); }
.ul { font: 650 18px/1.2 var(--f); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .24em; transition: text-underline-offset 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .ul:hover { text-underline-offset: .36em; } }
.ul:active { text-underline-offset: .36em; }

/* Top bar. Small links get a taller hit area through padding cancelled by a negative margin: same look, easier to tap. */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px var(--pad); color: var(--paper); }
/* Over a vermilion first field the bar takes the field class: ink text, paper square. */
.top.f-red { color: var(--ink); }
.top nav { display: flex; align-items: baseline; gap: 28px; font: 600 15px/1 var(--f); }
.top nav a { text-decoration: none; white-space: nowrap; padding: 12px 0 4px; margin-top: -12px; border-bottom: 2px solid transparent; transition: border-color 160ms ease; }
.top nav a[aria-current] { border-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { border-color: currentColor; } }

/* The film of the case (home proof and /courtage/): native player, nothing loads before play but the poster. */
/* Centred when the page is wider than the film's max-width; on phones it spans the width anyway. */
.film { margin: 0 auto; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.film figcaption { margin-top: 12px; font: 450 14px/1.4 var(--f); color: var(--grey); }

/* Contact and footer. Each page places the title, photo and introduction; the ways and the footer span the full width. */
.contact { padding-bottom: 32px; }
.contact h2 { font-size: clamp(54px, 10.6vw, 196px); }
.contact .who { margin-top: clamp(32px, 6vh, 64px); max-width: 30em; font: 480 clamp(19px, 1.6vw, 26px)/1.4 var(--f); }
.ways { grid-column: 1 / -1; margin-top: clamp(40px, 8vh, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.ways > * { padding-top: 18px; }
.ways a, .ways button { font: 760 clamp(24px, 2.5vw, 44px)/1.1 var(--f); font-stretch: 85%; letter-spacing: -.01em; color: inherit; background: none; border: 0; padding: 8px 0; margin: -8px 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .16em; transition: text-underline-offset 200ms var(--out); overflow-wrap: anywhere; }
.f-ink .ways a, .f-ink .ways button { text-decoration-color: var(--red); }
.ways small { display: block; margin-bottom: 8px; font: 500 14px/1.3 var(--f); }
@media (hover: hover) and (pointer: fine) { .ways a:hover, .ways button:hover { text-underline-offset: .28em; } }
.ways a:active, .ways button:active { text-underline-offset: .28em; }
.foot { grid-column: 1 / -1; margin-top: clamp(72px, 16vh, 180px); padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 500 14px/1.4 var(--f); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; padding-block: 12px; margin-block: -12px; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 899px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways > * { padding: 16px 0; }
  .ways a, .ways button { font-size: 7.4vw; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { padding-top: 20px; gap: 12px; }
  .top nav { gap: 14px; }
  .top nav .opt { display: none; }
  .contact h2 { font-size: 15.4vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ul, .top nav a, .ways a, .ways button { transition: none; }
}
