/* Pages Yino : la charte de l'application (noir, Quicksand, encre et cendre, le dégradé dans la tige
   du signe seulement). Fewbricks n'apparaît qu'en pied de page. Une seule feuille, aucun service tiers. */

@font-face {
  font-family: "Quicksand";
  src: url("/assets/yino/quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --noir: #000000;
  --encre: #f3e9e4;
  --cendre: #a07868;
  --contour: #70534d;
  --filet: #2b1e25;
  --abricot: #f4b183;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--noir);
  color: var(--encre);
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--encre); text-decoration-color: var(--cendre); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--encre); }
:focus-visible { outline: 2px solid var(--abricot); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--noir); padding: 8px 12px; z-index: 1; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px; }

/* En-tête : le signe et le nom, comme dans l'application. */
.y-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.y-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; }
.y-brand img { display: block; width: 30px; height: 30px; }
.y-brand span { font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; }
.y-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.y-nav a { display: inline-block; padding: 12px 0; font-size: 0.875rem; color: var(--encre); text-decoration: none; opacity: 0.82; }
.y-nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--cendre); }

/* Contenu. */
.y-main { padding: 40px 0 72px; }
.y-label { margin: 0 0 12px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cendre); }
h1 { margin: 0 0 16px; font-size: clamp(2.5rem, 8vw, 3.5rem); font-weight: 300; line-height: 1.1; }
.y-lead { margin: 0 0 20px; font-size: 1.25rem; line-height: 1.5; font-weight: 400; max-width: 32ch; }
h2 { margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--filet); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cendre); }
p { margin: 0 0 16px; max-width: 62ch; }
.y-main ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 62ch; }
.y-main li { padding-left: 18px; position: relative; }
.y-main li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 2px; height: 1em; border-radius: 1px; background: var(--cendre); }
.y-main li strong { font-weight: 700; }
.y-muted { color: var(--cendre); font-size: 0.875rem; }
.y-main pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 0.8125rem; line-height: 1.55; color: var(--cendre); margin: 0; }

/* Pied de page : Fewbricks, l'éditeur. */
.y-footer { border-top: 1px solid var(--filet); padding: 32px 0 40px; color: var(--cendre); font-size: 0.875rem; }
.y-footer .wrap { display: grid; gap: 16px; }
.y-footer img { display: block; }
.y-footer p { margin: 0; }
.y-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.y-footer a { color: var(--cendre); }
.y-footer a:hover { color: var(--encre); }

@media (max-width: 480px) {
  .y-main { padding-top: 24px; }
  h2 { margin-top: 40px; }
}

/* Lumière diffuse : le dégradé de Yino, très atténué, en haut et en bas de la page. */
body {
  background:
    radial-gradient(ellipse 70vw 55vh at 92% -8%, rgba(201, 80, 110, 0.30), rgba(201, 80, 110, 0) 70%),
    radial-gradient(ellipse 55vw 45vh at 60% 0%, rgba(229, 104, 60, 0.14), rgba(229, 104, 60, 0) 70%),
    radial-gradient(ellipse 80vw 50vh at 0% 105%, rgba(244, 177, 131, 0.14), rgba(244, 177, 131, 0) 70%),
    var(--noir);
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Ouverture de la présentation : le titre, et la cellule trois pour deux en grand. */
.y-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px; margin-bottom: 8px; }
.y-cell { display: block; width: 100%; height: auto; }
.y-lueur { display: block; width: 96px; height: 3px; border-radius: 2px; margin: 4px 0 8px; background: linear-gradient(90deg, #c9506e, #e5683c, #f4b183); }
.y-main h2.y-sign { display: flex; align-items: center; gap: 14px; }
.y-main h2.y-sign img { flex: none; width: 32px; height: 32px; }

@media (min-width: 900px) {
  .wrap { max-width: 760px; }
}
@media (max-width: 600px) {
  .y-hero { grid-template-columns: 1fr; }
  .y-cell { order: -1; width: 70%; max-width: 280px; margin: 0 0 8px auto; }
}
