
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  background: var(--bg);
  color: var(--ink);
}

:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

a {
  color: inherit;
  text-underline-offset: 5px;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
}

.skip:focus {
  transform: none;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 110px;
}

.brand {
  text-decoration: none;
  line-height: 1.1;
}

.brand small {
  display: block;
  font: 700 9px/1.4 var(--sans);
  letter-spacing: .25em;
}

.brand strong {
  font-size: 25px;
  letter-spacing: -.025em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
}

.nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

/* Hero and shared typography */

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero-intro {
  font-size: 17px;
  line-height: 1.75;
  max-width: 485px;
  margin-top: 26px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 22px;
  min-height: 52px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  margin-top: 30px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}

.cta:hover {
  filter: brightness(.85);
}

.hero-footnote {
  font-size: 11px;
  margin-top: 19px;
}

.section {
  padding-block: 80px;
}

/* Mission */

.mission p {
  max-width: 710px;
  font-size: 17px;
  line-height: 1.8;
}

.mission p + p {
  margin-top: 18px;
}

/* What we're building */

.building-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.building-heading p {
  max-width: 380px;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  border: 1px solid var(--line);
  padding: 22px;
}

.feature summary {
  list-style: none;
  cursor: pointer;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

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

.feature summary .number {
  font: 12px/1.2 var(--sans);
}

.feature h3 {
  font-size: 23px;
  line-height: 1.2;
}

.feature summary:after {
  content: '+';
  font: 24px/1 var(--sans);
  align-self: end;
  margin-top: -23px;
}

.feature[open] summary:after {
  content: '−';
}

.feature p {
  font-size: 14px;
  line-height: 1.75;
  padding-top: 24px;
}

.scope {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 22px;
  max-width: 800px;
}

/* Connect and social links */

.connect {
  padding-block: 64px;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 85px;
  align-items: center;
}

.connect p {
  max-width: 465px;
  margin-top: 18px;
  font-size: 15px;
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 13px;
  min-height: 54px;
  padding: 14px 18px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 12px;
  text-align: left;
}

.social:hover {
  background: var(--hover);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.social .direction {
  margin-left: auto;
}

.status {
  font-size: 11px !important;
  min-height: 35px;
}

/* Safety information */

.safety {
  padding-block: 23px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.safety summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

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

.safety summary:after {
  content: '+';
  font-size: 22px;
}

.safety[open] summary:after {
  content: '−';
}

.safety-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 20px 0;
}

.safety-content p + p {
  margin-top: 14px;
}

.safety-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.safety-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Footer */

.footer {
  padding-block: 25px 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  border-top: 1px solid var(--line);
}

.footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-top: -14px;
}

/* Shared responsive styles */

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .nav-links {
    gap: 18px;
  }

  .nav-status {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .connect-grid {
    gap: 45px;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .nav {
    min-height: 90px;
    gap: 20px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .brand strong {
    font-size: 22px;
  }

  .nav-links {
    font-size: 11px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .section {
    padding-block: 55px;
  }

  .mission p {
    font-size: 15px;
  }

  .building-heading {
    display: block;
  }

  .building-heading p {
    margin-top: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature {
    padding: 18px 14px;
  }

  .feature h3 {
    font-size: 21px;
  }

  .feature summary {
    min-height: 125px;
  }

  .feature p {
    font-size: 12px;
  }

  .feature summary:after {
    margin-top: 0;
  }

  .scope {
    font-size: 10px;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .connect {
    padding-block: 50px;
  }

  .social {
    padding: 13px 12px;
    font-size: 11px;
    gap: 10px;
  }

  .safety-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer {
    font-size: 10px;
    gap: 15px;
    flex-wrap: wrap;
  }

  .footer > span:nth-child(2) {
    display: none;
  }

  .footer a {
    margin-left: auto;
  }

  .hero-footnote {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .social {
    padding: 12px 10px;
    gap: 8px;
  }

  .feature h3 {
    font-size: 19px;
  }

  .feature {
    padding: 16px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Cherry & Ice palette */

:root {
  --bg: #E9F0F3;
  --ink: #263B46;
  --line: #8BABB4;
  --hover: #D7E4E7;

  --accent: #AC2942;
  --accent-ink: #FFF4F1;

  --panel-one: #BCD3EA;
  --panel-two: #BFDDD0;
  --panel-three: #D5E3E7;
}

/* Common Ground theme */

.nav {
  border-bottom: 2px solid var(--ink);
}

.brand strong {
  font-weight: 900;
  letter-spacing: -.05em;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
  align-items: center;
  padding-block: 65px 75px;
}

.hero .kicker {
  color: var(--accent);
}

.hero h1 {
  font: 900 clamp(52px, 5.7vw, 82px)/.97 var(--sans);
  letter-spacing: -.065em;
  margin-top: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.cta {
  border-radius: 8px;
}

/* Poster collage */

.collage-art {
  height: 510px;
  position: relative;
  margin-inline: 12px;
}

.poster {
  position: absolute;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  font: 850 47px/.99 var(--sans);
  letter-spacing: -.06em;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poster-one {
  top: 10px;
  left: 6px;
  width: 74%;
  height: 295px;
  background: var(--panel-one);
  transform: rotate(-8deg);
  z-index: 1;
}

.poster-one span {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 50px;
}

.poster-two {
  top: 214px;
  right: -8px;
  width: 80%;
  height: 188px;
  background: var(--panel-two);
  transform: rotate(7deg);
  font-size: 33px;
  z-index: 2;
}

.poster-two em {
  font-style: normal;
}

.poster-two svg {
  height: 30px;
  width: 100%;
  stroke: var(--ink);
  stroke-width: 3;
  fill: none;
  margin-top: 20px;
}

.poster-three {
  bottom: 0;
  left: 2px;
  width: 80%;
  height: 132px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-3deg);
  font-size: 31px;
  z-index: 3;
}

.poster-three span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 43px;
}

/* Theme section styles */

.mission {
  background: var(--panel-two);
  border-block: 2px solid var(--ink);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}

.mission h2 {
  font: 850 49px/1.03 var(--sans);
  letter-spacing: -.055em;
  margin-top: 24px;
}

.building h2 {
  font: 850 43px/1.1 var(--sans);
  letter-spacing: -.05em;
}

.feature {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 3px;
}

.feature:nth-child(2) {
  background: var(--panel-one);
}

.feature:nth-child(3) {
  background: var(--panel-two);
}

.feature:nth-child(4) {
  background: var(--panel-three);
}

.feature h3 {
  font-weight: 800;
  letter-spacing: -.04em;
}

.connect {
  background: var(--accent);
  color: var(--accent-ink);
}

.connect h2 {
  font: 850 53px/1.02 var(--sans);
  letter-spacing: -.055em;
}

.connect .social {
  border: 2px solid currentColor;
  border-radius: 6px;
}

.connect .social:hover {
  background: #ffffff15;
}

.connect a:focus-visible,
.connect button:focus-visible {
  outline-color: var(--accent-ink);
}

/* Theme responsive styles */

@media (max-width: 1000px) {
  .hero {
    gap: 35px;
  }

  .hero h1 {
    font-size: 65px;
  }

  .poster {
    font-size: 39px;
  }

  .poster-two {
    font-size: 29px;
  }

  .poster-three {
    font-size: 27px;
  }

  .mission-grid {
    gap: 45px;
  }
}

@media (max-width: 680px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 40px 50px;
  }

  .hero h1 {
    font-size: clamp(45px, 10vw, 66px);
  }

  .collage-art {
    height: 420px;
    margin-inline: 15px;
  }

  .poster-one {
    height: 245px;
    font-size: 40px;
    padding: 24px;
    width: 78%;
  }

  .poster-two {
    top: 178px;
    height: 152px;
    font-size: 29px;
    padding: 22px;
  }

  .poster-three {
    height: 116px;
    bottom: 0;
    font-size: 27px;
    padding: 22px;
  }

  .poster-one span {
    font-size: 40px;
  }

  .poster-two svg {
    margin-top: 12px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .building h2 {
    font-size: 35px;
  }

  .connect h2 {
    font-size: 43px;
  }

  .feature h3 {
    font-size: 21px;
  }
}

@media (max-width: 360px) {
  .poster-one {
    font-size: 34px;
  }

  .poster-two {
    font-size: 25px;
  }

  .poster-three {
    font-size: 23px;
  }

  .hero h1 {
    font-size: 43px;
  }
}

/* Crisis banner */

.crisis-banner {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 0;
}

.crisis-banner p {
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.crisis-banner a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crisis-banner a:focus-visible {
  outline-color: var(--accent-ink);
}

@media (max-width: 680px) {
  .crisis-banner p {
    font-size: 12px;
    text-align: left;
  }
}