/* Archive UASF — feuille de style sobre, typo système, max 760px. */

:root {
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #1d4ed8;
  --bg: #ffffff;
  --border: #e5e5e5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

/* --- header / nav / footer ------------------------------------------ */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.site-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
}

.site-nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer .generated { font-style: italic; }

/* --- listings ------------------------------------------------------- */

.listing { margin-bottom: 2.5rem; }
.listing h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

.entries { list-style: none; padding: 0; margin: 0; }
.entry { padding: 0.75rem 0; border-bottom: 1px dashed var(--border); }
.entry:last-child { border-bottom: 0; }

.entry-title { font-weight: 600; font-size: 1.05rem; }
.entry-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}
.entry-excerpt {
  color: var(--fg);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
  opacity: 0.85;
}

/* --- post bodies ---------------------------------------------------- */

.post-header h1 {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.post-body h2 { font-size: 1.35rem; margin-top: 2rem; }
.post-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.post-body blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
.post-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}
.post-body td, .post-body th {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
}
.post-body pre {
  background: #f5f5f5;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* --- intro home ----------------------------------------------------- */

.intro h1 { margin-top: 0; }

/* --- responsive ----------------------------------------------------- */

@media (max-width: 640px) {
  html, body { font-size: 16px; }
  body { padding: 1.25rem 1rem 3rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav a { margin-left: 0; margin-right: 1rem; }
}
