/* Rahona Studio : les lettres du nom ont les couleurs de l'alphabet mobile Montessori
   (consonnes rouges, voyelles bleues), comme dans les jeux du studio. */

@font-face {
  font-family: 'Andika';
  src: url('fonts/andika-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Andika';
  src: url('fonts/andika-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #eef2f6;
  --ink: #1d2b53;
  --ink-soft: #55607d;
  --consonant: #e63946;
  --vowel: #2f6fed;
  --line: #ccd5e3;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131a2e;
    --ink: #e6ecf6;
    --ink-soft: #a3aec6;
    --consonant: #ff6f78;
    --vowel: #79a8ff;
    --line: #2c3753;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 'Andika', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 6vw, 5rem) clamp(1rem, 7vw, 6rem);
}

main {
  flex: 1;
  max-width: 38rem;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

/* Le nom, en grand : la seule audace de la page */
.name {
  margin: 0;
  font-size: clamp(4.5rem, 21vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.c {
  color: var(--consonant);
}
.v {
  color: var(--vowel);
}

.intro {
  margin: 1.5rem 0 0;
  max-width: 30rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.projects {
  list-style: none;
  margin: clamp(3rem, 9vw, 5.5rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.projects li {
  border-bottom: 1px solid var(--line);
}

.projects a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  align-items: baseline;
  padding: 1.5rem 0;
  text-decoration: none;
}

/* La marque du projet, dans ses propres couleurs */
.mark {
  grid-row: span 2;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
}

.desc {
  grid-column: 2;
  margin-top: 0.25rem;
  color: var(--ink-soft);
}

.address {
  grid-column: 2;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--vowel);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.projects a:hover .address {
  text-decoration-thickness: 0.16em;
}

footer {
  max-width: 38rem;
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Mentions légales */
.legal h1 {
  margin: 0 0 2rem;
  font-size: 2.5rem;
  line-height: 1.1;
}
.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}
.legal p {
  margin: 0 0 0.75rem;
}
.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-weight: 700;
}
