:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-solid: #fffaf3;
  --ink: #1f2430;
  --muted: #5d6676;
  --line: rgba(31, 36, 48, 0.12);
  --accent: #1d6b63;
  --accent-deep: #124843;
  --accent-soft: #d9efe9;
  --warm: #c57d48;
  --shadow: 0 18px 50px rgba(26, 28, 36, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 107, 99, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(197, 125, 72, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(251, 247, 240, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.hero-grid,
.section-heading,
.footer-grid,
.hero-actions,
.card-topline,
.chip-row,
.filters,
.hero-inline-meta {
  display: flex;
  gap: 1rem;
}

.header-inner,
.section-heading,
.footer-grid {
  justify-content: space-between;
  align-items: center;
}

.header-inner {
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand small,
.small-label,
.eyebrow,
.card-kicker,
.disclosure {
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(29, 107, 99, 0.09);
  color: var(--accent-deep);
}

.hero,
.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}

.hero-copy,
.page-intro,
.card p,
.mini-card p,
.content-panel p,
.sidebar-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel,
.card,
.mini-card,
.content-panel,
.sidebar-card,
.filters {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel,
.content-panel,
.sidebar-card {
  padding: 1.4rem;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(18, 72, 67, 0.96), rgba(29, 107, 99, 0.92)),
    var(--panel-solid);
  color: #f6faf9;
}

.hero-panel h2,
.hero-panel p,
.hero-panel .small-label,
.hero-panel a {
  color: inherit;
}

.hero-callout {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.section {
  padding: 1.5rem 0 4rem;
}

.muted-section {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(31, 36, 48, 0.05);
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading.tight {
  margin-bottom: 0.9rem;
}

.card-grid,
.three-up,
.content-grid,
.insights-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  align-items: start;
}

.insights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.mini-card {
  padding: 1.3rem;
}

.card h2,
.card h3,
.mini-card h3,
.content-panel h2,
.sidebar-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
}

.card h2 a,
.card h3 a,
.mini-card h3 a,
.hero-callout a,
.text-link {
  text-decoration: none;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.eyebrow,
.small-label,
.card-kicker,
.disclosure {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge,
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.badge-active,
.badge-useful,
.badge-life-changing {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.badge-abandoned,
.badge-waste {
  background: rgba(197, 125, 72, 0.15);
  color: #8f5428;
}

.badge-dormant,
.badge-neutral,
.badge-completed,
.badge-draft {
  background: rgba(31, 36, 48, 0.05);
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.insight-list,
.detail-list,
.footer-links {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-grid {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.detail-grid dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.detail-grid dd {
  margin: 0;
  font-weight: 600;
}

.filters {
  padding: 1rem;
  flex-wrap: wrap;
}

.filters select,
.search-input {
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
}

.search-input {
  flex: 1 1 280px;
}

.filters select {
  flex: 0 1 180px;
}

.top-gap {
  margin-top: 1rem;
}

.narrow-stack {
  display: grid;
  gap: 1rem;
}

.offer-card {
  background:
    linear-gradient(180deg, rgba(197, 125, 72, 0.08), rgba(255, 255, 255, 0.9)),
    var(--panel-solid);
}

.subcategory-block {
  display: grid;
  gap: 1rem;
}

.empty-state {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.5);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  align-items: start;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .card-grid-categories,
  .three-up,
  .content-grid,
  .insights-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .section-heading,
  .footer-grid {
    align-items: start;
  }

  .site-nav {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero,
  .page-hero {
    padding-top: 3rem;
  }

  .header-inner,
  .hero-actions,
  .filters {
    flex-direction: column;
  }

  .site-nav a,
  .button {
    width: 100%;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }
}
