@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
  --ink: #141414;
  --body: #2a2a2a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --rule: #e6e3dd;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #1d4a3a;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

/* ---------- header ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.01em;
}
header.site .name { color: var(--ink); text-decoration: none; font-weight: 600; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; margin-bottom: 3.5rem; }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1.08;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 1rem;
}
.hero .role { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin: 0 0 1.5rem; line-height: 1.5; }
.hero .intro { font-size: 1.12rem; color: var(--body); margin: 0; max-width: 32rem; }
.hero img.photo {
  width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
  filter: grayscale(100%); border: 1px solid var(--rule); background: var(--card);
}

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin: 0 0 3.5rem; font-family: var(--sans);
}
.facts div { background: var(--card); padding: 1rem 1.1rem; }
.facts .n { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -0.01em; }
.facts .l { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.35; }

/* ---------- section labels ---------- */
.label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 1rem;
}

/* ---------- post list ---------- */
ul.posts { list-style: none; padding: 0; margin: 0 0 2rem; }
ul.posts li { padding: 1.4rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.5rem 1rem; }
ul.posts li:last-child { border-bottom: 1px solid var(--rule); }
ul.posts .num { font-family: var(--display); font-size: 1.2rem; color: var(--faint); line-height: 1.3; padding-top: 0.1rem; }
ul.posts a.title { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
ul.posts a.title:hover { color: var(--accent); }
ul.posts .summary { display: block; color: var(--muted); margin-top: 0.4rem; font-size: 0.98rem; }
ul.posts .date { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--faint); margin-top: 0.55rem; letter-spacing: 0.02em; }

/* ---------- article ---------- */
article h1 {
  font-family: var(--display); font-weight: 600; font-size: 2.3rem; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.9rem;
}
article .meta { font-family: var(--sans); font-size: 0.76rem; color: var(--faint); margin-bottom: 2.75rem; letter-spacing: 0.02em; }
article p { margin: 0 0 1.4rem; font-size: 1.05rem; }
article h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 2.5rem 0 0.8rem; color: var(--ink); }
article blockquote { margin: 2rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--accent); color: var(--muted); font-style: italic; }

.next { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.next a { color: var(--ink); text-decoration: none; font-weight: 500; }
.next a:hover { color: var(--accent); }

/* ---------- about ---------- */
.page h1 { font-family: var(--display); font-weight: 600; font-size: 2.3rem; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.6rem; }
.page .meta { font-family: var(--sans); font-size: 0.76rem; color: var(--faint); margin-bottom: 2.5rem; }
.page p { margin: 0 0 1.4rem; font-size: 1.05rem; }
.page h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 2.5rem 0 0.8rem; color: var(--ink); }

a { color: var(--accent); }

/* ---------- footer ---------- */
footer.site {
  margin-top: 4.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 0.76rem; color: var(--faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 640px) {
  html { font-size: 17px; }
  .wrap { padding-top: 1.75rem; }
  header.site { margin-bottom: 2.5rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero img.photo { width: 110px; height: 110px; order: -1; }
  .hero h1 { font-size: 2.1rem; }
  .facts { grid-template-columns: 1fr; }
  ul.posts li { grid-template-columns: 1fr; gap: 0.2rem; }
  ul.posts .num { display: none; }
  article h1, .page h1 { font-size: 1.85rem; }
}
