/* Colors from EI_Brandboard_v1 */
:root {
  --dunkelblau: #2a3845;
  --petrol: #39757a;
  --tuerkisgruen: #71aca8;
  --steingruen: #9bc3bd;
  --sand: #f7eee7;
  --white: #fff;
  --font: "Creato Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--petrol); }

h1, h2 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--petrol); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.top { padding: 1rem 0; }
.top .wrap, .bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand img { width: 180px; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { text-decoration: none; font-weight: 600; white-space: nowrap; }
nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 7rem;
  text-align: center;
  overflow: hidden;
}
.hero-logo { margin: 0 auto 2rem; width: min(360px, 80%); }
.lead { max-width: 36rem; margin: 0 auto 2rem; }
.ribbon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
}
.ribbon path {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 28;
  stroke-linecap: round;
}

.button {
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--sand);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--dunkelblau); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--steingruen); }
.section-alt h2 { color: var(--dunkelblau); }
.section-alt a { color: var(--dunkelblau); }

/* Migrated content blocks */
h3, h4 { line-height: 1.25; margin: 1.5em 0 .5em; }
figure { margin: 0 0 1rem; }
.section img { border-radius: 6px; }
.cols { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.col { flex: 1 1 140px; min-width: 0; }
.col > :first-child { margin-top: 0; }
.col img { max-height: 420px; width: auto; }
/* Equal-width card grids: fixed track width, so a lone card in the last row doesn't stretch */
.cols:not(:has(> .col[style])) { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
/* Uniform portraits */
.col:not([style]) figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.col p { margin: .4em 0; }
/* Weighted columns (image + text) stack on small screens */
@media (max-width: 640px) {
  .col[style] { flex-basis: 100% !important; }
  .col[style] img { max-height: 280px; }
}

/* Footer */
.bottom {
  padding: 1.5rem 0;
  background: var(--dunkelblau);
  color: var(--sand);
  font-size: .95rem;
}
.bottom a { color: var(--steingruen); }
.bottom .wrap { align-items: flex-start; padding-bottom: 1.5rem; }
.logos { display: flex; flex-wrap: wrap; gap: .75rem; margin: .75rem 0 1.25rem; }
.logos img { height: 56px; width: auto; padding: .35rem; background: var(--white); border-radius: 4px; }
/* Supporter page: equal photo columns and crops */
.portraits .col:has(> figure) { flex: 0 0 200px !important; }
.portraits .col figure img { width: 100%; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }

/* Wide logo: shrink inside the same tile height */
.logos img[src*="lobby4kids"] { padding: .85rem .6rem; }
