/* ==========================================================================
   shared.css — base styles common to every Chia page
   Design tokens, reset, nav, buttons, rainbow divider, footer, reveal,
   and shared responsive / reduced-motion rules.
   ========================================================================== */

:root {
  --bg: #fefde8;
  --bg-warm: #f6f4e0;
  --card: #f2f1d4;
  --card-2: #fffffb;
  --text: #3e5b3f;
  --muted: #537954;
  --soft: #6b8169;
  --faint: #8a9a88;
  --ink: #48634a;
  --line: #e6e6c8;
  --red: #f26849;
  --yellow: #f2cf63;
  --green: #9cbf4e;
  --teal: #4ac8c7;
  --whitebrown: #fffffb;
  --header-green: #a9c859;
  --green-faded: #cedfaa;
  --av-500: #679869;
  --av-600: #537954;
  --av-700: #3e5b3f;
  --av-800: #293d2a;
  --av-900: #151e15;
  --acc-yellow: #ffdf68;
  --acc-green: #56872e;
  --orange: #e87048;
  --e1: 0 1px 3px rgba(62, 91, 63, 0.12);
  --e2: 0 6px 16px rgba(62, 91, 63, 0.16);
  --e3: 0 22px 44px rgba(62, 91, 63, 0.22);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.5;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- buttons ---------- */
.btn {
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.18s var(--spring),
    box-shadow 0.18s ease;
}
.btn:active {
  transform: scale(0.95);
}
.btn-primary {
  background: var(--av-500);
  color: #fff;
  padding: 15px 28px;
  border-radius: 9999px;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(62, 91, 63, 0.24);
}
.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(62, 91, 63, 0.3);
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(8px);
  background: rgba(254, 253, 232, 0.82);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
header.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 2px 14px rgba(62, 91, 63, 0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(156, 191, 78, 0.3);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px var(--acc-yellow),
    0 0 0 4px var(--acc-green);
}
.brand .mark img {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--av-500);
  color: #fff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(62, 91, 63, 0.2);
  transition: transform 0.18s var(--spring);
}
.nav-cta:active {
  transform: scale(0.95);
}

/* ---------- rainbow divider ---------- */
.rainbow-strip {
  display: flex;
  height: 8px;
  max-width: 1140px;
  margin: 0 auto;
}
.rainbow-strip > span {
  flex: 1;
}

/* ---------- footer ---------- */
footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-brand {
  max-width: 300px;
}
.foot-brand p {
  color: var(--soft);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.6;
}
.foot-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.foot-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 700;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
  font-weight: 500;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--text);
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--spring);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
