/* ESUNT.org - Open Development landing page */
:root {
  color-scheme: light;
  --forest: #073822;
  --forest-dark: #062c1c;
  --forest-deep: #042016;
  --lime: #b5ed76;
  --green: #24713d;
  --ink: #17281e;
  --muted: #58675e;
  --pale: #f5f8f3;
  --paper: #ffffff;
  --border: #dce7dd;
  --container: 1120px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #77bd44; outline-offset: 4px; border-radius: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -0.035em; }
p { margin-bottom: 1.15em; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 20; background: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #e5ece4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 94px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: 192px; height: auto; }
.brand-label { display: inline-block; border-left: 1px solid #cbd9c8; padding-left: 16px; color: #55715d; font-size: .67rem; font-weight: 800; letter-spacing: .18em; line-height: 1.5; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; column-gap: 24px; row-gap: 8px; }
.main-nav a { color: #314e3b; font-size: .9rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover { color: #116329; text-decoration: underline; }
.main-nav a.nav-external { padding: 10px 14px; border: 1px solid #d0e0cf; border-radius: 8px; }
.main-nav .nav-external span { margin-left: 3px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 92px; color: #fff; background: radial-gradient(ellipse at 85% 10%, rgba(55, 120, 73, .3), transparent 38%), linear-gradient(130deg, var(--forest-deep), var(--forest) 62%, #0a492b); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(191, 244, 166, .1); border-radius: 50%; right: -220px; bottom: -310px; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; color: #c1eeb5; font-size: .72rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(181, 237, 118, .12); }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.5rem); max-width: 700px; margin-bottom: 25px; font-weight: 780; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 600px; margin-bottom: 30px; font-size: 1.15rem; line-height: 1.74; color: #e0eae1; }
.hero-actions, .contribute-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: .94rem; line-height: 1.4; font-weight: 750; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.button-primary { color: var(--forest-deep); background: var(--lime); }
.button-primary:hover { color: var(--forest-deep); background: #d0f5a6; }
.button-outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.46); }
.button-outline:hover { color: #fff; background: rgba(255,255,255,.11); }
.hero-footnote { max-width: 585px; margin: 26px 0 0; color: #bccebf; font-size: .82rem; line-height: 1.65; }
.hero-panel { padding: 32px 33px 26px; background: rgba(2,27,17,.6); border: 1px solid rgba(167, 230, 146, .25); box-shadow: 0 25px 70px rgba(0, 0, 0, .14); border-radius: var(--radius); }
.panel-kicker { color: #c8edaf; font-size: .75rem; letter-spacing: .18em; font-weight: 800; margin-bottom: 15px; }
.panel-statement { margin-bottom: 24px; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.37; font-weight: 720; letter-spacing: -.025em; }
.panel-statement span { color: var(--lime); }
.panel-rule { height: 1px; background: rgba(255, 255, 255, .17); margin-bottom: 20px; }
.panel-items { display: grid; gap: 18px; }
.panel-items > div { display: grid; grid-template-columns: 27px minmax(0, 1fr); column-gap: 12px; }
.panel-index { grid-row: 1 / 3; padding-top: 2px; color: var(--lime); font-size: .73rem; font-weight: 800; }
.panel-items strong { font-size: .88rem; letter-spacing: .005em; }
.panel-items > div > span:last-child { color: #c6d9c9; font-size: .83rem; line-height: 1.5; }

/* Shared sections */
.section { padding: 95px 0; }
.section-intro { max-width: 690px; margin-bottom: 35px; }
.section-intro-centered { margin-inline: auto; text-align: center; }
.eyebrow-dark { color: #347348; }
.section h2, .final-cta h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 21px; font-weight: 760; }
.section-intro > p:last-child { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }
.section-watch { background: var(--pale); }
.video-frame { overflow: hidden; max-width: 880px; margin: 0 auto; aspect-ratio: 16/9; background: #06271a; border-radius: 16px; box-shadow: 0 16px 45px rgba(5, 29, 17, .17); }
.video-frame iframe { display: block; width: 100%; height: 100%; }
.video-caption { color: var(--muted); text-align: center; font-size: .82rem; margin-top: 14px; margin-bottom: 0; }

/* Technology */
.section-technology { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 29px 28px 23px; border: 1px solid var(--border); border-top: 4px solid #3d9752; border-radius: 12px; background: #fff; }
.feature-number { display: block; margin-bottom: 26px; color: #397749; font-size: .71rem; font-weight: 800; letter-spacing: .11em; }
.feature-card h3 { margin-bottom: 13px; color: var(--forest); font-size: 1.25rem; font-weight: 760; }
.feature-card p { color: #4e6153; font-size: .95rem; line-height: 1.75; margin: 0; }
.section-more { margin: 30px 0 0; color: var(--muted); font-size: .91rem; }
.section-more a { font-weight: 700; }

/* Contribute */
.section-contribute { background: var(--forest-dark); color: #fff; }
.contribute-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(38px, 6vw, 95px); align-items: start; }
.contribute-copy > p:not(.eyebrow) { color: #dbe8dc; font-size: 1.05rem; line-height: 1.78; }
.contribute-copy h2 { max-width: 540px; }
.contribute-actions { margin: 28px 0 16px; }
.text-link-light { color: #d4eecc; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.contribute-copy > p.contribute-note { margin-top: 18px; color: #bcd0c1; font-size: .83rem; line-height: 1.6; }
.contribute-roles { border-top: 1px solid rgba(255,255,255,.18); }
.role-item { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 24px 4px 21px; border-bottom: 1px solid rgba(255,255,255,.18); }
.role-index { color: var(--lime); font-size: .81rem; font-weight: 800; padding-top: 3px; }
.role-item h3 { margin: 0 0 5px; font-size: 1.12rem; letter-spacing: -.01em; }
.role-item p { margin: 0; color: #c9dccc; font-size: .91rem; line-height: 1.6; }

/* Progress */
.section-progress { background: var(--pale); }
.progress-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(38px, 7vw, 120px); align-items: center; }
.progress-grid > div:first-child > p:not(.eyebrow) { color: #4d6152; font-size: 1rem; line-height: 1.8; }
.progress-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(18, 57, 27, .04); }
.progress-card h3 { margin-bottom: 20px; font-size: 1.25rem; color: var(--forest); }
.reference-list { padding: 0; margin: 0; list-style: none; }
.reference-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid #e7eee8; padding: 14px 0; font-size: .88rem; }
.reference-list li span { color: var(--muted); }
.reference-list a { font-weight: 750; white-space: nowrap; }
.reference-list a span { color: inherit; }

/* Closing CTA */
.final-cta { padding: 56px 0; background: #d9efa7; }
.final-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.final-cta h2 { margin-bottom: 8px; color: var(--forest-deep); font-size: clamp(1.8rem, 3vw, 2.45rem); }
.final-cta p:not(.eyebrow) { max-width: 700px; margin-bottom: 0; color: #365138; }
.final-cta .eyebrow { margin-bottom: 10px; }
.button-dark { color: #fff; background: var(--forest); flex: 0 0 auto; }
.button-dark:hover { background: #0e5731; color: #fff; }

/* Footer */
.site-footer { padding: 34px 0 25px; background: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 24px; }
.footer-logo img { display: block; width: 160px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; border-top: 1px solid var(--border); padding-top: 19px; color: #607365; }
.footer-bottom p { margin: 0; font-size: .78rem; }
.footer-bottom a { color: inherit; }

@media (max-width: 1060px) {
  .header-inner { min-height: 86px; }
  .brand img { width: 155px; }
  .brand-label { padding-left: 12px; }
  .main-nav { gap: 9px 17px; }
  .main-nav a { font-size: .84rem; }
}
@media (max-width: 850px) {
  .header-inner { flex-direction: column; justify-content: center; align-items: flex-start; padding: 17px 0; gap: 13px; }
  .main-nav { justify-content: flex-start; }
  .hero { padding: 68px 0 70px; }
  .hero-grid, .contribute-grid, .progress-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .section { padding: 76px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 25px; }
  .feature-number { margin-bottom: 14px; }
  .progress-card { max-width: 600px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 550px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .brand img { width: 145px; }
  .brand-label { font-size: .57rem; letter-spacing: .12em; }
  .main-nav { gap: 8px 14px; }
  .main-nav a { font-size: .82rem; }
  .main-nav a.nav-external { padding: 7px 10px; }
  .hero { padding: 53px 0 56px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.75rem); }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions, .contribute-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-panel { padding: 25px 22px; }
  .section { padding: 62px 0; }
  .section h2 { font-size: clamp(1.95rem, 7.8vw, 2.45rem); }
  .video-frame { border-radius: 8px; }
  .reference-list li { align-items: flex-start; flex-direction: column; gap: 1px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
