:root {
  --bg: #f5f3ee;
  --ink: #1c1e24;
  --dim: #7f8089;
  --accent: #2f4b7c;
  --line: rgba(28, 30, 36, 0.16);
  --dots: rgba(205, 214, 228, 0.18);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 42%, #000, transparent 75%);
  opacity: 0.5;
}

header, footer {
  padding: 1.1rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

header { border-bottom: 1px solid var(--line); }

header .cmd { color: var(--accent); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--dim);
}

footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1.5rem;
  padding: 2.5rem 1.4rem;
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1 .accent { color: var(--accent); }

.rule {
  width: min(42rem, 100%);
  height: 1px;
  background: var(--line);
}

.mission {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.mission::before {
  content: "> ";
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 0.15em;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

/* Pages de contenu */

main.doc {
  display: block;
  width: min(72ch, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.4rem 4rem;
}

.doc h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); }

.doc h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc p, .doc address {
  margin: 0 0 0.85rem;
  font-style: normal;
}

.doc address { line-height: 1.7; }

.doc .meta {
  font-size: 0.78rem;
  color: var(--dim);
}

.doc a { color: var(--accent); }
