@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

:root {
	--orange: #F07B1A;
	--orange-deep: #C2410C;
	--green: #355E3B;
	--green-dark: #24432A;
	--ink: #1E261F;
	--muted: #5B6659;
	--paper: #FFFFFF;
	--wash: #F1F4F0;
	--rule: #DCE3DA;
	--display: 'Bricolage Grotesque', system-ui, sans-serif;
	--body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, 'Liberation Mono', monospace;
	--measure: 70ch;
	--gutter: clamp(16px, 4vw, 40px);
	color-scheme: light;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: var(--green);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--green-dark);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--green);
	outline-offset: 2px;
}

.skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 10;
	padding: 0.5rem 1rem;
	background: var(--ink);
	color: var(--paper);
}

.skip:focus {
	top: 0.5rem;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}


/* Header: an orange bar closed off by a row of zipper teeth */

.site-header {
	background: var(--orange);
}

.site-header .bar {
	max-width: 72rem;
	margin: 0 auto;
	padding: 1.1rem var(--gutter) 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
}

.wordmark {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
}

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

.site-header :focus-visible {
	outline-color: var(--ink);
}

.menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.menu a {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--ink);
	text-decoration: none;
	padding: 0.25rem 0;
	border-bottom: 3px solid transparent;
}

.menu a:hover {
	color: var(--ink);
	border-bottom-color: var(--ink);
}

.menu a[aria-current="page"] {
	border-bottom-color: var(--green);
}

.zipper {
	height: 12px;
	background:
		linear-gradient(90deg, var(--green) 50%, var(--orange) 0) 0 0 / 16px 6px repeat-x,
		linear-gradient(90deg, var(--paper) 50%, var(--green) 0) 0 6px / 16px 6px repeat-x;
}


/* Main column */

main {
	flex: 1;
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 4rem) var(--gutter) 4rem;
}

h1,
h2,
h3,
h4 {
	font-family: var(--display);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
}


/* Home page */

.intro {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.intro h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0 0 1rem;
}

.intro p {
	font-size: 1.1875rem;
	color: var(--muted);
	margin: 0;
	max-width: 40rem;
}

.package {
	display: grid;
	grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
	gap: 0.75rem 3rem;
	padding: 2rem 0;
	border-top: 2px solid var(--rule);
}

.package:last-child {
	border-bottom: 2px solid var(--rule);
}

.package h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.package h2 a {
	text-decoration: none;
}

.package h2 a:hover {
	text-decoration: underline;
}

.package-body p {
	margin: 0 0 1.25rem;
	max-width: var(--measure);
}

.button {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	background: var(--green);
	color: var(--paper);
	font-family: var(--display);
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
}

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


/* Package page */

.package-head {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 4px solid var(--orange);
}

.package-head h1 {
	margin: 0;
	font-size: clamp(1.75rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.package-head .vendor {
	display: block;
	font-size: 0.45em;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
	margin-bottom: 0.25rem;
}

.readme {
	max-width: 52rem;
}

.readme > * {
	max-width: var(--measure);
}

.readme > pre,
.readme > .table-wrap {
	max-width: none;
}

.readme h2 {
	font-size: 1.625rem;
	margin: 2.75rem 0 0.75rem;
}

.readme h3 {
	font-size: 1.25rem;
	margin: 2rem 0 0.5rem;
}

.readme h4 {
	font-size: 1.0625rem;
	margin: 1.5rem 0 0.5rem;
}

.readme > :first-child {
	margin-top: 0;
}

.readme code {
	font-family: var(--mono);
	font-size: 0.875em;
	background: var(--wash);
	padding: 0.1em 0.3em;
	border-radius: 3px;
	overflow-wrap: anywhere;
}

.readme pre {
	background: var(--wash);
	border-left: 4px solid var(--green);
	padding: 1rem 1.25rem;
	overflow-x: auto;
	line-height: 1.5;
}

.readme pre code {
	background: none;
	padding: 0;
	font-size: 0.875rem;
	overflow-wrap: normal;
}

.readme blockquote {
	margin: 1.5rem 0;
	padding: 0.75rem 1.25rem;
	border-left: 4px solid var(--orange);
	background: #FFF4EA;
}

.readme blockquote p {
	margin: 0;
}

.readme li + li {
	margin-top: 0.4rem;
}

.table-wrap {
	overflow-x: auto;
	margin: 1.25rem 0;
}

.readme table {
	border-collapse: collapse;
	font-size: 0.9375rem;
	min-width: 100%;
}

.readme th,
.readme td {
	text-align: left;
	vertical-align: top;
	padding: 0.55rem 0.9rem 0.55rem 0;
	border-bottom: 1px solid var(--rule);
}

.readme td code {
	white-space: nowrap;
	overflow-wrap: normal;
}

.readme th {
	font-family: var(--display);
	font-weight: 700;
	border-bottom: 2px solid var(--green);
}


/* Downloads, at the foot of a package page */

.downloads {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 4px solid var(--orange);
}

.downloads h2 {
	font-size: 1.625rem;
	margin: 0 0 0.75rem;
}

.downloads .table-wrap {
	max-width: 52rem;
}

.downloads table {
	border-collapse: collapse;
	font-size: 0.9375rem;
	min-width: 100%;
}

.downloads th,
.downloads td {
	text-align: left;
	vertical-align: top;
	padding: 0.55rem 1.25rem 0.55rem 0;
	border-bottom: 1px solid var(--rule);
	white-space: nowrap;
}

.downloads th {
	font-family: var(--display);
	font-weight: 700;
	border-bottom: 2px solid var(--green);
}

.downloads tbody tr:first-child td {
	font-weight: 600;
}

.downloads .size {
	color: var(--muted);
	font-weight: 400;
	margin-left: 0.35rem;
}


/* Footer */

.site-footer {
	border-top: 1px solid var(--rule);
	padding: 1.5rem 0;
	font-size: 0.9375rem;
	color: var(--muted);
}

.site-footer p {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}


@media (max-width: 720px) {
	.package {
		grid-template-columns: minmax(0, 1fr);
		padding: 1.5rem 0;
	}

	.site-header .bar {
		flex-direction: column;
		align-items: flex-start;
	}
}
