:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f3ede3;
  --ink: #1d2420;
  --muted: #5c6660;
  --accent: #c85a32;
  --accent-dark: #a64623;
  --sage: #466d5e;
  --sage-soft: #e6efe9;
  --border: #e6dfd3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(29, 36, 32, 0.06);
  --max-w: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 0;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--sage-soft);
  color: var(--sage);
  padding: 3px 8px;
  border-radius: 999px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
}

/* Hero */
.hero {
  padding: 56px 0 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Trust Bar */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-grid strong {
  color: var(--ink);
  display: block;
  font-size: 0.96rem;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Category Silos */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.cat-thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-icon {
  font-size: 2.4rem;
}
.cat-body {
  padding: 16px;
}
.cat-body h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.cat-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Empty Pattern Feed / Coming Soon */
.empty-state-box {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
}
.empty-state-box h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.empty-state-box p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto 20px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slot-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.slot-pill {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.slot-title {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.slot-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Newsletter + Author Box */
.newsletter-box {
  background: var(--sage);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.newsletter-box h2 {
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-box p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.newsletter-form {
  display: flex;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}

/* Article & Legal Page Layout */
.page-shell {
  padding: 48px 0 72px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
}
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 42px;
}
.prose-card h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.prose-card h2 {
  font-size: 1.45rem;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.prose-card h3 {
  font-size: 1.15rem;
  margin-top: 22px;
}
.prose-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.94rem;
}
.prose-card th, .prose-card td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.prose-card th {
  background: var(--surface-alt);
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.ad-slot-placeholder {
  border: 1px dashed var(--border);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 28px 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #1d2420;
  color: #e6dfd3;
  padding: 52px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.site-footer a {
  color: #d0c8ba;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #a8a095;
}

@media (max-width: 920px) {
  .hero-grid,
  .newsletter-box,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
