/* Woodworking Wonders — design system
   Palette + type from the real brand kit (content-source/branding/woodworking-wonders-brand-kit.html):
   dark wood ink, warm gold, cream, muted brown, sage accent.
   Editorial, rustic-modern — Cormorant Garamond (serif) + Jost (sans). */

:root {
  --dark: #2C2416;
  --dark-soft: #4A3E2C;
  --gold: #C8A46E;
  --gold-deep: #A8824F;
  --cream: #F5F0E8;
  --light: #FAF7F2;
  --muted: #9A8070;
  --border: #D6CBBA;
  --sage: #8A9E85;
  --white: #FFFFFF;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", Arial, sans-serif;

  --content-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: var(--dark-soft);
  background: var(--light);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.9rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.55rem, 1rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  color: var(--dark);
  line-height: 1.45;
}

p { margin: 0 0 1.1em; }

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Tag / pill ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
}

.tag:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ---------- Wordmark logo (matches brand kit) ---------- */

.wonders-logo { line-height: 1; text-align: left; }
.wonders-logo .wl-the {
  font-family: var(--font-body); font-size: 9px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.wonders-logo .wl-w1 {
  font-family: var(--font-heading); font-weight: 300; font-size: 24px;
  letter-spacing: 2px; line-height: 1; color: var(--dark);
}
.wonders-logo .wl-rule { height: 1.5px; width: 140px; background: var(--gold); margin: 3px 0; }
.wonders-logo .wl-w2 {
  font-family: var(--font-heading); font-weight: 300; font-size: 24px;
  letter-spacing: 2px; line-height: 1; color: var(--gold);
}

.wonders-logo.on-dark .wl-the { color: rgba(245,240,232,0.45); }
.wonders-logo.on-dark .wl-w1 { color: var(--light); }

.wonders-logo.lg .wl-the { font-size: 12px; letter-spacing: 6px; margin-bottom: 6px; }
.wonders-logo.lg .wl-w1, .wonders-logo.lg .wl-w2 { font-size: 40px; letter-spacing: 3px; }
.wonders-logo.lg .wl-rule { width: 220px; height: 2px; margin: 6px 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 12px;
  color: var(--dark);
  opacity: 0.82;
  transition: opacity 0.15s, color 0.15s;
}

.main-nav a:hover { opacity: 1; color: var(--gold-deep); }

.main-nav details { position: relative; }
.main-nav summary { list-style: none; cursor: pointer; font-size: 0.92rem; font-weight: 500; padding: 10px 12px; color: var(--dark); }
.main-nav summary::-webkit-details-marker { display: none; }

.dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 32px rgba(44, 36, 22, 0.12);
}

.dropdown a { padding: 9px 18px; font-size: 0.85rem; font-weight: 400; opacity: 1; }
.dropdown a:hover { background: var(--cream); color: var(--gold-deep); }

.menu-toggle { display: none; background: none; border: none; color: var(--dark); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .dropdown { position: static; border: none; box-shadow: none; padding: 4px 0 0 12px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-fill { background: var(--gold); color: var(--dark); }
.btn-fill:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--cream); }

.btn-block { display: flex; justify-content: center; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 24px 88px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -160px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 63% 37% 54% 46% / 55% 45% 55% 45%;
  z-index: 0;
}

.hero .site-container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-text p { font-size: 1.12rem; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-figure img {
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(44, 36, 22, 0.3);
}

@media (max-width: 860px) {
  .hero { padding: 48px 20px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { order: 0; }
  .hero-text { order: 1; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-blob { width: 420px; height: 420px; right: -140px; top: -100px; }
}

.section-hero-sm { position: relative; padding: 64px 24px 56px; background: var(--cream); overflow: hidden; }
.section-hero-sm h1 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 2.9rem); }
.section-hero-sm p { font-size: 1.05rem; }

.hero-page { padding: 72px 24px; text-align: center; background: var(--cream); }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text h5 { font-size: 1.2rem; margin-top: 1.6em; font-family: var(--font-heading); font-weight: 500; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.check-list .check { color: var(--gold-deep); font-weight: 900; flex-shrink: 0; margin-top: 2px; }

.about-figure img { border-radius: 4px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
}

/* ---------- Category grid (homepage / hub pages) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px 20px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.category-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(44,36,22,0.14); }
.category-card h3 { font-size: 1.25rem; margin-bottom: 0; }

/* ---------- Section / grid helpers ---------- */

section { padding: 64px 0; }

.section-cream { background: var(--cream); }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); color: rgba(245,240,232,0.85); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--light); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Post cards (blog listing) ---------- */

.post-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.18s, box-shadow 0.18s;
}

.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(44,36,22,0.18); }

.post-card-img img { aspect-ratio: 4 / 3; object-fit: cover; }

.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--gold-deep); }

.post-card-excerpt { font-size: 0.92rem; color: var(--muted); margin-bottom: 14px; }

.post-card-more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
}

.post-card-more:hover { color: var(--gold-deep); }

/* Compact variant — sidebar recent posts, similar-posts row */
.post-card-compact { background: var(--white); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.post-card-compact .post-card-img img { aspect-ratio: 4/3; }
.post-card-compact .post-card-body { padding: 18px 20px; }
.post-card-compact h3 { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Article / single post ---------- */

.article-hero { padding: 56px 0 8px; text-align: center; }
.article-hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }

.article-byline { font-size: 0.85rem; color: var(--muted); margin-top: 14px; font-weight: 500; }

.article-featured-img { margin: 32px auto 0; }
.article-featured-img img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; }

.article-body { max-width: 740px; margin: 0 auto; padding: 40px 24px 0; }

.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body img { border-radius: 6px; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--dark);
  font-size: 1.2rem;
}
.article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* ---------- Article layout: content + sidebar ---------- */

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.article-layout .article-body { max-width: none; margin: 0; padding: 40px 0 0; }

.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}

.sidebar-widget h4 { font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; margin-bottom: 16px; }

.sidebar-post { display: flex; gap: 12px; margin-bottom: 14px; }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post img { width: 58px; height: 58px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sidebar-post span { font-size: 0.87rem; line-height: 1.4; color: var(--dark); font-weight: 500; }
.sidebar-post:hover span { color: var(--gold-deep); }

.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { border-bottom: 1px solid var(--border); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a { display: block; padding: 10px 0; font-size: 0.92rem; font-weight: 500; color: var(--dark-soft); }
.sidebar-cats a:hover { color: var(--gold-deep); }

.sidebar-newsletter { background: var(--cream); border-color: var(--border); }
.sidebar-newsletter p { font-size: 0.88rem; margin-bottom: 16px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; padding-top: 0; }
}

/* ---------- Prev / next post nav ---------- */

.post-nav-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.post-nav {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-nav-link { max-width: 45%; }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 6px;
}
.post-nav-title { color: var(--dark); font-size: 0.95rem; line-height: 1.4; font-weight: 500; }
.post-nav-title:hover { color: var(--gold-deep); }

@media (max-width: 600px) {
  .post-nav-link { max-width: 100%; }
}

/* ---------- Coming-soon hub cards (Toolbox / Mood Boards / Cards) ---------- */

.coming-soon-box {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 48px 32px;
  text-align: center;
  background: var(--white);
}
.coming-soon-box .eyebrow { margin-bottom: 10px; }

/* ---------- Style quiz ---------- */

.quiz-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px;
}
.quiz-q { margin-bottom: 2em; }
.quiz-q h3 { font-size: 1.15rem; margin-bottom: 0.8em; }
.quiz-q label {
  display: block;
  margin-bottom: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-q label:hover { border-color: var(--gold); background: var(--cream); }
.quiz-q input { margin-right: 10px; }
.quiz-result {
  display: none;
  padding: 32px;
  margin-top: 32px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}
.quiz-result h3 { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #C9BEB1; padding: 64px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p { font-size: 0.92rem; max-width: 300px; color: #ADA093; margin-top: 16px; }

.footer-col h5 { font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; color: var(--light); margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.9rem; color: #ADA093; width: fit-content; }
.footer-col a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-links a { color: #ADA093; }
.footer-links a:hover { color: var(--gold); }

.footer-copy { font-size: 0.84rem; text-align: center; margin-top: 22px; color: #8A7D6E; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mw-740 { max-width: 740px; margin-left: auto; margin-right: auto; }
.mw-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
