@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --cream: #fffaf2;
  --ink: #2e2a45;
  --ink-soft: #5b5670;
  --lavender: #e6defc;
  --lavender-deep: #c9bbf6;
  --peach: #ffdcc9;
  --mint: #d2f0df;
  --butter: #fff1b8;
  --pink: #ffd5e2;
  --pink-deep: #ff9fbe;
  --c-lab: #7b62d9;
  --c-out: #f08a5d;
  --c-rest: #d9d3e8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.6 Figtree, system-ui, sans-serif;
}
::selection { background: var(--butter); }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a {
  color: inherit;
  text-decoration-color: var(--pink-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-color: var(--ink); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: "Young Serif", Georgia, serif; font-size: 1.4rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.top nav a { font-weight: 600; }

/* the hero is drawn as a chip: pins top and bottom, a notch on the left, a pin-1 dot */
.chip {
  position: relative;
  margin: 2.6rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 5rem 4.5rem 5.25rem 6rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 3.4rem calc(100% - 3.4rem), var(--lavender-deep) .55rem, transparent .6rem),
    var(--lavender);
}
.chip::before, .chip::after {
  content: "";
  position: absolute;
  left: 4.5rem;
  right: 4.5rem;
  height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='18'%3E%3Crect x='15' width='14' height='28' rx='5' fill='%23c9bbf6'/%3E%3C/svg%3E") space no-repeat;
  background-size: auto 100%;
}
.chip::before { bottom: 100%; }
.chip::after { top: 100%; transform: scaleY(-1); }
.notch {
  position: absolute;
  left: -1.6rem;
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  margin-top: -1.6rem;
  border-radius: 50%;
  background: var(--cream);
}
.chip h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); max-width: 14ch; }
.chip p { font-size: 1.3rem; max-width: 31rem; margin-top: 1.5rem; text-wrap: pretty; }
.chip > img { width: 15rem; height: 15rem; }

/* problem */
.statement { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem 3.5rem; margin-bottom: 5rem; }
.statement h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.statement p { font-size: 1.15rem; }
.statement p + p { margin-top: 1rem; }

/* story rows: text beside a figure (figures generated by charts.py) */
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.5rem 3.5rem; align-items: center; margin-bottom: 5rem; }
.story h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 1.1rem; }
.story p { font-size: 1.1rem; }
.story p + p { margin-top: .9rem; }
.gap { grid-template-columns: 1.1fr 1.6fr; }
.gap .sqs { grid-template-columns: repeat(auto-fill, 7px); gap: 2px; }
.gap .sqs i { width: 7px; height: 7px; border-radius: 1.5px; }
.fig { position: relative; min-width: 0; margin: 0; padding: 1.75rem 2rem 1.6rem; background: #fff; border-radius: 1.4rem; }
.fig-title { font-weight: 650; }
.fig-sub { margin-top: .15rem; font-size: .92rem; color: var(--ink-soft); }
.fig .cite { margin-top: .6rem; font-size: .82rem; color: var(--ink-soft); }
.cite a { text-decoration-thickness: 1px; }
.units { display: grid; gap: 1.1rem; margin-top: 1.3rem; }
.ul { font-size: .95rem; margin-bottom: .35rem; }
.ul b { font-weight: 700; }
.sqs { display: grid; grid-template-columns: repeat(auto-fill, 9px); gap: 3px; }
.sqs i { width: 9px; height: 9px; border-radius: 2px; background: var(--c-lab); }
.sqs.out i { background: var(--c-out); }
.sqs.out i.u { background: #fbd3c1; }
.sqs.lab i { background: var(--c-lab); }
.legend { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .35rem; font-size: .9rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: flex-start; gap: .4rem; }
.sw { display: inline-block; flex: none; width: 12px; height: 12px; margin-top: .32em; border-radius: 3px; }
.chart { display: block; width: 100%; height: auto; margin-top: .8rem; overflow: visible; }
.chart text { font-family: Figtree, system-ui, sans-serif; }
.chart .t-tick { font-size: 11px; fill: var(--ink-soft); }
.chart .t-lab { font-size: 12px; fill: var(--ink); }
.chart-m { display: none; }
/* "Compare with all AI chips": a checkbox and label, no script; the world version is pre-drawn */
.toggle-in { position: absolute; opacity: 0; pointer-events: none; }
.ch { position: relative; }
.ch-world, .toggle-in:checked ~ .ch .ch-base { display: none; }
.toggle-in:checked ~ .ch .ch-world { display: block; }
.toggle { position: absolute; right: 0; bottom: 2.1rem; padding: .12rem .6rem; border: 1.5px solid var(--lavender-deep); border-radius: 999px; background: #fff; font-size: .75rem; font-weight: 600; cursor: pointer; user-select: none; }
.toggle::before { content: "+ "; }
.toggle:hover, .toggle-in:checked ~ .ch .toggle { background: var(--lavender); }
.toggle-in:checked ~ .ch .toggle::before { content: "− "; }
.toggle-in:focus-visible ~ .ch .toggle { outline: 2px solid var(--ink); outline-offset: 2px; }
.chart-m .t-lab { font-size: 13px; }
.chart-m .t-tick { font-size: 11.5px; }

/* geodesic */
.case { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem 4rem; margin: 0 0 5rem; padding: 2.5rem 2.75rem; border-radius: 1.75rem; background: var(--mint); }
.case h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.case h2 + p { margin-top: .9rem; }
.case p { color: var(--ink-soft); }
.case p + p { margin-top: .7rem; }
.case b { font-weight: 600; color: var(--ink); white-space: nowrap; }
/* their recommendation, verbatim from the post */
.case .more { margin: 0; }
.more blockquote { position: relative; margin: 0; padding-top: 2.1rem; font-family: "Young Serif", Georgia, serif; font-size: 1.12rem; line-height: 1.4; }
.more blockquote::before { content: "“"; position: absolute; top: -.35rem; left: -.15rem; font-size: 4.2rem; line-height: 1; color: #5fbf8f; }
.more blockquote::after { content: "”"; }
.more figcaption { margin-top: .8rem; font-size: .92rem; color: var(--ink-soft); }
.more a { color: #24704b; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }

/* why now: three cards in a row, each with its text and chart; subgrid lines up the
   headings, the text and the charts across the three */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 1.6rem 1.5rem 1.3rem; border-radius: 1.4rem; background: #fff; }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card > p { font-size: 1rem; }
.card .fig { padding: 1.2rem 0 0; margin-top: 1.2rem; border-top: 1px solid #efe7da; border-radius: 0; }
.card .fig-title { font-size: .95rem; }
@media (min-width: 60.01rem) {
  .card .chart-d { display: none; }
  .card .chart-m { display: block; }
}
@media (max-width: 60rem) {
  .cards { grid-template-columns: 1fr; }
}
/* tablets: one card per row, text beside the chart inside it */
@media (min-width: 48.01rem) and (max-width: 60rem) {
  .card { grid-row: auto; grid-template-columns: 1fr 1.3fr; grid-template-rows: auto 1fr; column-gap: 2rem; }
  .card h3 { grid-column: 1; }
  .card > p { grid-column: 1; }
  .card .fig { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; }
}

/* what we do */
.why, .how { margin-bottom: 5rem; }
.why h2, .how h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin-bottom: 1.6rem; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2.5rem; }
.points h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.points p { color: var(--ink-soft); }
.steps { counter-reset: step; gap: 1.25rem; }
.steps > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; row-gap: 0; counter-increment: step; padding: 1.6rem 1.75rem 1.8rem; border-radius: 1.4rem; background: var(--lavender); }
.steps > div::before { content: counter(step); display: grid; justify-self: start; place-items: center; width: 2rem; height: 2rem; margin-bottom: .9rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 700; font-size: .95rem; }
.steps p { color: var(--ink); }

/* who we work with */
.who h2 { font-size: 1.9rem; margin-bottom: 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile { border-radius: 1.4rem; padding: 1.75rem 1.75rem 2rem; }
.tile h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.peach { background: var(--peach); }
.mint { background: var(--mint); }
.butter { background: var(--butter); }

/* contact */
.contact {
  margin: 5rem 0 2.5rem;
  padding: 3.75rem 2rem 4rem;
  text-align: center;
  border-radius: 1.75rem;
  background: var(--pink);
}
.contact h2 { font-size: 2.2rem; margin-bottom: .8rem; }
.contact p { font-size: 1.15rem; max-width: 30rem; margin: 0 auto 1.4rem; text-wrap: pretty; }
.email { overflow-wrap: anywhere; font-family: "Young Serif", Georgia, serif; font-size: clamp(1.3rem, 3vw, 1.9rem); text-decoration-color: var(--ink); text-decoration-thickness: 2px; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0 3rem; color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 48rem) {
  body { font-size: 17px; }
  .brand { font-size: 1.1rem; gap: .55rem; }
  .brand img { width: 36px; height: 36px; }
  .top nav a { white-space: nowrap; font-size: .95rem; }
  .chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-top: 2rem; padding: 3.5rem 1.75rem 3.75rem 2.75rem; background:
    radial-gradient(circle at 1.6rem calc(100% - 1.6rem), var(--lavender-deep) .4rem, transparent .45rem),
    var(--lavender); }
  .chip::before, .chip::after { left: 2.25rem; right: 2.25rem; height: .95rem; }
  .notch { left: -1.2rem; width: 2.4rem; height: 2.4rem; margin-top: -1.2rem; }
  .chip p { font-size: 1.15rem; }
  .chip > img { order: -1; width: 5.5rem; height: 5.5rem; }
  .statement, .tiles, .story, .points { grid-template-columns: 1fr; }
  .fig { padding: 1.4rem 1.25rem 1.3rem; }
  .sqs { grid-template-columns: repeat(auto-fill, 7px); gap: 2px; }
  .sqs i { width: 7px; height: 7px; }
  .chart .t-lab { font-size: 16px; }
  .chart .t-tick { font-size: 14px; }
  .chart-d { display: none; }
  .chart-m { display: block; }
  .chart.chart-m .t-lab { font-size: 13.5px; }
  .chart.chart-m .t-tick { font-size: 12px; }
  .card { display: block; }
  .case { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
        .doc th, .doc td { padding-right: .6rem; }
  .doc tbody th, .doc tfoot th { min-width: 10rem; }
  .doc td.l { min-width: 12rem; }
  .contact { padding: 2.75rem 1.25rem 3rem; }
  .email { font-size: 1.05rem; }
  footer { flex-direction: column; gap: .25rem; }
}

/* links to the sources page */
.cite a.go, .all-sources a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.cite a.go:hover, .all-sources a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.all-sources { margin-top: 2rem; }
footer a { color: inherit; }

/* sources page */
.doc { max-width: 47rem; margin: 1.5rem 0 4rem; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: .9rem; }
.doc .lede { font-size: 1.12rem; color: var(--ink-soft); }
.doc section { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid #efe7da; }
.doc h2 { font-size: 1.65rem; margin-bottom: .9rem; }
.doc p + p, .doc p + ul, .doc ul + p, .doc .scroll + p, .doc p + .scroll { margin-top: .9rem; }
.doc ul { margin: .9rem 0 0; padding-left: 1.2rem; }
.doc li + li { margin-top: .45rem; }
.doc a { text-decoration-thickness: 1.5px; }
.doc .scroll { overflow-x: auto; }
.doc .tables { display: flex; flex-wrap: wrap; gap: 0 3rem; }
.doc table { border-collapse: collapse; margin: .9rem 0 .4rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.doc th, .doc td { text-align: right; padding: .35rem 1.1rem .35rem 0; border-bottom: 1px solid #efe7da; }
.doc th:first-child, .doc .l { text-align: left; }
.doc td:not(.l), .doc thead th { white-space: nowrap; }
.doc td.l { min-width: 14rem; }
.doc tbody th { font-weight: 400; }
.doc tfoot th, .doc tfoot td { font-weight: 700; border-bottom: 0; }
.doc .note { font-size: .95rem; color: var(--ink-soft); }
