:root {
  --paper: #faf8f3;
  --ink: #17211f;
  --muted: #66716e;
  --line: #d9ddd4;
  --soft: #eff3ed;
  --white: #ffffff;
  --leaf: #1f6f5b;
  --blue: #557d8a;
  --rust: #b96442;
  --shadow: 0 22px 60px rgba(23, 33, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(31, 111, 91, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--leaf);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 221, 212, 0.86);
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 0.95;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 720;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  max-width: 820px;
  padding: 57px 0 12px;
}

.home-hero {
  max-width: 960px;
  padding: 57px 0 0;
}

.inline-hero {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

h1 span {
  display: block;
}

.page-hero h1 {
  font-size: clamp(2.45rem, 4vw, 3.45rem);
}

.home-title {
  margin-bottom: 0;
  font-size: clamp(4.8rem, 15vw, 11rem);
  line-height: 0.88;
}

.intro {
  max-width: 720px;
  margin-bottom: 0;
  color: #394541;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.section {
  padding: 46px 0 84px;
}

.landing-news {
  padding-top: 36px;
}

.page-hero + .section {
  padding-top: 18px;
}

.compact-section {
  padding-top: 26px;
  padding-bottom: 24px;
}

.compact-section + .compact-section {
  padding-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 0.68fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.mission-copy {
  max-width: 820px;
  color: #3f4b48;
  font-size: 1.08rem;
}

.landing-team {
  padding-top: 14px;
}

.photo-anna {
  background: var(--leaf);
  color: rgba(255, 255, 255, 0.9);
}

.photo-maya {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.9);
}

.photo-leo {
  background: var(--rust);
  color: rgba(255, 255, 255, 0.9);
}

.news-feed {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.landing-news .news-feed {
  border-top: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 0.72fr) minmax(220px, 0.28fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.news-row time {
  color: var(--leaf);
  font-size: 0.92rem;
  font-weight: 780;
}

.news-row h2,
.news-row h3 {
  margin-bottom: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 760;
  line-height: 1.2;
}

.news-row p {
  margin-bottom: 0;
  color: #414d49;
}

.news-type {
  justify-self: end;
  height: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
}

.news-card:hover h3 {
  color: var(--leaf);
}

.news-thumb {
  min-height: 190px;
}

.news-card-copy {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
}

.news-card-copy h3 {
  margin-bottom: 10px;
}

.news-card-copy p:not(.eyebrow) {
  color: #3f4b48;
}

.news-card-copy time {
  margin-top: auto;
  padding-top: 22px;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 720;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-row-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  text-decoration: none;
}

.news-row-card:hover h3 {
  color: var(--leaf);
}

.news-row-thumb {
  width: 100%;
  height: 230px;
  min-height: 0;
}

.news-row-copy {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 28px 30px 28px 0;
}

.news-row-copy p:not(.eyebrow) {
  color: #3f4b48;
}

.news-row-copy time {
  margin-top: auto;
  padding-top: 22px;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 720;
}

.grid {
  display: grid;
  gap: 18px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 24px;
}

.person .portrait {
  display: grid;
  width: 152px;
  height: 152px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--leaf);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.person-photo {
  object-fit: cover;
}

.portrait-fabian {
  object-position: 50% 38%;
}

.portrait-jonas {
  object-position: 50% 45%;
}

.portrait-simon {
  object-position: 50% 36%;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
  line-height: 1.22;
}

.role {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card p {
  color: #3f4b48;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.82rem;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  overflow: hidden;
  text-decoration: none;
}

.project-row:hover h3 {
  color: var(--leaf);
}

.project-copy {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px 30px 28px 0;
}

.project-copy p {
  color: #3f4b48;
}

.project-meta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 760;
}

.project-thumb {
  position: relative;
  width: 100%;
  height: 250px;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
}

.project-thumb.has-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.thumbnail-fit-contain {
  padding: 18px;
  object-fit: contain;
}

.thumbnail-fit-cover {
  object-fit: cover;
}

.project-thumb::before,
.project-thumb::after,
.project-thumb span {
  position: absolute;
  display: block;
  content: "";
}

.thumb-default {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #eef3ed, #dcebf0 54%, #f4efe8);
}

.thumb-default::before {
  inset: 34px;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 111, 91, 0.34), rgba(85, 125, 138, 0.34)) 26px 42px / 64% 7px no-repeat,
    linear-gradient(90deg, rgba(23, 33, 31, 0.1), rgba(23, 33, 31, 0.04)) 26px 76px / 48% 7px no-repeat,
    linear-gradient(90deg, rgba(23, 33, 31, 0.1), rgba(23, 33, 31, 0.04)) 26px 110px / 58% 7px no-repeat,
    rgba(255, 255, 255, 0.46);
}

.thumb-default::after {
  right: 34px;
  bottom: 34px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(31, 111, 91, 0.12);
}

.thumb-default span:nth-child(1) {
  left: 52px;
  bottom: 42px;
  width: 38px;
  height: 54px;
  border-radius: 6px 6px 0 0;
  background: rgba(85, 125, 138, 0.55);
}

.thumb-default span:nth-child(2) {
  left: 104px;
  bottom: 42px;
  width: 38px;
  height: 82px;
  border-radius: 6px 6px 0 0;
  background: rgba(31, 111, 91, 0.58);
}

.thumb-default span:nth-child(3) {
  left: 156px;
  bottom: 42px;
  width: 38px;
  height: 42px;
  border-radius: 6px 6px 0 0;
  background: rgba(185, 100, 66, 0.38);
}

.thumb-attribution {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #dcebf0, #eff3ed 52%, #e7ddd3);
}

.thumb-attribution::before {
  left: 24px;
  right: 24px;
  bottom: 34px;
  height: 42px;
  border-radius: 50% 50% 0 0;
  background: #557d8a;
}

.thumb-attribution::after {
  left: 42px;
  right: 42px;
  bottom: 28px;
  height: 9px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.24);
}

.thumb-attribution span:nth-child(1) {
  left: 38px;
  top: 42px;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(31, 111, 91, 0.35);
  border-radius: 50%;
}

.thumb-attribution span:nth-child(2) {
  right: 42px;
  top: 54px;
  width: 108px;
  height: 13px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 24px 0 rgba(23, 33, 31, 0.35), 0 48px 0 rgba(185, 100, 66, 0.85);
}

.thumb-summits {
  background:
    repeating-linear-gradient(90deg, rgba(23, 33, 31, 0.06) 0 1px, transparent 1px 28px),
    linear-gradient(145deg, #eef3ed, #dcebf0);
}

.thumb-summits::before {
  left: 30px;
  right: 30px;
  bottom: 42px;
  height: 2px;
  background: rgba(23, 33, 31, 0.28);
}

.thumb-summits span {
  bottom: 44px;
  width: 34px;
  border-radius: 6px 6px 0 0;
  background: var(--leaf);
}

.thumb-summits span:nth-child(1) {
  left: 52px;
  height: 86px;
}

.thumb-summits span:nth-child(2) {
  left: 124px;
  height: 132px;
  background: var(--rust);
}

.thumb-summits span:nth-child(3) {
  left: 196px;
  height: 62px;
  background: var(--blue);
}

.thumb-corpus {
  background: linear-gradient(135deg, #f4efe8, #eff3ed);
}

.thumb-corpus::before {
  inset: 34px;
  border: 1px solid rgba(23, 33, 31, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 33, 31, 0.1), rgba(23, 33, 31, 0.1)) 26px 42px / 150px 8px no-repeat,
    linear-gradient(rgba(31, 111, 91, 0.75), rgba(31, 111, 91, 0.75)) 26px 72px / 94px 8px no-repeat,
    linear-gradient(rgba(23, 33, 31, 0.18), rgba(23, 33, 31, 0.18)) 26px 102px / 166px 8px no-repeat,
    linear-gradient(rgba(185, 100, 66, 0.75), rgba(185, 100, 66, 0.75)) 26px 132px / 118px 8px no-repeat,
    rgba(255, 255, 255, 0.58);
}

.thumb-corpus span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.thumb-corpus span:nth-child(1) {
  left: 56px;
  top: 74px;
}

.thumb-corpus span:nth-child(2) {
  left: 56px;
  top: 134px;
}

.thumb-corpus span:nth-child(3) {
  left: 56px;
  top: 194px;
}

.thumb-risk {
  background:
    radial-gradient(circle at 72% 28%, rgba(185, 100, 66, 0.24), transparent 28%),
    linear-gradient(145deg, #dcebf0, #f4efe8);
}

.thumb-risk::before {
  left: 46px;
  top: 48px;
  width: 162px;
  height: 162px;
  border: 2px solid rgba(31, 111, 91, 0.55);
  border-radius: 50%;
}

.thumb-risk::after {
  left: 88px;
  top: 90px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(31, 111, 91, 0.18);
}

.thumb-risk span:nth-child(1) {
  left: 128px;
  top: 44px;
  width: 2px;
  height: 166px;
  background: rgba(23, 33, 31, 0.22);
}

.thumb-risk span:nth-child(2) {
  left: 46px;
  top: 128px;
  width: 162px;
  height: 2px;
  background: rgba(23, 33, 31, 0.22);
}

.thumb-risk span:nth-child(3) {
  right: 36px;
  bottom: 34px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--rust);
}

.partner-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
}

.funding {
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.funding p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  gap: 44px;
  align-items: start;
  padding: 50px 0 74px;
}

.contact-band h1 {
  margin-bottom: 18px;
}

.contact-section {
  max-width: 520px;
  padding-top: 18px;
}

.contact-email {
  margin: 0;
  font-size: clamp(1.425rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.post {
  max-width: 920px;
  padding-bottom: 80px;
}

.post-hero {
  max-width: 820px;
}

.post-hero h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.post-thumb {
  min-height: 340px;
  margin: 16px 0 42px;
  border-radius: 8px;
}

.post-content {
  max-width: 760px;
  color: #3f4b48;
  font-size: 1.08rem;
}

.post-content p {
  margin-bottom: 1.15rem;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .section-heading,
  .partner-layout,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .three,
  .two,
  .news-card-grid {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .news-type {
    grid-column: 2;
    justify-self: start;
  }

  .project-row {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .news-row-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .project-thumb,
  .news-row-thumb {
    height: 220px;
  }

  .project-copy {
    padding: 24px 24px 24px 0;
  }

  .news-row-copy {
    padding: 24px 24px 24px 0;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 28px, 1120px);
  }

  .shell {
    width: min(100% - 28px, 1120px);
  }

  .page-hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }

  .news-type {
    grid-column: auto;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .news-row-card {
    grid-template-columns: 1fr;
  }

  .project-thumb,
  .news-row-thumb {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .news-card {
    grid-template-rows: 180px auto;
  }

  .news-card-copy {
    min-height: 0;
  }

  .project-copy {
    min-height: 0;
    padding: 22px;
  }

  .news-row-copy {
    min-height: 0;
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
