/* WebTix - thechapel.com/tickets/  (standalone pages, mobile first) */

@font-face {
	font-family: 'Source Sans Pro';
	src: url('fonts/SourceSansPro-Light.woff2') format('woff2'), url('fonts/SourceSansPro-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Source Sans Pro';
	src: url('fonts/SourceSansPro-Semibold.woff2') format('woff2'), url('fonts/SourceSansPro-Semibold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Intro Black Alt';
	src: url('fonts/IntroBlackAlt.woff2') format('woff2'), url('fonts/IntroBlackAlt.woff') format('woff');
	font-display: swap;
}

:root {
	--wt-ink: #333333;
	--wt-muted: #666666;
	--wt-orange: #fc4d0f;      /* logo orange - accents only */
	--wt-action: #c63b07;      /* darker orange, readable with white text */
	--wt-action-hover: #a83204;
	--wt-bg: #f4f2ef;
	--wt-card: #ffffff;
	--wt-line: #e2ddd8;
	--wt-error-bg: #fdecea;
	--wt-error-ink: #8a1c0b;
	--wt-radius: 10px;
	--wt-heading: 'Intro Black Alt', 'Helvetica Neue', Arial, sans-serif;
	--wt-body: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--wt-bg);
	color: var(--wt-ink);
	font-family: var(--wt-body);
	font-weight: 300;
	font-size: 18px;
	line-height: 1.5;
}

strong, b { font-weight: 600; }

a { color: var(--wt-action); }

img { max-width: 100%; height: auto; }

.wt-header {
	padding: 16px;
	text-align: center;
	background: var(--wt-card);
	border-bottom: 1px solid var(--wt-line);
}
.wt-logo img { display: inline-block; width: 160px; height: auto; }

.wt-main {
	max-width: 640px;
	margin: 0 auto;
	padding: 20px 16px 32px;
}

.wt-footer {
	text-align: center;
	color: var(--wt-muted);
	font-size: 15px;
	padding: 8px 16px 32px;
}
.wt-footer p { margin: 4px 0; }
.wt-footer a { color: var(--wt-muted); }

/* ---------- Event + purchase ---------- */

.wt-event-image {
	display: block;
	width: 100%;
	border-radius: var(--wt-radius);
	margin-bottom: 16px;
}

.wt-title {
	font-family: var(--wt-heading);
	font-weight: normal;
	font-size: 32px;
	line-height: 1.1;
	margin: 0 0 12px;
	letter-spacing: 0.01em;
}

.wt-facts {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.wt-facts li {
	padding: 10px 0 10px 14px;
	border-left: 4px solid var(--wt-orange);
	margin-bottom: 8px;
	background: var(--wt-card);
	border-radius: 0 6px 6px 0;
	padding-right: 12px;
}

.wt-description p { margin: 0 0 12px; }

.wt-panel {
	background: var(--wt-card);
	border-radius: var(--wt-radius);
	padding: 20px 16px;
	margin-top: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.wt-panel-title {
	font-family: var(--wt-heading);
	font-weight: normal;
	font-size: 24px;
	line-height: 1.2;
	margin: 0 0 6px;
}
.wt-price { margin: 0 0 4px; font-weight: 600; }
.wt-scarce { margin: 0 0 8px; color: var(--wt-action); font-weight: 600; }

.wt-notice {
	background: var(--wt-bg);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0 0 16px;
}

.wt-errors {
	background: var(--wt-error-bg);
	color: var(--wt-error-ink);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 12px 0;
}
.wt-errors p { margin: 4px 0; }

.wt-field { margin-top: 16px; }
.wt-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}
.wt-optional { font-weight: 300; color: var(--wt-muted); }
.wt-hint { margin: 6px 0 0; font-size: 15px; color: var(--wt-muted); }

.wt-field input[type=text],
.wt-field input[type=email],
.wt-field input[type=number],
.wt-field select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	font: inherit;
	font-size: 18px; /* >= 16px stops iOS zooming on focus */
	color: var(--wt-ink);
	background: #fff;
	border: 1px solid #b9b2ab;
	border-radius: 6px;
}
.wt-field input:focus, .wt-field select:focus {
	outline: 3px solid rgba(252, 77, 15, 0.35);
	outline-offset: 1px;
	border-color: var(--wt-action);
}

.wt-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) {
	.wt-row { grid-template-columns: 1fr 1fr; }
}

.wt-stepper {
	display: flex;
	align-items: stretch;
	max-width: 220px;
}
.wt-stepper button {
	flex: 0 0 52px;
	min-height: 52px;
	font-size: 26px;
	line-height: 1;
	color: var(--wt-ink);
	background: var(--wt-bg);
	border: 1px solid #b9b2ab;
	cursor: pointer;
}
.wt-stepper button:first-child { border-radius: 6px 0 0 6px; }
.wt-stepper button:last-child { border-radius: 0 6px 6px 0; }
.wt-field .wt-stepper input[type=number] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 52px;
	text-align: center;
	font-weight: 600;
	font-size: 22px;
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}
.wt-stepper input::-webkit-outer-spin-button,
.wt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wt-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 24px 0 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wt-line);
	font-weight: 600;
	font-size: 20px;
}

.wt-secure { margin: 10px 0 0; font-size: 14px; color: var(--wt-muted); text-align: center; }

/* ---------- Buttons ---------- */

.wt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	font-size: 17px;
	color: var(--wt-ink);
	background: #fff;
	border: 1px solid #b9b2ab;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
}
.wt-button:hover { border-color: var(--wt-ink); }
.wt-button-primary {
	color: #fff;
	background: var(--wt-action);
	border-color: var(--wt-action);
}
.wt-button-primary:hover { background: var(--wt-action-hover); border-color: var(--wt-action-hover); }
.wt-button-block { display: flex; width: 100%; font-size: 19px; min-height: 54px; }
.wt-button[disabled] { opacity: 0.6; cursor: wait; }

.wt-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Order page ---------- */

.wt-order-head p { margin: 0 0 10px; }
.wt-lead { font-size: 20px; }

.wt-tickets { margin-top: 20px; }

/* Printing is supported but deliberately low-key: a small text link, not a button */
.wt-print-link {
	margin: 8px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--wt-muted);
}
.wt-print-link button {
	padding: 0;
	font: inherit;
	color: var(--wt-muted);
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

/* ---------- Ticket ---------- */

.wt-ticket {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	background: var(--wt-card);
	border-radius: var(--wt-radius);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	border-top: 8px solid var(--wt-orange);
	margin-bottom: 20px;
	overflow: hidden;
}
.wt-ticket-main { padding: 16px 18px 8px; }
.wt-ticket-admit {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wt-action);
}
.wt-ticket-event {
	font-family: var(--wt-heading);
	font-weight: normal;
	font-size: 26px;
	line-height: 1.15;
	margin: 4px 0 10px;
}
.wt-ticket-when, .wt-ticket-where { margin: 0 0 8px; font-size: 17px; }
.wt-ticket-meta { margin: 8px 0 0; font-size: 14px; color: var(--wt-muted); }

.wt-ticket-stub {
	padding: 12px 18px 18px;
	text-align: center;
	border-top: 2px dashed var(--wt-line);
}
.wt-qr { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.wt-ticket-code {
	margin: 6px 0 8px;
	font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 16px;
	letter-spacing: 0.08em;
}
.wt-ticket-logo { display: inline-block; width: 110px; height: auto; }

.wt-ticket-actions {
	display: flex;
	gap: 10px;
	padding: 0 18px 18px;
}
.wt-ticket-actions .wt-button { flex: 1 1 auto; }

.wt-ticket-void { opacity: 0.6; border-top-color: #999; }
.wt-ticket-void-label {
	margin: 20px 0;
	font-weight: 600;
	font-size: 20px;
	color: var(--wt-error-ink);
}

.wt-ticket-help { text-align: center; }
.wt-ticket-help .wt-actions { justify-content: center; }

@media (min-width: 600px) {
	.wt-ticket { grid-template-columns: 1fr 230px; }
	.wt-ticket-stub { border-top: 0; border-left: 2px dashed var(--wt-line); padding-top: 18px; }
	.wt-ticket-actions { grid-column: 1 / -1; }
}

/* ---------- Print: tickets only, two per page ---------- */

@media print {
	@page { margin: 0.5in; }
	body { background: #fff; font-size: 12pt; }
	.wt-noprint { display: none !important; }
	.wt-main { max-width: none; padding: 0; }
	.wt-tickets { margin: 0; }
	.wt-ticket {
		grid-template-columns: 1fr 2.6in;
		box-shadow: none;
		border: 1px solid #999;
		border-top: 6px solid var(--wt-orange);
		border-radius: 8px;
		margin: 0 0 0.4in;
		min-height: 4.2in;
		break-inside: avoid;
		page-break-inside: avoid;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.wt-ticket:nth-child(2n) { break-after: page; page-break-after: always; }
	.wt-ticket:last-child { break-after: auto; page-break-after: auto; }
	.wt-ticket-stub { border-top: 0; border-left: 2px dashed #999; display: flex; flex-direction: column; justify-content: center; align-items: center; }
	.wt-qr { max-width: 2.2in; }
	.wt-ticket-event { font-size: 22pt; }
}
