/* Hippopotamism: the open-source religion */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600..900&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --mud: #3d2b3f;
  --mud-deep: #241825;
  --river: #6b4c7a;
  --river-light: #9b7bb0;
  --hippo-pink: #e8a0b4;
  --hippo-pink-soft: #f5d6de;
  --sun: #f2b544;
  --cream: #fbf3ea;
  --ink: #2a1e2c;
  --line: rgba(42, 30, 44, 0.12);
  --shadow: 0 20px 50px rgba(36, 24, 37, 0.18);
  --radius: 28px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--mud-deep);
}

.brand .glyph {
  font-size: 1.6rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a.navlink {
  text-decoration: none;
  color: var(--mud-deep);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav a.navlink:hover {
  opacity: 1;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 20%, var(--hippo-pink-soft), transparent 55%),
    radial-gradient(circle at 85% 0%, #d8c3e6, transparent 45%), var(--cream);
  padding: 100px 0 120px;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: var(--mud-deep);
  clip-path: polygon(0 60%, 5% 55%, 10% 62%, 15% 50%, 20% 60%, 25% 48%, 30% 58%, 35% 52%, 40% 62%, 45% 50%,
    50% 60%, 55% 48%, 60% 58%, 65% 50%, 70% 62%, 75% 52%, 80% 60%, 85% 48%, 90% 58%, 95% 50%, 100% 60%, 100% 100%, 0 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--river);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 0 0 6px;
  color: var(--mud-deep);
  line-height: 1.02;
}

.hero .hippo-emoji {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 6px;
}

.hero .slogan {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--river);
  margin: 18px 0 20px;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.08rem;
  color: var(--mud);
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--mud-deep);
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(36, 24, 37, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--mud-deep);
  color: var(--mud-deep);
}

/* ---------- SECTION shared ---------- */

section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--river);
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 14px;
  color: var(--mud-deep);
}

.section-head p {
  color: var(--mud);
  opacity: 0.8;
  font-size: 1.03rem;
}

/* ---------- CREED (dark band) ---------- */

.creed {
  background: var(--mud-deep);
  color: var(--cream);
  position: relative;
}

.creed .section-tag {
  color: var(--hippo-pink);
}

.creed .section-head h2 {
  color: var(--cream);
}

.creed .section-head p {
  color: var(--hippo-pink-soft);
  opacity: 0.9;
}

.creed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.creed-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.creed-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.creed-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: var(--sun);
}

.creed-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(251, 243, 234, 0.82);
}

/* ---------- COMMANDMENTS ---------- */

.commandments {
  counter-reset: commandment;
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.commandment {
  counter-increment: commandment;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(36, 24, 37, 0.06);
}

.commandment::before {
  content: counter(commandment);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--hippo-pink);
  background: var(--hippo-pink-soft);
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commandment h3 {
  margin: 2px 0 6px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--mud-deep);
}

.commandment p {
  margin: 0;
  color: var(--mud);
  opacity: 0.85;
  font-size: 0.96rem;
}

/* ---------- FOUNDERS ---------- */

.founders {
  background: linear-gradient(180deg, var(--cream), #f3e5ec);
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.founder-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.founder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  object-fit: cover;
  border: 4px solid var(--hippo-pink-soft);
  box-shadow: var(--shadow);
}

.founder-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--mud-deep);
}

.founder-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--river);
  font-weight: 700;
  margin-bottom: 14px;
}

.founder-card p.bio {
  font-size: 0.94rem;
  color: var(--mud);
  opacity: 0.85;
  margin: 0;
}

/* ---------- HIPPO DIVIDER ---------- */

.hippo-divider {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 0.4em;
  padding: 18px 0;
  opacity: 0.5;
  background: var(--cream);
  user-select: none;
}

/* ---------- CONTRIBUTE ---------- */

.contribute-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  border: 1px dashed var(--river-light);
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
  background: #fff;
}

.step-card .step-num {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--hippo-pink);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.step-card code {
  display: block;
  background: var(--mud-deep);
  color: var(--sun);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  margin-top: 12px;
  overflow-x: auto;
}

.step-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--mud-deep);
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mud);
  opacity: 0.8;
}

.org-link {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--mud);
}

.org-link a {
  color: var(--river);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--river-light);
}

/* ---------- LICENSE / CTA ---------- */

.license-band {
  background: var(--river);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  margin: 0 32px;
}

.license-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.license-band p {
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.license-band .btn-primary {
  background: var(--sun);
  color: var(--mud-deep);
  box-shadow: none;
}

/* ---------- FOOTER ---------- */

footer {
  padding: 48px 0 40px;
  text-align: center;
  color: var(--mud);
  opacity: 0.7;
  font-size: 0.85rem;
}

footer .foot-slogan {
  font-family: var(--serif);
  font-style: italic;
  color: var(--river);
  opacity: 1;
  margin-bottom: 10px;
  font-size: 1rem;
}

footer a {
  color: var(--river);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 800px) {
  .creed-grid,
  .contribute-steps {
    grid-template-columns: 1fr;
  }
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .nav ul {
    display: none;
  }
  .license-band {
    margin: 0 16px;
    padding: 40px 24px;
  }
}
