@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color: var(--brun-texte);
  background: var(--papier);
  font-family: 'Source Serif 4', Georgia, serif;
  font-synthesis: none;
}

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

.age-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 3vw, 2rem);
  background-color: var(--papier);
  --backdrop: url('/images/accueil-flou.webp');
  background-image: linear-gradient(#261c221f, #261c2233), var(--backdrop);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.age-dialog {
  width: min(100%, 33rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--brun-texte);
  border-radius: .6rem;
  background: var(--papier) url('/images/papier.webp') repeat;
  background-size: 360px 360px;
  box-shadow: 0 -3px 0 var(--rouge-encre), 0 .6rem 2.5rem #261c2226;
  text-align: center;
}

.age-brand {
  display: block;
  width: min(60%, 9.5rem);
  height: auto;
  margin: 0 auto 1.3rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.04em;
  text-wrap: balance;
}

h1:focus { outline: none; }

p {
  margin: .75rem auto 0;
  font-size: 1.04rem;
  line-height: 1.45;
  max-width: 39ch;
  text-wrap: pretty;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.6rem;
}

button {
  min-height: 46px;
  padding: .65rem .6rem;
  border: 1px solid var(--brun-texte);
  border-radius: .2rem;
  background: transparent;
  color: var(--brun-texte);
  font: 650 1rem/1.26 'Source Serif 4', Georgia, serif;
  cursor: pointer;
  touch-action: manipulation;
}

.age-confirm, button:is(:active, :focus-visible) { background: var(--jaune-encre); }
button:focus-visible { outline: 2px solid var(--brun-texte); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  button:hover { background-color: var(--jaune-encre); text-decoration: underline; text-underline-offset: .18em; }
}

@media (max-width: 640px) {
  .age-page {
    --backdrop: url('/images/accueil-flou-mobile.webp');
  }
}

@media (max-width: 500px) {
  form { grid-template-columns: 1fr; }
}
