/* Copyright 2026 Patrick Zajda. Licensed under the EUPL, version 1.2 or later. */

/* Une seule colonne, sans police distante ni largeur fixe. */
html {
  color-scheme: light;
  background: #f6f7f9;
  color: #202b38;
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}

body {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem;
  overflow-wrap: anywhere;
}

header {
  padding: 1rem 0;
  border-bottom: 2px solid #697687;
}

.eyebrow {
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

a {
  color: #154f91;
  text-underline-offset: 0.2em;
}

a:visited {
  color: #653d86;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

/* Un indicateur visible au clavier, y compris sur les anciens navigateurs. */
a:focus,
main:focus {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-left: 1.25rem;
}

nav a {
  display: inline-block;
  padding: 0.4rem 0;
}

section {
  margin: 2.5rem 0;
}

li {
  margin-bottom: 0.75rem;
}

.projects {
  padding-left: 1.25rem;
}

.projects > li {
  margin-bottom: 1.75rem;
}

.projects p {
  margin: 0.5rem 0;
}

footer {
  border-top: 1px solid #697687;
  padding-top: 1rem;
}

/* Le lien d’évitement apparaît au premier appui sur Tab. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  padding: 0.5rem;
  clip-path: none;
  white-space: normal;
}

@media print {
  html {
    background: white;
    color: black;
  }

  body {
    max-width: none;
    padding: 0;
  }

  nav,
  .skip-link {
    display: none;
  }

  a,
  a:visited {
    color: black;
  }
}
