@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3efe3;
  --bg-soft: #fbf8ef;
  --paper: rgba(255, 252, 244, 0.9);
  --card: rgba(255, 249, 236, 0.92);
  --line: rgba(73, 87, 64, 0.18);
  --line-strong: rgba(73, 87, 64, 0.32);
  --text: #203126;
  --muted: #576754;
  --accent: #87653b;
  --accent-strong: #6d4e29;
  --green: #5d7355;
  --shadow: 0 18px 40px rgba(45, 57, 38, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(152, 121, 71, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(93, 115, 85, 0.16), transparent 32%),
    linear-gradient(180deg, #f6f2e7 0%, #efe8d5 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 90%);
  pointer-events: none;
}

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

a:hover {
  color: var(--green);
}

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

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 250, 241, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 16px;
  z-index: 20;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #8f6d44, #596f53);
  color: #fffdf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-copy strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  color: var(--muted);
}

.topbar-links a:hover,
.topbar-links a.active {
  color: var(--accent-strong);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 251, 243, 0.94), rgba(247, 240, 222, 0.9)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(93, 115, 85, 0.12);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-panel h1,
.page-title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-panel p,
.lede,
.body-copy p,
.article-content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button-link.primary {
  color: #fff8ee;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 24px rgba(109, 78, 41, 0.18);
}

.button-link.secondary {
  color: var(--green);
  background: rgba(93, 115, 85, 0.12);
  border: 1px solid rgba(93, 115, 85, 0.18);
}

.button-link:hover {
  transform: translateY(-1px);
}

.hero-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 233, 0.9));
  border: 1px solid var(--line);
}

.hero-card img,
.article-cover img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-card p {
  margin-top: 14px;
  font-size: 0.98rem;
}

.section-block {
  margin-top: 26px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.topic-grid,
.reading-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-card,
.reading-card,
.related-card,
.summary-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover,
.reading-card:hover,
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 24px rgba(45, 57, 38, 0.08);
}

.topic-card .icon,
.reading-card .icon,
.related-card .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(135, 101, 59, 0.12);
  color: var(--accent);
  font-size: 1.25rem;
}

.topic-card h3,
.reading-card h3,
.related-card h3,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.topic-card h3,
.reading-card h3,
.related-card h3,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.topic-card h3,
.reading-card h3,
.related-card h3 {
  font-size: 1.5rem;
}

.topic-card p,
.reading-card p,
.related-card p,
.summary-card p,
.bullet-card li,
.article-content li,
.keyword-list li {
  color: var(--muted);
  line-height: 1.75;
}

.topic-card strong,
.reading-card strong,
.related-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--accent-strong);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
}

.summary-card h3,
.bullet-card h3,
.article-content blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.summary-card h3,
.bullet-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.bullet-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--line);
}

.bullet-card ul,
.article-content ul,
.keyword-list {
  margin: 0;
  padding-left: 18px;
}

.article-shell {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.article-header,
.article-content,
.article-sidecard {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.83rem;
}

.title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.title-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(93, 115, 85, 0.12);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 22px;
}

.article-cover {
  margin: 22px 0 0;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: 24px;
}

.article-content h3 {
  font-size: 1.7rem;
  margin-top: 24px;
}

.article-content h4 {
  font-size: 1.35rem;
  margin-top: 22px;
}

.article-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 28px 0;
}

.article-content blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid rgba(135, 101, 59, 0.36);
  background: rgba(135, 101, 59, 0.08);
  border-radius: 0 16px 16px 0;
  color: var(--text);
  font-size: 1.2rem;
}

.article-sidecard h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
}

.side-nav a:hover,
.side-nav a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
}

.keyword-list {
  list-style: disc;
}

.site-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 8px 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .site-topbar,
  .hero-panel,
  .split-layout,
  .article-layout,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-topbar {
    border-radius: 26px;
    align-items: stretch;
  }

  .hero-panel,
  .section-block,
  .article-header,
  .article-content,
  .article-sidecard {
    padding: 24px;
  }

  .topic-grid,
  .reading-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--content-width));
    padding-top: 14px;
  }

  .hero-panel h1,
  .page-title {
    font-size: 2.45rem;
  }

  .brand-copy strong {
    font-size: 1.42rem;
  }

  .topbar-links {
    gap: 8px;
  }

  .topbar-links a,
  .button-link {
    width: 100%;
    justify-content: center;
  }
}
