:root {
	color-scheme: light;
	font-family: "DM Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
	color: #34261d;
	background: #fbf0df;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	background: radial-gradient(ellipse at top, #fff9ef, #fbf0df 46rem);
}

main {
	width: 100%;
	max-width: 800px;
	margin-inline: auto;
	padding-block: 1rem 1.5rem;
}

figure,
section {
	margin: 0 clamp(.75rem, 3vw, 1.5rem) 1rem;
	border-radius: 1.25rem;
}

figure {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #463321;
}

figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

figcaption {
	position: absolute;
	inset: auto 1rem 1rem auto;
	padding: .375rem .625rem;
	border-radius: .5rem;
	background: #34261d;
	color: #fff9ef;
	font-size: .875rem;
}

section {
	padding: clamp(1.125rem, 4vw, 2rem);
	background: #fffaf2;
}

h1,
h2,
p {
	margin: 0;
}

h1 {
	font-size: clamp(1.55rem, 5vw, 2.25rem);
}

h2 {
	font-size: 1.25rem;
}

p,
ol {
	margin-top: .75rem;
	line-height: 1.7;
}

ol {
	padding-inline-start: 1.35rem;
}

li + li {
	margin-top: .625rem;
}

.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .25rem .75rem;
	color: #983d1d;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.2;
}

.price span,
.privacy,
#checkout-status {
	color: #644d3e;
	font-size: .9rem;
	font-weight: 500;
}

form {
	display: grid;
	gap: .875rem;
	margin-top: 1rem;
}

label {
	display: grid;
	gap: .375rem;
	font-weight: 650;
}

fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

legend {
	margin-bottom: .375rem;
	padding: 0;
	font-weight: 650;
}

.variants {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .625rem;
}

.variants label {
	grid-template-columns: auto 1fr;
	align-items: center;
	padding: .65rem .75rem;
	border: 1px solid #bfa991;
	border-radius: .625rem;
	background: #fffdf8;
	cursor: pointer;
}

.variants label:has(:checked) {
	background: #f5dec8;
	color: #752e16;
}

.variants input {
	margin: 0;
	accent-color: #983d1d;
}

input,
textarea,
button {
	font: inherit;
}

input:not([type="checkbox"]),
textarea {
	width: 100%;
	min-width: 0;
	padding: .65rem .75rem;
	border: 1px solid #bfa991;
	border-radius: .625rem;
	background: #fffdf8;
	color: inherit;
	font-weight: 400;
}

textarea {
	resize: vertical;
}

.shipping-confirm {
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: .5rem;
	font-weight: 500;
}

.shipping-confirm input {
	accent-color: #983d1d;
}

button {
	min-height: 3rem;
	padding: .6rem 1rem;
	border: 0;
	border-radius: .75rem;
	background: #983d1d;
	color: white;
	font-weight: 750;
	cursor: pointer;
}

button:enabled:hover {
	background: #7a3017;
}

button:disabled {
	background: #eadbcb;
	color: #644d3e;
	cursor: default;
}

:focus-visible {
	outline: 2px solid #983d1d;
	outline-offset: 2px;
}

.privacy,
#checkout-status {
	margin: 0;
}

#checkout-status {
	min-block-size: 1.7em;
}
