/* Woodworker Chuck — Static homepage stylesheet */

:root {
  --ww-green-deep: oklch(0.24 0.04 158);
  --ww-green-dark: oklch(0.32 0.05 158);
  --ww-green-mid: oklch(0.45 0.07 158);
  --ww-amber: oklch(0.78 0.14 84);
  --ww-amber-light: oklch(0.86 0.14 86);
  --ww-cream: oklch(0.97 0.012 85);
  --ww-cream-soft: oklch(0.93 0.018 85);
  --ww-cream-dark: oklch(0.91 0.02 85);
  --ww-text-dark: oklch(0.20 0.01 60);
  --ww-border: oklch(0.86 0.02 75);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-label: "Montserrat", system-ui, sans-serif;

  --shadow-soft: 0 8px 30px -12px rgba(10, 25, 18, 0.18);
  --shadow-cinematic: 0 20px 60px -20px rgba(10, 25, 18, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ww-text-dark);
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(212, 160, 23, 0.06), transparent 60%),
    var(--ww-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ww-green-dark);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); font-weight: 600; color: var(--ww-cream); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------ Containers ------------ */
.ww-container { max-width: 880px; margin: 0 auto; padding-inline: 24px; }
.ww-container-wide { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* ------------ Buttons (Google tap-target compliant) ------------ */
.ww-btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--ww-amber); color: var(--ww-green-deep);
  font-family: var(--font-label); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  min-height: 56px; padding: 18px 30px;
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(212, 160, 23, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ww-btn-cta:hover {
  background: var(--ww-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 160, 23, 0.65);
}

.ww-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 8px 12px;
  font-family: var(--font-label); font-weight: 700; font-size: 0.95rem;
  color: var(--ww-cream);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(250, 247, 242, 0.4);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.ww-btn-ghost:hover { color: var(--ww-amber-light); text-decoration-color: var(--ww-amber-light); }

.ww-btn-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.ww-label {
  font-family: var(--font-label); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem;
  color: var(--ww-amber);
}

.ww-eyebrow-pill {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 999px;
  background: var(--ww-amber); color: var(--ww-green-deep);
  font-family: var(--font-label); font-weight: 800; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 28px;
}

.ww-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-label); font-weight: 600; font-size: 0.8rem;
  background: rgba(250, 247, 242, 0.08);
  color: var(--ww-cream-soft);
  border: 1px solid rgba(250, 247, 242, 0.16);
  backdrop-filter: blur(4px);
}
.ww-chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ww-amber); }

/* ------------ Scarcity bar ------------ */
.ww-scarcity {
  background: var(--ww-green-deep);
  color: var(--ww-cream-soft);
  text-align: center;
  padding: 10px 20px;
  font-family: var(--font-label); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.72rem;
}

/* ------------ Header ------------ */
.ww-header { position: absolute; top: 16px; left: 0; right: 0; z-index: 30; }
.ww-header-bar {
  background: rgba(20, 40, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-cinematic);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px;
}
.ww-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.ww-brand-badge {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--ww-amber); color: var(--ww-green-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-soft); flex-shrink: 0;
}
.ww-brand-text { display: none; flex-direction: column; line-height: 1.15; min-width: 0; }
.ww-brand-name { font-family: var(--font-display); color: var(--ww-cream); font-size: 1.05rem; font-weight: 600; }
.ww-brand-sub { font-family: var(--font-label); font-size: 0.72rem; color: rgba(238, 230, 215, 0.9); }
.ww-nav { display: none; align-items: center; gap: 28px; }
.ww-nav a {
  font-family: var(--font-label); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; font-size: 0.72rem;
  color: rgba(250, 247, 242, 0.85);
  min-height: 48px; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.ww-nav a:hover { color: var(--ww-amber); }
.ww-header-cta {
  display: inline-flex; align-items: center;
  background: var(--ww-amber); color: var(--ww-green-deep);
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-label); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: var(--shadow-soft); min-height: 48px;
  transition: background 0.2s;
}
.ww-header-cta:hover { background: var(--ww-amber-light); }

@media (min-width: 640px) {
  .ww-brand-text { display: flex; }
}
@media (min-width: 768px) {
  .ww-nav { display: inline-flex; }
}

/* ------------ Hero ------------ */
.ww-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ww-green-deep); color: var(--ww-cream);
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: 140px 0 80px;
}
.ww-hero-img {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%; z-index: -2;
}
@media (min-width: 768px) {
  .ww-hero-img {
    left: 25%; right: 0; width: auto; max-width: none;
    object-position: center;
  }
}
.ww-hero-veil-side {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    transparent 0%,
    oklch(0.22 0.04 158 / 0.55) 40%,
    oklch(0.22 0.04 158 / 0.92) 75%);
}
@media (min-width: 768px) {
  .ww-hero-veil-side {
    background: linear-gradient(90deg,
      oklch(0.22 0.04 158 / 0.95) 0%,
      oklch(0.24 0.04 158 / 0.85) 35%,
      oklch(0.24 0.04 158 / 0.45) 60%,
      transparent 90%);
  }
}
.ww-hero-veil-top {
  position: absolute; inset-inline: 0; top: 0; height: 160px; z-index: -1;
  background: linear-gradient(180deg, oklch(0.18 0.03 158 / 0.85), transparent);
}
.ww-hero-inner { position: relative; width: 100%; max-width: 720px; }
.ww-hero h1 .italic { font-style: italic; }
.ww-hero p.ww-lede {
  margin-top: 28px; font-size: 1.125rem; line-height: 1.65;
  color: rgba(238, 230, 215, 0.9); max-width: 560px;
}
.ww-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

@media (min-width: 768px) {
  .ww-hero { padding-top: 160px; padding-bottom: 96px; }
  .ww-hero p.ww-lede { font-size: 1.25rem; }
}

/* ------------ Generic sections ------------ */
.ww-section { padding: 96px 0; }
.ww-section-paper {
  padding: 96px 0;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(212,160,23,0.06), transparent 60%),
    var(--ww-cream);
}
.ww-section-head { max-width: 640px; }
.ww-section-head .ww-label { margin-bottom: 12px; display: block; }
.ww-section-head h2 { color: var(--ww-green-dark); }
.ww-section-head p {
  margin-top: 20px; font-size: 1.125rem;
  color: rgba(46, 38, 26, 0.78); line-height: 1.65;
}

/* ------------ Featured posts grid ------------ */
.ww-grid-3 { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
@media (min-width: 768px) { .ww-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.ww-card {
  display: block; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--ww-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ww-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-cinematic); }
.ww-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ww-cream-dark); }
.ww-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.ww-card:hover .ww-card-img img { transform: scale(1.05); }
.ww-card-body { padding: 28px; }
.ww-card-body h3 { color: var(--ww-green-dark); transition: color 0.2s; }
.ww-card:hover .ww-card-body h3 { color: var(--ww-green-mid); }
.ww-card-body p { margin-top: 12px; font-size: 0.95rem; line-height: 1.65; color: rgba(46, 38, 26, 0.8); }
.ww-card-more {
  display: block; margin-top: 20px;
  font-family: var(--font-label); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem;
  color: var(--ww-green-dark);
}
.ww-card:hover .ww-card-more { color: var(--ww-amber); }

/* ------------ Guide showcase ------------ */
.ww-guide-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 1024px) {
  .ww-guide-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.ww-guide-img-wrap { position: relative; }
.ww-guide-img {
  width: 100%; border-radius: 16px; aspect-ratio: 1 / 1; object-fit: cover;
  box-shadow: var(--shadow-cinematic);
}
.ww-guide-badge {
  position: absolute; top: -20px; right: -20px;
  background: var(--ww-amber); color: var(--ww-green-deep);
  padding: 12px 20px; border-radius: 999px; transform: rotate(6deg);
  box-shadow: 0 10px 24px -8px rgba(212, 160, 23, 0.6);
  font-family: var(--font-label); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ww-guide-body h2 { color: var(--ww-green-dark); }
.ww-guide-body > p {
  margin-top: 20px; font-size: 1.125rem; line-height: 1.65;
  color: rgba(46, 38, 26, 0.8); max-width: 560px;
}
.ww-guide-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.ww-guide-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1.02rem; color: rgba(46, 38, 26, 0.9);
}
.ww-guide-list li::before {
  content: ""; margin-top: 10px; width: 8px; height: 8px; border-radius: 999px;
  background: var(--ww-amber); flex-shrink: 0;
}

/* ------------ Category grid ------------ */
.ww-cat-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 640px) { .ww-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ww-cat-grid { grid-template-columns: repeat(4, 1fr); } }

.ww-cat {
  background: #fff; border-radius: 12px; border: 1px solid var(--ww-border);
  padding: 28px; box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ww-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-cinematic); }
.ww-cat-icon {
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(45, 80, 60, 0.08); color: var(--ww-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ww-cat h3 { color: var(--ww-green-dark); font-size: 1.125rem; }
.ww-cat p { margin-top: 10px; font-size: 0.95rem; color: rgba(46, 38, 26, 0.75); line-height: 1.65; }

/* ------------ Why-it-matters / quote ------------ */
.ww-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.45;
  color: var(--ww-green-dark);
  margin: 40px 0 0; padding-left: 24px;
  border-left: 2px solid var(--ww-amber);
}
.ww-prose-lg { margin-top: 24px; font-size: 1.125rem; line-height: 1.65; color: rgba(46, 38, 26, 0.85); }

/* ------------ About Chuck ------------ */
.ww-about-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 768px) {
  .ww-about-grid { grid-template-columns: 1fr 1.3fr; }
}
.ww-about-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow-cinematic);
}
.ww-about-cols {
  margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 640px) { .ww-about-cols { grid-template-columns: 1fr 1fr; } }
.ww-about-cols h3 { color: var(--ww-green-dark); font-size: 1rem; }
.ww-about-cols p { margin-top: 8px; font-size: 0.95rem; line-height: 1.65; color: rgba(46, 38, 26, 0.75); }

/* ------------ Final CTA ------------ */
.ww-final {
  position: relative; overflow: hidden;
  background: var(--ww-green-deep); color: var(--ww-cream);
  padding: 96px 0;
}
.ww-final-glow {
  position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, oklch(0.78 0.14 84 / 0.35), transparent 70%);
}
.ww-final-inner { position: relative; text-align: center; }
.ww-final h2 { color: var(--ww-cream); max-width: 720px; margin: 0 auto; }
.ww-final p {
  margin: 20px auto 0; max-width: 520px;
  font-size: 1.125rem; color: rgba(238, 230, 215, 0.85);
}
.ww-final .ww-btn-cta { margin-top: 36px; }
.ww-final .ww-label { color: var(--ww-amber-light); margin-bottom: 16px; display: block; }

/* ------------ Footer ------------ */
.ww-footer { background: var(--ww-green-deep); color: var(--ww-cream-soft); padding: 56px 20px 40px; }
.ww-footer-top {
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 768px) {
  .ww-footer-top { flex-direction: row; align-items: center; }
}
.ww-footer-brand { display: flex; align-items: center; gap: 12px; }
.ww-footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.ww-footer-nav a {
  font-family: var(--font-label); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem;
  min-height: 48px; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.ww-footer-nav a:hover { color: var(--ww-amber); }
.ww-footer-legal {
  margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 24px;
}
.ww-footer-legal a {
  font-family: var(--font-label); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(238, 230, 215, 0.9);
  min-height: 48px; display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.ww-footer-legal a:hover { color: var(--ww-amber); }
.ww-footer hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 32px 0; }
.ww-footer-fineprint {
  max-width: 720px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.78rem; line-height: 1.65; color: rgba(238, 230, 215, 0.85);
}
