/* asherfeldman.com */

/* Computer Modern — the LaTeX body face (CMU Serif), self-hosted */
@font-face{
  font-family:"CMU Serif";
  src:url(fonts/cmu-serif-500-roman.woff2) format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"CMU Serif";
  src:url(fonts/cmu-serif-500-italic.woff2) format("woff2");
  font-weight:400;font-style:italic;font-display:swap;
}
@font-face{
  font-family:"CMU Serif";
  src:url(fonts/cmu-serif-700-roman.woff2) format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}

:root{
  --paper:#ffffff;
  --ink:#000000;
  --muted:#6b6b6b;
  --rule:#dcdcdc;
  --cell:#f6f6f6;
  --accent:#000000;
}

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

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

/* Conway's Game of Life, running behind the page */
#life{
  position:fixed;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

body{
  color:var(--ink);
  font-family:"CMU Serif","Latin Modern Roman","Computer Modern",Georgia,"Times New Roman",serif;
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

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

.masthead{overflow:hidden}

.portrait{
  float:right;
  width:124px;
  height:124px;
  object-fit:cover;
  margin:5px 0 14px 32px;
  filter:saturate(.92);
}

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

.lede{margin-bottom:18px}

.links{
  color:var(--muted);
  font-size:.92rem;
  margin-bottom:8px;
}

/* ── 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}

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

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

/* ── 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)}

code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em}

::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 0 12px 20px}
  h2{margin-top:44px}
}
