/* Support, Privacy, Copyright and 404. Shared pieces live in base.css. */

.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(128px, 14vw, 168px) var(--gutter) clamp(36px, 5vw, 56px);
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(31, 26, 14, 0.09) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 70%);
	mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 70%);
}
.page-hero-inner {
	position: relative;
	max-width: 880px;
	margin: 0 auto;
}
.page-hero .eyebrow {
	color: var(--olive);
	margin-bottom: 16px;
}
.page-title {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(42px, 7vw, 88px);
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--ink-deep);
	text-wrap: balance;
	animation: rise 0.8s var(--ease) both;
}
.page-lead {
	margin: 20px 0 0;
	max-width: 34em;
	font-size: clamp(18px, 2vw, 21px);
	color: var(--ink-2);
	text-wrap: pretty;
	animation: rise 0.8s 0.08s var(--ease) both;
}
.page-meta {
	margin: 16px 0 0;
	font-size: 15px;
	color: var(--muted);
}
.page-art {
	position: absolute;
	right: 0;
	top: -10px;
	width: clamp(64px, 9vw, 112px);
	transform: rotate(10deg);
	filter: drop-shadow(0 18px 22px rgba(31, 26, 14, 0.22));
	animation: bob 4s ease-in-out infinite alternate;
	--r: 10deg;
}
@media (max-width: 720px) {
	.page-art {
		display: none;
	}
}

/* Pill tabs linking the three pages to each other. */
.page-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}
.page-tabs a {
	text-decoration: none;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--line-strong);
	transition:
		background 0.2s,
		border-color 0.2s,
		color 0.2s;
}
.page-tabs a:hover {
	border-color: var(--ink);
	color: var(--ink);
}
.page-tabs a[aria-current="page"] {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.page-body {
	/* 880px of content, matching .page-hero-inner above it (padding sits outside that width). */
	max-width: calc(880px + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter) clamp(80px, 10vw, 128px);
}
.prose {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
}
.prose > * + * {
	margin-top: 14px;
}
/* More room after a card or table before the text that follows it. */
.prose > .contact-card + *,
.prose > .panel + :not(h2),
.prose > .table-wrap + * {
	margin-top: 24px;
}
.prose h2 {
	margin: 56px 0 14px;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink-deep);
}
/* Zero specificity so the spacing rules below (and .disclaimer) can win. */
.prose :where(p) {
	margin: 0;
}
.prose p + p {
	margin-top: 12px;
}
.prose ul {
	margin: 12px 0 0;
	padding-left: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.prose ul li {
	position: relative;
	padding-left: 26px;
}
.prose ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber);
}
.prose strong {
	color: var(--ink);
}
.prose a {
	color: var(--olive-deep);
	text-underline-offset: 3px;
}

.panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: clamp(20px, 3vw, 28px);
}
.panel.summary {
	background: var(--amber);
	border-color: transparent;
	color: var(--ink);
	font-size: 18px;
}
.panel.summary strong {
	color: var(--ink);
}

.table-wrap {
	overflow-x: auto;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 24px;
	margin-top: 16px;
}
.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}
.table-wrap th,
.table-wrap td {
	text-align: left;
	padding: 14px 18px;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}
.table-wrap tr:last-child td {
	border-bottom: 0;
}
.table-wrap th {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--sand);
}

/* Support: contact card + common questions */
.contact-card {
	position: relative;
	overflow: hidden;
	background: var(--brown);
	color: var(--bg);
	border-radius: var(--radius-xl);
	padding: clamp(24px, 4vw, 44px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 20px 40px;
	align-items: center;
}
.contact-card::before {
	content: "";
	position: absolute;
	left: -20%;
	bottom: -80%;
	width: 70%;
	height: 160%;
	border-radius: 50%;
	background: #b87a16;
	filter: blur(90px);
	opacity: 0.3;
	pointer-events: none;
}
.contact-card > * {
	position: relative;
}
.contact-name {
	margin: 0;
	font-family: var(--serif);
	font-size: 30px;
	line-height: 1.1;
}
.contact-card p {
	margin: 0;
	color: var(--brown-muted);
}
.contact-card a.mail {
	color: var(--bg);
}
.contact-card a.mail:hover {
	color: var(--amber);
}
.contact-card .btn {
	justify-self: start;
	--fill: var(--bg);
	--fill-ink: var(--ink);
	--arrow-h: var(--amber);
	padding: 8px 8px 8px 24px;
}
.contact-card .btn:focus-visible {
	outline-color: var(--bg);
}
@media (min-width: 640px) {
	.contact-card .btn {
		justify-self: end;
	}
}

.qa-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}
.qa {
	border: 1px solid var(--line);
	border-radius: 22px;
	transition: background 0.3s;
}
.qa[open] {
	background: var(--card);
}
.qa summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 18px 18px 22px;
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	border-radius: 22px;
}
.qa summary::-webkit-details-marker {
	display: none;
}
.qa-icon {
	flex: none;
	display: inline-flex;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: var(--sand);
	transition:
		transform 0.35s var(--ease),
		background 0.3s;
}
.qa[open] .qa-icon {
	background: var(--amber);
	transform: rotate(45deg);
}
.qa p {
	margin: 0;
	padding: 0 22px 20px;
	max-width: 40em;
}

.disclaimer {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 15px;
	color: var(--muted);
}

/* 404 */
.not-found {
	min-height: 70vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 140px var(--gutter) 80px;
}
.not-found .big {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(120px, 24vw, 260px);
	line-height: 0.9;
	letter-spacing: -0.05em;
	color: transparent;
	-webkit-text-stroke: 2px var(--olive);
}
.not-found .page-title {
	font-size: clamp(34px, 5vw, 56px);
	margin-top: 12px;
}
.not-found .page-lead {
	margin-left: auto;
	margin-right: auto;
}
.not-found .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}
.not-found .btn-dark {
	--fill: var(--amber);
	--fill-ink: var(--ink);
	--arrow-h: var(--ink);
	padding: 8px 8px 8px 24px;
}
.not-found .btn-outline {
	padding: 14px 24px;
	font-weight: 600;
}

/* ---------- Phones ---------- */
@media (max-width: 520px) {
	.page-hero {
		padding-top: 116px;
		padding-bottom: 32px;
	}
	.page-tabs a {
		padding: 8px 14px;
		font-size: 14px;
	}
	.prose > * + * {
		margin-top: 16px;
	}
	.prose {
		font-size: 16px;
	}
	.prose h2 {
		margin-top: 44px;
	}
	.contact-card {
		padding: 28px 22px;
	}
	.contact-card .btn {
		width: 100%;
		justify-content: space-between;
	}
	.table-wrap th,
	.table-wrap td {
		padding: 12px 14px;
	}
	.qa summary {
		font-size: 17px;
		padding: 16px 14px 16px 18px;
	}
	.qa p {
		padding: 0 18px 18px;
	}
}
