:root {
  --bg: #f6f1e8;
  --bg-alt: #efe6d7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffdf8;
  --text: #1d1a15;
  --muted: #655b4c;
  --line: rgba(29, 26, 21, 0.12);
  --accent: #b85c38;
  --accent-dark: #8f4222;
  --accent-soft: #f0d3c4;
  --shadow: 0 18px 45px rgba(55, 34, 20, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf7ef 0%, #f6f1e8 100%);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

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

main {
  display: block;
}

main:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--surface-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.narrow {
  width: min(calc(100% - 2rem), 760px);
}

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

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

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

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

.nav a.active,
.nav a:hover {
  color: var(--text);
}

.hero,
.page-hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

.hero-copy,
.article-lead,
.page-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.product-hero-inner {
  width: min(calc(100% - 2rem), 980px);
  margin: 0 auto;
}

.product-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.02;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-panel,
.cta-panel,
.disclosure-banner,
.note-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.6rem;
}

.panel-title,
.footer-title {
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.feature-list,
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

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

.section-alt {
  background: rgba(255, 255, 255, 0.28);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.card a:not(.card-cover-link) {
  position: relative;
  z-index: 2;
}

.card-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(240, 211, 196, 0.85), rgba(255, 253, 248, 0.95)),
    linear-gradient(180deg, #fbf7ef 0%, #f6f1e8 100%);
  color: var(--accent-dark);
  text-align: center;
  padding: 1.25rem;
  border: 1px dashed rgba(29, 26, 21, 0.16);
}

.image-fallback span {
  max-width: 22ch;
  font-weight: 700;
  line-height: 1.35;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin: 0.25rem 0 0.65rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.taxonomy-section {
  padding-top: 0;
}

.taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.taxonomy-inline-list,
.taxonomy-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.taxonomy-cloud {
  align-items: flex-start;
}

.taxonomy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.taxonomy-link:hover {
  color: var(--text);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.taxonomy-link.category {
  color: var(--accent-dark);
  background: rgba(240, 211, 196, 0.58);
}

.taxonomy-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(29, 26, 21, 0.08);
  color: var(--text);
  font-size: 0.76rem;
}

.card-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.card-meta,
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-dark);
}

.button,
.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.button.primary,
.affiliate-button {
  background: var(--accent);
  color: #fffaf6;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.article {
  padding: 2rem 0;
}

.hero-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.hero-fallback {
  min-height: 320px;
}

.disclosure-banner,
.cta-panel,
.note-box {
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
}

.article-cta {
  margin-top: 2rem;
}

.article-cta h2 {
  margin: 0.35rem 0 0.75rem;
  line-height: 1.15;
}

.article-cta p {
  color: var(--muted);
  line-height: 1.7;
}

.rich-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.rich-content h2,
.rich-content h3 {
  line-height: 1.15;
  margin-top: 2rem;
}

.rich-content code {
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.product-detail-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-summary p {
  line-height: 1.8;
}

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

.footer-bar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
}

.footer-meta {
  padding-top: 1rem;
  color: var(--muted);
}

@media (max-width: 1160px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .product-detail-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-bar,
  .section-head,
  .bar {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1,
  .page-hero h1,
  .article h1 {
    font-size: 2.4rem;
  }
}
