/* ============================================================
   Minimal pixel-clean personal site — white bg, black text
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

:root{
  --bg:           #ffffff;
  --surface:      #fafafa;
  --border:       #111111;
  --border-dim:   #d4d4d4;
  --text:         #0a0a0a;
  --text-dim:     #4a4a4a;
  --text-muted:   #8a8a8a;
  --accent:       #0a0a0a;
  --link:         #1d4ed8;

  --font-head:    'Computer Modern Serif', 'Latin Modern Roman', Cambria, 'Times New Roman', Times, serif;
  --font-body:    'Computer Modern Serif', 'Latin Modern Roman', Cambria, 'Times New Roman', Times, serif;
}

body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 19px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

strong, b { font-weight: 400; }

/* ---------- Layout ---------- */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

.layout{
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.main-col{ min-width: 0; }

/* ---------- Nav (top) ---------- */
nav.top{
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg);
}
nav.top .row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
nav.top .brand{
  font-family: var(--font-head);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
nav.top .brand .dot{
  display: none; /* clean = no pulse dot */
}

/* ---------- Hero ---------- */
.hero{
  padding: 80px 0 48px;
}
.hero h1{
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 .accent{ color: var(--text); }
.hero p.lede{
  font-size: 21px;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.5;
}

/* ---------- Sections ---------- */
section.block{
  padding: 36px 0 24px;
}
.section-head{
  margin-bottom: 12px;
}
.section-head h2{
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--text);
}

/* ---------- Quote list ---------- */
.quote-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 36px;
  max-width: 640px;
}
.quote-list li::marker{ content: ""; }
.quote p{
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
}
.quote .attr{
  font-style: normal;
  color: var(--text-muted);
  margin-left: 6px;
  white-space: nowrap;
}

/* ---------- Simple link list (Writings etc.) ---------- */
.link-list{
  list-style: none;
}
.link-list li{
  padding: 4px 0;
}
.link-list a{
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}
.link-list a:hover{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- Writings list ---------- */
.writing-list{
  display: flex; flex-direction: column;
}
.post-row{
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-dim);
  text-decoration: none;
  color: inherit;
  transition: padding-left .15s ease;
}
.post-row:first-child{ padding-top: 4px; }
.post-row:hover{ padding-left: 6px; }
.post-row .date{
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--text-muted);
}
.post-row h3{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 26px;
  color: var(--text);
  line-height: 1.2;
}
.post-row:hover h3{ color: var(--link); }
.post-row p{
  font-size: 22px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.35;
}
.post-row .read{
  font-family: var(--font-head);
  font-size: 9px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-row .read .arrow{ transition: transform .15s ease; }
.post-row:hover .read{ color: var(--link); }
.post-row:hover .read .arrow{ transform: translateX(3px); }

/* ---------- Empty-state placeholder ---------- */
.placeholder{
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  color: var(--text-muted);
  padding: 8px 0 0;
}
.contact-line{
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text);
  padding: 8px 0 0;
}
.contact-line a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Sidebar (small, right) ---------- */
.sidebar{
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 80px 0 0;
}
.sidebar-list{
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
}
.sidebar-list a{
  display: inline-block;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s ease;
}
.sidebar-list a:hover{ color: var(--link); }
.sidebar-list a.active{ color: var(--link); }

/* ---------- Footer ---------- */
footer{
  padding: 40px 0 56px;
  border-top: 1px solid var(--border-dim);
  font-family: var(--font-head);
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 80px;
}

/* ---------- Article (post page) ---------- */
article.post{
  padding: 72px 0 40px;
  max-width: 680px;
  margin: 0 auto;
}
article.post .back{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .15s ease;
}
article.post .back:hover{ color: var(--link); }
article.post .post-meta{
  font-family: var(--font-body); font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}
article.post .views-wrap{ display:none; }
article.post .views-wrap.shown{ display:inline; }
article.post #views{ color: var(--text); }
article.post h1{
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
}
article.post .lede{
  font-size: 21px;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.5;
}
article.post p{
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}
article.post h2{
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--text);
}
article.post blockquote{
  border-left: 3px solid var(--border);
  padding-left: 18px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: normal;
}
article.post a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Selection ---------- */
::selection{ background: #fde68a; color: var(--text); }

/* ---------- Reveal (legacy, harmless if unused) ---------- */
.reveal{ opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  body{ font-size: 18px; }
  .layout{ grid-template-columns: 1fr; gap: 20px; }
  .sidebar{
    position: static; padding: 0;
    order: -1;
  }
  .sidebar-list{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0 0;
  }
  .sidebar-list a{ font-size: 17px; }
  .hero{ padding: 56px 0 32px; }
  .hero p.lede{ font-size: 19px; }
  section.block{ padding: 40px 0; }
}
