/* a Happy Hippie · Slate Forest */
:root {
  --slate: #14181b;
  --slate-deep: #0e1113;
  --line: #262d31;
  --forest: #1f2d23;
  --forest-line: #2f4133;
  --sage: #a9c98a;
  --clay: #c9612f;
  --clay-dark: #ad5224;
  --gold: #e9bb5f;
  --chalk: #f3ecdc;
  --chalk-dust: #c8c1ad;
  --muted: #8e9786;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --script: 'Caveat', cursive;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--chalk-dust);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #f3cf85; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--chalk); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.script { font-family: var(--script); font-weight: 700; color: var(--sage); line-height: 1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--chalk); color: var(--slate); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: var(--chalk); text-decoration: none; line-height: 1; white-space: nowrap; }
.wordmark:hover { color: var(--chalk); }
.wordmark em { font-style: italic; font-weight: 500; color: var(--sage); }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 1.02rem; }
.nav a { color: var(--chalk); text-decoration: none; }
.nav a:hover { color: var(--sage); }
.nav .btn { color: #fff7ea; }
.menu-toggle { display: none; background: none; border: 1px solid var(--forest-line); color: var(--chalk); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--clay);
  color: #fff7ea;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.btn:hover { background: var(--clay-dark); color: #fff7ea; }
.btn-ghost { background: transparent; border: 1px solid #4f6b51; color: #dfe8d2; font-weight: 600; }
.btn-ghost:hover { background: var(--forest); color: #dfe8d2; }
.link-arrow { color: var(--gold); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Sections */
section { padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; max-width: 760px; }
.section-head .script { font-size: 1.7rem; }
.section-head p { font-size: 1.1rem; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; font-size: 1.12rem; }
.prose p { color: var(--chalk-dust); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-photo { justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 420 / 580; border-radius: 210px 210px 16px 16px; overflow: hidden; background: #2f3a2e; border: 1px solid #3a5240; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0%; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-text .script { font-size: 1.9rem; }
.hero-text h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-lede { font-size: 1.22rem; }
.hero-skeptic { color: var(--sage); font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 0; display: flex; gap: 12px; align-items: baseline; }
.stat b { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: var(--gold); white-space: nowrap; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--forest); border: 1px solid var(--forest-line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card .script { font-size: 1.45rem; }
.card .quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.28rem; line-height: 1.35; color: var(--chalk); }
.card .card-foot { margin-top: auto; padding-top: 6px; }
.card h3 { color: var(--chalk); }
.card .who { font-size: 0.95rem; color: var(--sage); font-weight: 600; }
.note { font-size: 0.95rem; color: var(--muted); }

/* Why */
.why .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.why-photo { width: 150px; height: auto; border-radius: 75px 75px 10px 10px; border: 1px solid #3a5240; }
.creds { font-size: 1rem; color: var(--sage); border-left: 3px solid var(--forest-line); padding-left: 16px; }

/* Free */
.quiz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.quiz-list a { color: var(--chalk); text-decoration: none; font-weight: 600; }
.quiz-list a:hover { color: var(--gold); }
.quiz-list a::after { content: ' →'; color: var(--gold); }
.tally-wrap { margin: -8px -24px 0; }
.tally-wrap iframe { width: 100%; border: 0; min-height: 300px; }

/* Testimonials */
.testimonial { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--chalk); line-height: 1.45; }

/* Books */
.book-groups { display: flex; flex-direction: column; gap: 34px; }
.book-group h3 { font-family: var(--script); font-weight: 700; color: var(--sage); font-size: 1.7rem; margin-bottom: 14px; }
.book-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.book { display: flex; gap: 16px; align-items: flex-start; background: var(--forest); border: 1px solid var(--forest-line); border-radius: 12px; padding: 16px; }
.book img { width: 78px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.book b { display: block; font-family: var(--serif); color: var(--chalk); font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.book p { font-size: 0.95rem; margin-bottom: 8px; }
.book a { font-weight: 700; font-size: 0.95rem; }

/* Books page */
.book-full { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.book-full img { width: 100%; border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.book-full .body { display: flex; flex-direction: column; gap: 14px; }
.book-full ul { margin: 0; padding-left: 20px; }
.book-full li { margin: 4px 0; }
.book-full .pairs { color: var(--sage); font-weight: 600; }
.cover-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.cover-strip img { width: 64px; border-radius: 4px; box-shadow: none; }

/* Shop locally */
.shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shops .card p { color: var(--chalk-dust); }

/* About */
.about-hero .wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
.about-photo { border-radius: 160px 160px 14px 14px; overflow: hidden; border: 1px solid #3a5240; }
.about-body { display: flex; flex-direction: column; gap: 20px; font-size: 1.12rem; }
.about-body h2 { font-size: 1.7rem; margin-top: 18px; }
.about-body ul { margin: 0; padding-left: 20px; }

/* Crystal reference pages */
.crystal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.crystal { background: var(--forest); border: 1px solid var(--forest-line); border-radius: 12px; padding: 20px 22px; }
.crystal h3 { font-size: 1.25rem; margin-bottom: 4px; }
.crystal .mohs { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
.crystal .theme { color: var(--sage); font-weight: 600; margin: 6px 0; }
.crystal p { font-size: 1rem; }
.crystal p + p { margin-top: 8px; }
.cheat { display: grid; grid-template-columns: 260px minmax(0, 1fr); border-top: 1px solid var(--line); }
.cheat dt, .cheat dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.cheat dt { font-family: var(--serif); color: var(--chalk); font-weight: 600; padding-right: 20px; }
.page-links { display: flex; flex-wrap: wrap; gap: 12px; }
.callout { background: var(--forest); border: 1px solid var(--forest-line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 18px 22px; }
.callout p { color: var(--chalk-dust); }

/* Downloads */
.card.is-recommended { border-color: var(--gold); }
.card .recommended { font-size: 1.3rem; color: var(--gold); }
.download-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Footer */
.site-footer { background: var(--slate-deep); color: var(--muted); font-size: 0.98rem; padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--serif); color: var(--chalk); font-weight: 600; font-size: 1.1rem; margin: 0 0 10px; }
.site-footer a { color: var(--chalk-dust); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.socials { display: flex; gap: 14px; margin-top: 14px; }
.socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--forest-line); border-radius: 50%; color: var(--sage); }
.socials a:hover { background: var(--forest); color: var(--chalk); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.fine { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why .wrap, .about-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-photo { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--slate); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 18px 16px 24px; gap: 16px; z-index: 5; }
  .nav.open { display: flex; }
  .site-header { position: relative; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-photo { max-width: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  section { padding: 44px 0; }
  .wordmark { font-size: 1.6rem; }
  .cards-3, .cards-2, .shops, .crystal-list, .download-list, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 14px 0; }
  .book-full { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .book-full img { max-width: 200px; }
  .cheat { grid-template-columns: minmax(0, 1fr); }
  .cheat dt { border-bottom: 0; padding-bottom: 0; }
  .btn { width: 100%; }
}
