:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #363737;
  --muted: #868787;
  --line: #eeeeee;
  --accent: #002b5b;
  --code: #f5f5f5;
  font-family: Spectral, Georgia, Cambria, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 19px;
  line-height: 1.6;
}

.site-shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 0 0 56px;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.site-brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.article-back,
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

.hero {
  padding: 48px 0 36px;
}

.hero h1,
.article-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p,
.archive-note,
.article-subtitle {
  color: var(--muted);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
}

.archive-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.archive-item a {
  display: inline-block;
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration-color: transparent;
}

.archive-item a:hover {
  text-decoration-color: var(--accent);
}

.archive-meta,
.article-date,
.article-meta {
  margin-top: 6px;
  color: var(--muted);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
}

.article-meta {
  margin-bottom: 0;
}

.article-header {
  padding: 30px 0 24px;
}

.article-subtitle {
  margin: 12px 0 0;
  max-width: 680px;
  font-size: 18px;
}

.article-body {
  padding-top: 8px;
}

.article-body h2,
.article-body h3 {
  margin: 1.55em 0 0.7em;
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.article-body h2 { font-size: 1.625rem; }
.article-body h3 { font-size: 1.375rem; }

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 20px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  color: #3d433f;
  padding-left: 18px;
}

.article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

.article-body figure {
  margin: 24px 0;
}

.article-body figcaption,
.article-body .caption {
  color: var(--muted);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.article-body pre,
.article-body code {
  background: var(--code);
  border-radius: 4px;
}

.article-body code { padding: 0.08em 0.24em; }

.article-body pre {
  overflow-x: auto;
  padding: 16px;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.article-body .footnote {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-body .footnote-number {
  flex: 0 0 auto;
  color: var(--accent);
}

.article-body .footnote-number::after {
  content: ".";
}

.article-body .footnote-content {
  min-width: 0;
}

.article-body .footnote-content p {
  display: inline;
  margin: 0;
}

.subscription-widget-wrap-editor,
.image-link-expand,
.button-wrapper,
[data-component-name="SubscribeWidgetToDOM"] {
  display: none !important;
}

.article-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
}

.article-footer p {
  margin: 0 0 8px;
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "SF Pro Display", -apple-system-headline, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  body { font-size: 18px; }
  .site-shell { width: min(100% - 24px, 680px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-brand { font-size: 22px; line-height: 28px; }
  .hero { padding-top: 36px; }
  .archive-item a { font-size: 1.18rem; }
}
