/* ============================================================
   WeaveWell — Design System
   Body: Source Serif 4, 18px, 1.7 line-height
   Heading: Playfair Display
   Body color: #2D2A26 | Background: #FAF8F5 | Accent: #7A8C6E
   Max content width: 680px, centered
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --body-font: 'Source Serif 4', Georgia, serif;
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-color: #2D2A26;
  --bg: #FAF8F5;
  --accent: #7A8C6E;
  --accent-light: #9AAD8F;
  --muted: #8A8279;
  --border: rgba(45,42,38,0.15);
  --max-width: 680px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--body-color);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: 1.6rem; margin-top: 48px; margin-bottom: 16px; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 24px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-light); }

em { font-style: italic; }
strong { font-weight: 600; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 40px;
}

.nav-logo {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--body-color);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--body-color); }

.nav-soon {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}

/* ---- Main ---- */
.site-main { min-height: 70vh; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 80px;
}

.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-brand {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--body-color);
  letter-spacing: -0.02em;
}

.footer-tagline { font-size: 15px; color: var(--muted); }
.footer-tagline a { color: var(--accent); text-decoration: none; }
.footer-tagline a:hover { text-decoration: underline; }

.footer-newsletter { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline-sm { font-size: 13px; color: var(--muted); }

.footer-form {
  display: flex;
  gap: 8px;
}

.footer-form input {
  font-family: var(--body-font);
  font-size: 15px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--body-color);
  width: 220px;
}

.footer-form input::placeholder { color: var(--muted); }
.footer-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.footer-form button {
  font-family: var(--body-font);
  font-size: 15px;
  padding: 8px 18px;
  background: var(--body-color);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

.footer-form button:hover { background: var(--accent); }

/* ---- Homepage ---- */
.home-hero {
  padding: 5rem 40px 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.home-hero h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--body-color);
}

.home-hero .tagline {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.home-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 5rem;
}

.home-intro p {
  font-size: 19px;
  color: #4a4642;
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 32px;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--body-color);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  letter-spacing: 0.02em;
  transition: color 0.15s, border-color 0.15s;
}

.home-cta:hover { color: var(--accent); border-color: transparent; }

/* ---- Blog listing ---- */
.blog-header {
  padding: 4rem 40px 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-header .blog-subtitle {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.blog-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-card:first-child { border-top: 1px solid var(--border); }

.post-card .post-date {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.post-card h2 a {
  color: var(--body-color);
  text-decoration: none;
}

.post-card h2 a:hover { color: var(--accent); }

.post-card .excerpt {
  font-size: 16px;
  color: #5a5652;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.post-card .read-more {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.post-card .read-more:hover { text-decoration: underline; }

/* ---- Blog post ---- */
.post-page-header {
  padding: 4rem 40px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-page-header .post-date {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.post-page-header h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.post-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}

.post-quote {
  font-family: var(--heading-font);
  font-size: 20px;
  font-style: italic;
  color: var(--body-color);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0 40px 40px;
  line-height: 1.6;
  max-width: calc(var(--max-width) - 48px);
}

.post-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 5rem;
}

.post-body p {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--body-color);
  margin-bottom: 24px;
}

.post-body .post-lead {
  font-size: 21px !important;
  color: #4a4642 !important;
  font-weight: 400;
}

.post-body h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--body-color);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.post-body blockquote {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
}

/* ---- Post footer ---- */
.post-footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 5rem;
}

.footer-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}

.post-footer-newsletter {
  margin-bottom: 32px;
}

.post-footer-newsletter p {
  font-size: 17px;
  color: #4a4642;
}

.shop-teaser {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.shop-teaser a { color: var(--accent); }

/* ---- About page ---- */
.about-header {
  padding: 4rem 40px 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 5rem;
}

.about-body p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.about-body h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--body-color);
}

.about-body .mission-block {
  background: rgba(122,140,110,0.08);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 32px 0;
}

.about-body .mission-block p {
  font-size: 19px;
  color: #4a4642;
  margin: 0;
}

.about-body .blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
}

.about-body .blog-link:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  body { font-size: 17px; }

  .site-nav { padding: 1rem 20px; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 14px; }

  .home-hero, .home-intro, .blog-header, .blog-list,
  .post-page-header, .post-body, .post-footer-wrap,
  .about-header, .about-body { padding-left: 20px; padding-right: 20px; }

  .post-quote { margin-left: 20px; margin-right: 20px; }

  .site-footer {
    flex-direction: column;
    padding: 2rem 20px;
    gap: 1.5rem;
  }

  .footer-form input { width: 160px; }

  h1 { font-size: 2rem; }
  .post-page-header h1 { font-size: 1.8rem; }
  .blog-header h1, .about-header h1 { font-size: 2rem; }
}

/* ---- Focus styles ---- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}