:root {
  --bg-1: #f6efde;
  --bg-2: #ead8b3;
  --bg-3: #d8c093;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: rgba(255, 252, 247, 0.96);
  --surface-stroke: rgba(96, 64, 24, 0.16);
  --text-main: #24170d;
  --text-soft: rgba(36, 23, 13, 0.74);
  --text-muted: rgba(36, 23, 13, 0.56);
  --text-inverse: #fff8ec;
  --gold: #d7a445;
  --green: #189164;
  --green-deep: #0d5b41;
  --shadow-xl: 0 35px 80px rgba(75, 46, 14, 0.18);
  --shadow-lg: 0 24px 60px rgba(75, 46, 14, 0.16);
  --shadow-md: 0 14px 28px rgba(75, 46, 14, 0.12);
  --radius-2xl: 34px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 231, 190, 0.45), transparent 24%),
    linear-gradient(180deg, var(--bg-1) 0%, #efe3c7 46%, var(--bg-2) 100%);
  overflow-x: hidden;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.article-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(60, 40, 20, 0.25) 0.6px, transparent 0.6px);
  background-size: 10px 10px;
}

.article-bg-blur {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.34;
}

.article-blur-1 {
  top: -120px;
  left: -120px;
  background: rgba(215, 164, 69, 0.46);
}

.article-blur-2 {
  right: -120px;
  top: 140px;
  background: rgba(24, 145, 100, 0.22);
}

.article-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 28px 0 56px;
  display: grid;
  gap: 22px;
}

.article-panel {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--surface-stroke);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95) 0%, rgba(243, 230, 206, 0.88) 100%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.article-topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 16px 22px;
}

.article-brand {
  width: clamp(150px, 14vw, 210px);
  filter: drop-shadow(0 16px 28px rgba(109, 73, 19, 0.18));
}

.article-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.article-nav-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.article-nav-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.article-nav-btn-primary {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  box-shadow: var(--shadow-md);
}

.article-nav-btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(74, 53, 25, 0.16);
}

.article-page {
  display: grid;
  gap: 22px;
}

.article-hero,
.article-body,
.article-footer {
  padding: 32px 34px;
}

.article-kicker,
.article-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: rgba(36, 23, 13, 0.08);
  color: rgba(36, 23, 13, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.article-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: none;
  width: 100%;
}

.article-excerpt,
.article-preview-excerpt {
  margin-top: 16px;
  max-width: none;
  width: 100%;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-tag-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-meta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.article-editorial-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96, 64, 24, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.article-editorial-note strong {
  display: block;
  font-size: 0.96rem;
}

.article-editorial-note p {
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.6;
}

.article-cover {
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-prose {
  color: var(--text-main);
}

.article-prose h2,
.article-prose h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-top: 28px;
}

.article-prose h2:first-child,
.article-prose h3:first-child {
  margin-top: 0;
}

.article-prose p,
.article-prose ul,
.article-prose blockquote {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-prose ul {
  padding-left: 20px;
}

.article-prose li + li {
  margin-top: 8px;
}

.article-prose blockquote {
  padding: 16px 18px;
  border-left: 4px solid rgba(215, 164, 69, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
}

.article-prose strong {
  color: var(--text-main);
}

.article-prose a {
  color: #7b5015;
  font-weight: 800;
}

.article-prose code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(36, 23, 13, 0.08);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.article-footer-copy {
  max-width: 58ch;
}

.article-footer h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.article-footer p {
  margin-top: 12px;
  color: var(--text-soft);
  max-width: 48ch;
  line-height: 1.65;
}

.article-footer-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(36, 23, 13, 0.08);
  color: rgba(36, 23, 13, 0.82);
  font-weight: 700;
}

.article-footer-links a:hover {
  background: rgba(36, 23, 13, 0.12);
}

.article-preview-page {
  display: grid;
  gap: 18px;
}

.article-preview-hero,
.article-preview-page .article-body {
  padding: 24px;
}

@media (max-width: 860px) {
  .article-shell {
    width: min(calc(100% - 20px), 1080px);
    padding: 18px 0 36px;
  }

  .article-topbar,
  .article-hero,
  .article-body,
  .article-footer {
    padding: 22px 20px;
  }

  .article-topbar {
    display: grid;
    justify-items: center;
  }

  .article-topbar-actions,
  .article-footer {
    width: 100%;
    grid-template-columns: 1fr;
    display: grid;
  }

  .article-footer-links {
    justify-content: center;
  }

  .article-nav-btn {
    width: 100%;
  }

  .article-hero h1 {
    max-width: 100%;
  }

  .article-cover img {
    aspect-ratio: 16 / 9;
  }

  .article-prose p,
  .article-prose ul,
  .article-prose blockquote {
    font-size: 1rem;
    line-height: 1.75;
  }
}
