/* Ikiam Foundation — rebuilt from the original Squarespace site */
:root {
  --cream: #fdffe6;
  --ink: #2b2d0e;
  --ink-soft: #4a4c2c;
  --lime: #e4ec8c;
  --footer: #2e2f0f;
  --rule: #2b2d0e;
  --max: 1110px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.center { text-align: center; }
.eyebrow { font-weight: 700; font-size: .95rem; margin: -.4em 0 2em; }
.caps { text-transform: uppercase; letter-spacing: .01em; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--cream);
  font: 500 15px/1.2 "Poppins", sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn.lime { background: var(--lime); color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--cream); box-shadow: 0 6px 16px rgba(43,45,14,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 120px; }
.logo img { width: 148px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav > a, .nav .more > button {
  font: 300 15px/1 "Poppins", sans-serif; color: inherit; text-decoration: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer; border-bottom: 1px solid transparent;
}
.nav > a:hover, .nav > a[aria-current], .nav .more > button:hover, .nav .more.current > button { border-bottom-color: currentColor; }
.more { position: relative; }
.more-menu {
  display: none; position: absolute; top: 100%; left: -18px; min-width: 240px;
  background: var(--cream); padding: 14px 18px; box-shadow: 0 10px 24px rgba(43,45,14,.15);
}
.more:hover .more-menu, .more:focus-within .more-menu, .more.open .more-menu { display: block; }
.more-menu a { display: block; padding: 6px 0; text-decoration: none; font-size: 15px; color: var(--ink); }
.more-menu a:hover { text-decoration: underline; }
.social { display: flex; gap: 18px; margin-left: 12px; }
.social a { display: inline-flex; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.header-cta { margin-left: 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; color: inherit; }
.menu-toggle svg { width: 28px; height: 28px; stroke: currentColor; }

/* Header over hero */
.site-header.overlay { position: absolute; inset: 0 0 auto 0; background: transparent; box-shadow: none; color: #fff; }
.site-header.overlay .more-menu a { color: var(--ink); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--cream); color: var(--ink); padding: 20px var(--gutter) 28px;
    box-shadow: 0 12px 24px rgba(43,45,14,.15);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav > a, .nav .more > button { font-size: 20px; padding: 8px 0; }
  .more-menu { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; background: none; }
  .more > button { pointer-events: none; }
  .social { margin: 12px 0 0; }
  .header-cta { margin: 16px 0 0; }
  .header-cta .btn { background: var(--ink); color: var(--cream); }
}

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  background: #2f4a1c url("../images/hero-forest.jpg") center/cover no-repeat; color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,8,.45) 0%, rgba(20,24,8,0) 30%, rgba(20,24,8,0) 55%, rgba(20,24,8,.45) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 560px; font-size: clamp(2rem, 4.2vw, 3rem); text-shadow: 0 2px 18px rgba(0,0,0,.25); }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 104px); align-items: center; }
.split.top { align-items: start; }
.split img { width: 100%; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split .media-first { order: -1; }
}

/* Founders */
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 40px; }
.founders-grid img { border-radius: 14px; aspect-ratio: 1.08; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .founders-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Accordions */
.accordion { border-top: 1px solid var(--rule); }
.accordion:last-of-type { border-bottom: 1px solid var(--rule); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-weight: 500; font-size: 1.2rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; }
.accordion[open] summary::after { content: "—"; font-size: 1.2rem; }
.accordion .acc-body { padding: 0 0 26px; }
.accordion.large summary { font-size: clamp(1.7rem, 3.4vw, 2.6rem); padding: 14px 0; }
.accordion.large .acc-body { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; font-size: 1.15rem; line-height: 1.95; }
.accordion.large .acc-body > div { grid-column: 2; }
@media (max-width: 800px) { .accordion.large .acc-body { grid-template-columns: 1fr; } .accordion.large .acc-body > div { grid-column: 1; } }

/* Newsletter */
.newsletter .split { align-items: center; }
.newsletter h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); max-width: 420px; }
.newsletter p { font-size: .95rem; }
.field { display: block; width: 100%; max-width: 340px; padding: 20px 28px; font: 300 15px "Poppins", sans-serif; border: 1px solid #d9dbc5; background: #fff; color: var(--ink); margin: 24px 0 30px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--cream); padding: 64px 0 72px; font-size: 16px; line-height: 1.7; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.site-footer p { margin: 0 0 1.4em; }
.site-footer a { color: var(--lime); }
.site-footer .follow a { display: block; }
.site-footer .follow strong { display: block; color: #fff; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* News */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 56px; }
.post { text-align: center; }
.post img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 24px; }
.post time { font-size: .95rem; }
.post h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .3em 0 .7em; }
.post p { font-size: .95rem; }
.post .more-link { font-size: .95rem; }
@media (max-width: 700px) { .posts { grid-template-columns: 1fr; } }

/* Logo + reference rows (academia, press) */
.ref { display: grid; grid-template-columns: 270px 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.ref .logo-box { display: flex; justify-content: center; }
.ref .logo-box img { max-height: 200px; width: auto; }
.ref p { font-size: .98rem; }
.ref .title { font-weight: 700; }
.ref + h2 { margin-top: 72px; }
@media (max-width: 700px) { .ref { grid-template-columns: 1fr; gap: 18px; } .ref .logo-box { justify-content: flex-start; } .ref .logo-box img { max-height: 120px; } }

/* Lists */
ul.clean { padding-left: 1.1em; }
ul.clean li { margin-bottom: .9em; }
.link-list p { margin: 0 0 1em; }

/* Quote */
blockquote { margin: 0 0 0 clamp(0px, 4vw, 48px); font-size: 1.05rem; }
.attribution { text-align: right; }

/* Forms */
.form { max-width: 700px; margin: 40px auto 0; }
.form label { display: block; font-size: 1.05rem; margin: 26px 0 10px; }
.form label .req { color: var(--ink-soft); margin-left: 6px; }
.form input, .form textarea {
  width: 100%; padding: 16px; font: 300 16px "Poppins", sans-serif; color: var(--ink);
  border: 1px solid var(--ink); background: #fafaf8; border-radius: 0;
}
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row label { margin-top: 10px; font-size: .98rem; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-size: 1.05rem; padding: 0; margin-top: 26px; }
.form .btn { margin-top: 32px; }
.form-note { font-size: .9rem; margin-top: 14px; min-height: 1.4em; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; gap: 0; } }

/* Video poster */
.video-poster { position: relative; display: block; }
.video-poster img { width: 100%; }

.page-title { padding-top: clamp(56px, 8vw, 100px); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Let long URLs (DOIs) wrap on narrow screens */
.ref p, .link-list p { overflow-wrap: anywhere; }
