/* monkey by bootsy. Colours from the pebble palette in "style inspiration"
   (#54352C #B06638 #D0BEB1 #909B9F #2F455B). All colours live in these variables;
   dark mode follows the visitor's system setting. */
:root {
  color-scheme: light dark;
  --bg: #f7f1ec;
  --bg-alt: #ede2d9;
  --ink: #2a1c17;
  --muted: #5e5550;
  --accent: #a2552a;
  --accent-ink: #fff8f2;
  --line: #d0beb1;
  --todo: #8a3b12;
  --todo-bg: #fbe3cf;
  --w1: #d0beb1;
  --w2: #b06638;
  --w3: #909b9f;
  --w4: #54352c;
  --radius: 18px;
  --wrap: 62rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1714;
    --bg-alt: #241e1a;
    --ink: #f1e8e1;
    --muted: #bdb1a8;
    --accent: #e08a55;
    --accent-ink: #1b1714;
    --line: #4a3c35;
    --todo: #ffc49b;
    --todo-bg: #3d2617;
    --w1: #2f455b;
    --w2: #54352c;
    --w3: #8a4f2c;
    --w4: #b06638;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin: 0.2em 0 0.3em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.3em; }
a { color: var(--accent); }
p { margin: 0 0 1em; max-width: 40rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 16px;
}
.brand { font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand span { font-weight: 500; color: var(--muted); font-size: 0.75em; }
nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }
nav .pill { background: var(--accent); color: var(--accent-ink); padding: 0.35rem 0.9rem; border-radius: 999px; }
nav .pill:hover { color: var(--accent-ink); filter: brightness(1.08); }
@media (max-width: 560px) { nav a:not(.pill) { display: none; } }

.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
  max-width: var(--wrap); margin: 0 auto; padding: 2rem 16px 3rem;
}
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.25rem; color: var(--muted); }
.actions { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.waves { width: 100%; height: auto; aspect-ratio: 600 / 420; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; }
.w1 { fill: var(--w1); } .w2 { fill: var(--w2); } .w3 { fill: var(--w3); } .w4 { fill: var(--w4); }
.waves path { animation: sway 9s ease-in-out infinite alternate; transform-origin: center; }
.waves .w2 { animation-delay: -2s; } .waves .w3 { animation-delay: -4s; } .waves .w4 { animation-delay: -6s; }
@keyframes sway { to { transform: translateX(-12px) scaleY(1.04); } }
@media (prefers-reduced-motion: reduce) { .waves path { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 0.5rem; }
  .waves { order: -1; max-height: 220px; }
}

.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { transform: translateY(-2px) rotate(-1deg); filter: brightness(1.08); }
.button:active { transform: translateY(0) scale(0.98); }
.link { font-weight: 600; }

.band { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 16px; }
.band.alt { max-width: none; background: var(--bg-alt); }
.band.alt > * { max-width: calc(var(--wrap) - 32px); margin-left: auto; margin-right: auto; }
.band.alt > p { max-width: calc(var(--wrap) - 32px); }

.tiles { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tiles li { background: var(--bg-alt); border-radius: var(--radius); padding: 1.3rem 1.4rem; border: 1px solid var(--line); }
.tiles li:nth-child(odd) { border-radius: 26px 14px 26px 14px; }
.tiles li:nth-child(even) { border-radius: 14px 26px 14px 26px; }
.tiles p { margin: 0; color: var(--muted); }

.flow { padding-left: 1.3rem; margin: 0 auto 1.2rem; }
.flow li { margin-bottom: 0.6rem; max-width: 40rem; }
.note { color: var(--muted); font-style: italic; }

.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin: 0 auto; }
.facts div { border-top: 3px solid var(--accent); padding-top: 0.6rem; }
.facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; }

.join { text-align: center; }
.join p { margin-left: auto; margin-right: auto; }
.small { font-size: 0.9rem; }

/* Placeholders still to be filled in. Remove the class once the real text is in. */
.todo { background: var(--todo-bg); color: var(--todo); border-radius: 6px; padding: 0.1em 0.4em; display: inline-block; }

.bottom { text-align: center; padding: 2rem 16px 3rem; color: var(--muted); font-size: 0.9rem; }
