:root {
  --ink: #132033;
  --ink-soft: #405268;
  --paper: #fbf8f1;
  --paper-strong: rgba(251, 248, 241, 0.92);
  --accent: #bb4d00;
  --accent-soft: #f0bb86;
  --line: rgba(19, 32, 51, 0.12);
  --shadow: 0 24px 60px rgba(19, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(240, 187, 134, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(72, 123, 142, 0.18), transparent 26%),
    linear-gradient(180deg, #fffaf2 0%, #f6f1e6 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  pointer-events: none;
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero-card,
.article-hero,
.listing-panel {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card,
.listing-panel {
  padding: 32px;
}

.hero-card h1,
.article-hero h1,
.listing-panel h1,
.listing-panel h2,
.article-body h2,
.article-body h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
}

.hero-card h1,
.article-hero h1,
.listing-panel h1 {
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.98;
  margin: 0 0 18px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead,
.article-body p,
.listing-panel p,
.post-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.cta-row,
.meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(187, 77, 0, 0.18);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}

.pill.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.grid-two {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 20px;
  margin-top: 20px;
}

.listing-panel {
  margin-top: 24px;
}

.post-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.post-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.post-card h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
}

.post-card a {
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--ink-soft);
  text-decoration: none;
}

.article-shell {
  width: min(900px, calc(100% - 32px));
}

.article-hero {
  padding: 32px;
}

.article-body {
  margin-top: 20px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 2rem;
}

.article-body h3 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  color: var(--ink-soft);
}

.article-body li + li {
  margin-top: 10px;
}

.empty-state {
  padding: 18px 0 8px;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .page-wrap,
  .article-shell {
    width: min(100% - 20px, 100%);
  }

  .hero-card,
  .article-hero,
  .listing-panel,
  .article-body,
  .post-card {
    padding: 22px;
    border-radius: 22px;
  }

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

  .hero-card h1,
  .article-hero h1,
  .listing-panel h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
}
