/* Vireo — health & wellness design system */

:root {
  --forest-900: #14261d;
  --forest-700: #1f3d33;
  --forest-500: #2f5a4a;
  --forest-300: #6b8878;
  --terracotta: #c4623d;
  --terracotta-dark: #9c4b2d;
  --amber: #d99a4d;
  --bg: #f7f4ee;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6560;
  --border: #e3ddd0;
  --border-strong: #cfc7b6;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 29, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 38, 29, 0.08);
  --measure: 68ch;
  --content-max: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--forest-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 400; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--forest-700);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
a:hover { text-decoration-color: var(--terracotta); }

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

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

/* Navigation */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(247, 244, 238, 0.92);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--forest-900);
  text-decoration: none;
  font-weight: 500;
}
.brand svg { flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--terracotta); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 24px; }
.hero__lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.btn--primary { background: var(--forest-700); color: #fff; }
.btn--primary:hover { background: var(--forest-900); text-decoration: none; }
.btn--ghost { color: var(--forest-700); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--forest-700); text-decoration: none; }

.hero__art {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, #d8c9a8 0%, #b39674 50%, #6d7a55 100%);
  position: relative;
}
.hero__art svg { width: 100%; height: 100%; display: block; }

/* Section titles */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.section__header h2 { margin: 0; }
.section__header a { font-size: 14px; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.cat-card {
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  display: block;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  border-color: var(--forest-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cat-card__accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--forest-500));
}
.cat-card__icon {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  color: var(--accent, var(--forest-500));
}
.cat-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 500; }
.cat-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s;
}
.article-card:hover { text-decoration: none; transform: translateY(-2px); }
.article-card:hover h3 { color: var(--terracotta); }

.article-card__thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--border);
}
.article-card__thumb svg { width: 100%; height: 100%; display: block; }

.article-card__cat {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  font-weight: 500;
  transition: color 0.15s;
}
.article-card__excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.article-card__meta {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Article page */
.article {
  padding: 56px 0 96px;
}
.article__header {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.article__breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article__breadcrumb a { color: var(--terracotta); text-decoration: none; }
.article__breadcrumb a:hover { text-decoration: underline; }
.article__title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.article__meta {
  font-size: 14px;
  color: var(--muted);
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.article__meta strong { color: var(--ink-soft); font-weight: 500; }

.article__hero {
  max-width: 900px;
  margin: 0 auto 48px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article__hero svg { width: 100%; height: 100%; display: block; }

.article__body {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article__body h2 {
  font-size: 1.55rem;
  margin: 2em 0 0.7em;
  color: var(--forest-900);
}
.article__body h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; }
.article__body p { margin-bottom: 1.2em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article__body li { margin-bottom: 0.4em; }
.article__body blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  border-left: 3px solid var(--terracotta);
  background: rgba(196, 98, 61, 0.06);
  font-style: italic;
  color: var(--forest-900);
  border-radius: 2px;
}
.article__body strong { color: var(--ink); font-weight: 600; }

.article__footer {
  max-width: var(--measure);
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.tag:hover { border-color: var(--forest-500); text-decoration: none; }

.related {
  max-width: 1000px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.related h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  font-weight: 400;
  text-align: center;
}

/* Category page header */
.cat-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.cat-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.cat-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
}
.cat-hero h1 { margin-bottom: 16px; }
.cat-hero__tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

/* About page */
.about {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 72px 24px;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.about h1 { font-size: 2.4rem; margin-bottom: 32px; }
.about h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }

/* Footer */
.site-footer {
  background: var(--forest-900);
  color: #d8dbd6;
  padding: 56px 0 32px;
  margin-top: 0;
}
.site-footer a { color: #d8dbd6; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #a8ada5;
  max-width: 32ch;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid #263f34;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #a8ada5;
  flex-wrap: wrap;
  gap: 16px;
}

/* Search box */
.search-wrap {
  margin: 24px auto 40px;
  max-width: 640px;
}
.search-wrap input {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--ink);
  transition: border-color 0.15s;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(47, 90, 74, 0.12);
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
