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

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #171717;
  --ink-soft: #4e4e4e;
  --muted: #7a7a75;
  --line: #dfded8;
  --line-soft: #ecebe6;
  --accent: #2c3e6b;
  --green: #278565;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.shell {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header nav a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--line-soft);
}

.site-header .rss {
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 64px;
  align-items: end;
  padding: 82px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow,
.section-label {
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--accent);
  font-weight: inherit;
}

.hero .intro {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-note {
  padding: 18px 0 2px 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.65;
}

.hero-note strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 64px;
  padding: 62px 0 82px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.article-card {
  position: relative;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.article-card:first-of-type { border-top-color: var(--ink); }

.article-card a {
  display: block;
  padding-right: 54px;
  text-decoration: none;
}

.article-card a::after {
  content: "→";
  position: absolute;
  top: 31px;
  right: 4px;
  color: var(--muted);
  font-size: 20px;
  transition: transform 160ms ease, color 160ms ease;
}

.article-card a:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}

.article-card .meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-card p {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.sidebar section {
  margin-bottom: 38px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.sidebar h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar p,
.sidebar li {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.sidebar ul { list-style: none; }

.sidebar li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar .subscribe {
  display: inline-block;
  margin-top: 13px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

/* Article page */
.post-shell { width: min(100% - 48px, 760px); }

.post-header {
  padding: 78px 0 45px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover { color: var(--accent); }

.post-header h1 {
  max-width: 700px;
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 55px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.post-deck {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.post-body {
  max-width: 680px;
  padding: 48px 0 76px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
}

.post-body p { margin-bottom: 24px; }

.post-body a {
  color: var(--accent);
  text-decoration-color: rgba(44, 62, 107, 0.35);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.post-body a:hover { text-decoration-color: var(--accent); }

.post-body h2 {
  margin: 48px 0 18px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.post-body ul {
  margin: -5px 0 28px 1.2em;
}

.post-body li { margin-bottom: 8px; padding-left: 4px; }

.post-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 19px;
  font-style: italic;
}

.post-body .note {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .shell,
  .post-shell { width: min(100% - 36px, 980px); }
  .site-header { min-height: 72px; }
  .brand span { display: none; }
  .site-header nav a:first-child { display: none; }
  .hero,
  .content-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding: 58px 0 48px; }
  .hero-note { max-width: 360px; }
  .content-grid { padding: 48px 0 64px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer { flex-direction: column; gap: 4px; }
  .post-header { padding: 54px 0 38px; }
  .post-body { padding-top: 38px; font-size: 16px; }
}

@media (max-width: 480px) {
  .site-header nav a:not(.rss) { display: none; }
  .hero h1 { font-size: 42px; }
  .sidebar { grid-template-columns: 1fr; gap: 4px; }
  .article-card a { padding-right: 34px; }
  .article-card h3 { font-size: 22px; }
  .post-header h1 { font-size: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
