@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --paper: #D7D6D1;
  --ink: #1A1917;
  --muted: #5C594F;
  --accent: #33312B;
  --rule: #B7B4AC;
  --max: 640px;
}

*{box-sizing:border-box;}

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
}

@media (prefers-reduced-motion: no-preference){
  a{transition:color .15s ease;}
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 24px;
}

/* Masthead */
.masthead{
  padding-top:56px;
}
.masthead-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
}
.logo{
  font-family:'Newsreader', serif;
  font-size:26px;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  letter-spacing:-0.01em;
}
.masthead nav{
  display:flex;
  gap:20px;
}
.masthead nav a{
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
}
.masthead nav a:hover{color:var(--accent);}

.tagline{
  font-family:'Newsreader', serif;
  font-style:italic;
  font-size:17px;
  color:var(--muted);
  margin:14px 0 22px;
  max-width:46ch;
}

.wave{
  display:block;
  width:100%;
  height:14px;
  margin-bottom:44px;
}
.wave path{
  fill:none;
  stroke:var(--accent);
  stroke-width:2;
  stroke-linecap:round;
}

/* Post list */
.post-list{
  padding-bottom:64px;
}
.post-item{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:26px 0;
  border-bottom:1px solid var(--rule);
}
.post-item:first-child{padding-top:0;}
.post-item:last-child{border-bottom:none;}
.post-thumb-link{
  flex:none;
  display:block;
}
.post-thumb{
  width:88px;
  height:88px;
  object-fit:cover;
  filter:grayscale(1);
  display:block;
}
.post-item-text{
  flex:1;
  min-width:0;
}
.post-meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
.post-title{
  font-family:'Newsreader', serif;
  font-size:24px;
  font-weight:500;
  line-height:1.3;
  margin:0 0 8px;
}
.post-title a{
  color:var(--ink);
  text-decoration:none;
}
.post-title a:hover{color:var(--accent);}
.post-excerpt{
  font-size:15px;
  color:var(--muted);
  line-height:1.55;
  max-width:56ch;
}

/* Eeps — short posts, no title/thumbnail, mixed into the homepage feed */
.eep-item{
  padding:20px 0;
  border-bottom:1px solid var(--rule);
  border-left:2px solid var(--rule);
  padding-left:16px;
}
.eep-item:first-child{padding-top:0;}
.eep-item:last-child{border-bottom:none;}
.eep-item .post-meta a{
  color:var(--muted);
  text-decoration:none;
}
.eep-item .post-meta a:hover{color:var(--accent);}
.eep-body{
  font-family:'Newsreader', serif;
  font-size:17px;
  line-height:1.6;
  max-width:56ch;
}
.eep-body p{margin:0 0 14px;}
.eep-body p:last-child{margin-bottom:0;}
.eep-body a{color:var(--accent);}

.eep-article .article-meta{margin-bottom:32px;}

/* Single post */
.post-header{
  padding:8px 0 8px;
}
.back-link{
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
  display:inline-block;
  margin-bottom:28px;
}
.back-link:hover{color:var(--accent);}

article h1{
  font-family:'Newsreader', serif;
  font-size:34px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-0.01em;
  margin:0 0 10px;
}
.article-meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:40px;
}
article .prose{
  font-family:'Newsreader', serif;
  font-size:19px;
  line-height:1.65;
  max-width:64ch;
}
article .prose p{margin:0 0 22px;}
article .prose a{color:var(--accent); text-decoration:underline; text-underline-offset:3px;}

.post-illustration{
  margin:8px 0 36px;
}
.post-illustration img{
  width:100%;
  display:block;
  filter:grayscale(1);
}
.post-illustration figcaption{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  font-style:italic;
}

@media (max-width:480px){
  .post-thumb{width:64px;height:64px;}
}

/* 404 */
.notfound{
  padding:56px 0 60px;
}
.notfound h1{
  font-family:'Newsreader', serif;
  font-size:32px;
  font-weight:600;
  margin:0 0 14px;
}
.notfound p{
  font-family:'Newsreader', serif;
  font-size:18px;
  line-height:1.6;
  color:var(--muted);
  max-width:52ch;
  margin:0 0 18px;
}
.notfound a{color:var(--accent);}
article .prose blockquote{
  margin:28px 0;
  padding-left:18px;
  border-left:2px solid var(--rule);
  font-style:italic;
  color:var(--muted);
}

footer{
  padding:40px 0 60px;
  border-top:1px solid var(--rule);
  margin-top:20px;
  font-size:13px;
  color:var(--muted);
}
footer .sign{
  font-family:'Newsreader', serif;
  font-style:italic;
  color:var(--ink);
}

/* About */
.about-body{
  font-family:'Newsreader', serif;
  font-size:19px;
  line-height:1.65;
  max-width:56ch;
  padding-bottom:60px;
}
.about-body p{margin:0 0 20px;}
.about-body a{color:var(--accent);}

.page-back{
  padding:24px 0 0;
}

@media (max-width:480px){
  .masthead{padding-top:36px;}
  .post-title{font-size:21px;}
  article h1{font-size:28px;}
  article .prose{font-size:18px;}
}
