/* ─────────────────────────────────────────────────────────
   ecoshop.ai — shared styles
   ───────────────────────────────────────────────────────── */

:root {
  --bg: #FAF7F0;
  --bg-warm: #F2EDE0;
  --ink: #1B2A20;
  --ink-soft: #3D4A3F;
  --ink-mute: #6B7468;
  --line: #D8D2BF;
  --leaf: #2D5F3F;
  --leaf-deep: #1F4530;
  --accent: #C9842B;
  --accent-soft: #F2E4CB;
  --accent-deep: #8B5A1A;
  --paper: #FFFFFF;
  --warn: #C0392B;
}

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

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(45, 95, 63, 0.025) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 132, 43, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.container-narrow {
  max-width: 720px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 22px; }
h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; margin-top: 48px; line-height: 1.25; }
h3 { font-size: 20px; margin-bottom: 10px; margin-top: 28px; }
h4 { font-size: 17px; font-weight: 500; margin-bottom: 8px; margin-top: 22px; }
p { margin-bottom: 16px; color: var(--ink-soft); }
em { font-style: italic; color: var(--leaf); }

a { color: var(--leaf); text-decoration: none; border-bottom: 1px solid rgba(45, 95, 63, 0.25); transition: border-color 0.2s; }
a:hover { border-bottom-color: var(--leaf); }

ul, ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
li { margin-bottom: 6px; }

strong { font-weight: 600; color: var(--ink); }

blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}

/* ─── Header ─── */
header {
  padding: 28px 0 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: none;
}
.brand:hover { border-bottom: none; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--leaf);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  top: 6px;
  left: 6px;
  mix-blend-mode: screen;
}
.brand .dot { color: var(--accent); margin-left: 1px; }
.nav-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--leaf); }
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ─── Buttons ─── */
.btn-primary {
  background: var(--leaf);
  color: var(--paper);
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-bottom: none;
}
.btn-primary:hover {
  background: var(--leaf-deep);
  border-bottom: none;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.btn-primary:hover svg { transform: translateX(2px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

/* ─── Footer ─── */
footer {
  padding: 32px 0 28px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-row a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.footer-row a:hover { border-bottom-color: var(--ink-soft); }
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ─── Animations ─── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

main { flex: 1; }

/* ─── Responsive ─── */
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  header { padding-top: 20px; }
  body { font-size: 15px; }
  h2 { margin-top: 36px; }
  blockquote { font-size: 16px; padding: 14px 18px; }
}
