/* InfraBloom's site. No scripts: every transition here is CSS, and each one stands down for
   reduced motion. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111214;
  --paper: #f4f4f2;
  --white: #ffffff;
  --slate: #6b6e76;
  --offwhite: #f5f5f4;
  --violet: #4f2db5;
  --line: rgba(17, 18, 20, 0.14);
  --line-dark: rgba(245, 245, 244, 0.18);
  --dim-dark: rgba(245, 245, 244, 0.68);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  /* The typefaces: Host Grotesk for the pages; Geist and Geist Mono for the small illustrations. */
  --display: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 32px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  letter-spacing: -0.006em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap.narrow {
  max-width: 800px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--offwhite);
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
}

/* Header */

header.site .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}

.brand {
  justify-self: start;
  font: 600 23px/1 var(--display);
  letter-spacing: -0.028em;
  text-decoration: none;
  view-transition-name: brand;
}

nav.primary {
  display: flex;
  gap: 26px;
}

nav.primary a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  background-size: 100% 1.5px;
}

header.site .pill {
  justify-self: end;
  view-transition-name: talk;
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--offwhite);
  font: 600 14px/1.2 var(--text);
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.pill:hover {
  opacity: 0.82;
}

.pill:active {
  transform: scale(0.98);
}

/* The one violet element on a screen: its primary action. */
.pill.primary {
  padding: 16px 28px;
  background: var(--violet);
  font-size: 16px;
}

.pill.light {
  background: var(--offwhite);
  color: var(--ink);
}

/* Eyebrows: a square, then the label */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font: 600 13px/1 var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: currentColor;
}

.center {
  text-align: center;
}

.center .eyebrow {
  justify-content: center;
}

/* A square full stop */

.stop {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.05em;
  overflow: hidden;
  background: currentColor;
  text-indent: -9em;
}

/* Hero */

.hero {
  padding: 112px 0 72px;
}

.hero h1 {
  max-width: 12.5em;
  font-size: clamp(2.9rem, 8.6vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.032em;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
  margin-top: 104px;
}

.lead {
  max-width: 27em;
  margin: 0;
  font: 600 clamp(1.15rem, 1.75vw, 1.45rem)/1.18 var(--display);
  letter-spacing: -0.019em;
}

/* Bands */

section.band {
  padding: 120px 0;
}

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

.statement {
  max-width: 17em;
  margin: 0 auto;
  font-size: clamp(1.9rem, 4.3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.028em;
}

.sub {
  max-width: 34em;
  margin: 22px auto 0;
  color: var(--slate);
  font-size: 18px;
}

h2.title {
  max-width: 13em;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.028em;
}

/* The cycle: four dark cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: 18px 20px 22px;
  background: var(--ink);
  color: var(--offwhite);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--offwhite);
  opacity: 0.28;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 18px;
}

.card-head h3,
.card-head .idx {
  font: 600 clamp(1.45rem, 2.3vw, 1.95rem)/1 var(--display);
  letter-spacing: -0.025em;
}

.card-head h3 {
  max-width: 11em;
}

.mock {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 36px 4px 30px;
}

.card-note {
  max-width: 30em;
  margin: 0;
  color: var(--dim-dark);
  font-size: 15px;
}

.caption {
  margin: 18px 0 0;
  color: var(--slate);
  font-size: 14px;
}

/* The small illustrations inside the cards */

.sheet {
  width: min(100%, 430px);
  font-family: var(--ui);
  padding: 16px 18px 8px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  font-weight: 600;
}

.sheet-head span {
  color: var(--slate);
  font-weight: 400;
  font-size: 12.5px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.row .what {
  display: block;
  font-weight: 500;
}

.row .src {
  display: block;
  color: var(--slate);
  font-size: 12.5px;
}

.id,
.kind {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0;
  color: var(--slate);
}

.id {
  display: block;
  margin-bottom: 5px;
}

.nb {
  white-space: nowrap;
}

.state {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.state.done {
  border-color: var(--ink);
}

.state.no {
  color: var(--slate);
}

/* The proposed change awaiting approval: the one violet element in view. */
.state.act {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--offwhite);
}

.proof {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.proof::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--ink);
}

/* What you get: a heading beside four rows */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 72px;
  align-items: start;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.rows li {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.rows h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}

.rows p {
  max-width: 34em;
  margin: 10px 0 0;
  color: var(--slate);
}

/* Who it serves */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 64px;
}

.trio > div {
  padding: 24px 0 8px;
  border-top: 1px solid var(--ink);
}

.trio h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.022em;
}

.trio p {
  margin: 10px 0 0;
  color: var(--slate);
}

/* The dark band */

section.dark {
  padding: 112px 0 120px;
  background: var(--ink);
  color: var(--offwhite);
}

.quote {
  max-width: 21em;
  font-size: clamp(1.6rem, 3.3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.assure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 72px 0 44px;
  padding: 0;
  list-style: none;
}

.assure li {
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

/* Questions */

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 600 clamp(1.15rem, 1.7vw, 1.4rem)/1.15 var(--display);
  letter-spacing: -0.019em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font: 400 26px/1 var(--mono);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 36em;
  margin: 0 0 26px;
  color: var(--slate);
}

/* Closing */

.closing {
  padding: 136px 0 128px;
  border-top: 1px solid var(--line);
}

.closing h2 {
  font-size: clamp(2.9rem, 8.6vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.032em;
}

.closing .hero-foot {
  margin-top: 72px;
}

/* Legal pages */

.legal {
  padding: 88px 0 112px;
}

.legal h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.031em;
}

.legal .program {
  margin: 0 0 18px;
}

.legal .meta {
  margin: 22px 0 0;
  color: var(--slate);
  font-size: 15px;
}

.legal .intro {
  margin: 36px 0 0;
  font: 600 clamp(1.15rem, 1.75vw, 1.4rem)/1.2 var(--display);
  letter-spacing: -0.019em;
}

.inshort {
  margin: 40px 0 0;
  padding: 24px 26px;
  border-radius: 14px;
  background: var(--white);
}

.inshort h2 {
  margin: 0 0 12px;
  font: 600 13px/1 var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inshort ul {
  margin: 0;
  padding-left: 20px;
}

.toc {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
  font-size: 16px;
  font-weight: 500;
}

.toc li {
  padding: 4px 0;
  break-inside: avoid;
}

.legal section > h2 {
  margin: 64px 0 14px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.022em;
  scroll-margin-top: 24px;
}

.legal h3 {
  margin: 30px 0 6px;
  font-size: 18px;
  letter-spacing: -0.012em;
}

.legal section p,
.legal section li,
.terms-list p {
  color: #3a3c42;
}

.legal p strong,
.legal li strong {
  color: var(--ink);
  font-weight: 600;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.terms-list {
  margin: 48px 0 0;
  border-top: 1px solid var(--ink);
}

.terms-list p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.credit {
  margin-top: 56px;
  color: var(--slate);
  font-size: 14px;
}

/* Footer */

footer.site {
  padding: 56px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

footer.site .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px 40px;
}

footer.site strong {
  display: block;
  font: 600 23px/1 var(--display);
  letter-spacing: -0.028em;
}

footer.site .tag {
  display: block;
  margin-top: 10px;
  color: var(--slate);
}

footer.site h2 {
  margin: 0 0 12px;
  font: 600 13px/1 var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer.site ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.site li {
  padding: 3px 0;
}

footer.site a {
  text-decoration: none;
  font-weight: 500;
}

footer.site a:hover {
  text-decoration: underline;
}

.legalline {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}

/* Motion: quiet fades, each one optional */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .pill,
  .legal h1,
  .legal .meta,
  .legal .intro {
    animation: rise 0.8s var(--ease-out) both;
  }

  .hero .lead,
  .legal .meta {
    animation-delay: 0.12s;
  }

  .hero .pill,
  .legal .intro {
    animation-delay: 0.22s;
  }

  .hero .stop {
    animation: blink 1.1s steps(1) 0.9s 5;
  }

  .state.wait::before {
    animation: pulse 2s var(--ease-out) infinite;
  }

  .menu:target .menu-links a {
    animation: rise 0.5s var(--ease-out) both;
  }

  .menu:target .menu-links a:nth-child(2) {
    animation-delay: 0.05s;
  }

  .menu:target .menu-links a:nth-child(3) {
    animation-delay: 0.1s;
  }

  .menu:target .menu-links a:nth-child(4) {
    animation-delay: 0.15s;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }

  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }

    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 0.3s var(--ease-out), opacity 0.3s var(--ease-out),
        content-visibility 0.3s allow-discrete;
    }

    .faq details[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }
}

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

.state.wait {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slate);
}

.state.wait::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--slate);
}

/* The phone menu: a full-screen sheet, opened and closed by the page's own address, with no
   script. */

.menu-open,
.menu {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  header.site .wrap {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  header.site .pill {
    display: none;
  }

  .menu-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    justify-self: end;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0 8px;
  }

  .menu-open span {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  .menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) 28px;
    overflow-y: auto;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }

  .menu:target {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s var(--ease-out), visibility 0s;
  }

  html:has(.menu:target) {
    overflow: hidden;
  }

  .menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
  }

  .menu-brand {
    font: 600 23px/1 var(--display);
    letter-spacing: -0.028em;
    text-decoration: none;
  }

  .menu-close {
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -8px;
  }

  .menu-close::before,
  .menu-close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 9px;
    width: 26px;
    height: 2px;
    background: var(--ink);
  }

  .menu-close::before {
    transform: rotate(45deg);
  }

  .menu-close::after {
    transform: rotate(-45deg);
  }

  .menu-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
  }

  .menu-links a {
    font: 600 clamp(2.2rem, 11vw, 3.2rem)/1.08 var(--display);
    letter-spacing: -0.03em;
    text-decoration: none;
  }

  .menu-links a[aria-current="page"] {
    color: var(--slate);
  }

  .menu .pill {
    justify-content: center;
    margin-top: auto;
    padding: 18px 28px;
    font-size: 17px;
  }

  nav.primary {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-foot {
    margin-top: 56px;
  }

  section.band {
    padding: 80px 0;
  }

  section.dark {
    padding: 80px 0 88px;
  }

  .cards {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .card {
    min-height: 0;
  }

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

  .trio,
  .assure {
    grid-template-columns: 1fr;
  }

  .trio {
    margin-top: 40px;
  }

  .trio > div {
    padding-bottom: 28px;
  }

  .assure {
    margin: 48px 0 36px;
  }

  .assure li {
    padding: 18px 0;
  }

  .closing {
    padding: 88px 0 80px;
  }

  .closing .hero-foot {
    margin-top: 48px;
  }

  .legal {
    padding: 56px 0 80px;
  }

  .toc {
    columns: 1;
  }

  footer.site .wrap {
    grid-template-columns: 1fr 1fr;
  }

  footer.site .wrap > div:first-child {
    grid-column: 1 / -1;
  }
}

@media print {
  header.site nav,
  header.site .pill,
  .menu,
  .menu-open {
    display: none;
  }
}
