:root {
  --bg: #f3efe4;
  --surface: #fffaf0;
  --surface-strong: #efe4c9;
  --ink: #1e1a17;
  --muted: #655a52;
  --accent: #ac4b2a;
  --accent-deep: #6d2f1d;
  --line: rgba(30, 26, 23, 0.14);
  --shadow: 0 22px 70px rgba(55, 31, 14, 0.09);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(172, 75, 42, 0.15), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(102, 123, 86, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f2e7 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.page-frame {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(248, 242, 231, 0.84);
  border-bottom: 1px solid rgba(30, 26, 23, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #d88b46);
  color: white;
  font-size: 1rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.4rem;
  font-size: 0.96rem;
  color: var(--muted);
}

.top-nav a:hover,
.brand:hover {
  color: var(--accent-deep);
}

.hero {
  padding: 5.4rem 0 3.6rem;
}

.hero-home {
  padding-top: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-copy {
  max-width: 52rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.eyebrow::before,
.card-kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.hero-panel,
.feature-card,
.content-card,
.tool-card,
.stat-card,
.article-card,
.sidebar-card,
.newsletter-card,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.7rem;
  background:
    linear-gradient(160deg, rgba(255, 250, 240, 0.98), rgba(239, 228, 201, 0.8)),
    var(--surface);
}

.panel-title,
.footer-title,
.sidebar-title,
.callout-title {
  margin: 0 0 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-list,
.bullet-list {
  padding-left: 1.1rem;
  margin: 0;
}

.signal-list li,
.bullet-list li {
  margin: 0.55rem 0;
}

.cta-row,
.meta-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-row {
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #d2873d);
  color: #fff8f0;
  box-shadow: 0 14px 30px rgba(172, 75, 42, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.7);
}

.button-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.section-pad {
  padding: 1.2rem 0 3.6rem;
}

.section-tinted {
  background: linear-gradient(180deg, rgba(239, 228, 201, 0.3), rgba(239, 228, 201, 0));
}

.section-dark {
  padding-bottom: 5.5rem;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.article-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.04;
}

.section-heading p,
.content-card p,
.tool-card p,
.feature-card p,
.stat-card,
.article-card p,
.sidebar-card p,
.site-footer p {
  color: var(--muted);
}

.stat-row,
.card-grid,
.article-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

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

.stat-card {
  padding: 1.25rem;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 0.55rem;
}

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

.content-card,
.tool-card {
  padding: 1.35rem;
  display: grid;
  gap: 0.6rem;
}

.tool-spotlight-grid {
  margin-top: 1rem;
}

.tool-spotlight {
  align-content: start;
}

.content-card h3,
.tool-card h3,
.feature-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.content-card h3 a:hover,
.tool-card h3 a:hover {
  color: var(--accent);
}

.reading-chip {
  display: inline-flex;
  justify-self: flex-start;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(172, 75, 42, 0.1);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.55rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 0.2rem;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.text-link:hover {
  color: var(--accent);
}

.newsletter-card {
  padding: 1.8rem;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.09), transparent 24%),
    linear-gradient(135deg, #1c2325, #2d3d36);
  color: #f8f4ec;
}

.newsletter-card p {
  color: rgba(248, 244, 236, 0.84);
}

.content-shell {
  padding: 0 0 4rem;
}

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

.article-card {
  padding: 1.6rem;
}

.article-card section + section {
  margin-top: 2rem;
}

.sidebar-card {
  position: sticky;
  top: 6rem;
  padding: 1.35rem;
}

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

.tool-mini {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(30, 26, 23, 0.08);
}

.tool-mini:last-child {
  border-bottom: 0;
}

.sidebar-divider {
  height: 1px;
  margin: 1rem 0;
  background: rgba(30, 26, 23, 0.1);
}

.callout {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(160deg, rgba(239, 228, 201, 0.72), rgba(255, 250, 240, 0.9));
}

.source-card {
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 26, 23, 0.09);
  background: rgba(239, 228, 201, 0.3);
}

.source-link {
  display: grid;
  gap: 0.2rem;
}

.source-link strong {
  color: var(--ink);
}

.source-link span,
.source-meta {
  color: var(--muted);
}

.source-meta {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.faq-stack {
  display: grid;
  gap: 0.8rem;
}

.faq-stack details {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(30, 26, 23, 0.09);
}

.faq-stack summary {
  cursor: pointer;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumb-sep {
  opacity: 0.6;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.meta-row {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta-row a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.pill-row {
  margin-top: 1rem;
}

.pill {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(172, 75, 42, 0.11);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.table-shell {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(30, 26, 23, 0.09);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 26, 23, 0.09);
  vertical-align: top;
}

th {
  background: rgba(239, 228, 201, 0.6);
}

.center-stack {
  display: grid;
  justify-items: start;
}

.site-footer {
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(30, 26, 23, 0.08);
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.site-footer a {
  display: block;
  margin: 0.3rem 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .hero-grid,
  .article-grid,
  .feature-card,
  .footer-grid,
  .card-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .hero {
    padding-top: 4.4rem;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .button {
    width: 100%;
  }
}
