/*
Theme Name: FurnitureBizNotes
Theme URI: https://www.furniturebiznotes.com/
Description: Lightweight editorial child theme for the FurnitureBizNotes B2B furniture industry blog.
Author: FurnitureBizNotes
Template: generatepress
Version: 1.0.2
Text Domain: furniturebiznotes
*/

:root {
  --fbn-ink: #1f2523;
  --fbn-muted: #65716d;
  --fbn-line: #dde5df;
  --fbn-soft: #f5f7f3;
  --fbn-panel: #ffffff;
  --fbn-accent: #2f6b4f;
  --fbn-accent-2: #9a6a36;
  --fbn-accent-3: #d8b35b;
  --fbn-radius: 8px;
}

body {
  color: var(--fbn-ink);
  background: #ffffff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--fbn-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  border-bottom: 1px solid var(--fbn-line);
  background: rgba(255, 255, 255, 0.98);
}

.inside-header {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.site-branding,
.site-logo {
  flex: 0 0 auto;
}

.main-title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: 0;
}

.main-title a {
  color: var(--fbn-ink);
  text-decoration: none;
}

.main-navigation {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  background: transparent;
}

.main-navigation .inside-navigation {
  justify-content: flex-end;
}

.main-navigation .main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.main-navigation .main-nav ul li a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--fbn-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.15;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus {
  background: var(--fbn-soft);
  color: var(--fbn-accent);
}

.fbn-wrap {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.fbn-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 37, 35, 0.86), rgba(31, 37, 35, 0.52)),
    var(--fbn-hero-image, linear-gradient(135deg, #1f2523, #2f6b4f));
  background-size: cover;
  background-position: center;
  color: #ffffff;
  min-height: clamp(420px, 58vh, 620px);
  display: flex;
  align-items: center;
}

.fbn-hero__inner {
  padding: clamp(58px, 9vw, 104px) 0;
  max-width: 760px;
}

.fbn-kicker {
  color: var(--fbn-accent-3);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fbn-hero h1,
.fbn-page-title {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}

.fbn-hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.fbn-actions,
.fbn-tags,
.fbn-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fbn-button,
.fbn-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--fbn-radius);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 15px;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.fbn-button--solid {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--fbn-ink);
}

.fbn-band {
  padding: clamp(44px, 6vw, 78px) 0;
}

.fbn-band--soft {
  background: var(--fbn-soft);
  border-block: 1px solid var(--fbn-line);
}

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

.fbn-section-head h2,
.fbn-page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.fbn-section-head p,
.fbn-muted {
  color: var(--fbn-muted);
}

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

.fbn-card {
  grid-column: span 3;
  border: 1px solid var(--fbn-line);
  border-radius: var(--fbn-radius);
  background: var(--fbn-panel);
  padding: 22px;
}

.fbn-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.fbn-card p {
  margin: 0;
  color: var(--fbn-muted);
}

.fbn-card .fbn-thumb {
  margin: -22px -22px 18px;
  border-radius: var(--fbn-radius) var(--fbn-radius) 0 0;
}

.fbn-post-list {
  display: grid;
  gap: 18px;
}

.fbn-post-row {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 104px;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--fbn-line);
  align-items: start;
}

.fbn-post-row h2,
.fbn-post-row h3,
.fbn-single h1 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

.fbn-post-row h2,
.fbn-post-row h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.fbn-post-row time,
.fbn-meta {
  color: var(--fbn-muted);
  font-size: 14px;
  font-weight: 650;
}

.fbn-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--fbn-radius);
  background: var(--fbn-soft);
}

.fbn-thumb img,
.fbn-featured img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fbn-featured {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-width: 720px;
  margin: 24px auto 32px;
  overflow: hidden;
  border-radius: var(--fbn-radius);
  background: var(--fbn-soft);
}

.featured-image.page-header-image {
  max-width: 820px;
  margin: 34px auto 0;
  padding-inline: 20px;
}

.featured-image.page-header-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--fbn-radius);
}

.fbn-author {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.fbn-avatar {
  display: block;
  width: 220px;
  aspect-ratio: 1;
  border-radius: var(--fbn-radius);
  overflow: hidden;
  background: var(--fbn-soft);
  border: 1px solid var(--fbn-line);
}

.fbn-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fbn-author h2 a {
  color: var(--fbn-ink);
  text-decoration: none;
}

.fbn-author h2 a:hover,
.fbn-author h2 a:focus {
  color: var(--fbn-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.fbn-single {
  width: min(820px, calc(100% - 48px));
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) 0;
}

.fbn-single h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.fbn-single .entry-content {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.fbn-single .entry-content h2 {
  margin-top: 38px;
  font-size: 30px;
  line-height: 1.18;
}

.fbn-note {
  border-left: 4px solid var(--fbn-accent);
  background: var(--fbn-soft);
  padding: 18px 20px;
}

.fbn-related {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--fbn-line);
}

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

.fbn-related-card {
  grid-column: auto;
  padding: 20px;
}

.fbn-related-card .fbn-thumb {
  margin: -20px -20px 16px;
}

.fbn-about-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--fbn-line);
  border-radius: var(--fbn-radius);
  background: var(--fbn-soft);
}

.fbn-about-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fbn-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.fbn-contact__panel {
  border: 1px solid var(--fbn-line);
  border-radius: var(--fbn-radius);
  padding: 22px;
}

@media (max-width: 860px) {
  .fbn-wrap,
  .fbn-single {
    width: min(calc(100% - 36px), 820px);
  }

  .inside-header {
    display: block;
    padding-block: 18px 14px;
  }

  .main-title {
    font-size: 28px;
  }

  .main-navigation {
    justify-content: flex-start;
    margin-top: 16px;
    background: transparent;
  }

  .main-navigation .menu-toggle {
    display: none !important;
  }

  .main-navigation .main-nav ul {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .main-navigation .main-nav ul li a {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .fbn-hero {
    min-height: 520px;
    background:
      linear-gradient(90deg, rgba(31, 37, 35, 0.94), rgba(31, 37, 35, 0.70)),
      var(--fbn-hero-image, linear-gradient(135deg, #1f2523, #2f6b4f));
    background-size: cover;
    background-position: 62% center;
  }

  .fbn-hero__inner {
    padding-block: 54px;
    max-width: 340px;
  }

  .fbn-hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .fbn-hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .fbn-card,
  .fbn-related-card,
  .fbn-post-row,
  .fbn-contact {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .fbn-post-row {
    gap: 14px;
  }

  .fbn-post-row .fbn-thumb {
    max-width: 420px;
  }

  .fbn-featured {
    max-width: 100%;
    margin: 20px 0 28px;
  }

  .fbn-single h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .fbn-single .entry-content {
    font-size: 17px;
  }

  .fbn-kicker {
    font-size: 12px;
    line-height: 1.5;
  }

  .featured-image.page-header-image {
    margin-top: 24px;
  }

  .fbn-grid--related {
    grid-template-columns: 1fr;
  }

  .fbn-section-head,
  .fbn-author {
    display: block;
  }

  .fbn-avatar {
    width: min(220px, 70vw);
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .fbn-wrap,
  .fbn-single {
    width: min(calc(100% - 32px), 820px);
  }

  .fbn-single {
    padding-block: 38px 54px;
  }

  .fbn-single h1 {
    font-size: 31px;
  }

  .fbn-featured {
    margin-top: 18px;
  }
}
