/* SIP website. Climate KIC typography and structure, SIP colours: green, turquoise and the earth browns. */
:root {
  --space: clamp(1.5rem, 3vw, 2.5rem);   /* gap above and below every section: raise it for more white space */
  --ink: #142930;
  --cloud: #f2f2f2;
  --brown: #6b5433;
  --deep: #4a3b26;
  --tq: #c4ebf3;
  --btn: #7d6440;
  --btn-hover: #5e4a2e;
  --earth: #9a8056;
  --cyan: #00bad6;
  --sky: #73cbe5;

  --page: #ffffff;
  --text: #142930;
  --muted: #4b5f64;
  --line: #d3dcdc;
  --link: #00657a;

  --font: "PolySans Neutral", "Aptos Display", "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-bulky: "PolySans Bulky", "Aptos Display", "Aptos", "Segoe UI", system-ui, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #1a140c; --text: #f2f2f2; --muted: #b9c8c8; --line: #3a3024; --link: #73cbe5; }
}
:root[data-theme="dark"] { --page: #1a140c; --text: #f2f2f2; --muted: #b9c8c8; --line: #3a3024; --link: #73cbe5; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(4.5rem + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 34em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--cyan); color: var(--ink); padding: .6rem 1rem; font-weight: 600; z-index: 50; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem; padding: .85rem 1.6rem; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--btn); color: #fff !important; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-cyan { background: var(--cyan); color: var(--ink) !important; }
.btn-cyan:hover { background: #33c9e0; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff !important; }
.btn-ghost:hover { background: #fff; color: var(--brown) !important; border-color: #fff; }
.btn-dark { background: var(--brown); color: var(--cloud) !important; }
.btn-dark:hover { background: var(--deep); }
.btn-light { background: var(--cloud); color: var(--brown) !important; }
.btn-light:hover { background: #fff; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: #fff; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(to bottom, rgba(40,31,19,.72), rgba(40,31,19,0)); }
.site-header.solid { position: static; background: var(--brown); }
.bar { display: flex; align-items: center; gap: 1rem; height: 4.5rem; }
.brand { display: flex; align-items: center; line-height: 0; margin-right: auto; }
.brand img { display: block; height: 44px; width: auto; }
.brand .logo-mark { display: none; }
.site-header.solid .brand { background: #fff; padding: .4rem .8rem; border-radius: 4px; }
#nav ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0 1rem 0 0; padding: 0; }
#nav a { color: #fff; text-decoration: none; font-size: .98rem; }
#nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.quick { display: flex; gap: .6rem; align-items: center; }
.quick .btn { padding: .5rem 1.1rem; font-size: .95rem; }
#menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.75); color: #fff; font: inherit; font-weight: 600; font-size: .9rem; padding: .4rem .8rem; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: min(80vh, 740px); display: flex; align-items: flex-end; color: #fff; background: var(--brown) none center 62% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,31,19,.9) 0%, rgba(40,31,19,.5) 40%, rgba(40,31,19,0) 72%); }
.hero .wrap { position: relative; z-index: 2; padding-block: 7rem 4.5rem; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6rem); max-width: 12em; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 30em; margin-top: 1.4rem; color: #f0f0f0; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Sections */
section { padding: var(--space) 0; }
.kicker { font-family: var(--font-bulky); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; max-width: none; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 14em; }
.section-head p { color: var(--muted); margin-top: 1rem; }
.section-head p.wide { max-width: 46em; }

.about { display: block; }
.about .copy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.25rem; margin-top: 2rem; }
.about .copy p { color: var(--muted); font-size: 1.05rem; max-width: none; margin: 0; }
.about .kicker { margin: 0; }
.closing { font-family: var(--font-bulky); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; max-width: none; margin: 2.25rem 0 0; padding: 1.5rem 0 0; border-top: 3px solid var(--cyan); }

/* Photo breaks: run edge to edge. To frame them again, put them back inside a .wrap box. */
.photo-wrap { padding: var(--space) 0; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; max-height: 75vh; object-fit: cover; }
@media (max-width: 700px) { .photo img { aspect-ratio: 4 / 3; } }

/* What SIP does */
.does { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.does article { border-top: 4px solid var(--cyan); padding-top: 1.1rem; }
.does h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.does p { color: var(--muted); margin: 0; }

/* People cards */
.board-block { margin-bottom: 2.25rem; }
.board-block h3 { font-size: 1.5rem; border-top: 4px solid var(--cyan); padding-top: 1rem; margin-bottom: 1.5rem; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 2rem 1.5rem; }
.member .pic { aspect-ratio: 1 / 1; background: var(--brown); overflow: hidden; }
.member .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member .initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--font-bulky); font-weight: 800; font-size: 2.6rem; color: #e6d9bf; }
.team.bw .pic { background: #4a4a4a; outline: 1px solid var(--line); outline-offset: -1px; }
.team.bw .initials { color: #e8e8e8; }
.member strong { display: block; margin-top: .8rem; font-size: 1.1rem; line-height: 1.25; }
.member span:not(.initials) { display: block; color: var(--muted); font-size: .95rem; line-height: 1.4; margin-top: .15rem; }
.boards { margin-top: 1rem; }
@media (max-width: 520px) { .team { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; } }

/* Events */
.events { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.event { display: grid; grid-template-columns: 12.5rem 1fr auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.event time { font-weight: 700; }
.event h3 { font-size: 1.3rem; }
.event p { margin: .3rem 0 0; color: var(--muted); }
.event .tag { color: var(--muted); font-size: .92rem; }
.event .go { font-weight: 600; white-space: nowrap; }
.event-empty { grid-template-columns: 1fr; }
.events-label { padding: 1.75rem 0 .5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }

/* FAQ */
.faq { border-top: 3px solid var(--cyan); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 700; font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.7rem; font-weight: 400; color: var(--btn); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.6rem; max-width: 46em; color: var(--muted); }
.faq .answer p { margin: 0; }
.card p a { color: #fff; text-underline-offset: 3px; }
.tier { margin-top: 1.75rem; border-top: 3px solid var(--cyan); padding-top: .9rem; }
.tier h4 { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text); }
.tier .desc { margin: .35rem 0 .9rem; font-size: .98rem; }
.fee-row { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1.5rem; padding: .7rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.fee-row .who { color: var(--text); font-weight: 600; }
.fee-row .fee { grid-column: 2; grid-row: 1; color: var(--text); font-weight: 800; text-align: right; }
.fee-row .role { grid-column: 1; font-size: .93rem; }
@media (max-width: 520px) { .fee-row { grid-template-columns: 1fr; } .fee-row .fee { grid-column: 1; grid-row: auto; text-align: left; } }

/* Newsletter band */
.news { background: var(--cyan); color: var(--ink); padding: clamp(2rem, 4vw, 3rem) 0; }
.news .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.news h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 14em; }
.news p { margin: .6rem 0 0; }

/* Pillars */
.strata { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 1.25rem; }
.strata i { display: block; height: 10px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar h3 { font-size: 1.4rem; margin: 0 0 .5rem; }
.pillar p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Membership, both ways */
.both { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel { padding: clamp(1.75rem, 4vw, 3rem); }
.panel.get { background: var(--tq); color: var(--ink); }
.panel.bring { background: var(--brown); color: var(--cloud); }
.panel h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.panel li { border-top: 1px solid rgba(20,41,48,.3); padding-top: 1rem; }
.panel.bring li { border-top-color: rgba(255,255,255,.28); }
.panel li strong { display: block; font-size: 1.1rem; margin-bottom: .15rem; }
.panel.bring li span { color: #e6e0d4; }

/* 2040 */
.ambition { background: var(--brown); color: var(--cloud); }
.ambition .section-head p { color: #e6e0d4; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.5rem; }
.stat { border-top: 3px solid var(--tq); padding-top: 1rem; }
.stat b { display: block; font-family: var(--font-bulky); font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--tq); }
.stat b small { font-size: .4em; letter-spacing: 0; font-weight: 800; }
.stat .unit { display: block; margin-top: .7rem; font-size: 1.15rem; line-height: 1.3; color: #fff; min-height: 1.5em; }
.stat span { display: block; margin-top: .4rem; color: #e6e0d4; font-size: 1rem; line-height: 1.45; }

/* Boards */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.5rem 2rem; }
.board { border-top: 4px solid var(--cyan); padding-top: 1.1rem; }
.board h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.person { display: flex; gap: .9rem; align-items: center; }
.person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; }
.person span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.empty { color: var(--muted); margin: 0; }

/* Join / members */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { min-height: 26rem; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.75rem, 4vw, 3rem); }
.card { position: relative; color: #fff; background-color: var(--brown); background-size: cover; background-position: center; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,31,19,.88) 0%, rgba(40,31,19,.45) 60%, rgba(40,31,19,.2) 100%); }
.card > * { position: relative; }
.card.join { background-image: url("../images/card-join.jpg"); }
.card.members { background-image: url("../images/card-members.jpg"); background-position: 12% 50%; }
.card h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); margin-bottom: .8rem; }
.card p { margin-bottom: 1.6rem; }
.card p { color: #f0ece4; }
.card .btn { align-self: flex-start; }

/* Footer */
footer { background: var(--deep); color: #d9d2c4; padding: 4rem 0 2.5rem; font-size: .98rem; }
footer a { color: var(--cloud); }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.foot p { margin: 0 0 .6rem; }
.foot-brand { display: inline-block; background: #fff; padding: .55rem .9rem; border-radius: 4px; line-height: 0; margin-bottom: 1.1rem; }
.foot-brand img { height: 54px; width: auto; display: block; }
.foot-note { max-width: 20em; }
.foot-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #bfb6a4; font-weight: 700; margin-bottom: 1rem !important; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.foot-base p { margin: 0; }
.ck-logo { display: inline-block; line-height: 0; }
.ck-logo img { height: 36px; width: auto; display: block; }
.social { display: inline-flex; align-items: center; }
.social svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }

/* Plain text pages */
.prose { padding: 4rem 0 6rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }

@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } .about .copy { grid-template-columns: 1fr; max-width: 40em; } .closing { padding-right: 0; } }
@media (max-width: 900px) {
  .about, .cards, .both, .does { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .pillars, .strata { grid-template-columns: 1fr 1fr; }
  .event { grid-template-columns: 1fr; gap: .4rem; }
  #menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 4.5rem; background: var(--brown); padding: 1rem 1.5rem 1.5rem; }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; margin: 0; }
  .hero .wrap { padding-block: 6rem 3rem; }
}
@media (max-width: 520px) {
  .pillars, .strata, .stats, .foot { grid-template-columns: 1fr; }
  .strata i:nth-child(n+2) { display: none; }
  .brand .logo-full { display: none; }
  .brand .logo-mark { display: block; height: 38px; }
  .site-header.solid .brand { padding: .35rem .5rem; }
  .site-header.solid .brand .logo-mark { height: 36px; }
  .bar { gap: .5rem; }
  .quick { gap: .4rem; }
  .quick .btn { padding: .4rem .65rem; font-size: .85rem; }
  #menu-btn { padding: .35rem .6rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }


/* Light header, split hero with the people photo shown clean, soil mosaic */
.site-header.light { position: static; background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.site-header.light #nav a { color: var(--text); }
.site-header.light .btn-cyan { background: var(--brown); color: #fff !important; }
.site-header.light .btn-cyan:hover { background: var(--deep); }
.site-header.light .btn-ghost { border-color: var(--brown); color: var(--brown) !important; }
.site-header.light .btn-ghost:hover { background: var(--brown); color: #fff !important; border-color: var(--brown); }
.site-header.light #menu-btn { border-color: var(--brown); color: var(--brown); }
.hero-split { padding: 0; display: grid; grid-template-columns: 5fr 6fr; min-height: min(78vh, 680px); background: var(--brown); color: #fff; }
.hs-text { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem 4rem max(1.5rem, calc((100vw - 1180px) / 2)); }
.hs-text h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); max-width: 10em; }
.hs-text p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #f0ece4; max-width: 28em; margin-top: 1.2rem; }
.hs-photo { position: relative; min-height: 22rem; }
.hs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; display: block; }
.hero-split + section { padding-top: calc(var(--space) * 2); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mosaic figure { margin: 0; }
.mosaic img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
/* hero panel colour options */
.hero-split.turq { background: var(--cyan); color: #fff; }
.hero-split.turq .hs-text p { color: #fff; }
.hero-split.turq .btn-cyan { background: var(--brown); color: #fff !important; }
.hero-split.turq .btn-cyan:hover { background: var(--deep); }
.hero-split.turq .btn-ghost { border-color: #fff; color: #fff !important; }
.hero-split.turq .btn-ghost:hover { background: #fff; color: var(--brown) !important; }
.hero-split.turq-ink { background: var(--cyan); color: var(--ink); }
.hero-split.turq-ink .hs-text p { color: #12353d; }
.hero-split.turq-ink .btn-cyan { background: var(--brown); color: #fff !important; }
.hero-split.turq-ink .btn-cyan:hover { background: #3a2e1e; }
.hero-split.turq-ink .btn-ghost { border-color: var(--ink); color: var(--ink) !important; }
.hero-split.turq-ink .btn-ghost:hover { background: var(--ink); color: #fff !important; }
.hero-split.sky { background: var(--sky); color: var(--ink); }
.hero-split.sky .hs-text p { color: #12353d; }
.hero-split.sky .btn-cyan { background: var(--brown); color: #fff !important; }
.hero-split.sky .btn-cyan:hover { background: #3a2e1e; }
.hero-split.sky .btn-ghost { border-color: var(--ink); color: var(--ink) !important; }
.hero-split.sky .btn-ghost:hover { background: var(--ink); color: #fff !important; }
.hero-split.lightturq { background: var(--tq); color: var(--ink); }
.hero-split.white { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero-split.lightturq .hs-text p, .hero-split.white .hs-text p { color: #2e4a52; }
.hero-split.lightturq .btn-cyan, .hero-split.white .btn-cyan { background: var(--btn); color: #fff !important; }
.hero-split.lightturq .btn-cyan:hover, .hero-split.white .btn-cyan:hover { background: var(--btn-hover); }
.hero-split.lightturq .btn-ghost, .hero-split.white .btn-ghost { border-color: var(--ink); color: var(--ink) !important; }
.hero-split.lightturq .btn-ghost:hover, .hero-split.white .btn-ghost:hover { background: var(--ink); color: #fff !important; }
@media (max-width: 900px) {
  .site-header.light #nav { background: #fff; border-bottom: 1px solid var(--line); }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hs-text { padding: 3rem 1.5rem; }
  .hs-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic figure:nth-child(3) { grid-column: 1 / -1; }
  .mosaic figure:nth-child(3) img { aspect-ratio: 2 / 1; }
}
