/* The Woodshop Journal — shared styles */
:root {
  --wood-dark: #3d2914;
  --wood-mid: #6b4423;
  --wood-light: #c4a574;
  --wood-pale: #f5efe6;
  --accent: #b85c38;
  --accent-hover: #9a4a2c;
  --text: #2c2416;
  --text-muted: #5c5346;
  --white: #fff;
  --border: #e0d5c5;
  --ok: #2d6a4f;
  --max: 960px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--wood-pale);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* setup banner (unused when ID is set) */
.yourid-banner {
  background: #7a1f1f;
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.yourid-banner code {
  background: rgba(255,255,255,0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Header */
.site-header {
  background: var(--wood-dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wood-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo:hover { color: #e8d5b5; }
.logo span { color: var(--white); font-weight: 400; font-size: 0.85rem; display: block; letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.nav a {
  color: #e8d5b5;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: #fff; text-decoration: underline; }
.nav .cta-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-decoration: none !important;
}
.nav .cta-nav:hover { background: var(--accent-hover); }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.5rem;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 15% 20%, rgba(196, 165, 116, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(184, 92, 56, 0.22), transparent 50%),
    linear-gradient(145deg, #2a1c0e 0%, var(--wood-dark) 38%, var(--wood-mid) 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 11px,
      rgba(255, 255, 255, 0.035) 11px,
      rgba(255, 255, 255, 0.035) 12px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 47px,
      rgba(0, 0, 0, 0.06) 47px,
      rgba(0, 0, 0, 0.06) 48px
    );
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 35%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 181, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #e8d5b5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  font-weight: 700;
  margin: 0 0 1.1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.hero-accent {
  color: #e8d5b5;
  font-style: italic;
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
@media (max-width: 640px) {
  .hero-inner { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { width: 100%; max-width: 22rem; }
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--wood-dark);
  line-height: 1.3;
}
h1 { font-size: 1.85rem; margin-top: 0; }
h2 { font-size: 1.4rem; margin-top: 2rem; border-bottom: 2px solid var(--border); padding-bottom: 0.35rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }
p { margin: 0.85rem 0; }
ul, ol { margin: 0.75rem 0; padding-left: 1.4rem; }
li { margin: 0.35rem 0; }
.lede { font-size: 1.15rem; color: var(--text-muted); }

/* Cards / grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(61,41,20,0.06);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(61,41,20,0.12); }
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card a { text-decoration: none; color: inherit; }
.card a:hover h3 { color: var(--accent); }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

/* Buttons / CTAs */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.7rem 1.35rem;
  border-radius: 5px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-hover); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--wood-dark) !important;
  border: 2px solid var(--wood-mid);
}
.btn-outline:hover { background: var(--wood-dark); color: #fff !important; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1.1rem; }

/* Hero CTAs — after .btn/.btn-lg so these win */
.hero-actions .btn.btn-hero-primary {
  border-radius: 999px;
  padding: 0.95rem 1.85rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.01em;
  border: none;
}
.hero-actions .btn.btn-hero-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}
.hero-actions .btn.btn-hero-secondary {
  border-radius: 999px;
  padding: 0.95rem 1.85rem;
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(232, 213, 181, 0.65);
  box-shadow: none;
}
.hero-actions .btn.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: #e8d5b5;
}

.cta-box {
  background: #fff8f0;
  border: 2px solid var(--wood-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.cta-box p { margin-top: 0; }
.disclaimer {
  font-size: 0.8rem;
  color: #8a7f70;
  margin-top: 0.5rem;
}
.affiliate-note {
  display: none;
}

/* Pros/cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.pros h3 { color: var(--ok); margin-top: 0; }
.cons h3 { color: var(--accent); margin-top: 0; }

/* Quiz */
.quiz-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-options { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.quiz-options button {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  background: var(--wood-pale);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.quiz-options button:hover {
  border-color: var(--accent);
  background: #fff8f0;
}
#quiz-result { display: none; }
#quiz-result.visible { display: block; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: var(--white);
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
th { background: var(--wood-dark); color: #fff; }

/* Footer */
.site-footer {
  background: var(--wood-dark);
  color: #c4b8a8;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer a { color: var(--wood-light); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.75rem 0 1rem; }
.footer-disc {
  font-size: 0.75rem;
  color: #9a9084;
  line-height: 1.4;
  margin-top: 0.75rem;
}

/* Article meta */
.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }

/* Misc */
.highlight-box {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}
.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.related ul { list-style: none; padding: 0; }
.related li { margin: 0.4rem 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
