/* Hallmark · compose: éditorial calendrier · thème Rotalune · papier chaud, lilas et encre nocturne */
:root {
  --paper: #faf7f1;
  --surface: #f0e9f9;
  --ink: #231d32;
  --muted: #544b64;
  --rule: #d7cedf;
  --accent: #50366c;
  --accent-hover: #3b2455;
  --accent-ink: #fffaff;
  --focus: #59377b;
  --text: system-ui, -apple-system, sans-serif;
  --display: 'Avenir Next', 'Trebuchet MS', var(--text);
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 57ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18162a;
    --surface: #27213f;
    --ink: #faf7f1;
    --muted: #d8cfe8;
    --rule: #49405b;
    --accent: #ded0f8;
    --accent-hover: #ede2ff;
    --accent-ink: #231735;
    --focus: #ded0f8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 var(--text); }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2 { margin: 0; font-family: var(--display); line-height: 1.08; text-wrap: balance; }
h1 { max-width: 16ch; font-size: clamp(2.25rem, 5.2vw, 4.5rem); letter-spacing: -.035em; }
h2 { max-width: 25ch; font-size: clamp(1.625rem, 2.2vw + 1rem, 2.375rem); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.container { width: 100%; max-width: 71rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; z-index: 1; top: -4rem; left: 1rem; padding: .5rem 1rem; background: var(--ink); color: var(--paper); }
.skip:focus-visible { top: 1rem; }

.site-header, .site-footer { border-block-end: 1px solid var(--rule); }
.site-header .container, .site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; font: 700 1.125rem/1.2 var(--display); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; font-size: .9375rem; color: var(--muted); }

.hero { padding-block: clamp(1.5rem, 5vw, 4rem); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.lead { max-width: 34ch; margin-top: 1rem; color: var(--muted); }
.samedis-result { display: grid; gap: .25rem; width: fit-content; border-block: 1px solid var(--rule); margin-block: 1.25rem; padding-block: .65rem; }
.samedis-result strong { color: var(--accent); font: 750 clamp(1.375rem, 3vw, 2.375rem)/1.15 var(--display); }
.samedis-result span, .fine, figcaption { color: var(--muted); font-size: .9375rem; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .625rem 1.25rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: background-color 120ms ease, transform 120ms ease; }
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.hero .fine { max-width: 46ch; margin-top: .625rem; }

figure { width: 100%; min-width: 0; max-width: 24rem; margin: 0; justify-self: end; }
video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: .75rem; background: var(--surface); }
figcaption { margin-top: .5rem; }
.section { border-block-start: 1px solid var(--rule); padding-block: clamp(1.5rem, 4vw, 3rem); }
.section ol { max-width: var(--measure); padding-inline-start: 1.5rem; }
.section li + li { margin-top: .625rem; }
.section p { max-width: var(--measure); color: var(--muted); }
.site-footer { border-block-start: 1px solid var(--rule); border-block-end: 0; }
.site-footer .container { padding-block: 1.5rem; }

@media (max-width: 47rem) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  figure { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
