
:root { --ink: #1a1a1a; --muted: #6b6b6b; --line: #e6e6e6; --accent: #0f8f83; --accent-dark: #0b6f66; --paper: #ffffff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.pub-subscribe { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 8px; }
.pub-subscribe:hover { background: var(--accent-dark); }
.pub-topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.pub-brand { display: flex; align-items: center; gap: 10px; font-family: Spectral, Georgia, serif; font-weight: 700; font-size: 20px; }
.pub-brand img { border-radius: 6px; }
.pub-masthead { text-align: center; padding: 48px 20px 0; }
.pub-logo { margin: 0 auto 16px; border-radius: 12px; }
.pub-masthead h1 { font-family: Spectral, Georgia, serif; font-size: 42px; line-height: 1.1; margin: 0 0 10px; font-weight: 700; }
.pub-tagline { color: var(--muted); font-size: 17px; line-height: 1.45; max-width: 560px; margin: 0 auto 6px; }
.pub-by { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.pub-tabs { display: flex; justify-content: center; gap: 28px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.pub-tabs a { padding: 12px 2px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pub-tabs a.active, .pub-tabs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.pub-main { max-width: 728px; margin: 0 auto; padding: 32px 20px 56px; }
.pub-sub { color: var(--muted); font-size: 17px; line-height: 1.45; margin: 0; }
.pub-meta { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.pub-hero { display: block; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.pub-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.pub-hero h2 { font-family: Spectral, Georgia, serif; font-size: 32px; line-height: 1.15; margin: 0 0 8px; }
.pub-list h4 { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin: 28px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pub-row { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub-row h3 { font-family: Spectral, Georgia, serif; font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
.pub-row img { width: 112px; height: 76px; object-fit: cover; border-radius: 6px; flex: none; }
.pub-row:hover h3, .pub-hero:hover h2 { color: var(--accent-dark); }
.pub-more { text-align: center; margin-top: 24px; font-weight: 600; }
.pub-empty { text-align: center; padding: 48px 12px; }
.pub-empty h2 { font-family: Spectral, Georgia, serif; font-size: 26px; margin: 0 0 8px; }
.pub-empty p { color: var(--muted); font-size: 17px; margin: 0; }
.pub-article { max-width: 728px; margin: 0 auto; padding: 40px 20px 56px; }
.pub-article h1 { font-family: Spectral, Georgia, serif; font-size: 40px; line-height: 1.12; margin: 0 0 10px; font-weight: 700; }
.pub-article .pub-sub { font-size: 20px; }
.pub-byline { display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.pub-byline img { border-radius: 50%; }
.pub-byline span { display: block; color: var(--muted); font-size: 13px; }
.pub-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 28px; }
.pub-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.pub-body { font-family: Spectral, Georgia, serif; font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.pub-body h2 { font-family: Spectral, Georgia, serif; font-size: 28px; line-height: 1.2; margin: 40px 0 12px; }
.pub-body h3 { font-family: Spectral, Georgia, serif; font-size: 23px; line-height: 1.25; margin: 32px 0 10px; }
.pub-body p, .pub-body ul, .pub-body ol { margin: 0 0 20px; }
.pub-body a { color: var(--accent-dark); text-decoration: underline; }
.pub-body code { font-family: "SF Mono", Menlo, monospace; font-size: 0.85em; background: #f3f3f1; padding: 2px 5px; border-radius: 4px; }
.pub-body pre { font-family: "SF Mono", Menlo, monospace; font-size: 16px; line-height: 1.5; background: #f3f3f1; padding: 16px 18px; border-radius: 8px; overflow-x: auto; margin: 0 0 20px; }
.pub-body table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.4; margin: 0 0 24px; }
.pub-body th, .pub-body td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pub-body th { font-weight: 600; color: var(--muted); }
.pub-body small { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); }
.pub-body img { border-radius: 6px; margin: 24px auto; }
.pub-end { text-align: center; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.pub-end p { font-family: Spectral, Georgia, serif; font-size: 20px; margin: 0 0 14px; }
.pub-back { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; }
.pub-footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; padding: 24px 20px; }
.pub-footer a { text-decoration: underline; }
@media (max-width: 560px) {
  .pub-masthead h1 { font-size: 34px; }
  .pub-article h1 { font-size: 31px; }
  .pub-body { font-size: 18px; }
  .pub-hero h2 { font-size: 26px; }
  .pub-row img { width: 84px; height: 60px; }
}
