:root {
  --ink: #16181d;
  --soft: #3d424a;
  --muted: #757b85;
  --line: #e8eaed;
  --bg: #ffffff;
  --accent: #0a66c2;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

main,
.site-header,
.site-footer { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { padding-top: 40px; }
.site-name {
  font-family: var(--serif);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.site-name::after { content: "."; color: var(--accent); }

/* icon buttons */
.icon-row { display: flex; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 11px;
  color: var(--muted);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.icon-btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1fr 220px; gap: 44px; align-items: center;
  padding: 52px 0 44px; border-bottom: 1px solid var(--line);
}
.hero-name {
  font-family: var(--serif);
  font-size: 46px; line-height: 1.08; margin: 0 0 18px;
  font-weight: 500; letter-spacing: -0.02em;
}
.hero-intro { margin: 0 0 24px; font-size: 19px; color: var(--soft); line-height: 1.6; }
.hero-photo img {
  width: 100%; height: auto; border-radius: 12px; display: block;
  filter: grayscale(100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.10);
}

/* posts list */
.posts { padding: 40px 0 8px; }
.section-label {
  font-family: var(--sans);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); font-weight: 600; margin: 0 0 6px;
}
.post-card {
  display: block; text-decoration: none; color: inherit;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.post-card:first-of-type { border-top: 1px solid var(--line); }
.post-meta { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.post-link {
  font-family: var(--serif);
  font-size: 25px; font-weight: 500; color: var(--ink);
  margin: 7px 0 9px; line-height: 1.22; letter-spacing: -0.01em;
  transition: color .15s;
}
.post-card:hover .post-link { color: var(--accent); }
.arrow {
  display: inline-block; margin-left: 8px; color: var(--accent);
  opacity: 0; transform: translateX(-5px);
  transition: opacity .15s, transform .15s;
}
.post-card:hover .arrow { opacity: 1; transform: translateX(0); }
.post-excerpt { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.55; }

/* single post */
.post .post-meta { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 40px; }
.post-title {
  font-family: var(--serif);
  font-size: 36px; line-height: 1.14; margin: 8px 0 0;
  font-weight: 600; letter-spacing: -0.02em;
}
.post-body { margin-top: 30px; font-size: 18px; }
.post-body p { margin: 0 0 22px; }
.post-body h2 { font-family: var(--serif); font-size: 26px; margin: 38px 0 14px; font-weight: 600; letter-spacing: -0.01em; }
.post-body h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { margin: 0 0 9px; }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body a { color: var(--accent); }
.post-body blockquote { margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--soft); font-style: italic; }
.post-body code { background: #f1f3f5; padding: 1px 6px; border-radius: 4px; font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.back { margin-top: 52px; font-size: 15px; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent); }

/* footer */
.site-footer { padding: 48px 0 72px; margin-top: 56px; border-top: 1px solid var(--line); }
.footer-note { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0 0 20px; max-width: 30em; line-height: 1.4; }
.copyright { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 36px 0 36px; }
  .hero-photo { order: -1; max-width: 190px; }
  .hero-name { font-size: 36px; }
  .post-link { font-size: 22px; }
  .post-title { font-size: 29px; }
}
