/* Styles for every page.
   Corners are square except one large rounded corner on the two featured blocks: the lead item (top right)
   and the green panel (bottom left). Every item uses one card. */
@font-face { font-family: "Geist"; src: url("fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --green: #084c42; --green-deep: #05352e; --on-green: #cfe2db;
  --orange: #f89c45; --red: #f2644a; --sky: #8ed4da;
  --ink: #14191b; --ink-2: #3b4448; --muted: #6a7479;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: 76rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --corner: clamp(28px, 4vw, 56px);
  --space: clamp(4rem, 8vw, 6.5rem);
  --gap: clamp(1rem, 1.6vw, 1.5rem);
  --hard: 6px;
  --bg: #f6f4ee; --card: #ebe7dc; --card-hover: #e4dfd2; --cast: #d6cfbf;
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
       min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: var(--space); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
p { margin: 0; }
.shell { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: -.01em; color: var(--muted); }

/* One button, and arrow links */
.btn { display: inline-block; padding: .85rem 1.3rem; background: var(--green); color: #fff; font-weight: 650; font-size: .98rem; text-decoration: none; }
.btn:hover { background: var(--green-deep); color: #fff; }
.arrow { font-weight: 650; text-decoration: none; white-space: nowrap; }
.arrow::after { content: " →"; transition: margin .15s; }
.arrow:hover { color: var(--green); }
.arrow:hover::after { margin-left: .2rem; }

/* Kind label: a coloured square and the name */
.kind { display: inline-flex; align-items: center; gap: .45rem; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.kind::before { content: ""; width: .7rem; height: .7rem; background: currentColor; }
.kind.report::before { background: var(--green); }
.kind.data::before { background: var(--orange); }
.kind.talk::before { background: var(--red); }
.kind.article::before { background: var(--sky); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }

/* Page intro: one column, the brand's three bars as a mark, the link closing the sentence */
.intro { padding: clamp(3rem, 6.5vw, 5rem) 0 clamp(2rem, 4vw, 3rem); max-width: 52rem; }
.mark { display: flex; align-items: flex-end; gap: 5px; margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.mark i { width: 14px; }
.mark i:nth-child(1) { height: 22px; background: var(--red); }
.mark i:nth-child(2) { height: 14px; background: var(--orange); }
.mark i:nth-child(3) { height: 30px; background: var(--sky); }
.intro h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: .96; font-weight: 800; letter-spacing: -.048em; max-width: 16ch; }
.intro p { margin-top: clamp(1rem, 2vw, 1.4rem); font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 38rem; }
.intro p .arrow { color: var(--green); }

/* Section heads */
section { padding-top: var(--space); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.after { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.after .arrow { color: var(--green); }

/* Each kind has a tint; images sit on it like a print on a mat, offset so the edge of the page shows */
.k-report { --tint: #d3e5de; }
.k-data { --tint: #fbe3c9; }
.k-talk { --tint: #f9d6ce; }
.k-article { --tint: #d4eef1; }
.mat { --inset: clamp(1rem, 1.8vw, 1.5rem); position: relative; overflow: hidden; background: var(--tint); }
.mat img { position: absolute; left: var(--inset); top: var(--inset); width: 100%; height: 100%; object-fit: cover; object-position: left top;
           box-shadow: 0 10px 28px -10px rgba(20, 25, 27, .35), 0 1px 4px rgba(20, 25, 27, .08); transition: transform .35s ease; }
a:hover .mat img { transform: translate(-4px, -4px); }

/* Cards with an image cast a hard shadow to the lower right, against the image's lean to the upper left */
.card:has(.mat), .row:has(.mat) { box-shadow: var(--hard) var(--hard) 0 var(--cast); transition: background .15s, box-shadow .2s, transform .2s; }
a.card:has(.mat):hover, a.row:has(.mat):hover { transform: translate(-2px, -2px); box-shadow: calc(var(--hard) + 2px) calc(var(--hard) + 2px) 0 var(--cast); }

/* The card */
.card { display: flex; flex-direction: column; background: var(--card); text-decoration: none; color: inherit; transition: background .15s; }
a.card:hover { background: var(--card-hover); color: inherit; }
a.card:hover h3, a.row:hover h3 { color: var(--green); }
.card .mat { aspect-ratio: 16 / 10; }
.card .body { padding: 1.3rem 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.card h3 { font-size: 1.2rem; line-height: 1.18; font-weight: 750; letter-spacing: -.025em; transition: color .15s; }
.card p { color: var(--ink-2); font-size: .94rem; line-height: 1.5; }

/* Card footer: who, then when */
.foot { display: flex; align-items: center; gap: .55rem; margin-top: auto; padding-top: .85rem; font-size: .86rem; font-weight: 600; color: var(--ink); }
.av { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center;
      font: 700 .6rem/1 var(--sans); letter-spacing: .02em; flex: none; }
.av.org { background: var(--orange); color: var(--ink); }
.foot .mono { margin-left: auto; padding-left: .5rem; font-weight: 500; white-space: nowrap; }
.foot .name { min-width: 0; line-height: 1.2; }

/* The lead item: the same card, wide, in brand green with the large corner; its image sits in an even margin */
.lead { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); border-top-right-radius: var(--corner); overflow: hidden;
        margin-bottom: var(--gap); background: var(--green); color: #fff; }
a.lead:hover { background: var(--green-deep); color: #fff; }
.lead .mat { aspect-ratio: auto; min-height: 19rem; background: transparent; }
.lead .mat img { width: calc(100% - 2 * var(--inset)); height: calc(100% - 2 * var(--inset)); box-shadow: var(--hard) var(--hard) 0 var(--green-deep); }
a.lead:hover .mat img { transform: translate(-3px, -3px); }
.lead .body { padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem) clamp(.5rem, 1.5vw, 1.25rem);
              justify-content: center; gap: 1rem; }
.lead h3, a.lead:hover h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; }
.lead p { color: var(--on-green); font-size: 1.05rem; max-width: 30rem; }
.lead .kind, .lead .foot { color: #fff; }
.lead .foot { margin-top: .5rem; flex: none; }
.lead .foot .mono { margin-left: .5rem; color: var(--on-green); }
.lead .av { background: #fff; color: var(--green); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

/* Green panel */
.panel { background: var(--green); color: var(--on-green); border-bottom-left-radius: var(--corner); padding: clamp(2.25rem, 5vw, 4rem);
         position: relative; overflow: hidden; }
.panel h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 16ch; }
.panel > p { margin-top: .9rem; font-size: 1.1rem; max-width: 34rem; }
.panel .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.panel h3 { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .4rem; }
.panel .cols p { font-size: .95rem; line-height: 1.55; }
.panel .cols a { display: inline-block; margin-top: .7rem; color: #fff; font-weight: 650; font-size: .9rem; }
.bars { position: absolute; top: 0; right: clamp(2.25rem, 5vw, 4rem); display: flex; gap: 6px; }
.bars i { width: 18px; }
.bars i:nth-child(1) { height: 40px; background: var(--red); }
.bars i:nth-child(2) { height: 26px; background: var(--orange); }
.bars i:nth-child(3) { height: 54px; background: var(--sky); }

/* Coalition */
.coalition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.coalition h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.coalition p { color: var(--ink-2); margin: 1rem 0 1.6rem; font-size: 1.05rem; max-width: 32rem; }
.figures { display: grid; gap: var(--gap); }
.figures b { display: block; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: .9; font-weight: 800; letter-spacing: -.055em; color: var(--green); }
.figures span { display: block; margin-top: .6rem; color: var(--ink-2); font-weight: 500; }

/* Feed page */
.filters[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--gap); }
.filters button { font: 600 .9rem/1 var(--sans); padding: .7rem 1rem; border: 0; background: var(--card); color: var(--ink-2); cursor: pointer; }
.filters button:hover { background: var(--card-hover); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters button span { opacity: .55; margin-left: .35rem; font-weight: 500; }
.feed { display: grid; gap: var(--gap); }
.row { display: grid; grid-template-columns: 16rem minmax(0, 1fr); background: var(--card); text-decoration: none; color: inherit; transition: background .15s; }
a.row:hover { background: var(--card-hover); color: inherit; }
.row .mat { min-height: 10rem; }
.row .mat { --inset: 1.1rem; }
.row .body { padding: 1.4rem 1.6rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; justify-content: center; }
.row h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.15; font-weight: 750; letter-spacing: -.03em; transition: color .15s; }
.row p { color: var(--ink-2); font-size: .97rem; line-height: 1.5; max-width: 46rem; }
.row .foot { max-width: 46rem; padding-top: .5rem; }
.row[hidden] { display: none; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .7fr); gap: clamp(2rem, 6vw, 5rem); padding-top: 1rem; }
.prose h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; margin: 3.25rem 0 1.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose > p { color: var(--ink-2); margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.65; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.pairs b { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.pairs .kind { margin-bottom: .6rem; }
.pairs p { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem; }
.person { display: flex; gap: .85rem; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.person b { display: block; font-weight: 700; letter-spacing: -.02em; }
.person span { font-size: .88rem; color: var(--muted); }
.side { display: grid; gap: 2rem; align-content: start; }
.side h3 { font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: .4rem; }
.side p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.side .panel { padding: 1.75rem 1.75rem 2rem; }
.side .panel h3 { font-size: 1.3rem; }
.side .panel p { color: var(--on-green); margin-bottom: 1.2rem; }
.side .panel .arrow { color: #fff; }

footer { background: var(--ink); color: #b9c3c7; font-size: .9rem; padding: 2.75rem 0; }
footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--orange); }

@media (max-width: 1000px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .panel .cols { grid-template-columns: 1fr; }
  .coalition, .about-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 12rem minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lead { grid-template-columns: 1fr; }
  .lead .mat { min-height: 0; aspect-ratio: 16 / 10; }
  .lead .body { padding: 1.5rem 1.75rem 1.75rem; }
  .row { grid-template-columns: 1fr; }
  .row .mat { display: none; }
  .pairs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .figures b { font-size: 2.3rem; }
  .bars { display: none; }
}
