
:root {
  --bg: #0a0a0a;
  --cream: #f1ebdc;
  --cream-deep: #ece4d1;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.92);
  --text: #181512;
  --text-soft: rgba(24, 21, 18, 0.72);
  --text-muted: rgba(24, 21, 18, 0.54);
  --line: rgba(24, 21, 18, 0.1);
  --line-strong: rgba(24, 21, 18, 0.16);
  --accent: #7f6bca;
  --accent-soft: rgba(127, 107, 202, 0.12);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(185, 164, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 30%, rgba(212, 176, 122, 0.13), transparent 28%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.site-shell {
  min-height: 100vh;
}

.article-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.article-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0 0;
}

.article-nav {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 12px 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(250, 244, 232, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 14px 34px rgba(10, 10, 10, 0.05);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

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

.brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-separator {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.article-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-nav-links a:hover {
  color: var(--text);
  background: rgba(24, 21, 18, 0.05);
}

.article-nav-cta {
  background: var(--bg);
  color: var(--cream) !important;
}

.article-nav-cta:hover {
  background: #1a1715 !important;
  color: var(--cream) !important;
}

.article-hero,
.articles-hero {
  padding: 72px 0 44px;
}

.article-kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text-soft);
}

.article-title {
  margin: 0;
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.article-title--listing {
  max-width: 11ch;
}

.article-excerpt {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-soft);
}

.article-excerpt--listing {
  max-width: 760px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-cover {
  margin-top: 34px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(24, 21, 18, 0.06), rgba(127, 107, 202, 0.12));
}

.article-body-section {
  padding: 20px 0 110px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 104px;
}

.article-sidebar-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.04);
}

.article-sidebar-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-tag-list,
.listing-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-tag-list li,
.listing-card-tags li {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-soft);
}

.article-sidebar-cta,
.article-primary-link,
.listing-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-sidebar-cta:hover,
.article-primary-link:hover,
.listing-card-link:hover {
  transform: translateY(-1px);
  background: #1a1715;
}

.article-content {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 54px rgba(10, 10, 10, 0.04);
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content p,
.article-content li,
.article-content blockquote {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 38px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text);
}

.article-content h2 {
  font-size: clamp(32px, 4vw, 42px);
}

.article-content h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(127, 107, 202, 0.08);
}

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

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

.article-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(24, 21, 18, 0.08);
  font-family: var(--mono);
  font-size: 0.92em;
}

.article-content pre {
  margin: 24px 0;
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: #161315;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: var(--cream);
}

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

.article-body-figure img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.article-body-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-cta-box {
  margin-top: 42px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(127, 107, 202, 0.12), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(127, 107, 202, 0.16);
}

.article-cta-box h2 {
  margin: 0 0 12px;
}

.article-cta-box p {
  margin-bottom: 0;
}

.articles-listing {
  padding: 18px 0 110px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 28px 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 44px rgba(10, 10, 10, 0.04);
}

.listing-card-meta {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.listing-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.listing-card h2 a:hover {
  color: var(--accent);
}

.listing-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.66;
  color: var(--text-soft);
}

.listing-card-tags {
  margin-top: 20px;
}

.listing-card-link {
  margin-top: auto;
  padding-top: 30px;
  align-self: flex-start;
}

.article-footer {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.article-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .article-container,
  .article-nav {
    width: min(100%, calc(100% - 32px));
  }

  .article-nav {
    padding: 10px 10px 10px 12px;
  }

  .article-nav-links a:not(.article-nav-cta) {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tag {
    font-size: 10px;
  }

  .article-hero,
  .articles-hero {
    padding: 48px 0 30px;
  }

  .article-title,
  .article-title--listing {
    font-size: 42px;
    max-width: none;
  }

  .article-excerpt,
  .article-excerpt--listing {
    font-size: 17px;
    margin-top: 18px;
  }

  .article-content {
    padding: 26px 22px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .listing-card {
    padding: 24px;
  }

  .listing-card h2 {
    font-size: 28px;
  }

  .article-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
