:root {
  --bg: #fffaf2;
  --paper: #ffffff;
  --ink: #2d2119;
  --muted: #6c5f55;
  --line: #e8dcca;
  --brand: #8b4a2f;
  --brand-dark: #5d2f1d;
  --accent: #f4c76a;
  --accent-soft: #fff1c9;
  --green-soft: #edf7ed;
  --shadow: 0 18px 50px rgba(45, 33, 25, 0.08);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #e88d58);
  display: inline-grid;
  place-items: center;
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(139, 74, 47, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  padding: 76px 0 44px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  border: 1px solid #efd58e;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-card,
.card,
.post-card,
.callout,
.product-card,
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  transform: rotate(1.5deg);
}

.hero-card ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.button.secondary,
.buy-button.secondary {
  background: transparent;
  color: var(--brand-dark);
}

.button:hover,
.buy-button:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.button.secondary:hover,
.buy-button.secondary:hover {
  background: var(--accent-soft);
  color: var(--brand-dark);
}

.section {
  padding: 54px 0;
}

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

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.post-card,
.card {
  padding: 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--green-soft);
  color: #345b35;
  font-weight: 800;
  font-size: 0.8rem;
}

.post-card p,
.card p {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 46px);
}

.article h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.article h2 {
  margin-top: 46px;
}

.article p,
.article li {
  font-size: 1.05rem;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 16px;
}

.article th,
.article td {
  text-align: left;
  border: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
}

.article th {
  background: var(--accent-soft);
}

.disclosure {
  background: #fff7df;
  border: 1px solid #ebd58d;
  border-radius: 18px;
  padding: 16px 18px;
  color: #5f4a22;
  font-size: 0.95rem;
}

.product-card {
  margin: 28px 0;
  padding: 24px;
  border-left: 8px solid var(--accent);
}

.product-card .rank {
  font-weight: 900;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.pros-cons div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.pros-cons ul {
  margin-bottom: 0;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  padding: 20px;
  margin-bottom: 18px;
}

.sidebar-card h3 {
  font-size: 1.1rem;
}

.sidebar-card ol,
.sidebar-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.callout {
  padding: 26px;
  background: #fffdf8;
}

.footer {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 99;
  background: var(--brand-dark);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 860px) {
  .hero-grid,
  .article-layout,
  .grid-3,
  .grid-2,
  .pros-cons,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-card {
    transform: none;
  }
}

@media print {
  .site-header,
  .sidebar,
  .footer,
  .button-row,
  .hero-actions {
    display: none;
  }

  body {
    background: white;
  }

  .article {
    box-shadow: none;
    border: none;
  }
}


/* Blog-focused additions */
.alt-section {
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-list {
  align-items: stretch;
}

.recipe-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.recipe-summary div,
.gear-note {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.recipe-summary strong,
.recipe-summary span {
  display: block;
}

.recipe-summary strong {
  color: var(--brand-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recipe-summary span {
  color: var(--muted);
  margin-top: 4px;
}

.gear-note {
  margin: 30px 0;
  border-left: 8px solid var(--accent);
}

.ingredient-list li,
.recipe-steps li {
  margin-bottom: 10px;
}

.author-card ul {
  padding-left: 22px;
}

@media (max-width: 860px) {
  .recipe-summary {
    grid-template-columns: 1fr;
  }
}
