/* mattrickslauer.com — one column, no JavaScript, no webfonts.
   Nothing here animates. Nothing here loads from another host. */

:root {
  --bg:     #fdfdfa;
  --ink:    #14140f;
  --quiet:  #6b6b60;
  --line:   #ddddd2;
  --link:   #0645ad;
  --seen:   #663b99;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0 auto;
  max-width: 40rem;
  padding: 2.5rem 1.25rem 4rem;
}

/* ── links ────────────────────────────────────────────────────────────────── */

a         { color: var(--link); }
a:visited { color: var(--seen); }
a:hover   { text-decoration: none; }

/* ── nav ──────────────────────────────────────────────────────────────────── */

nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: .75rem;
  margin-bottom: 2rem;
}

nav a, nav .here { margin-right: 1rem; }
nav .here        { color: var(--quiet); }

/* ── type ─────────────────────────────────────────────────────────────────── */

h1 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .4rem; }
h3 { font-size: 1rem; margin: 2rem 0 .4rem; }

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol    { padding-left: 1.3rem; }
li        { margin-bottom: .35rem; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: #f2f2ea;
  padding: .1em .3em;
}

pre {
  background: #f2f2ea;
  overflow-x: auto;
  padding: .9rem 1rem;
}

pre code { background: none; padding: 0; }

blockquote {
  border-left: 2px solid var(--line);
  color: var(--quiet);
  margin: 0 0 1.1rem;
  padding-left: 1rem;
}

img { max-width: 100%; height: auto; }

/* ── projects ─────────────────────────────────────────────────────────────── */

/* The one place anything is loaded from another host: the demo players.
   youtube-nocookie, lazy, never autoplaying — nothing runs until a click. */
.vid {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  margin: 0 0 1.1rem;
  width: 100%;
}

.vid iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

/* A result, stated once, in the same quiet type as a date. */
.win {
  background: #fbf4d9;
  border: 1px solid #d9c168;
  color: #6b5200;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .02em;
  margin: 0 0 1.1rem;
  padding: .15em .5em;
}

/* ── the log feed ─────────────────────────────────────────────────────────── */

.feed article {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-bottom: 2.25rem;
}

.feed article:first-child { border-top: 0; padding-top: 0; }

.when {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  letter-spacing: .02em;
  margin: 0 0 .35rem;
}

.out  { margin-bottom: 0; }
.more { margin-top: 2.5rem; }

/* ── footer ───────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: .9rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
}

footer p { margin: 0 0 .5rem; }
footer .links a { margin-right: .15rem; }
