/* jones.science. One page, no build step. Colors and type are the tokens below. */
:root {
	--paper: #f3f2ec;
	--paper-2: #e6e4db;
	--paper-3: #fbfaf6;
	--rule: #d9d7ce;
	--ink: #15161a;
	--ink-2: #45474e;
	--ink-3: #55575e;
	--ink-4: #6b6d73;
	--accent: #0b6e4f;
	--night: #15161a;
	--night-2: #0d0e10;
	--night-chip: #2a2c31;
	--night-rule: #2e3036;
	--night-text: #e9e8e2;
	--night-muted: #b8b8b1;
	--night-dim: #a3a39c;
	--night-accent: #6fd9ae;
	--waiting: #f2b45a;
	--display: "Space Grotesk", system-ui, sans-serif;
	--body: "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--ink);
}

a:hover {
	color: var(--accent);
}

code {
	font-family: var(--mono);
	font-size: 0.875em;
}

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

h2 {
	margin-top: 14px;
	font-weight: 700;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	max-width: 820px;
}

h3 {
	font-weight: 500;
	font-size: 21px;
}

p {
	margin: 0;
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 16px;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--paper);
	z-index: 10;
}

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.eyebrow,
.label {
	font-family: var(--mono);
	font-size: 14px;
	color: var(--accent);
	letter-spacing: 0.02em;
}

.label {
	font-size: 13px;
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
}

.button-accent {
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}

.button-accent:hover {
	color: #fff;
	filter: brightness(1.1);
}

.button-outline {
	border: 1px solid var(--ink);
	color: var(--ink);
}

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

.button-dark:hover {
	color: var(--paper);
}

.button-small {
	min-height: 44px;
	padding: 0 16px;
}

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

/* Nav */
.nav-bar {
	border-bottom: 1px solid var(--rule);
}

.nav {
	padding-top: 18px;
	padding-bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.brand-mark {
	display: inline-flex;
	width: 30px;
	height: 30px;
	border-radius: 7px;
	background: var(--ink);
	color: var(--paper);
	align-items: center;
	justify-content: center;
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 500;
}

.brand-mark-small {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	font-size: 12px;
}

.brand-name {
	font-family: var(--display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.01em;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	font-size: 15px;
}

.nav-links a:not(.button) {
	text-decoration: none;
	padding: 10px 0;
}

/* Hero */
.hero {
	background-image: linear-gradient(var(--paper-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
	background-size: 32px 32px;
	border-bottom: 1px solid var(--rule);
}

.hero-grid {
	padding-top: 88px;
	padding-bottom: 96px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
}

.hero-copy {
	flex: 1 1 480px;
	min-width: 0;
}

.hero-copy .eyebrow {
	margin-bottom: 20px;
}

h1 {
	font-weight: 700;
	font-size: clamp(42px, 6vw, 74px);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.lede {
	margin-top: 28px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 560px;
}

/* The example change */
.change-card {
	flex: 1 1 440px;
	min-width: 0;
	max-width: 560px;
	margin: 0;
	background: var(--night);
	color: var(--night-text);
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 30px 60px -30px rgba(21, 22, 26, 0.45);
	font-size: 15px;
}

.change-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--night-dim);
}

.change-title {
	margin-top: 14px;
	font-family: var(--display);
	font-weight: 500;
	font-size: 23px;
	line-height: 1.25;
	color: #fff;
}

.chips {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--mono);
	font-size: 12px;
}

.chips li {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--night-chip);
}

.timeline {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.timeline li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.timeline svg {
	flex: none;
	margin-top: 3px;
}

.timeline strong {
	font-weight: 600;
	color: #fff;
}

.timeline code {
	color: var(--night-dim);
}

.tick {
	color: var(--night-accent);
}

.pending {
	color: var(--waiting);
}

.decide {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--night-rule);
}

.decide-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	border: 1px solid #4a4c52;
	font-weight: 500;
}

.decide-approve {
	border-color: var(--night-accent);
	background: var(--night-accent);
	color: #10231b;
	font-weight: 600;
}

/* Proof strip */
.proof {
	border-bottom: 1px solid var(--rule);
}

.proof-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.proof-item {
	padding: 36px 32px 36px 0;
}

.proof-title {
	margin-top: 10px;
	font-family: var(--display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.25;
}

.proof-body {
	margin-top: 10px;
	color: var(--ink-3);
	font-size: 16px;
}

/* Sections */
.section {
	padding: 104px 0 96px;
}

.section-rule {
	border-bottom: 1px solid var(--rule);
}

.section-tint {
	background: var(--paper-2);
}

.section-lede {
	margin-top: 20px;
	font-size: 19px;
	color: var(--ink-2);
	max-width: 720px;
}

.section-dark {
	background: var(--night);
	color: var(--night-text);
}

.section-dark .eyebrow {
	color: var(--night-accent);
}

.section-dark h2,
.section-dark h3 {
	color: #fff;
}

/* How a change lands */
.steps {
	list-style: none;
	margin: 56px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	border-radius: 12px;
	overflow: hidden;
}

.steps li {
	background: var(--paper);
	padding: 32px;
}

.steps h3 {
	margin-top: 8px;
	font-weight: 700;
	font-size: 24px;
}

.steps li > p:last-child {
	margin-top: 10px;
	color: var(--ink-2);
}

.steps code {
	background: var(--paper-2);
	padding: 1px 5px;
	border-radius: 4px;
}

.step-number {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-4);
}

/* Two columns that stack on a phone */
.split {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
}

.split-text {
	flex: 1 1 420px;
	min-width: 0;
}

.split-code {
	flex: 1 1 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.split-code .actions {
	margin-top: 0;
}

.features {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 40px;
}

.features p {
	margin-top: 8px;
	color: var(--night-muted);
}

.note {
	font-size: 14px;
	color: var(--night-dim);
}

/* Code blocks */
.code {
	margin: 0;
	border-radius: 12px;
	padding: 24px;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.7;
}

.code-dark {
	background: var(--night-2);
	border: 1px solid var(--night-rule);
	color: var(--night-text);
}

.code-light {
	flex: 1 1 400px;
	min-width: 0;
	background: var(--paper-3);
	border: 1px solid var(--rule);
	color: var(--ink);
}

.code-wide {
	margin-top: 56px;
	background: var(--night);
}

.code .prompt,
.code-dark .comment {
	color: #8a8b85;
}

.code-light .comment {
	color: var(--ink-4);
}

.code .hl {
	color: var(--night-accent);
}

/* Policy */
.policy {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 56px;
	align-items: flex-start;
}

.classes {
	flex: 1 1 460px;
	min-width: 0;
	margin: 0;
}

.class-row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 16px;
	padding: 22px 0;
	border-top: 1px solid var(--rule);
}

.class-row:last-child {
	border-bottom: 1px solid var(--rule);
}

.class-row dt {
	font-family: var(--mono);
	font-weight: 500;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.class-row dd {
	margin: 0;
	color: var(--ink-2);
}

.swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex: none;
}

.swatch-patch {
	background: #cfccc0;
}

.swatch-standard {
	background: #8e8c82;
}

.swatch-significant {
	background: #4d4c46;
}

.swatch-restricted {
	background: var(--ink);
}

/* Agents and people */
.grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 40px 48px;
	margin-top: 56px;
}

.grid-4 p {
	margin-top: 8px;
	color: var(--ink-2);
}

/* Built on Cloudflare */
.platform {
	margin: 56px 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	border-radius: 12px;
	overflow: hidden;
}

.platform div {
	background: var(--paper);
	padding: 24px;
}

.platform dt {
	font-family: var(--mono);
	font-weight: 500;
}

.platform dd {
	margin: 6px 0 0;
	color: var(--ink-3);
	font-size: 15px;
}

/* Self-host */
.points {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	color: var(--ink-2);
}

.points strong {
	font-weight: 600;
	color: var(--ink);
}

/* Footer */
.footer {
	border-top: 1px solid var(--rule);
}

.footer-row {
	padding-top: 36px;
	padding-bottom: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	color: var(--ink-3);
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

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