/* Papo, le livre qui parle : feuille de style commune des pages du site.
   Couleurs reprises de design/tokens.json. Police du système, aucune ressource
   chargée depuis un autre service. */

:root {
  color-scheme: light;
  --paper: #FFF7E8;
  --card: #FFFFFF;
  --ink: #2A2650;
  --ink-soft: #5B567F;
  --line: #E4DEF2;
  --papo: #FF7A59;
  --papo-deep: #E0583A;
  --sunny: #FFC23D;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer {
  width: min(44rem, 100% - 1.5rem);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 2.5rem; height: 2.5rem; }

main {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 40rem) {
  main { padding: 2rem 2.5rem 2.5rem; }
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 .5rem; }

/* 19 px en gras : le contraste de 3,7 suffit pour un titre. */
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2rem 0 .5rem; color: var(--papo-deep); }

.date { color: var(--ink-soft); margin-top: 0; }

a {
  color: var(--ink);
  text-decoration-color: var(--papo);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible { outline: 3px solid var(--sunny); outline-offset: 2px; border-radius: 2px; }

.summary {
  background: var(--paper);
  border-left: 4px solid var(--papo);
  border-radius: .5rem;
  padding: .75rem 1rem;
}

.hero { text-align: center; }
.hero img { width: 7.5rem; height: 7.5rem; }

.identity {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .25rem 1rem;
}

.identity dt { font-weight: 600; }
.identity dd { margin: 0; }

@media (max-width: 32rem) {
  .identity { grid-template-columns: 1fr; }
  .identity dd { margin-bottom: .5rem; }
}

footer {
  padding-block: 1.5rem 2rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin-bottom: .5rem;
}

footer a { color: var(--ink-soft); }
footer a[aria-current="page"] { color: var(--ink); font-weight: 600; }
