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

:root {
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-accent: #1e40af;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #eff6ff;
  --color-bg: #faf9f7;
  --color-bg-subtle: #f1f0ee;
  --color-border: #e2e0da;
  --color-header-bg: #0f172a;
  --color-header-text: #f1f5f9;
  --color-header-muted: #94a3b8;
  --color-header-border: #1e293b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 720px;
  --max-width-wide: 1040px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* ── Site header (dark) ── */

.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  padding: 1.1rem 0;
}

.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-title a {
  color: var(--color-header-text);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
  color: #fff;
}

.site-title-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-header-muted);
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.825rem;
}

.site-nav a {
  color: var(--color-header-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-header-text);
  text-decoration: none;
}

.site-nav a.nav-active {
  color: var(--color-header-text);
}

/* ── Publication hero ── */

.pub-hero {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  padding: 5rem 0 4rem;
}

.pub-hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 1.25rem;
}

.pub-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.pub-hero .tagline {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 560px;
  line-height: 1.7;
}

.pub-hero .tagline a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-hero .tagline a:hover {
  color: #fff;
}

/* ── Article list ── */

.section {
  padding: 3rem 0;
}

.article-list {
  list-style: none;
}

.article-item {
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0;
}

.article-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.article-item::after {
  content: "";
  display: block;
  clear: both;
}

.article-thumb {
  float: right;
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 3px;
  margin: 0.1rem 0 0.75rem 1.25rem;
  display: block;
  background: var(--color-bg-subtle);
}

.article-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-item h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-item h2 a {
  color: var(--color-text);
}

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

.article-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.875rem;
  max-width: 600px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

.article-series-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 3px;
  padding: 0.2em 0.55em;
}

/* ── Article page header ── */

.article-header {
  padding: 4rem 0 2.75rem;
  border-bottom: 1px solid var(--color-border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--color-text);
  text-decoration: none;
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.byline-dot {
  color: var(--color-border);
}

/* ── Article body ── */

.article-body {
  padding: 3rem 0 4rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-body blockquote strong {
  font-style: normal;
  color: var(--color-text);
}

.article-body figure {
  margin: 2.25rem 0;
}

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

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.4rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-accent-hover);
}

.article-sign {
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.article-sign a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Share bar ── */

.share-bar {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.share-bar .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3em 0.8em;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  line-height: 1.5;
  transition: border-color 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Paper strip ── */

.paper-strip {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 2.5rem 0;
}

.paper-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.paper-strip__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.4rem;
}

.paper-strip__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
}

.paper-strip__desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

.paper-strip__link {
  display: inline-block;
  background: #1e3a8a;
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55em 1.1em;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.paper-strip__link:hover {
  background: #1e40af;
  color: #fff;
  text-decoration: none;
}

/* ── Site footer ── */

.site-footer {
  background: var(--color-header-bg);
  border-top: 1px solid var(--color-header-border);
  padding: 1.5rem 0;
  font-size: 0.78rem;
  color: var(--color-header-muted);
}

.site-footer .container--wide {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--color-header-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-header-text);
  text-decoration: none;
}

/* ── About page ── */

.page-header {
  padding: 4rem 0 2.75rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.page-body {
  padding: 3rem 0 5rem;
}

.page-body p {
  margin-bottom: 1.4rem;
  max-width: 640px;
}

.page-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .article-thumb {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .pub-hero {
    padding: 3.5rem 0 3rem;
  }

  .pub-hero h1 {
    font-size: 2.25rem;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .site-header .container--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-footer .container--wide {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }

  .paper-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
