:root {
	--ink: #1d2a3d;
	--navy: #223753;
	--blue: #476986;
	--cream: #f7f4ed;
	--paper: #fffdf9;
	--sand: #eadbbd;
	--orange: #d96342;
	--line: #dcd7cc;
	--muted: #6e756f;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
	color: var(--ink);
	background: var(--cream);
	font-family: "DM Sans", sans-serif;
}

button,
input,
select {
	font: inherit;
}
button {
	cursor: pointer;
}

.page-shell {
	width: min(100% - 32px, 900px);
	margin: 0 auto;
	padding: 46px 0 72px;
}

.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 280px;
	align-items: center;
	min-height: 285px;
	padding: 16px 42px 20px;
	overflow: hidden;
	color: white;
	background: var(--navy);
	border-radius: 28px;
}

.hero::before {
	position: absolute;
	width: 330px;
	height: 330px;
	right: -90px;
	top: -135px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	content: "";
}

.hero-copy {
	position: relative;
	z-index: 1;
	max-width: 420px;
}
.eyebrow {
	margin: 0 0 8px;
	color: var(--orange);
	font-size: 0.71rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}
.hero .eyebrow {
	color: var(--sand);
}

h1,
h2 {
	margin: 0;
	font-family: Fraunces, Georgia, serif;
	line-height: 0.98;
}
h1 {
	font-size: clamp(3rem, 7vw, 4.8rem);
	letter-spacing: -0.055em;
}
h1 em {
	color: var(--sand);
	font-style: italic;
}
h2 {
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	letter-spacing: -0.045em;
}
.intro {
	max-width: 360px;
	margin: 20px 0 0;
	color: #d8e1e9;
	font-size: 0.98rem;
	line-height: 1.55;
}

.shirt-art {
	position: relative;
	z-index: 1;
	align-self: end;
	height: 270px;
	margin-bottom: -38px;
}
.shirt-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom;
	filter: drop-shadow(0 15px 13px rgba(8, 17, 32, 0.27));
}

.order-card,
.summary-section {
	margin-top: 24px;
	padding: 34px 38px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(34, 55, 83, 0.06);
}

.section-heading,
.summary-heading,
.quantity-row,
.form-footer,
.shirt-item {
	display: flex;
	align-items: center;
}
.section-heading,
.summary-heading {
	justify-content: space-between;
	gap: 20px;
}
.step-label,
.total-pill {
	padding: 8px 12px;
	color: var(--blue);
	background: #e7eef1;
	border-radius: 99px;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.field {
	display: block;
	margin-top: 30px;
}
.field > span,
.quantity-row label,
.items-fieldset legend,
.select-field label {
	display: block;
	font-size: 0.84rem;
	font-weight: 700;
}
input,
select {
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 9px;
	background: white;
	outline-color: var(--orange);
}
.identity-field input {
	width: min(100%, 430px);
	margin-top: 8px;
	padding: 13px 14px;
}

.quantity-row {
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.quantity-row p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.83rem;
}
.quantity-control {
	display: flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 9px;
	overflow: hidden;
}
.quantity-control input {
	width: 42px;
	padding: 9px 3px;
	text-align: center;
	border: 0;
	border-radius: 0;
	-moz-appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
.quantity-button {
	width: 38px;
	height: 38px;
	color: var(--navy);
	border: 0;
	background: #f1f3f1;
	font-size: 1.3rem;
	line-height: 1;
}
.quantity-button:hover {
	background: var(--sand);
}

.items-fieldset {
	min-width: 0;
	margin: 26px 0 0;
	padding: 0;
	border: 0;
}
.items-fieldset legend {
	margin-bottom: 12px;
}
.shirt-items {
	display: grid;
	gap: 10px;
}
.shirt-item {
	gap: 14px;
	padding: 12px;
	background: #f8f7f2;
	border-radius: 12px;
}
.item-number {
	display: grid;
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	place-items: center;
	color: white;
	background: var(--navy);
	border-radius: 50%;
	font-size: 0.78rem;
	font-weight: 700;
}
.select-field {
	flex: 1;
	min-width: 0;
}
.select-field label {
	color: var(--muted);
	font-size: 0.7rem;
}
.select-field select {
	width: 100%;
	margin-top: 4px;
	padding: 7px 28px 7px 8px;
	border-radius: 7px;
	font-size: 0.86rem;
}

.form-footer {
	justify-content: space-between;
	gap: 20px;
	margin-top: 25px;
}
.privacy-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.76rem;
	line-height: 1.4;
}
.submit-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	color: white;
	border: 0;
	border-radius: 9px;
	background: var(--orange);
	font-weight: 700;
	transition:
		transform 0.15s,
		background 0.15s;
	white-space: nowrap;
}
.submit-button:hover {
	background: #bb5035;
	transform: translateY(-1px);
}
.submit-button span {
	font-size: 1.2rem;
}
.form-message {
	min-height: 1.3em;
	margin: 15px 0 0;
	color: #4f7656;
	font-size: 0.86rem;
	font-weight: 700;
}

.summary-section {
	padding-top: 30px;
}
.order-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	gap: 10px;
	margin-top: 22px;
}
.summary-item,
.empty-summary {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
}
.summary-item {
	background: #f8f7f2;
}
.summary-item strong {
	display: block;
	color: var(--navy);
	font-family: Fraunces, Georgia, serif;
	font-size: 1.65rem;
}
.summary-item span {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 0.8rem;
}
.empty-summary {
	grid-column: 1 / -1;
	color: var(--muted);
	font-size: 0.92rem;
	text-align: center;
}

@media (max-width: 620px) {
	.page-shell {
		width: min(100% - 20px, 900px);
		padding-top: 10px;
	}
	.hero {
		grid-template-columns: 1fr 150px;
		min-height: 250px;
		padding: 28px 22px;
		border-radius: 20px;
	}
	.intro {
		max-width: 260px;
		font-size: 0.88rem;
	}
	.shirt-art {
		height: 190px;
		margin: 0 -30px -27px -15px;
	}
	.order-card,
	.summary-section {
		margin-top: 14px;
		padding: 25px 20px;
		border-radius: 18px;
	}
	.shirt-item {
		display: grid;
		grid-template-columns: 29px 1fr 1fr;
		gap: 8px;
	}
	.form-footer {
		align-items: flex-start;
		flex-direction: column;
	}
	.submit-button {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 420px) {
	.hero {
		display: block;
		min-height: 0;
	}
	.shirt-art {
		display: none;
	}
	.quantity-row {
		align-items: flex-end;
	}
}

.summary-hero {
	padding: 32px 38px;
	color: white;
	background: var(--navy);
	border-radius: 28px;
}
.summary-hero .eyebrow {
	color: var(--sand);
}
.summary-hero .intro {
	margin-bottom: 20px;
}
.back-link {
	color: var(--sand);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}
.back-link:hover {
	text-decoration: underline;
}
.person-orders {
	display: grid;
	gap: 12px;
	margin-top: 22px;
}
.person-card {
	padding: 20px;
	background: #f8f7f2;
	border: 1px solid var(--line);
	border-radius: 12px;
}
.person-card h3 {
	margin: 0;
	font-family: Fraunces, Georgia, serif;
	font-size: 1.35rem;
}
.person-total {
	margin: 4px 0 12px;
	color: var(--muted);
	font-size: 0.85rem;
}
.model-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.model-list li {
	padding: 6px 9px;
	color: var(--blue);
	background: #e7eef1;
	border-radius: 99px;
	font-size: 0.78rem;
	font-weight: 700;
}
