@font-face {
	font-family: "IM Fell English";
	src: url("/fonts/im-fell-english.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "IM Fell English";
	font-style: italic;
	src: url("/fonts/im-fell-english-italic.woff2") format("woff2");
	font-display: swap;
}

/* Highland mist, estate green, a little tip gold. */
:root {
	--mist: #e3eae7;
	--mist-deep: #d3ddd8;
	--paper: #f8faf8;
	--estate: #1f4a37;
	--estate-deep: #163528;
	--ink: #18221e;
	--body: #2c3a34;
	--muted: #56655e;
	--line: #c3d0ca;
	--tip: #8f681b;
	--ok: #2c6e48;
	--bad: #9e3626;
	--wait: #7a5f12;
	--serif: "IM Fell English", "Iowan Old Style", Georgia, serif;
	--sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gutter: clamp(16px, 4vw, 40px);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font: 16px / 1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a {
	color: var(--estate);
	text-underline-offset: 3px;
}
:focus-visible {
	outline: 2px solid var(--estate);
	outline-offset: 3px;
}

.sandbox-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	justify-content: space-between;
	align-items: center;
	padding: 9px var(--gutter);
	background: var(--estate-deep);
	color: #dbe5e0;
	font-size: 13px;
}
.sandbox-strip p {
	margin: 0;
}
.sandbox-strip nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}
.sandbox-strip a {
	color: #fff;
}

.masthead {
	max-width: 1180px;
	margin: 0 auto;
	padding: 28px var(--gutter) 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
}
.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 32px / 1 var(--serif);
	color: var(--estate);
	text-decoration: none;
}
.wordmark svg {
	width: 24px;
	height: 24px;
	transform: rotate(-18deg);
}
.masthead-note {
	margin: 0;
	font: italic 17px / 1.3 var(--serif);
	color: var(--muted);
}

main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px var(--gutter) 72px;
}

/* Product */
.product {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
}
.product-art {
	position: sticky;
	top: 24px;
	aspect-ratio: 520 / 600;
	overflow: hidden;
	border-radius: 6px;
	background: var(--mist-deep);
}
.product-art svg {
	display: block;
	width: 100%;
	height: 100%;
}
.origin {
	margin: 8px 0 0;
	font: italic 19px / 1.3 var(--serif);
	color: var(--tip);
}
.display {
	margin: 2px 0 18px;
	font: 400 clamp(60px, 8.5vw, 104px) / 0.92 var(--serif);
	letter-spacing: -0.015em;
	color: var(--estate);
}
.blurb {
	max-width: 34em;
	margin: 0 0 28px;
	font-size: 17px;
	color: var(--body);
}

.sizes {
	display: grid;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}
.sizes legend {
	padding: 0;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}
.size {
	display: grid;
	grid-template-columns: auto 1fr auto;
	column-gap: 14px;
	align-items: center;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	cursor: pointer;
}
.size input {
	grid-row: 1 / span 2;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--estate);
}
.size-name {
	font-weight: 600;
}
.size-meta {
	grid-column: 2;
	font-size: 14px;
	color: var(--muted);
}
.size-price {
	grid-row: 1 / span 2;
	grid-column: 3;
	font: 23px / 1 var(--serif);
}
.size:has(input:checked) {
	border-color: var(--estate);
	box-shadow: inset 0 0 0 1px var(--estate);
}

.buy-row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
}
.qty {
	display: grid;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
}
select,
input[type="text"],
input[type="email"],
input[type="tel"] {
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-weight: 400;
}
.total {
	margin: 0;
	text-align: right;
}
.total span {
	display: block;
	font-size: 14px;
	color: var(--muted);
}
.total output {
	font: 36px / 1.1 var(--serif);
}

.buy {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 6px;
	background: var(--estate);
	color: #fff;
	font: 600 17px / 1 var(--sans);
	cursor: pointer;
}
.buy:hover {
	background: var(--estate-deep);
}
.link-button {
	display: block;
	margin: 14px auto 0;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--estate);
	font: inherit;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.buy:disabled,
.link-button:disabled {
	opacity: 0.6;
	cursor: progress;
}
.fineprint {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

.banner {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 15px;
}
.banner.error {
	background: #f6e3df;
	color: var(--bad);
}
.banner.notice {
	border: 1px solid var(--line);
	background: var(--paper);
}

/* Tester tools: plain and set apart from the shop by a dashed frame. */
.bench {
	margin-top: 56px;
	padding: clamp(18px, 3vw, 28px);
	border: 1.5px dashed #9db1a8;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
}
.bench.compact {
	margin-top: 0;
}
.bench h2 {
	margin: 0;
	font: 600 18px / 1.3 var(--sans);
}
.bench > p {
	margin: 4px 0 20px;
	color: var(--muted);
}
.bench h3 {
	margin: 26px 0 8px;
	font: 600 15px / 1.3 var(--sans);
}
.bench h3 + p {
	margin-top: 0;
}
.bench-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px 32px;
}
.bench fieldset {
	display: grid;
	align-content: start;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.bench legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 14px;
	font-weight: 600;
}
.check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.check input {
	margin: 4px 0 0;
	accent-color: var(--estate);
}
.field {
	display: grid;
	gap: 5px;
}
.field > span:first-child {
	font-size: 14px;
}
.hint {
	display: block;
	font-size: 13px;
	color: var(--muted);
}
.customer-fields {
	display: grid;
	gap: 8px;
}
.customer-fields input:disabled {
	opacity: 0.45;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
th,
td {
	padding: 9px 10px;
	border-bottom: 1px solid #e3e9e6;
	text-align: left;
	vertical-align: top;
}
th {
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}
.num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.copy {
	margin-left: 8px;
	padding: 2px 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}
.table-wrap {
	overflow-x: auto;
}
.panel {
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
}
code {
	padding: 1px 5px;
	border-radius: 4px;
	background: #eef3f0;
	font:
		13px / 1.4 ui-monospace,
		SFMono-Regular,
		Menlo,
		monospace;
	overflow-wrap: anywhere;
}

.status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8eeeb;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}
.status.succeeded {
	background: #dcefe3;
	color: var(--ok);
}
.status.failed,
.status.canceled,
.status.expired {
	background: #f5e2de;
	color: var(--bad);
}
.status.processing,
.status.requires_payment,
.status.requires_approval,
.status.pending {
	background: #f3ecd6;
	color: var(--wait);
}
.status.refunded,
.status.partially_refunded {
	background: #e3e7f2;
	color: #34477a;
}

/* Order */
.order {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.order-head h1 {
	margin: 8px 0 12px;
	font: 400 clamp(40px, 5.4vw, 62px) / 1 var(--serif);
	color: var(--estate);
}
.order-lede {
	max-width: 32em;
	margin: 0 0 24px;
	font-size: 17px;
	color: var(--body);
}
.slip {
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
}
.slip dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 24px;
	margin: 0;
}
.slip dt {
	color: var(--muted);
	font-size: 14px;
}
.slip dd {
	margin: 0;
	text-align: right;
	overflow-wrap: anywhere;
}
.slip .amount {
	font: 30px / 1.1 var(--serif);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: var(--estate);
	color: #fff;
	font: 600 15px / 1 var(--sans);
	text-decoration: none;
	cursor: pointer;
}
.button.secondary {
	background: transparent;
	color: var(--estate);
	box-shadow: inset 0 0 0 1px var(--estate);
}
.bench form {
	margin-top: 16px;
}
dl.kv {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 0;
}
dl.kv dt {
	color: var(--muted);
}
dl.kv dd {
	margin: 0;
	min-width: 0;
}

.page-title {
	margin: 8px 0;
	font: 400 48px / 1.05 var(--serif);
	color: var(--estate);
}
.page-lede {
	max-width: 40em;
	margin: 0 0 24px;
	color: var(--muted);
}

.colophon {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px var(--gutter) 40px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 860px) {
	.product,
	.order {
		grid-template-columns: minmax(0, 1fr);
	}
	.product-art {
		position: static;
		aspect-ratio: 520 / 400;
	}
	.masthead-note {
		font-size: 15px;
	}
}
