/* maxfeldman.com */

:root{
  --paper:#0c0d10;
  --ink:#e8e6e1;
  --muted:#8b8d94;
  --rule:#2a2c33;
  --accent:#ffffff;
  --path:#8fb8d0;
}

*{box-sizing:border-box;margin:0;padding:0}

html{-webkit-text-size-adjust:100%;background:var(--paper)}

body{
  color:var(--ink);
  font-family:Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif;
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Levy-Ciesielski construction of Brownian motion, behind the page */
#brownian{
  position:fixed;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.55;
}

main{
  position:relative;
  z-index:1;
  max-width:680px;
  margin:0 auto;
  padding:92px 28px 72px;
}

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

nav{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:46px;
}

nav .name{
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.01em;
  text-decoration:none;
}

/* ── masthead ─────────────────────────────────────── */

.portrait{
  float:left;
  width:124px;
  height:124px;
  object-fit:cover;
  margin:4px 32px 18px 0;
  filter:saturate(.92);
}

h1{
  font-size:1.62rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.25;
  margin-bottom:22px;
}

/* ── prose ────────────────────────────────────────── */

main > p{margin-bottom:18px}

/* profile links, sitting between the prose and the first section */
.elsewhere{
  font-size:.86rem;
  color:var(--muted);
  margin-top:24px;
}

/* ── sections ─────────────────────────────────────── */

h2{
  font-size:.76rem;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  margin:52px 0 20px;
  padding-bottom:7px;
  border-bottom:1px solid var(--rule);
}

/* ── entries ──────────────────────────────────────── */

.entry{
  display:grid;
  grid-template-columns:5.4rem 1fr;
  gap:0 26px;
  margin-bottom:26px;
}

.entry:last-of-type{margin-bottom:0}

.when{
  color:var(--muted);
  font-size:.86rem;
  line-height:1.72;
  padding-top:.1em;
  white-space:nowrap;
}

.what{margin-bottom:2px}
.what b{font-weight:700}

.entry p+p{margin-top:2px}

/* ── prose pages ──────────────────────────────────── */

.back{
  display:block;
  color:var(--muted);
  font-size:.86rem;
  margin-bottom:34px;
}

.post h1{margin-bottom:4px}

.dateline{
  color:var(--muted);
  font-size:.86rem;
  margin-bottom:26px;
}

.post p{margin-bottom:16px}
.post p:last-child{margin-bottom:0}

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

footer{
  clear:both;
  margin-top:52px;
  padding-top:18px;
  border-top:1px solid var(--rule);
  color:var(--muted);
  font-size:.82rem;
}

footer p+p{margin-top:10px}

/* ── inline ───────────────────────────────────────── */

a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:var(--rule);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  transition:text-decoration-color .15s;
}

a:hover{text-decoration-color:var(--accent)}

::selection{background:var(--ink);color:var(--paper)}

/* ── narrow ───────────────────────────────────────── */

@media (max-width:560px){
  body{font-size:17px}
  main{padding:56px 22px 52px}
  .entry{grid-template-columns:1fr;gap:0}
  .when{margin-bottom:1px;padding-top:0}
  .portrait{width:92px;height:92px;margin:2px 20px 14px 0}
  h2{margin-top:44px}
  nav{margin-bottom:34px}
}
