/* ── Vernalo Design System ── */

/* Fonts: loaded in HTML <head> */
/* Instrument Serif (display) + DM Sans (body) */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --green-50: #e8f5e9;
  --green-100: #c8e6c9;
  --green-200: #a5d6a7;
  --green-400: #66bb6a;
  --green-600: #43a047;
  --green-700: #388e3c;
  --green-800: #2e7d32;
  --green-900: #1b5e20;
  --cream: #faf8f3;
  --cream-warm: #f5f0e8;
  --brown: #3e2723;
  --brown-light: #5d4037;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-light: #777;
  --border: #e0ddd5;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --max-width: 1080px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; font-size: 16px }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  line-height: 1.15;
  color: var(--brown);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem) }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem) }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem) }

p { max-width: 65ch }

a { color: var(--green-800); text-decoration: none }
a:hover { color: var(--green-900) }

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

/* ── Layout ── */

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--cream-warm);
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  color: var(--green-800);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-links a:hover { color: var(--green-800) }

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  background: var(--green-800);
  color: #fff !important;
  border-radius: 50px;
  transition: background .2s, transform .15s;
}

.nav-cta:hover {
  background: var(--green-900);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text) }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg) }

.btn--primary {
  background: var(--green-800);
  color: #fff;
}
.btn--primary:hover { background: var(--green-900); color: #fff }

.btn--outline {
  background: transparent;
  border: 2px solid var(--green-800);
  color: var(--green-800);
}
.btn--outline:hover { background: var(--green-800); color: #fff }

.btn--small {
  font-size: 0.875rem;
  padding: 10px 22px;
}

/* ── Cards ── */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.card h3 { margin-bottom: 8px }

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Grid ── */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr) }
.grid--3 { grid-template-columns: repeat(3, 1fr) }
.grid--4 { grid-template-columns: repeat(4, 1fr) }

/* ── Guide list ── */

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.guide-item:last-child { border-bottom: none }

.guide-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-800);
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.guide-item h3 { font-size: 1.2rem; margin-bottom: 4px }
.guide-item h3 a { color: var(--brown) }
.guide-item h3 a:hover { color: var(--green-800) }

.guide-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Store badges ── */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badges a {
  display: block;
  height: 44px;
  transition: transform .15s;
}

.store-badges a:hover { transform: translateY(-2px) }
.store-badges img { height: 100%; width: auto }

/* ── Footer ── */

.footer {
  background: var(--brown);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}

.footer a { color: rgba(255,255,255,.8) }
.footer a:hover { color: #fff }

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

.footer-brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer h4 {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer li a { font-size: 0.9rem }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

/* ── Reveal animation ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page header (for subpages) ── */

.page-header {
  padding: 120px 0 48px;
  text-align: center;
}

.page-header p {
  margin: 12px auto 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ── Article body (for guide pages) ── */

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

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  border-radius: var(--radius);
  margin: 32px 0;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .section { padding: 56px 0 }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none }
  .nav-toggle { display: block }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px }
  .card { padding: 24px }
}
