/* elephant.plus
   The Elephant Plus brand: Young Serif for the name and headings, Atkinson Hyperlegible Next
   for everything else, the figures from Figtree. Colours from the Elephant Plus brand kit.
   Light only. No script on the page. */

@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Elephant Figures"; src: url("/fonts/figtree-digits.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0030-0039; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ground: #F6F1E7;
  --paper: #FCFAF4;
  --ink: #22303C;
  --ink-soft: #4B5B69;
  --slate: #6F8CA3;
  --slate-deep: #3F5A70;
  --slate-wash: #DFE8EE;
  --gold: #D9A441;
  --gold-deep: #7A5A12;
  --gold-wash: #F4E6C6;
  --rule: #DCD5C6;
  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Elephant Figures", "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --space: clamp(4.5rem, 9vw, 8.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background-color: var(--ground);
  /* A faint grain, so that the cream reads as paper rather than a screen colour. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .37 0 0 0 0 .28 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; font-variant-numeric: lining-nums; }
.statement__big, .brand__name, .foot__name, .faces figcaption { font-variant-numeric: lining-nums; }
p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
p { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--gold-wash); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 200; padding: .7rem 1.1rem; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

/* The bar at the top */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, .9);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  backdrop-filter: saturate(1.15) blur(12px);
  border-bottom: 1px solid rgba(220, 213, 198, .8);
}
.top__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark { width: 2.3rem; height: 2.3rem; border-radius: 23%; box-shadow: 0 1px 0 rgba(34, 48, 60, .06), 0 6px 14px -8px rgba(122, 90, 18, .55); }
.brand__name { font-family: var(--serif); font-size: 1.32rem; line-height: 1; letter-spacing: -.005em; }
.nav { display: flex; gap: 1.7rem; margin-left: auto; font-size: .96rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; padding-block: .35rem;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s ease, color .2s ease;
}
.nav a:hover { color: var(--ink); background-size: 100% 1.5px; }
.top .btn { margin-left: .35rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.45rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:focus-visible { border-radius: 999px; }
.btn--solid { background: var(--slate-deep); color: var(--paper); }
.btn--solid:hover { background: #2E4558; }
.btn--quiet { border-color: rgba(34, 48, 60, .26); color: var(--ink); background: transparent; }
.btn--quiet:hover { border-color: var(--ink); background: rgba(252, 250, 244, .7); }
.btn--small { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .93rem; }
.btn__out { width: .85em; height: .85em; flex: none; }

/* A label above a heading: a sentence, with the gold disc in front of it */
.kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.15rem; font-size: .96rem; font-weight: 600; color: var(--gold-deep); }
.kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); flex: none; }

/* The first screen */
.hero { padding-block: clamp(2.75rem, 6.5vw, 5.75rem) clamp(3.5rem, 7vw, 6.5rem); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.85rem, 1.35rem + 5.3vw, 5.6rem); line-height: 1; letter-spacing: -.02em; max-width: 10.5ch; }
.lead { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.12rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; margin-top: 2.3rem; padding-top: 1.35rem; max-width: 34rem; border-top: 1px solid var(--rule); font-size: .96rem; color: var(--ink-soft); }
.facts li { display: inline-flex; align-items: center; gap: .55rem; }
.facts li::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: var(--gold); flex: none; }
.hero__art { position: relative; isolation: isolate; }
.hero__art::before {
  content: ""; position: absolute; inset: 6% 2% 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 230, 198, .95), rgba(244, 230, 198, .45) 55%, rgba(244, 230, 198, 0));
}
.hero__art img { width: 100%; max-width: 37rem; margin-inline: auto; }
.hero__art figcaption { margin-top: .4rem; text-align: center; font-size: .9rem; color: var(--ink-soft); }

/* The elephant breathes at the pace of Elephant Breath: in for three seconds, out for five. */
.breathes { transform-origin: 50% 93%; animation: breathe 8s infinite; }
@keyframes breathe {
  0% { transform: scale(1, 1); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  37.5% { transform: scale(1.01, 1.02); animation-timing-function: cubic-bezier(.33, 0, .5, 1); }
  100% { transform: scale(1, 1); }
}

/* Sections */
.section { padding-block: var(--space); }
.band { background: rgba(252, 250, 244, .72); border-block: 1px solid rgba(220, 213, 198, .85); }
.band--cool { background: rgba(223, 232, 238, .7); border-block-color: rgba(111, 140, 163, .22); }
.band--warm { background: rgba(244, 230, 198, .5); border-block-color: rgba(217, 164, 65, .25); }
.sec-head { max-width: 47rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2, .split h2, .hello h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.06; letter-spacing: -.016em; }
.sec-lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.15rem; color: var(--ink-soft); }

/* What it is */
.statement__big { max-width: 22em; font-family: var(--serif); font-size: clamp(1.75rem, 1.05rem + 2.7vw, 3.15rem); line-height: 1.17; letter-spacing: -.014em; text-wrap: balance; }
.statement__big .muted { color: var(--slate); }
.statement__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3.5rem; max-width: 58rem; margin-top: clamp(2rem, 4vw, 3rem); font-size: 1.1rem; color: var(--ink-soft); }

/* How it helps */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3.5vw, 3rem); }
.points li { padding-block: 1.6rem 2.3rem; border-top: 1px solid var(--rule); }
.points h3 { margin-bottom: .7rem; font-size: 1.42rem; line-height: 1.2; }
.points p { color: var(--ink-soft); }

/* The elephant's feelings */
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 2rem); max-width: 56rem; margin-inline: auto; }
.faces figure { text-align: center; }
.faces img { width: 100%; max-width: 12.5rem; margin-inline: auto; }
.faces figcaption { margin-top: .35rem; font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }
.faces__note { max-width: 34rem; margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; text-align: center; font-size: 1.1rem; color: var(--ink-soft); }

/* The 11+ year */
.stages { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.stages::before { content: ""; position: absolute; top: 1.15rem; left: 1.2rem; right: 1.2rem; height: 1px; background: var(--rule); }
.stages li { position: relative; padding-top: 3.35rem; }
.stage__n {
  position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border: 1.5px solid var(--gold); border-radius: 50%;
  background: var(--paper); color: var(--gold-deep); font-size: .98rem; font-weight: 650; line-height: 1;
}
.stages h3 { margin-bottom: .45rem; font-size: 1.32rem; line-height: 1.2; }
.stages p { font-size: 1rem; color: var(--ink-soft); }

/* Two columns: a heading on the left, the detail on the right */
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split__intro > p { max-width: 32rem; margin-top: 1.25rem; font-size: 1.12rem; color: var(--ink-soft); }
.split__intro .actions { margin-top: 2rem; }
.ticks li { padding-block: 1.4rem 1.6rem; border-top: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks h3 { margin-bottom: .45rem; font-size: 1.32rem; line-height: 1.22; }
.ticks p { color: var(--ink-soft); }
.ticks .link { display: inline-block; margin-top: .45rem; }
.link { color: var(--slate-deep); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(63, 90, 112, .4); }
.link:hover { text-decoration-color: currentColor; }
.prose p + p { margin-top: 1.1rem; }
.prose { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.prose .link { display: inline-block; margin-top: 1.5rem; }

/* A word of hello before the foot */
.hello__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hello img { width: 100%; max-width: 23rem; margin-inline: auto; }
.hello p { max-width: 34rem; margin-top: 1.2rem; font-size: 1.15rem; color: var(--ink-soft); }

/* What it is not, and help right now */
.not { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.crisis-head { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--rule); }
.crisis-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.15; }
.crisis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.crisis__tier { display: grid; align-content: start; gap: .65rem; padding: 1.3rem 1.3rem 1.45rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); }
.crisis__label { font-family: var(--sans); font-size: 1rem; font-weight: 650; line-height: 1.38; color: var(--ink); }
.crisis__res { display: grid; gap: .2rem; font-size: .97rem; color: var(--ink-soft); }
.crisis__res a { color: var(--slate-deep); }
.crisis__name { font-weight: 650; color: var(--ink); }
.crisis__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.crisis .btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .93rem; }

/* The foot */
.foot { padding-block: clamp(3rem, 6vw, 4rem) 2.5rem; border-top: 1px solid var(--rule); background: rgba(252, 250, 244, .6); font-size: .96rem; color: var(--ink-soft); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: .9rem; }
.foot__brand img { width: 3rem; height: 3rem; border-radius: 23%; }
.foot__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; color: var(--ink); }
.foot__strap { font-size: .94rem; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--ink); text-decoration-color: rgba(34, 48, 60, .28); text-underline-offset: .22em; }
.foot a:hover { text-decoration-color: currentColor; }
.foot__legal { grid-column: 1 / -1; display: grid; gap: .3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-size: .88rem; }

/* The page that is not here */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--space); }
.lost img { width: min(100%, 20rem); margin: 0 auto 1.5rem; }
.lost h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
.lost p { margin-top: 1rem; color: var(--ink-soft); }
.lost .actions { justify-content: center; }

/* Narrower screens */
@media (max-width: 64rem) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.75rem; }
  .stages::before { display: none; }
  .crisis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .hero__in, .split, .hello__in { grid-template-columns: minmax(0, 1fr); }
  .hero__art img { max-width: 27rem; }
  .hello img { max-width: 16rem; }
  .hello__in > div { order: -1; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .statement__cols, .points, .crisis { grid-template-columns: minmax(0, 1fr); }
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .faces img { max-width: 10rem; }
  .stages { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stages li { padding: 0 0 1.9rem 3.4rem; }
  .stages li::after { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: .35rem; width: 1px; background: var(--rule); }
  .stages li:last-child { padding-bottom: 0; }
  .stages li:last-child::after { display: none; }
  .stage__n { top: -.15rem; }
}
@media (max-width: 26rem) {
  .brand__name { font-size: 1.16rem; }
  .brand__mark { width: 2.05rem; height: 2.05rem; }
  .top .btn { padding-inline: .85rem; font-size: .86rem; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathes { animation: none; }
  .nav a, .btn { transition: none; }
}

@media print {
  html { background: #fff; }
  .top, .actions, .hello { display: none; }
  .band, .band--cool, .band--warm, .foot { background: none; }
}
