/* MamaHaki website. The hero is framed like a kanga: a patterned border
   (pindo), a deep field (mji) and a saying (jina) along the bottom. Everything
   else stays quiet so that one panel carries the identity. */

@font-face {
  font-family: "Zilla Slab";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/zilla-slab-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  --indigo: #222b6b;
  --ink: #1a1d33;
  --muted: #4a4f6a;
  --marigold: #f2b230;
  --hibiscus: #c8285f;
  --paper: #ffffff;
  --wash: #fff5da;
  --rule: #e6e2d6;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;

  --pindo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%23F2B230'/%3E%3Cpath d='M12 3 21 12 12 21 3 12z' fill='%23222B6B'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23C8285F'/%3E%3C/svg%3E");

  --gutter: 1rem;
  --measure: 36rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a {
  color: var(--indigo);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--hibiscus);
}
:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--indigo);
  margin: 0 0 0.5em;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* Header */

.site-head {
  padding: 1rem 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--indigo);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover {
  color: var(--indigo);
}

/* The kanga */

.kanga {
  padding: 18px;
  background: var(--pindo) 0 0 / 24px 24px;
}
.kanga__field {
  position: relative;
  overflow: hidden;
  background: var(--indigo);
  color: var(--paper);
  padding: 2.25rem 1.5rem 0;
  box-shadow:
    inset 0 0 0 8px var(--indigo),
    inset 0 0 0 10px var(--marigold);
}
.kanga__medallion {
  position: absolute;
  right: -3.5rem;
  top: -3.5rem;
  width: 14rem;
  color: #34407f; /* tone on tone, like a kanga's printed centre motif */
  pointer-events: none;
}
.kanga h1 {
  position: relative;
  color: var(--paper);
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  max-width: 14em;
  margin-bottom: 0.4em;
}
.kanga__lead {
  position: relative;
  font-size: 1.2rem;
  max-width: 32rem;
  color: #e9ebf7;
}
.kanga__cta {
  position: relative;
  margin: 1.75rem 0 2.25rem;
  max-width: 32rem;
}
.button {
  display: inline-block;
  background: var(--marigold);
  color: var(--indigo);
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
}
.button:hover {
  background: #ffc955;
  color: var(--indigo);
}
.kanga__note {
  color: #e9ebf7;
  margin: 0;
}
.kanga__note a {
  color: var(--marigold);
}
.kanga__note a:hover {
  color: #ffd57a;
}

/* The saying along the bottom of a kanga */
.jina {
  position: relative;
  margin: 0 -1.5rem;
  padding: 1.1rem 1.5rem 1.4rem;
  border-top: 2px solid var(--marigold);
  text-align: center;
}
.jina__sw {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  color: var(--marigold);
  line-height: 1.2;
}
.jina__en {
  display: block;
  font-size: 0.95rem;
  color: #c9cdea;
  margin-top: 0.25rem;
}

/* Sections */

.section {
  padding: 3rem 0 1rem;
}
.section__intro {
  max-width: var(--measure);
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  max-width: var(--measure);
}
/* A marigold diamond (the pindo motif) behind an upright step number */
.steps li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--marigold);
  transform: rotate(45deg);
  border-radius: 3px;
}
.steps li::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  color: var(--indigo);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}
.steps h3 {
  margin-bottom: 0.2em;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.docs {
  margin: 1.5rem 0 0;
  max-width: 44rem;
}
.docs div {
  padding: 1.1rem 0 1.1rem 1.1rem;
  border-left: 4px solid var(--hibiscus);
  margin-bottom: 1rem;
}
.docs dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--indigo);
}
.docs dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.docs .for {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 0.35rem;
}

.band {
  background: var(--wash);
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}
.band p {
  max-width: var(--measure);
}

.safety {
  margin: 2.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 6px solid var(--hibiscus);
  background: #fdeef3;
  max-width: var(--measure);
  font-size: 1.15rem;
}
.safety strong {
  color: var(--hibiscus);
}

/* Footer */

.site-foot {
  margin-top: 3rem;
  background: var(--indigo);
  color: #dfe2f5;
  font-size: 1rem;
}
.site-foot::before {
  content: "";
  display: block;
  height: 12px;
  background: var(--pindo) 0 0 / 12px 12px;
}
.site-foot .wrap {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}
.site-foot a {
  color: var(--paper);
}
.site-foot a:hover {
  color: var(--marigold);
}
.foot-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-foot p {
  margin: 0.25rem 0;
}

/* Policy pages */

.strip {
  height: 12px;
  background: var(--pindo) 0 0 / 12px 12px;
}
.policy {
  max-width: 42rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.policy h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-top: 1rem;
}
.policy h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}
.policy .updated {
  color: var(--muted);
}
.policy ul {
  padding-left: 1.25rem;
}
.policy li {
  margin-bottom: 0.4rem;
}
.policy .summary {
  background: var(--wash);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--marigold);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
  .kanga {
    padding: 24px;
  }
  .kanga__field {
    padding: 3.5rem 3rem 0;
  }
  .kanga__medallion {
    right: 3rem;
    top: 3rem;
    width: 14rem;
    color: #3a4790;
  }
  .kanga h1 {
    max-width: 11em;
  }
  .jina {
    margin: 0 -3rem;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
  .docs {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .docs div {
    margin-bottom: 0;
  }
}
