/* Guillaume Allegre — personal site
   Deliberately bare: system sans, one text colour, no images, no scripts. */

:root {
  --text:  rgba(0, 0, 0, .8);
  --muted: rgba(0, 0, 0, .55);
  --bg:    #fff;
  --sans:  -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "Courier New", Courier, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text:  rgba(255, 255, 255, .85);
    --muted: rgba(255, 255, 255, .55);
    --bg:    #111;
  }
}

body {
  margin: 7px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; }
a:hover { text-decoration: none; }

h1 { margin: 0 0 1em; font-size: 24px; }

ul { list-style: none; margin: 0; padding: 0; }

/* Home */

#landing { max-width: 700px; margin: 119px auto; }
#landing h1 { margin-bottom: .6em; }
.links li { padding-bottom: 5px; }
.links .contact { padding-bottom: 10px; font-family: var(--mono); }

/* Inner pages */

.nav, .page { max-width: 700px; margin: 0 auto; }
.nav { margin-top: 15px; font-size: 12px; }
.nav a { margin-right: 10px; color: var(--muted); text-decoration: none; }
.nav a:hover,
.nav a[aria-current] { color: var(--text); }
.nav .home { margin-right: 18px; color: var(--text); font-weight: 600; }

.page { margin-top: 83px; margin-bottom: 100px; }

.rows li { margin-bottom: 22px; }
.rows:empty::before { content: "Nothing here yet."; color: var(--muted); }
.rows a { display: block; }
.rows time,
.rows span { display: block; color: var(--muted); font-size: 13px; }

/* A post */

.post time { display: block; margin: -.6em 0 2em; color: var(--muted); font-size: 13px; }
.post p, .post ul, .post ol, .post pre, .post figure { margin: 0 0 1.1em; }
.post ul, .post ol { padding-left: 1.4em; list-style: revert; }
.post h2 { margin: 2em 0 .6em; font-size: 18px; }
.post pre, .post code { font-family: var(--mono); font-size: 13px; }
.post pre { overflow-x: auto; }
.post img { max-width: 100%; height: auto; }

/* Below 714px the 700px column touches the 7px body margin; give it room. */
@media (max-width: 760px) {
  body { margin: 0 20px; }
  #landing { margin: 80px auto; }
  .page { margin-top: 56px; }
}
