@import url("https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,700;1,400&family=Figtree:wght@400;500;600&display=swap");

/* Blue Meridian Ocean Trust — survey-chart design system */

:root {
  /* palette */
  --deep: #0E2F44;
  --abyss: #08202F;
  --sand: #E8DCC3;
  --salt: #F8F3E8;
  --current: #1F5C7A;
  --posidonia: #2E6650;
  --coral: #C8432F;
  --coral-deep: #A3341F;
  --white: #FFFFFF;

  /* support tones */
  --ink: #0E2F44;
  --ink-muted: #45555F;
  --on-deep: #E8DCC3;
  --on-deep-muted: #B9C7CF;
  --rule-light: #C9BB9E;
  --rule-dark: #2B4C60;
  --sea-fill: #133B53;
  --meridian: #7E95A3;

  /* type */
  --font-serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-1: 0.875rem;
  --fs-2: 1.0625rem;
  --fs-3: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --fs-4: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --fs-5: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --fs-6: clamp(3.25rem, 2.2rem + 5vw, 7rem);

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --wrap: 76rem;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus-ring: 3px solid var(--current);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-9);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-2);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  font-size: var(--fs-5);
}

h2 {
  font-size: var(--fs-4);
}

h3 {
  font-size: var(--fs-3);
  line-height: 1.2;
}

h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-2);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0 0 var(--s-4);
  max-width: var(--measure);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--current);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.band--deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sand);
}

strong {
  font-weight: 600;
}

ul,
ol {
  padding-left: 1.2em;
}

.sr-only {
  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-link {
  position: absolute;
  left: var(--s-4);
  top: -10rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--salt);
  color: var(--deep);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--s-4);
}

/* ---------- layout ---------- */

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

.band {
  position: relative;
  padding-block: var(--s-8);
}

.band--deep {
  background: var(--deep);
  color: var(--on-deep);
}

.band--deep a:not(.btn) {
  color: var(--sand);
}

.band--sand {
  background: var(--sand);
}

.band--salt {
  background: var(--salt);
}

.band__head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  max-width: 44rem;
}

.lead {
  font-size: var(--fs-3);
  line-height: 1.45;
  max-width: 36rem;
}

.muted {
  color: var(--ink-muted);
}

.band--deep .muted {
  color: var(--on-deep-muted);
}

.small {
  font-size: var(--fs-1);
}

/* the meridian: one thin survey line down the page */
.meridian {
  position: relative;
}

.meridian::before {
  content: "";
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(calc(var(--gutter) / 2), calc((100% - var(--wrap)) / 2 + var(--gutter) / 2));
  width: 1px;
  background: var(--meridian);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

/* wave-line divider */
.tide {
  display: block;
  width: 100%;
  height: var(--s-6);
  color: var(--meridian);
}

.tide path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.band--deep .tide {
  color: var(--on-deep-muted);
}

.band > .tide:last-child {
  margin-top: var(--s-8);
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: var(--s-3) var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

/* coral: calls to action only */
.btn--give {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn--give:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  color: var(--white);
}

.btn--line {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.band--deep .btn--line,
.site-header .btn--line {
  color: var(--sand);
}

.btn--line:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--sand);
}

.band--deep .btn--line:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--deep);
}

.btn--small {
  min-height: 2.5rem;
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-1);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep);
  color: var(--on-deep);
  border-bottom: 1px solid var(--rule-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--sand);
  text-decoration: none;
  line-height: 1.05;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.brand__mark circle,
.brand__mark path,
.brand__mark line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.brand__name {
  display: grid;
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  font-weight: 500;
}

.brand__name small {
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--on-deep-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  padding: var(--s-2) var(--s-4);
  background: transparent;
  color: var(--sand);
  border: 1.5px solid var(--on-deep-muted);
  border-radius: var(--radius);
  font: 600 var(--fs-1) / 1 var(--font-sans);
  cursor: pointer;
}

.nav-toggle__lines {
  width: 1.25rem;
  height: 0.75rem;
}

.nav-toggle__lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--sand);
  color: var(--deep);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--s-4) var(--gutter) var(--s-6);
  background: var(--deep);
  border-bottom: 1px solid var(--rule-dark);
}

.site-nav[data-open="true"] {
  display: block;
}

.site-nav__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a:not(.btn) {
  display: block;
  padding: var(--s-3) 0;
  color: var(--sand);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dark);
}

.site-nav__list a:not(.btn):hover,
.site-nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav__cta {
  margin-top: var(--s-4);
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav__list .lang {
  border: 1.5px solid var(--on-deep-muted);
  border-radius: var(--radius);
  margin-top: var(--s-3);
  padding: 0 var(--s-3);
  width: max-content;
}

/* ---------- hero ---------- */

.hero {
  padding-block: var(--s-8) 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: end;
}

.hero__text {
  padding-bottom: var(--s-6);
}

.hero h1 {
  max-width: 13ch;
  color: var(--salt);
}

.hero .lead {
  margin-top: var(--s-5);
  color: var(--on-deep);
}

.hero__art {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.hero__founded {
  margin-top: var(--s-5);
  font-size: var(--fs-1);
  color: var(--on-deep-muted);
}

/* inner-page head */
.page-head {
  padding-block: var(--s-8) 0;
}

.page-head h1 {
  max-width: 18ch;
  color: var(--salt);
}

.page-head .lead {
  margin-top: var(--s-5);
}

.page-head .tide {
  margin-top: var(--s-8);
}

.crumbs {
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--fs-1);
  color: var(--on-deep-muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: var(--s-2);
}

/* ---------- soundings (big honest numbers) ---------- */

.soundings {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-light);
}

.sounding {
  display: grid;
  gap: var(--s-2) var(--s-6);
  align-items: baseline;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule-light);
}

.sounding__value {
  font-family: var(--font-serif);
  font-size: var(--fs-6);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--deep);
  white-space: nowrap;
}

.sounding__unit {
  margin-left: 0.15em;
  font-family: var(--font-sans);
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--posidonia);
}

.sounding__text {
  font-size: var(--fs-3);
  line-height: 1.35;
  max-width: 24rem;
  margin: 0;
}

.band--deep .sounding__value {
  color: var(--salt);
}

.band--deep .sounding__unit {
  color: var(--on-deep-muted);
}

/* ---------- programmes ---------- */

.programmes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-light);
}

.programme {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--rule-light);
}

.programme__art {
  width: 100%;
  max-width: 14rem;
  color: var(--deep);
}

.programme__body h3 {
  margin-bottom: var(--s-3);
}

.programme__fact {
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  color: var(--posidonia);
}

.programme .link-arrow {
  margin-top: var(--s-4);
}

/* ---------- map ---------- */

.basin {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

.basin-map {
  width: 100%;
  height: auto;
}

.basin-map .sea {
  fill: var(--sea-fill);
  stroke: var(--on-deep-muted);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.basin-map .swell {
  stroke: none;
}

.basin-map .island {
  fill: var(--deep);
  stroke: var(--on-deep-muted);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.basin-map .place {
  fill: var(--sand);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.marker circle {
  fill: var(--sand);
  stroke: var(--deep);
  stroke-width: 2;
  transition: transform 0.2s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.marker .marker__halo {
  fill: none;
  stroke: var(--sand);
  stroke-width: 1.2;
  opacity: 0.7;
}

a.marker:hover circle,
a.marker:focus-visible circle {
  transform: scale(1.25);
}

a.marker:focus-visible {
  outline: none;
}

a.marker:focus-visible .marker__halo {
  stroke-width: 3;
  opacity: 1;
}

.map-cards {
  position: relative;
  margin-top: var(--s-5);
}

.map-cards__hint {
  font-size: var(--fs-1);
  color: var(--on-deep-muted);
}

.map-card {
  display: none;
  padding: var(--s-5);
  background: var(--salt);
  color: var(--ink);
  border-left: 4px solid var(--posidonia);
  border-radius: var(--radius);
}

.map-card:target {
  display: block;
}

.map-card h3 {
  margin-bottom: var(--s-2);
}

.map-card a {
  color: var(--current);
}

/* ---------- ledger table ---------- */

.ledger-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--salt);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

.ledger caption {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  caption-side: top;
}

.ledger th,
.ledger td {
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--rule-light);
  text-align: left;
  vertical-align: baseline;
}

.ledger thead th {
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--ink-muted);
}

.ledger tbody th {
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  font-weight: 500;
}

.ledger .num {
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- allocation chart, governance, proof ---------- */

.allocation {
  width: 100%;
  height: auto;
}

.allocation .bar--field {
  fill: var(--posidonia);
}

.allocation .bar--other {
  fill: var(--current);
}

.allocation .axis {
  stroke: var(--ink-muted);
  stroke-width: 1;
}

.allocation text {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}

.allocation text.on-bar {
  fill: var(--salt);
  font-size: 18px;
  font-weight: 600;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-1);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.swatch {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 2px;
  flex: none;
}

.swatch--field {
  background: var(--posidonia);
}

.swatch--other {
  background: var(--current);
}

.accounts {
  display: grid;
  gap: var(--s-7);
}

.accounts__figure {
  margin: 0;
}

.accounts__figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-1);
  color: var(--ink-muted);
}

.governance {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule-light);
}

.governance > div {
  display: grid;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule-light);
}

.governance dt {
  font-family: var(--font-serif);
  font-size: var(--fs-3);
}

.governance dd {
  margin: 0;
}

.credentials {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  border: 1.5px solid var(--deep);
  border-radius: var(--radius);
}

.credential strong {
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  font-weight: 500;
}

/* onward reading */
.onward {
  display: grid;
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-light);
}

.onward a {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink);
  text-decoration: none;
}

.onward__title {
  font-family: var(--font-serif);
  font-size: var(--fs-4);
  line-height: 1.1;
  transition: color 0.2s var(--ease);
}

.onward__title::after {
  content: " →";
  font-family: var(--font-sans);
  font-size: var(--fs-3);
}

.onward a:hover .onward__title {
  color: var(--current);
}

/* ---------- field reports ---------- */

.report {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--rule-light);
}

.report__kicker {
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--posidonia);
}

.report__art {
  width: 100%;
  max-width: 22rem;
  color: var(--deep);
}

.report__meta {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: var(--s-5);
  background: var(--salt);
  border-radius: var(--radius);
}

.report__meta dt {
  font-size: var(--fs-1);
  color: var(--ink-muted);
}

.report__meta dd {
  margin: 0 0 var(--s-2);
  font-family: var(--font-serif);
  font-size: var(--fs-3);
}

.report blockquote {
  margin: var(--s-5) 0;
  padding-left: var(--s-5);
  border-left: 3px solid var(--posidonia);
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  font-style: italic;
}

/* ---------- donation panel ---------- */

.give {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

.give__notes {
  margin: var(--s-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-3);
}

.give__notes li {
  position: relative;
  padding-left: var(--s-6);
  max-width: 30rem;
}

.give__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: var(--s-5);
  height: 1px;
  background: var(--posidonia);
}

.donate {
  padding: var(--s-6) var(--s-5);
  background: var(--salt);
  color: var(--ink);
  border-top: 4px solid var(--deep);
  border-radius: var(--radius);
}

.donate__title {
  margin-bottom: var(--s-5);
}

.donate fieldset {
  margin: 0 0 var(--s-5);
  padding: 0;
  border: 0;
  min-width: 0;
}

.donate legend {
  margin-bottom: var(--s-2);
  padding: 0;
  font-weight: 600;
}

.choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}

.choice--amounts {
  grid-template-columns: repeat(2, 1fr);
}

.choice__item {
  position: relative;
}

.choice__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s-2) var(--s-3);
  border: 1.5px solid var(--deep);
  border-radius: var(--radius);
  background: var(--salt);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.choice--amounts .choice__label {
  min-height: 3.5rem;
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  font-weight: 500;
}

.choice__input:hover + .choice__label {
  background: var(--sand);
}

.choice__input:checked + .choice__label {
  background: var(--deep);
  color: var(--salt);
}

.choice__input:focus-visible + .choice__label {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.donate__custom {
  margin-bottom: var(--s-5);
}

.donate__custom[hidden] {
  display: none;
}

.donate__impact {
  display: block;
  margin: 0 0 var(--s-5);
  padding: var(--s-4) 0 var(--s-4) var(--s-5);
  border-left: 3px solid var(--posidonia);
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  line-height: 1.35;
}

.donate__impact small {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  color: var(--ink-muted);
}

.donate__step[hidden] {
  display: none;
}

.donate__step h3:focus {
  outline: none;
}

.donate__summary {
  display: grid;
  gap: 0;
  margin: 0 0 var(--s-5);
  border-top: 1px solid var(--rule-light);
}

.donate__summary > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule-light);
}

.donate__summary dt {
  color: var(--ink-muted);
  font-size: var(--fs-1);
}

.donate__summary dd {
  margin: 0;
  font-weight: 600;
}

.donate__notice {
  font-size: var(--fs-1);
  color: var(--ink-muted);
}

.donate__done-mark {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s-4);
  color: var(--posidonia);
}

.donate__done-mark path,
.donate__done-mark circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: var(--s-5);
  max-width: 40rem;
}

.form__field {
  display: grid;
  gap: var(--s-2);
}

.form__field label {
  font-weight: 600;
}

.form__hint {
  font-size: var(--fs-1);
  color: var(--ink-muted);
  margin: 0;
}

.form__input {
  width: 100%;
  min-height: 3rem;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink-muted);
  border-radius: var(--radius);
  font: inherit;
}

textarea.form__input {
  min-height: 9rem;
  resize: vertical;
}

.form__input:hover {
  border-color: var(--deep);
}

.form__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--deep);
}

.form__field[data-state="error"] .form__input {
  border-color: var(--coral-deep);
  border-width: 2px;
}

.form__status {
  min-height: 1.6em;
  margin: 0;
  font-weight: 600;
}

.form__status[data-state="error"] {
  color: var(--coral-deep);
}

.form__status[data-state="sent"] {
  color: var(--posidonia);
}

/* ---------- prose ---------- */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: var(--s-7) 0 var(--s-4);
  font-size: var(--fs-4);
}

.prose h3 {
  margin: var(--s-6) 0 var(--s-3);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s-4);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--abyss);
  color: var(--on-deep);
  padding-block: var(--s-8) var(--s-6);
}

.site-footer a {
  color: var(--sand);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: var(--s-7);
}

.site-footer__statement {
  max-width: 26rem;
  margin-top: var(--s-4);
  color: var(--on-deep-muted);
}

.site-footer h2 {
  margin-bottom: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--on-deep-muted);
}

.site-footer ul {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--fs-1);
  color: var(--on-deep-muted);
}

/* ---------- style guide helpers ---------- */

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.swatch-card {
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--salt);
}

.swatch-card__chip {
  height: 6rem;
}

.swatch-card__chip--deep { background: var(--deep); }
.swatch-card__chip--abyss { background: var(--abyss); }
.swatch-card__chip--sand { background: var(--sand); }
.swatch-card__chip--salt { background: var(--salt); }
.swatch-card__chip--current { background: var(--current); }
.swatch-card__chip--posidonia { background: var(--posidonia); }
.swatch-card__chip--coral { background: var(--coral); }

.swatch-card__text {
  display: grid;
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-1);
}

.type-specimen {
  display: grid;
  gap: var(--s-5);
  margin: 0;
}

.type-specimen > div {
  display: grid;
  gap: var(--s-2);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule-light);
}

.type-specimen dt {
  font-size: var(--fs-1);
  color: var(--ink-muted);
}

.type-specimen dd {
  margin: 0;
}

.fs-1 { font-size: var(--fs-1); }
.fs-2 { font-size: var(--fs-2); }
.fs-3 { font-size: var(--fs-3); font-family: var(--font-serif); }
.fs-4 { font-size: var(--fs-4); font-family: var(--font-serif); line-height: 1.1; }
.fs-5 { font-size: var(--fs-5); font-family: var(--font-serif); line-height: 1.05; }
.fs-6 { font-size: var(--fs-6); font-family: var(--font-serif); line-height: 0.95; }

.space-scale {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-1);
}

.space-scale li {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.space-scale span[class^="bar-"] {
  display: block;
  height: 0.75rem;
  background: var(--current);
}

.bar-1 { width: var(--s-1); }
.bar-2 { width: var(--s-2); }
.bar-3 { width: var(--s-3); }
.bar-4 { width: var(--s-4); }
.bar-5 { width: var(--s-5); }
.bar-6 { width: var(--s-6); }
.bar-7 { width: var(--s-7); }
.bar-8 { width: var(--s-8); }
.bar-9 { width: var(--s-9); }
.bar-10 { width: var(--s-10); }

.stack > * + * {
  margin-top: var(--s-5);
}

/* ---------- entrance reveals (no JavaScript) ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

/* ---------- breakpoints ---------- */

@media (min-width: 40rem) {
  .choice--amounts {
    grid-template-columns: repeat(4, 1fr);
  }

  .sounding {
    grid-template-columns: minmax(12rem, 1fr) 1.3fr;
  }

  .governance > div {
    grid-template-columns: 14rem 1fr;
  }

  .credentials {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate {
    padding: var(--s-7) var(--s-6);
  }
}

@media (min-width: 52rem) {
  .band {
    padding-block: var(--s-9);
  }

  .meridian::before {
    display: block;
  }

  .programme {
    grid-template-columns: 14rem 1fr;
    gap: var(--s-7);
    align-items: center;
  }

  .report {
    grid-template-columns: 1fr 18rem;
    gap: var(--s-7);
  }

  .basin {
    grid-template-columns: 1fr 1.6fr;
  }

  .accounts {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .onward {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--s-6);
  }
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--s-7);
  }

  .hero__text {
    padding-bottom: var(--s-9);
  }

  .give {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--s-9);
  }

  .programme {
    grid-template-columns: 14rem 1fr auto;
  }

  .programme .link-arrow {
    margin-top: 0;
  }
}

@media (min-width: 68rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[data-open="true"] {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--s-5);
  }

  .site-nav__list a:not(.btn) {
    padding: var(--s-2) 0;
    border: 0;
    font-size: var(--fs-1);
  }

  .site-nav__cta {
    margin-top: 0;
  }

  .site-nav__list .lang {
    margin-top: 0;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .link-arrow:hover::after,
  a.marker:hover circle,
  a.marker:focus-visible circle {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .tide,
  .donate {
    display: none;
  }

  body {
    background: var(--white);
  }
}

/* === inner pages: page head === */

.band.page-head {
  padding-bottom: 0;
}

/* === inner pages: closing call to action === */

.cta {
  display: grid;
  gap: var(--s-6);
  align-items: end;
}

.cta h2 {
  max-width: 20ch;
  color: var(--salt);
}

.cta .lead {
  margin-top: var(--s-4);
}

.cta .actions {
  margin-top: 0;
}

@media (min-width: 52rem) {
  .cta {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--s-7);
  }

  .cta .actions {
    justify-content: flex-end;
  }
}

/* === our-work: programme detail === */

.detail {
  display: grid;
  gap: var(--s-7);
}

.detail__text h2 {
  margin-bottom: var(--s-4);
}

.detail__text .lead {
  margin-bottom: var(--s-5);
  color: var(--posidonia);
  font-family: var(--font-serif);
}

.detail__figure {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  align-content: start;
}

.detail__art {
  width: 100%;
  max-width: 24rem;
  height: auto;
  color: var(--deep);
}

.detail__figure figcaption {
  font-size: var(--fs-1);
  color: var(--ink-muted);
}

.steps {
  display: grid;
  gap: 0;
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--rule-light);
}

.steps li {
  display: grid;
  grid-template-columns: var(--s-7) 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule-light);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  line-height: 1.2;
  color: var(--posidonia);
}

.steps strong {
  display: block;
}

@media (min-width: 52rem) {
  .detail {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--s-9);
    align-items: start;
  }
}

/* === stories: field report inside a band === */

.band > .wrap > .report {
  padding-block: 0;
  border-bottom: 0;
}

.report__body h2 {
  margin: var(--s-2) 0 var(--s-5);
}

.report__body h3 {
  margin: var(--s-6) 0 var(--s-3);
}

.report__aside {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.band--salt .report__meta {
  background: var(--sand);
}

/* === ways-to-give: questions === */

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--rule-light);
}

.faq details {
  border-bottom: 1px solid var(--rule-light);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-5);
  font-family: var(--font-serif);
  font-size: var(--fs-3);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-sans);
  color: var(--current);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--current);
}

.faq details > p {
  padding-bottom: var(--s-5);
}

/* === contact: form beside notes === */

.contact {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}

.contact .form {
  padding: var(--s-6) var(--s-5);
  background: var(--salt);
  border-top: 4px solid var(--deep);
  border-radius: var(--radius);
}

@media (min-width: 64rem) {
  .contact {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s-9);
  }

  .contact .form {
    padding: var(--s-7) var(--s-6);
  }
}

/* === transparency: hundred-euro chart === */

.allocation--waffle {
  max-width: 22rem;
}
