/* =========================================
   MATERIA — Sustainable Materials Journal
   Design System & Global Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* =========================================
   HIDDEN ELEMENTS — temporary, restore by removing these rules
   To restore: delete or comment out the lines below
   ========================================= */

/* HIDDEN: All inline affiliate product cards in blog posts */
.affiliate-inline { display: none; }

/* HIDDEN: All sidebar affiliate product widgets in blog posts */
.article-sidebar .sidebar__affiliate { display: none; }
.sidebar__affiliate { display: none; }

/* ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #F8F7F4;
  --bg-alt:     #F0EFE9;
  --ink:        #0D0D0B;
  --ink-2:      #5A5A54;
  --ink-3:      #9A9A92;
  --accent:     #4E6040;
  --accent-lt:  #E8EEE3;
  --border:     #E2E1DA;
  --white:      #FFFFFF;

  --ff-sans:    'Inter', system-ui, sans-serif;
  --ff-serif:   'DM Serif Display', Georgia, serif;

  --nav-h:      68px;
  --max-w:      1280px;
  --pad-x:      clamp(24px, 5vw, 80px);

  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-sans);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul { list-style: none; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.nav__logo {
  font-family: var(--ff-serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: #2a2a28;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,13,11,0.2);
}

.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: #3d4f32;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(78, 96, 64, 0.3);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  padding-top: var(--nav-h);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero__top {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100svh - var(--nav-h) - 72px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad-x) 80px;
  padding-right: 48px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 420px;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 48px;
}

.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--ink-3);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero__image-label {
  background: rgba(248, 247, 244, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.hero__image-label strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}

.hero__stat {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-num {
  font-family: var(--ff-serif);
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

/* =========================================
   FEATURED ARTICLE (Big editorial card)
   ========================================= */

.featured {
  background: var(--bg-alt);
}

.featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(13,13,11,0.07);
}

.featured__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.featured__inner:hover .featured__image img {
  transform: scale(1.04);
}

.featured__body {
  background: var(--white);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--green {
  background: var(--accent-lt);
  color: var(--accent);
}

.tag--gray {
  background: var(--bg-alt);
  color: var(--ink-2);
}

.tag--dark {
  background: var(--ink);
  color: var(--white);
}

.featured__tag {
  margin-bottom: 24px;
}

.featured__title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.featured__excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 36px;
}

.featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.meta__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.meta__avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.meta__info {
  flex: 1;
}

.meta__author {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.meta__date {
  font-size: 12px;
  color: var(--ink-3);
}

.meta__read-time {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* =========================================
   BLOG GRID
   ========================================= */

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
  gap: 24px;
}

.section__title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__subtitle {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 400px;
  line-height: 1.6;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: gap 0.2s var(--ease);
}

.section__link:hover {
  gap: 14px;
}

.section__link::after {
  content: '→';
  font-size: 16px;
}

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

.blog-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card__image-wrap {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 22px;
  position: relative;
}

.article-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.article-card:hover .article-card__image-wrap img {
  transform: scale(1.05);
}

.article-card__tag {
  margin-bottom: 14px;
}

.article-card__title {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  transition: color 0.2s var(--ease);
}

.article-card:hover .article-card__title {
  color: var(--accent);
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.article-card__meta .meta__info {
  flex: 1;
}

/* =========================================
   CATEGORIES / MATERIAL TYPES
   ========================================= */

.categories {
  background: var(--ink);
  color: var(--white);
}

.categories .section__title {
  color: var(--white);
}

.categories .section__subtitle {
  color: rgba(255,255,255,0.55);
}

.categories .section__link {
  color: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: 16px;
  overflow: hidden;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease-out);
}

.category-card:hover img {
  filter: brightness(0.8);
  transform: scale(1.06);
}

.category-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
}

.category-card__count {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.category-card__name {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--white);
  line-height: 1.2;
}

.category-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.category-card:hover .category-card__arrow {
  background: var(--accent);
  transform: rotate(-45deg);
}

/* =========================================
   AFFILIATE / SHOP SECTION
   ========================================= */

.shop {
  background: var(--bg-alt);
}

.shop .section__header {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,13,11,0.1);
}

.product-card__image {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-card__body {
  padding: 20px;
}

.product-card__brand {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card__price {
  font-family: var(--ff-serif);
  font-size: 20px;
  color: var(--ink);
}

.product-card__cta {
  padding: 8px 18px;
  font-size: 12px;
}

/* =========================================
   NEWSLETTER
   ========================================= */

.newsletter {
  background: var(--accent);
  color: var(--white);
  text-align: center;
}

.newsletter .container {
  max-width: 640px;
}

.newsletter__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.newsletter__title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.newsletter__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 40px;
}

.newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--ff-sans);
  font-size: 14px;
  outline: none;
  transition: background 0.2s var(--ease);
  backdrop-filter: blur(4px);
}

.newsletter__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter__input:focus {
  background: rgba(255,255,255,0.25);
}

.newsletter__submit {
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--white);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ff-sans);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.newsletter__submit:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.newsletter__note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

.footer__brand .nav__logo {
  display: block;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s var(--ease);
}

.footer__social-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.footer__col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s var(--ease);
}

.footer__col ul a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s var(--ease);
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* =========================================
   BLOG PAGE
   ========================================= */

.page-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.page-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}

.page-hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 520px;
}

.blog-filters {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-list::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: transparent;
  border: 1.5px solid var(--border);
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 64px 0;
  align-items: start;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.blog-post-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.blog-post-item:last-child {
  border-bottom: none;
}

.blog-post-item__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.blog-post-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.blog-post-item:hover .blog-post-item__image img {
  transform: scale(1.05);
}

.blog-post-item__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-post-item__title {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.blog-post-item:hover .blog-post-item__title {
  color: var(--accent);
}

.blog-post-item__excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.blog-post-item__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}

.blog-post-item__read-more:hover {
  gap: 12px;
}

.blog-post-item__read-more::after {
  content: '→';
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: calc(var(--nav-h) + 80px);
}

.sidebar__widget {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
}

.sidebar__widget-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar__categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease);
}

.sidebar__cat-link:last-child { border-bottom: none; }

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

.sidebar__cat-count {
  font-size: 12px;
  color: var(--ink-3);
}

.sidebar__affiliate {
  text-align: center;
}

.sidebar__affiliate img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 16px;
}

.sidebar__affiliate-brand {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.sidebar__affiliate-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.sidebar__affiliate-price {
  font-family: var(--ff-serif);
  font-size: 22px;
  margin-bottom: 16px;
}

/* =========================================
   ARTICLE / BLOG POST PAGE
   ========================================= */

.article-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 48px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: 28px;
}

.article-hero__subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 36px;
}

.article-hero__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-hero__author-info {
  flex: 1;
}

.article-hero__author-name {
  font-size: 14px;
  font-weight: 500;
}

.article-hero__author-role {
  font-size: 13px;
  color: var(--ink-3);
}

.article-hero__share {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-cover {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  padding-bottom: 96px;
}

.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: #2A2A26;
}

.article-content h2 {
  font-family: var(--ff-serif);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 20px;
}

.article-content h3 {
  font-family: var(--ff-serif);
  font-size: 24px;
  color: var(--ink);
  margin: 36px 0 16px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content blockquote {
  margin: 40px 0;
  padding: 28px 36px;
  border-left: 3px solid var(--accent);
  background: var(--accent-lt);
  border-radius: 0 12px 12px 0;
  font-family: var(--ff-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.article-content ul,
.article-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  list-style: disc;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content img {
  border-radius: 12px;
  width: 100%;
  margin: 36px 0;
}

.article-content .affiliate-inline {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 36px 0;
  background: var(--white);
}

.article-content .affiliate-inline img {
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
  width: 100px;
}

.article-content .affiliate-inline-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--ff-sans);
  font-style: normal;
  text-decoration: none;
}

.article-content .affiliate-inline-name {
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.article-content .affiliate-inline-price {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--ink);
  font-style: normal;
  text-decoration: none;
  display: block;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.toc-widget {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-left: 2px solid transparent;
}

.toc-item:hover,
.toc-item.active {
  background: var(--accent-lt);
  color: var(--accent);
  border-left-color: var(--accent);
}

.related-posts {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

/* =========================================
   IMAGE PLACEHOLDERS (for demo)
   ========================================= */

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.img-placeholder--dark {
  color: var(--ink-3);
}

.img-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

/* bg color palettes for placeholder images */
.bg-stone   { background: #C4BBA8; }
.bg-wood    { background: #A0896B; }
.bg-concrete{ background: #8B8D8A; }
.bg-metal   { background: #7A8590; }
.bg-glass   { background: #B0C4C4; }
.bg-biobased{ background: #8AAE82; }
.bg-ceramic { background: #D4C4A8; }
.bg-recycled{ background: #9AA090; }
.bg-dark    { background: #2D2D2B; }
.bg-sage    { background: #6B8C5F; }
.bg-warm    { background: #C8A882; }
.bg-light   { background: #E8E4DC; }

/* =========================================
   MOBILE NAV OVERLAY
   ========================================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 100px var(--pad-x) 48px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}

.mobile-menu__links a {
  font-family: var(--ff-serif);
  font-size: 36px;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease);
}

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

/* =========================================
   ANIMATIONS & TRANSITIONS
   ========================================= */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {
  .hero__top {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__image {
    aspect-ratio: 16/9;
  }
  .hero__content {
    padding: 60px var(--pad-x);
  }
  .hero__scroll-hint {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .article-layout,
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar,
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta .btn--dark {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .hero__top {
    min-height: auto;
  }
  .hero__stats {
    flex-wrap: wrap;
  }
  .hero__stat {
    flex: 1 1 calc(50% - 1px);
  }
  .featured__inner {
    grid-template-columns: 1fr;
  }
  .featured__body {
    padding: 36px 28px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blog-grid--2col {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-post-item {
    grid-template-columns: 1fr;
  }
  .newsletter__form {
    flex-direction: column;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .article-content .affiliate-inline {
    grid-template-columns: 80px 1fr;
  }
  .article-content .affiliate-inline .btn {
    display: none;
  }
  .article-sidebar,
  .sidebar {
    grid-template-columns: 1fr;
  }
  .article-cover {
    aspect-ratio: 4/3;
    border-radius: 12px;
  }
}
