:root {
  --paper: #fbfaf6;
  --ink: #191a1e;
  --muted: #686b72;
  --navy: #1d3f6e;
  --line: #d9d7cf;
  --soft: #f0eee7;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  max-width: none;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

body::before {
  content: "WP ADMIN LAB  ·  CARNET TECHNIQUE";
  display: block;
  padding: .65rem max(1.25rem, calc((100vw - 780px) / 2));
  color: #fff;
  background: var(--navy);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .16em;
}

header, main, footer {
  display: block;
  width: calc(100% - 2.5rem);
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

header {
  padding: 2.8rem 0 1.4rem;
  text-align: left;
}

header h1 {
  margin: 0 0 .9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

header nav {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--line);
}

header nav a {
  color: var(--navy);
  font-size: .78rem !important;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

hr {
  height: 1px;
  margin: 1.6rem 0;
  border: 0;
  background: var(--line);
}

main > section:first-child article {
  padding: 1.3rem 1.4rem;
  border-left: 4px solid var(--navy);
  background: var(--soft);
  color: #35373c;
}

.posts article { border-bottom: 1px solid var(--line); }

.posts article > div {
  display: grid !important;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
}

.post-date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .73rem !important;
  letter-spacing: .04em;
}

.posts a {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.posts a:hover { color: var(--navy); }

#post main { max-width: 720px; }

#post header h1 { font-size: clamp(2rem, 6vw, 3.6rem); }

#post article h1,
#post article h2,
#post article h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -.025em;
}

#post article h2 {
  margin-top: 2.8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: 1.75rem;
}

#post article a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }

pre {
  overflow-x: auto;
  padding: 1.15rem;
  border: 1px solid #2e3540;
  border-radius: 3px;
  background: #161a20;
  color: #eef3f8;
  font-size: .86rem;
  line-height: 1.55;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

blockquote {
  margin: 2rem 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--navy);
  color: #44474e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

footer {
  padding: 1rem 0 3rem;
  color: var(--muted);
  font-size: .75rem;
}

footer a { color: var(--navy); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  body::before {
    padding: .6rem 1rem;
    font-size: .58rem;
    letter-spacing: .11em;
    text-align: center;
  }
  header, main, footer { width: calc(100% - 2rem); }
  header { padding-top: 1.8rem; }
  header h1 { font-size: clamp(2rem, 12vw, 3rem); }
  header nav { flex-wrap: wrap; justify-content: center; }
  header nav a { display: inline-flex; min-height: 44px; align-items: center; }
  main > section:first-child article { padding: 1rem; }
  .posts article > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .posts a { overflow-wrap: anywhere; }
  #post article h2 { font-size: 1.5rem; }
  pre { max-width: 100%; font-size: .76rem; }
}

@media (max-width: 360px) {
  header, main, footer { width: calc(100% - 1.4rem); }
  header h1 { font-size: 1.9rem; }
  main > section:first-child article { padding: .85rem; }
}
