/* ============================================================
   LUTHIERY.ORG — Main Stylesheet
   ============================================================ */

:root {
  --ink: #1a1209;
  --paper: #f5f0e8;
  --paper2: #ede7d5;
  --amber: #b8732a;
  --amber-light: #e8c48a;
  --amber-dark: #7a4a12;
  --wood: #8b5e2c;
  --green: #2d4a2a;
  --green-light: #4a7a45;
  --cream: #faf6ee;
  --border: rgba(26,18,9,0.15);
  --border-strong: rgba(26,18,9,0.3);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-body: 'Jost', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
p { line-height: 1.75; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 3rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--amber);
  color: var(--cream);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--amber-dark); color: var(--cream); }

.btn-ghost {
  border: 1px solid rgba(245,240,232,0.25);
  color: rgba(245,240,232,0.7);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--amber-light); color: var(--amber-light); }

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 0.75rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ─── NAVIGATION ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-branding a {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.site-branding a .logo-the {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--amber);
  align-self: center;
  padding-bottom: 3px;
}

.site-branding a .logo-fret {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1;
}

#primary-navigation ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-navigation ul li a {
  display: block;
  padding: 0 1.1rem;
  height: 60px;
  line-height: 60px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  font-weight: 400;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item a { color: var(--amber-light); background: rgba(255,255,255,0.04); }

#primary-navigation ul li.menu-shop a {
  background: var(--amber);
  color: var(--cream) !important;
  font-weight: 500;
}
#primary-navigation ul li.menu-shop a:hover { background: var(--amber-dark); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ─── HERO ─── */
.hero {
  min-height: 92vh;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 5rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--amber-light); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(245,240,232,0.55);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 3rem;
  font-weight: 300;
}

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

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-woodgrain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(168deg, transparent, transparent 8px, rgba(184,115,42,0.06) 8px, rgba(184,115,42,0.06) 9px);
  z-index: 0;
}

.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--ink) 0%, transparent 35%), linear-gradient(to bottom, transparent 60%, var(--ink) 100%);
  z-index: 1;
}

.hero-guitar-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  z-index: 0;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
}

.hero-stat { text-align: right; color: var(--cream); }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--amber-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-top: 0.2rem;
  font-family: var(--font-mono);
}

/* ─── SECTION STRIP ─── */
.section-strip {
  background: var(--paper2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
}
.strip-item {
  padding: 0.9rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.strip-item:hover { background: var(--ink); color: var(--amber-light); }
.strip-item.featured { background: var(--amber); color: var(--cream); }
.strip-item.featured:hover { background: var(--amber-dark); }

/* ─── HOWTO / GUIDES ─── */
.howto {
  padding: 6rem 5rem;
  background: var(--cream);
}
.howto-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.howto h2 { font-size: clamp(2.4rem, 3.5vw, 3.8rem); }
.howto-intro { color: rgba(26,18,9,0.6); font-size: 1rem; line-height: 1.8; }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.guide-card {
  background: var(--cream);
  padding: 2.2rem;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.guide-card:hover { background: var(--ink); }
.guide-card:hover .guide-title { color: var(--amber-light); }
.guide-card:hover .guide-desc { color: rgba(245,240,232,0.55); }
.guide-card:hover .guide-tag { color: rgba(245,240,232,0.4); }
.guide-card:hover .guide-num { color: rgba(245,240,232,0.05); }

.guide-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(26,18,9,0.06);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.guide-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.guide-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.guide-desc {
  font-size: 0.88rem;
  color: rgba(26,18,9,0.6);
  line-height: 1.7;
  transition: color 0.2s;
}

.guide-card.featured-card {
  background: var(--ink);
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.guide-card.featured-card:hover { background: #0e0b06; }
.guide-card.featured-card .guide-title { color: var(--cream); font-size: 1.8rem; }
.guide-card.featured-card .guide-desc { color: rgba(245,240,232,0.55); font-size: 0.95rem; }
.guide-card.featured-card .guide-tag { color: var(--amber); }
.guide-card.featured-card .guide-num { color: rgba(245,240,232,0.06); font-size: 7rem; }
.guide-card.featured-card .guide-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,196,138,0.3);
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 1rem;
}

/* ─── MATERIALS ─── */
.materials { padding: 6rem 5rem; background: var(--paper); }
.materials-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.mat-category {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  cursor: pointer;
}
.mat-category-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}
.mat-category-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  background: rgba(184,115,42,0.1);
  padding: 0.15rem 0.5rem;
}
.mat-sub { font-size: 0.82rem; color: rgba(26,18,9,0.5); }

.wood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.wood-card {
  border: 1px solid var(--border);
  background: var(--cream);
  overflow: hidden;
  transition: border-color 0.2s;
}
.wood-card:hover { border-color: var(--amber); }
.wood-swatch { height: 80px; position: relative; overflow: hidden; }
.wood-info { padding: 1rem; }
.wood-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.wood-latin { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(26,18,9,0.4); font-style: italic; margin-bottom: 0.5rem; }
.wood-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.tag-top { background: rgba(45,74,42,0.1); color: var(--green); }
.tag-back { background: rgba(184,115,42,0.12); color: var(--amber-dark); }
.tag-neck { background: rgba(26,18,9,0.07); color: rgba(26,18,9,0.6); }
.tag-fb { background: rgba(139,94,44,0.12); color: var(--wood); }

/* wood swatches */
.ws-maple { background: linear-gradient(135deg, #e8d8b4 0%, #d4c094 40%, #c9b17c 100%); }
.ws-mahogany { background: linear-gradient(135deg, #8b4513 0%, #6b3410 50%, #5c2e0e 100%); }
.ws-rosewood { background: linear-gradient(135deg, #4a1c08 0%, #6b2c12 40%, #3d1606 100%); }
.ws-alder { background: linear-gradient(135deg, #c4a882 0%, #b09060 50%, #9a7a4e 100%); }
.ws-ash { background: linear-gradient(135deg, #d4c8a8 0%, #c0b090 50%, #a89870 100%); }
.ws-walnut { background: linear-gradient(135deg, #3d2813 0%, #5a3d20 40%, #4a3218 100%); }

/* ─── TOOLS ─── */
.tools-section { padding: 6rem 5rem; background: var(--ink); color: var(--cream); }
.tools-section .section-label { color: var(--amber-light); }
.tools-section .section-label::after { background: rgba(245,240,232,0.15); }
.tools-section h2 { font-size: clamp(2rem, 3vw, 3.2rem); color: var(--cream); margin-bottom: 3rem; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,240,232,0.08);
  margin-bottom: 3rem;
}
.tool-cell {
  background: var(--ink);
  padding: 2rem 1.8rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.tool-cell:hover { border-bottom-color: var(--amber); background: rgba(245,240,232,0.03); }
.tool-icon { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1; }
.tool-name { font-size: 0.9rem; font-weight: 500; color: var(--cream); margin-bottom: 0.35rem; }
.tool-desc { font-size: 0.78rem; color: rgba(245,240,232,0.4); line-height: 1.6; }

/* ─── SHOP / WOOCOMMERCE ─── */
.shop { padding: 6rem 5rem; background: var(--paper2); }

.shop-banner {
  background: var(--amber);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.shop-banner-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.woo-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.woo-cat-link {
  padding: 0.45rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.woo-cat-link:hover,
.woo-cat-link.current { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* WooCommerce product card overrides */
.woocommerce ul.products li.product,
.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}
.woocommerce ul.products li.product:hover,
.product-card:hover { border-color: var(--amber); }

.product-img { height: 160px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--paper2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce ul.products li.product a img { width: 100%; height: 160px; object-fit: cover; margin: 0; }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}
.badge-new { background: var(--green-light); color: var(--cream); }
.badge-sale { background: #c0392b; color: var(--cream); }
.badge-hot { background: var(--amber); color: var(--cream); }

.product-info,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price { padding: 0; }

.woocommerce ul.products li.product a { display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  padding: 1rem 1.1rem 0 !important;
  line-height: 1.3 !important;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--amber-dark) !important;
  padding: 0.5rem 1.1rem 1.25rem !important;
  display: block;
}
.woocommerce ul.products li.product .price del { color: rgba(26,18,9,0.35) !important; font-size: 0.8rem !important; }
.woocommerce ul.products li.product .button {
  background: var(--amber) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0.65rem 1.1rem !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  transition: background 0.2s !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--amber-dark) !important; }
.woocommerce .onsale {
  background: #c0392b !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.1em !important;
  min-height: auto !important;
  min-width: auto !important;
  padding: 0.2rem 0.5rem !important;
  line-height: 1.5 !important;
}

/* WooCommerce single product */
.woocommerce div.product { padding: 4rem 5rem; background: var(--cream); }
.woocommerce div.product .product_title {
  font-family: var(--font-display) !important;
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
  margin-bottom: 1rem !important;
}
.woocommerce div.product .price {
  font-family: var(--font-display) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--amber-dark) !important;
}
.woocommerce div.product .single_add_to_cart_button {
  background: var(--amber) !important;
  color: var(--cream) !important;
  border-radius: 0 !important;
  border: none !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 1rem 2.5rem !important;
  transition: background 0.2s !important;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--amber-dark) !important; }

/* Cart & Checkout */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  background: var(--amber) !important;
  color: var(--cream) !important;
  border-radius: 0 !important;
  border: none !important;
  font-family: var(--font-mono) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* ─── BLOG / JOURNAL ─── */
.blog { padding: 6rem 5rem; background: var(--cream); }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  margin-top: 3rem;
}

.blog-featured {
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.blog-featured:hover { border-color: var(--amber); }

.blog-featured-img {
  height: 260px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.blog-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.blog-featured-img-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(184,115,42,0.05), rgba(184,115,42,0.05) 2px, transparent 2px, transparent 12px);
}
.blog-featured-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--cream);
  padding: 0.25rem 0.65rem;
}

.blog-featured-body { padding: 1.8rem; }
.blog-featured-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.blog-featured-excerpt { font-size: 0.9rem; color: rgba(26,18,9,0.6); line-height: 1.7; margin-bottom: 1rem; }
.blog-meta { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(26,18,9,0.4); letter-spacing: 0.08em; }

.blog-list { display: flex; flex-direction: column; }
.blog-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.blog-list-item:hover { padding-left: 0.5rem; }
.blog-list-item:first-child { border-top: 1px solid var(--border); }
.blog-list-tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.3rem; }
.blog-list-title { font-size: 0.92rem; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 0.3rem; }
.blog-list-meta { font-family: var(--font-mono); font-size: 0.62rem; color: rgba(26,18,9,0.35); }
.blog-view-all {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dark);
  text-decoration: none;
}

/* Single post */
.single-post-header {
  padding: 5rem 5rem 3rem;
  background: var(--ink);
  color: var(--cream);
}
.single-post-header .post-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.single-post-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
  max-width: 760px;
}
.single-post-header .post-meta { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(245,240,232,0.4); }
.single-post-content {
  padding: 4rem 5rem;
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.85;
}
.single-post-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.single-post-content h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.single-post-content p { margin-bottom: 1.5rem; }
.single-post-content img { margin: 2rem 0; border: 1px solid var(--border); }
.single-post-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(26,18,9,0.7);
}

/* ─── GALLERY ─── */
.gallery-section { padding: 6rem 5rem; background: var(--paper); }
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: 3px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--paper2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 0.15; }
.gallery-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.8);
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Gallery grid spans */
.gallery-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item:nth-child(7) { grid-column: span 4; }
.gallery-item:nth-child(8) { grid-column: span 4; }
.gallery-item:nth-child(9) { grid-column: span 4; }

/* ─── DISCUSSION / BBPRESS ─── */
.discussion { padding: 6rem 5rem; background: var(--paper2); }
.discussion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.discussion-stats { display: flex; gap: 2rem; margin-bottom: 2rem; }
.disc-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--amber-dark); }
.disc-stat-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(26,18,9,0.45); }

.disc-threads { display: flex; flex-direction: column; }
.disc-thread {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.disc-thread:first-child { border-top: 1px solid var(--border); }
.disc-thread:hover { padding-left: 0.5rem; }
.disc-thread-title { font-size: 0.9rem; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 0.25rem; }
.disc-thread-meta { font-family: var(--font-mono); font-size: 0.62rem; color: rgba(26,18,9,0.4); }
.disc-thread-replies { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(26,18,9,0.35); white-space: nowrap; text-align: right; }

.forum-cats { display: flex; flex-direction: column; gap: 1rem; }
.forum-cat {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--cream);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.forum-cat:hover { border-color: var(--amber); }
.forum-cat-icon {
  width: 42px;
  height: 42px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.forum-cat-title { font-weight: 500; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.2rem; }
.forum-cat-desc { font-size: 0.78rem; color: rgba(26,18,9,0.5); }
.forum-cat-count-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--amber-dark); text-align: right; }
.forum-cat-count-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,18,9,0.35); text-align: right; }

/* bbPress overrides */
.bbpress-content { padding: 4rem 5rem; }
#bbpress-forums { font-family: var(--font-body) !important; }
#bbpress-forums li.bbp-header { background: var(--ink) !important; color: var(--cream) !important; font-family: var(--font-mono) !important; font-size: 0.7rem !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; }
#bbpress-forums li.bbp-body { background: var(--cream) !important; }
#bbpress-forums #bbp-search-form input[type=text] { border: 1px solid var(--border-strong) !important; border-radius: 0 !important; }
#bbpress-forums .bbp-submit-wrapper button { background: var(--amber) !important; color: var(--cream) !important; border: none !important; border-radius: 0 !important; }
.bbp-reply-content, .bbp-topic-content { line-height: 1.75 !important; }

/* ─── NEWSLETTER ─── */
.newsletter {
  padding: 5rem;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.newsletter .section-label { color: var(--amber-light); }
.newsletter .section-label::after { background: rgba(245,240,232,0.15); }
.newsletter h2 { font-size: 2.4rem; color: var(--cream); line-height: 1.15; }
.newsletter h2 em { color: var(--amber-light); font-style: italic; }
.newsletter p { color: rgba(245,240,232,0.5); font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-form input {
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.15);
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.newsletter-form input::placeholder { color: rgba(245,240,232,0.3); }
.newsletter-form input:focus { border-color: var(--amber); }
.newsletter-form button {
  background: var(--amber);
  border: none;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--amber-dark); }
.newsletter-note { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(245,240,232,0.25); letter-spacing: 0.05em; }

/* ─── FOOTER ─── */
#site-footer {
  background: #0e0b06;
  color: rgba(245,240,232,0.5);
  padding: 4rem 5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.07);
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1rem;
  display: block;
  text-decoration: none;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245,240,232,0.35);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.footer-about { font-size: 0.8rem; color: rgba(245,240,232,0.3); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  font-family: var(--font-mono);
  margin-bottom: 1.2rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.82rem; color: rgba(245,240,232,0.4); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--amber-light); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: rgba(245,240,232,0.2); }
.footer-socials { display: flex; gap: 1rem; }
.footer-social {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(245,240,232,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(245,240,232,0.35);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  font-family: var(--font-mono);
}
.footer-social:hover { border-color: var(--amber); color: var(--amber-light); }

/* ─── INNER PAGE HEADER ─── */
.page-hero {
  background: var(--ink);
  padding: 5rem 5rem 4rem;
  color: var(--cream);
}
.page-hero .section-label { color: var(--amber); }
.page-hero h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.page-hero p { color: rgba(245,240,232,0.55); max-width: 600px; font-size: 1rem; }

.page-content { padding: 4rem 5rem; }
.page-content p { margin-bottom: 1.5rem; max-width: 720px; }
.page-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }

/* ─── SEARCH FORM ─── */
.search-form {
  display: flex;
  max-width: 480px;
}
.search-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-right: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.search-form input:focus { border-color: var(--amber); }
.search-form button {
  background: var(--amber);
  border: none;
  padding: 0.75rem 1.5rem;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--amber-dark); }

/* ─── COMMENTS ─── */
.comments-area { padding: 0 5rem 4rem; max-width: 800px; }
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--border-strong);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 0;
  outline: none;
  width: 100%;
  background: var(--cream);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--amber); }
.comment-form .submit {
  background: var(--amber) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.85rem 2rem !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.comment-form .submit:hover { background: var(--amber-dark) !important; }

/* ─── WIDGETS (sidebar) ─── */
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.widget ul li a { text-decoration: none; color: var(--ink); transition: color 0.15s; }
.widget ul li a:hover { color: var(--amber-dark); }

/* ─── PAGINATION ─── */
.pagination, .woocommerce-pagination {
  display: flex;
  gap: 0.35rem;
  margin-top: 3rem;
}
.pagination a, .pagination span,
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
  background: transparent;
}
.pagination a:hover, .woocommerce-pagination ul li a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pagination .current, .woocommerce-pagination ul li span.current { background: var(--amber); color: var(--cream); border-color: var(--amber); }

/* ─── NOTICES ─── */
.woocommerce-message, .woocommerce-info {
  border-top: 3px solid var(--amber) !important;
  background: rgba(184,115,42,0.08) !important;
  border-radius: 0 !important;
}
.woocommerce-error { border-top: 3px solid #c0392b !important; background: rgba(192,57,43,0.08) !important; border-radius: 0 !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  #site-header { padding: 0 1.5rem; }
  #primary-navigation { display: none; }
  #primary-navigation.open { display: block; position: absolute; top: 60px; left: 0; right: 0; background: var(--ink); z-index: 200; }
  #primary-navigation.open ul { flex-direction: column; }
  #primary-navigation.open ul li a { height: auto; line-height: 1; padding: 1rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-mobile-toggle { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 5rem 2.5rem; }

  .howto, .materials, .tools-section, .shop, .blog, .gallery-section, .discussion, .newsletter { padding: 4rem 2.5rem; }
  .howto-header { grid-template-columns: 1fr; gap: 1.5rem; }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-card.featured-card { grid-column: span 2; grid-template-columns: 1fr; }
  .materials-layout { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .discussion-layout { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #site-footer { padding: 3rem 2.5rem 2rem; }
  .woocommerce div.product { padding: 3rem 2.5rem; }
  .page-hero, .page-content { padding-left: 2.5rem; padding-right: 2.5rem; }
  .single-post-header, .single-post-content, .comments-area, .bbpress-content { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .wood-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card.featured-card { grid-column: span 1; }
  .gallery-mosaic { grid-template-columns: repeat(6, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 3; }
  .gallery-item:nth-child(n+2) { grid-column: span 3; grid-row: span 1; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 3rem 1.5rem; }
  .howto, .materials, .tools-section, .shop, .blog, .gallery-section, .discussion, .newsletter { padding: 3rem 1.5rem; }
}
