/* The app's design tokens (app/globals.css in the circles repo), so the two
   read as one thing: ink on white, Helvetica and Georgia, hairline rules,
   square corners. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #6b6b6b;
  --faint: #e4e4e4;
  --flame: #e1530b;

  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --text-hero: clamp(40px, 11vw, 64px);
  --text-lg: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-eyebrow: 12px;

  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* top bar, like the app's: the name on the left, the action on the right */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  /* no shadow: solid white behind the title, fading to transparent below it,
     so the page scrolls up under the bar's lower edge */
  background: linear-gradient(to bottom, var(--paper) 55%, rgba(255, 255, 255, 0.8) 80%, rgba(255, 255, 255, 0));
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bar-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.bar-link:hover {
  border-bottom-color: var(--ink);
}

.eyebrow {
  margin: 0;
  color: var(--soft);
  font-family: var(--sans);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  max-width: 720px;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}

.hero h1 {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.lede {
  margin: 18px 0 0;
  max-width: 600px;
  color: #222;
  font-size: var(--text-lg);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* the app's Button: filled ink that inverts while pressed, or outlined */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover,
.button-primary:active {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:active {
  background: var(--ink);
  color: var(--paper);
}

.note {
  margin: 16px 0 0;
  color: var(--soft);
  font-size: var(--text-sm);
}

.section {
  margin-top: 88px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.statement {
  margin: 14px 0 0;
  max-width: 820px;
  font-size: clamp(24px, 4.5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.statement strong {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.aims {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: aim;
}

.aims li {
  counter-increment: aim;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: center;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--faint);
}

.aims li::before {
  content: counter(aim);
  color: var(--soft);
  font-family: var(--sans);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.aims h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aims p {
  grid-column: 2;
  margin: 6px 0 0;
  color: #222;
}

.section-lede {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: var(--text-lg);
}

.statement + .grid,
.statement + .about {
  margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
  margin-top: 14px;
}

.item {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--faint);
}

.icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.item h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.item p {
  margin: 6px 0 0;
  color: #222;
}

.about {
  max-width: 640px;
  margin-top: 14px;
}

.about p {
  margin: 0 0 14px;
  font-size: var(--text-lg);
}

.footer {
  margin-top: 96px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--soft);
  font-family: var(--sans);
  font-size: var(--text-sm);
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* nested circles diagram: the text beside the figure, stacked on narrow screens */
.nested {
  display: grid;
  gap: 32px;
  margin-top: 14px;
}

.nested .statement {
  margin-top: 0;
}

.nested .section-lede {
  margin-top: 18px;
}

.nested-figure {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

/* alternating tints so each circle reads as sitting inside the one around it */
.ring {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.ring-outer {
  fill: #f4f4f4;
}

.ring-inner {
  fill: var(--paper);
}

.label {
  fill: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-anchor: middle;
  dominant-baseline: middle;
}

.label-lg {
  font-size: 15px;
}

.label-sm {
  font-size: 11px;
}

@media (min-width: 800px) {
  .nested {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }
}

/* a heads-up in the app's governance orange: a rule and a tint, with ink text */
.callout {
  max-width: 720px;
  margin-top: 48px;
  padding: 18px 20px 20px;
  border-left: 4px solid var(--flame);
  background: rgba(225, 83, 11, 0.07);
}

.callout h2 {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.callout p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #222;
}
