:root {
  --navy: #2b3981;
  --blue: #4862ad;
  --slate: #26273b;
  --footer: #0a142f;
  --orange: #ec6731;
  --orange-hover: #d95a27;
  --ink: #333333;
  --muted: #666666;
  --line: rgba(0, 0, 0, 0.08);
  --paper: #f6f7fa;
  --white: #ffffff;
  --sans: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1308px;
  --box: 1260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 34px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sans);
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.bar {
  background: #000;
  color: var(--white);
  height: 33px;
  line-height: 33px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar a {
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  box-shadow: 0 3px 45px rgba(0, 0, 0, 0.15);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  text-transform: uppercase;
  color: #000;
  padding: 0 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-cta {
  display: flex;
  align-items: center;
  margin-left: 30px;
}

.nav-cta .btn {
  font-size: 16px;
}

.reach {
  margin-left: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}

.reach:hover {
  color: var(--navy);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 30px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--orange-hover);
}

.btn-orange,
.btn-white {
  background: var(--orange);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  padding: 50px 0 215px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 50%, rgba(255, 255, 255, 0) 72%),
    var(--white) url("/assets/home-banner.jpg") right top / cover no-repeat;
}

.hero-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: 84px;
  font-weight: 300;
  line-height: 92px;
  color: var(--navy);
  margin: 0 0 10px;
  max-width: 800px;
}

.hero-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-lines li {
  font-size: 28px;
  font-weight: 700;
  line-height: 39.2px;
  color: var(--blue);
  padding-bottom: 15px;
}

.hero-lines li:last-child {
  padding-bottom: 0;
}

/* Mission */
.mission {
  position: relative;
  z-index: 2;
  margin: -125px auto 0;
  max-width: var(--box);
  background: var(--slate);
  color: var(--white);
  padding: 37px;
}

.mission h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 45px;
  margin: 0 0 10px;
}

.mission p {
  margin: 0 0 30px;
  font-size: 24px;
  line-height: 33.6px;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
}

/* Members */
.members-section {
  padding: 80px 24px 100px;
}

.members-section h2,
.section h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  line-height: 45px;
  color: var(--ink);
  margin: 0 0 30px;
}

.members {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 0 0 84px;
}

.members:last-of-type {
  margin-bottom: 24px;
}

.member {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 132px;
  background: transparent;
}

.member img {
  width: 100%;
  max-width: 198px;
  height: 80px;
  object-fit: contain;
}

.member.wordmark {
  gap: 12px;
}

.member.wordmark img {
  width: auto;
  height: 44px;
  flex: 0 0 auto;
}

.member.wordmark span {
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.note {
  font-size: 18px;
  line-height: 25.2px;
  margin: 0;
}

/* FAQ */
.faq {
  background: var(--paper);
  padding: 50px 0 100px;
}

.faq h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  line-height: 45px;
  margin: 0 0 30px;
}

details {
  border-bottom: 2px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 30px 30px;
  font-size: 28px;
  font-weight: 600;
  line-height: 35px;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #888;
  color: #888;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
}

details[open] summary::after {
  content: "\2212";
}

details p,
details ul {
  font-size: 18px;
  line-height: 25.2px;
  color: var(--ink);
  margin: 0;
  padding: 0 60px 30px 30px;
}

details ul {
  padding-left: 60px;
}

details li {
  margin: 4px 0;
}

/* Newsletter */
.newsletter {
  background: var(--blue);
  padding: 80px 0 100px;
}

.newsletter-card {
  max-width: var(--box);
  margin: 0 auto;
  background: var(--white);
  padding: 37px;
}

.newsletter h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 45px;
  margin: 0 0 10px;
}

.newsletter p {
  font-size: 18px;
  line-height: 25.2px;
  margin: 0 0 30px;
}

.nl-form {
  display: grid;
  gap: 8px;
}

.nl-form label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
  color: #000;
}

.nl-form input {
  font: inherit;
  font-size: 14px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid #afafaf;
  border-radius: 5px;
  color: #555;
}

.nl-form .consent {
  font-size: 16px;
  line-height: 22.4px;
  color: #000;
  margin: 15px 0;
}

.nl-form .btn {
  justify-self: start;
  font-weight: 600;
  letter-spacing: normal;
  box-shadow: none;
}

/* Form confirmation */
.form-success {
  max-width: 600px;
  padding: 32px 28px;
  border: 1px solid #cfe5d6;
  border-radius: 8px;
  background: #f1faf4;
  color: #1d3b2a;
  text-align: center;
  animation: form-success-in 0.35s ease-out;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #2e9e5b;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  color: #1d3b2a;
}

.form-success p {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
}

.prose .form-success p {
  font-size: 17px;
  line-height: 26px;
}

@keyframes form-success-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Inner pages */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: 84px;
  font-weight: 300;
  line-height: 92px;
}

/* News grid */
.news-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 85px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--white);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  padding: 35px;
  display: flex;
  flex-direction: column;
}

.card-thumb {
  display: block;
  height: 225px;
  margin: 0 0 15px;
  overflow: hidden;
  background: #e6e9f2;
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  font-size: 18px;
  line-height: 34px;
  padding-bottom: 10px;
}

.card-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  line-height: 34px;
  color: var(--navy);
  text-decoration: underline;
  padding-bottom: 15px;
}

.card-excerpt {
  margin: 0;
  padding-top: 10px;
  font-size: 18px;
  line-height: 25.2px;
}

.prose {
  max-width: 860px;
  margin: 70px auto 100px;
  padding: 0 24px;
}

.prose h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  color: var(--navy);
  margin: 0 0 24px;
}

.prose h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  font-size: 18px;
  line-height: 30px;
}

.prose p {
  margin: 0 0 20px;
}

.prose a:not(.btn) {
  color: var(--navy);
}

.meta {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 12px;
}

/* Article pages */
.prose.post {
  max-width: 1048px;
  margin: 70px auto 100px;
}

.post-tag {
  display: inline-block;
  margin: 0 auto 5px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--ink);
}

.post-head {
  text-align: center;
  margin: 0;
}

.post-head h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 63px;
  color: var(--ink);
  padding: 20px 0;
  margin: 0;
}

.post-head .meta {
  font-size: 18px;
  font-weight: 600;
  line-height: 34px;
  color: var(--ink);
  margin: 0;
}

.post-hero {
  height: 633px;
  margin: 84px 0 10px;
  overflow: hidden;
  background: #e6e9f2;
}

.post-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose.post h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 45px;
  margin: 10px 0 8px;
}

.prose.post p {
  font-size: 18px;
  line-height: 25.2px;
  margin: 0;
  padding: 0 0 15px;
}

.prose.post li {
  font-size: 18px;
  line-height: 34px;
}

.prose.post ul {
  margin: 0 0 15px;
}

.news-list {
  max-width: var(--max);
  margin: 70px auto 100px;
  padding: 0 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 2px solid var(--line);
  text-decoration: none;
}

.news-item:first-child {
  border-top: 2px solid var(--line);
}

.news-item .meta {
  margin: 0;
}

.news-item h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
}

.news-item:hover h2 {
  color: var(--navy);
}

.news-item p {
  margin: 0;
  font-size: 18px;
  line-height: 25.2px;
}

.levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 48px;
}

.level {
  background: var(--paper);
  padding: 30px;
}

.level h3 {
  margin: 0 0 8px;
}

.level .price {
  color: var(--navy);
  font-weight: 600;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 600px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 16px;
  line-height: 22px;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  font-size: 16px;
  padding: 8px 15px;
  border: 1px solid #afafaf;
  border-radius: 5px;
}

.partners {
  display: grid;
  gap: 0;
  margin-top: 30px;
}

.partner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  border-top: 2px solid var(--line);
  padding: 40px 0;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
}

.partner-logo img {
  max-width: 200px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  margin: 0 0 8px;
}

.partner p {
  margin: 0;
}

@media (max-width: 700px) {
  .partner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .partner-logo {
    justify-content: flex-start;
    height: auto;
  }
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--white);
  padding: 55px 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
}

.footer-brand img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-text {
  font-size: 16px;
  line-height: 24px;
}

.footer-text p {
  margin: 0;
}

.footer-text a {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero h1 {
    font-size: 64px;
    line-height: 72px;
  }

  .members {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-links a {
    padding: 0 8px;
  }

  .nav-cta .btn {
    font-size: 14px;
    padding: 12px 22px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav.open {
    flex-wrap: wrap;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 18px 0 0;
    gap: 8px;
  }

  .nav.open .nav-cta {
    display: flex;
    width: 100%;
    margin: 18px 0 0;
  }

  .hero {
    padding: 40px 0 160px;
    background-position: 75% top;
  }

  .hero-copy {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 65%, rgba(255, 255, 255, 0.7));
  }

  .hero h1 {
    font-size: 48px;
    line-height: 54px;
  }

  .hero-lines li {
    font-size: 22px;
    line-height: 30px;
  }

  .mission {
    margin: -110px 24px 0;
    padding: 28px;
  }

  .mission h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .mission p {
    font-size: 20px;
    line-height: 30px;
  }

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

  summary {
    font-size: 22px;
    line-height: 30px;
    padding: 22px 0 22px 12px;
  }

  details p,
  details ul {
    padding: 0 12px 24px 12px;
  }

  details ul {
    padding-left: 32px;
  }

  .news-item,
  .news-grid,
  .levels,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 48px;
    line-height: 54px;
  }

  .newsletter-card {
    margin: 0 24px;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
    line-height: 30px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 44px;
  }

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

  .members-section h2,
  .faq h2,
  .newsletter h2 {
    font-size: 30px;
    line-height: 38px;
  }
}
