:root {
	color: #1c2b24;
	background: #f6f2e8;
	font-family:
		"Public Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	--cream: #f6f2e8;
	--paper: #fdfbf6;
	--ink: #1c2b24;
	--ink-soft: #405148;
	--forest: #0d2418;
	--forest-deep: #07150e;
	--moss: #1f704c;
	--moss-dark: #145438;
	--mist: #8fcda9;
	--gold: #c8a24e;
	--line: #d8d2c5;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 7rem;
}

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	background:
		radial-gradient(
			circle at 12% 0%,
			rgb(143 205 169 / 0.16),
			transparent 28rem
		), var(--cream);
	color: var(--ink);
	line-height: 1.7;
}

a {
	color: var(--moss-dark);
	font-weight: 650;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration-thickness: 0.14em;
}

a:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 4px;
	border-radius: 0.2rem;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 10;
	transform: translateY(-200%);
	padding: 0.7rem 1rem;
	border-radius: 999px;
	background: var(--paper);
	color: var(--forest);
	box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.24);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	border-bottom: 1px solid rgb(255 255 255 / 0.12);
	background: var(--forest-deep);
	color: var(--cream);
}

.header-inner,
.page-shell,
.footer-inner {
	width: min(100% - 2rem, 72rem);
	margin-inline: auto;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.75rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--cream);
	font-size: 1.05rem;
	text-decoration: none;
}

.brand-mark {
	color: var(--gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2rem;
	line-height: 1;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.site-nav a {
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	padding-inline: 0.8rem;
	border-radius: 999px;
	color: rgb(246 242 232 / 0.78);
	font-size: 0.9rem;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	background: rgb(143 205 169 / 0.12);
	color: var(--cream);
}

.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(
			circle at 82% 12%,
			rgb(200 162 78 / 0.16),
			transparent 25rem
		), linear-gradient(145deg, var(--forest) 0%, #123425 100%);
	color: var(--cream);
}

.hero::after {
	content: "❝";
	position: absolute;
	right: max(1rem, calc((100vw - 72rem) / 2));
	bottom: -3.5rem;
	color: rgb(200 162 78 / 0.09);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(10rem, 25vw, 20rem);
	line-height: 1;
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	width: min(100% - 2rem, 72rem);
	margin-inline: auto;
	padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.eyebrow {
	margin: 0 0 0.85rem;
	color: var(--mist);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

h1,
h2 {
	font-family: Georgia, "Times New Roman", serif;
	text-wrap: balance;
}

h1 {
	max-width: 54rem;
	margin: 0;
	font-size: clamp(2.6rem, 7vw, 5.4rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.02;
}

.hero-copy {
	max-width: 48rem;
	margin: 1.4rem 0 0;
	color: rgb(246 242 232 / 0.8);
	font-size: clamp(1.05rem, 2.2vw, 1.28rem);
	line-height: 1.65;
}

.updated {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 1.8rem 0 0;
	padding: 0.55rem 0.8rem;
	border: 1px solid rgb(143 205 169 / 0.3);
	border-radius: 999px;
	background: rgb(6 18 12 / 0.28);
	color: rgb(246 242 232 / 0.78);
	font-size: 0.84rem;
}

.updated::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--mist);
}

.page-shell {
	display: grid;
	grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem);
	padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.table-of-contents {
	align-self: start;
	position: sticky;
	top: 1.5rem;
	padding: 1.3rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: rgb(253 251 246 / 0.76);
	box-shadow: 0 1rem 3rem rgb(20 44 31 / 0.06);
}

p,
li,
dd {
	color: var(--ink-soft);
}

.table-of-contents p {
	margin: 0 0 0.65rem;
	color: var(--ink-soft);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.table-of-contents ol {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.table-of-contents a {
	display: block;
	padding: 0.45rem 0.55rem;
	border-radius: 0.45rem;
	color: var(--ink-soft);
	font-size: 0.9rem;
	line-height: 1.35;
	text-decoration: none;
}

.table-of-contents a:hover {
	background: #e8eee8;
	color: var(--moss-dark);
}

.content {
	min-width: 0;
}

.intro-card,
.notice,
.request-card {
	padding: clamp(1.25rem, 4vw, 2rem);
	border-radius: 1rem;
}

.intro-card {
	border: 1px solid #b9d5c4;
	background: #eaf3ed;
}

.intro-card p,
.notice p,
.request-card p {
	margin: 0;
}

.content section {
	padding-block: 2.5rem;
	border-bottom: 1px solid var(--line);
}

.content section:last-of-type {
	border-bottom: 0;
}

h2 {
	margin: 0 0 1rem;
	color: var(--forest);
	font-size: clamp(1.75rem, 4vw, 2.45rem);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.15;
}

h3 {
	margin: 1.6rem 0 0.4rem;
	color: var(--ink);
	font-size: 1.06rem;
	line-height: 1.4;
}

.content p {
	margin: 0.85rem 0 0;
}

.content ul,
.content ol:not(.steps) {
	display: grid;
	gap: 0.7rem;
	margin: 1rem 0 0;
	padding-left: 1.35rem;
}

.content li::marker {
	color: var(--moss);
	font-weight: 800;
}

.data-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.4rem;
}

.data-card {
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	background: var(--paper);
}

.data-card h3 {
	margin: 0 0 0.45rem;
}

.data-card p {
	margin: 0;
	font-size: 0.94rem;
}

.notice {
	margin-top: 1.25rem;
	border-left: 0.35rem solid var(--gold);
	background: #f2ead5;
}

.notice strong,
.request-card strong {
	color: var(--forest);
}

.steps {
	display: grid;
	gap: 1rem;
	margin: 1.4rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: request-step;
}

.steps li {
	position: relative;
	padding: 1.25rem 1.25rem 1.25rem 4.4rem;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	background: var(--paper);
	counter-increment: request-step;
}

.steps li::before {
	content: counter(request-step);
	position: absolute;
	top: 1.1rem;
	left: 1.15rem;
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--moss);
	color: white;
	font-weight: 800;
}

.steps strong {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--forest);
}

.request-card {
	margin-top: 1.4rem;
	border: 1px solid #b9d5c4;
	background: #eaf3ed;
}

.request-card .subject {
	display: block;
	margin: 0.8rem 0;
	padding: 0.75rem 0.9rem;
	border-radius: 0.55rem;
	background: rgb(255 255 255 / 0.72);
	color: var(--ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88rem;
	overflow-wrap: anywhere;
}

.deletion-form,
.status-panel,
.receipt-library {
	margin-top: 1.5rem;
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--paper);
	box-shadow: 0 1rem 3rem rgb(20 44 31 / 0.06);
}

.deletion-form {
	display: grid;
	gap: 1.35rem;
}

.receipt-library {
	border-color: #b9d5c4;
	background: #f7fbf8;
}

.receipt-library > h3,
.receipt-library > p {
	margin-top: 0;
}

.receipt-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.receipt-choice {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--moss);
	border-radius: 0.65rem;
	background: white;
	color: var(--moss-dark);
	cursor: pointer;
	font-weight: 800;
	text-align: left;
}

.receipt-choice:hover {
	background: #eaf3ed;
}

.receipt-choice:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

.receipt-choice:disabled {
	cursor: wait;
	opacity: 0.62;
}

.selected-receipt,
.local-warning,
.retry-context {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 0.75rem;
}

.selected-receipt,
.retry-context {
	border: 1px solid #b9d5c4;
	background: white;
}

.selected-receipt > p,
.retry-context > p,
.local-warning > p {
	margin-top: 0;
}

.selected-receipt > p:last-child,
.retry-context > p:last-child,
.local-warning > p:last-child {
	margin-bottom: 0;
}

.local-warning {
	border: 1px solid #d9c17c;
	background: #f7f0dc;
}

.compact-message {
	margin-top: 0.75rem;
}

.deletion-form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.deletion-form legend,
.field-group > label,
.confirmation-box > label {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--forest);
	font-weight: 750;
}

.choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.choice-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-height: 5rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: white;
	cursor: pointer;
}

.choice-card:has(input:checked) {
	border-color: var(--moss);
	box-shadow: 0 0 0 2px rgb(31 112 76 / 0.14);
}

.choice-card input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--moss);
}

.choice-card span,
.choice-card small {
	display: block;
}

.choice-card strong {
	color: var(--forest);
}

.choice-card small {
	margin-top: 0.2rem;
	color: var(--ink-soft);
	font-size: 0.82rem;
	line-height: 1.35;
}

.form-stack {
	display: grid;
	gap: 1.35rem;
}

.field-group input,
.field-group select,
.confirmation-box input {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid #a9b5ad;
	border-radius: 0.55rem;
	background: white;
	color: var(--ink);
	font: inherit;
}

.field-group input:focus-visible,
.field-group select:focus-visible,
.confirmation-box input:focus-visible,
.choice-card:has(input:focus-visible) {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"],
.confirmation-box input[aria-invalid="true"] {
	border-color: #9f2d24;
}

.field-group input:disabled,
.field-group select:disabled {
	cursor: not-allowed;
	background: #eef0eb;
	color: #69736d;
}

.content .field-help {
	margin: 0.45rem 0 0;
	font-size: 0.82rem;
	line-height: 1.45;
}

.confirmation-box {
	padding: 1.1rem;
	border-left: 0.35rem solid var(--gold);
	border-radius: 0.7rem;
	background: #f2ead5;
}

.confirmation-box p {
	margin: 0 0 0.85rem;
}

.confirmation-box strong {
	color: var(--forest);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

button {
	font: inherit;
}

.primary-button,
.secondary-button,
.text-button {
	min-height: 2.75rem;
	border-radius: 0.6rem;
	cursor: pointer;
	font-weight: 750;
}

.primary-button {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--moss);
	background: var(--moss);
	color: white;
}

.primary-button:hover {
	background: var(--moss-dark);
}

.secondary-button {
	padding: 0.7rem 0.95rem;
	border: 1px solid var(--moss);
	background: white;
	color: var(--moss-dark);
}

.text-button {
	padding: 0.5rem 0;
	border: 0;
	background: transparent;
	color: var(--moss-dark);
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled {
	cursor: wait;
	opacity: 0.62;
}

.form-message {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid #b9d5c4;
	border-radius: 0.75rem;
	background: #eaf3ed;
	color: var(--ink);
}

.form-message[data-tone="error"] {
	border-color: #d8a39d;
	background: #faecea;
}

.form-message[data-tone="warning"] {
	border-color: #d9c17c;
	background: #f7f0dc;
}

.status-panel {
	border-color: #b9d5c4;
	background: #f7fbf8;
}

.privacy-dialog {
	width: min(34rem, calc(100% - 2rem));
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 1.5rem 4rem rgb(7 33 20 / 0.28);
}

.privacy-dialog::backdrop {
	background: rgb(5 24 14 / 0.68);
}

.privacy-dialog h2 {
	margin-top: 0;
}

.dialog-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
	margin-top: 1.25rem;
}

.dialog-actions .primary-button {
	width: auto;
}

.status-heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.status-heading-row h2 {
	margin-bottom: 0;
}

.content .eyebrow-dark {
	margin: 0 0 0.35rem;
	color: var(--moss-dark);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.status-badge {
	flex: 0 0 auto;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	background: #f2ead5;
	color: #614d16;
	font-size: 0.78rem;
	font-weight: 800;
}

.status-badge[data-status="completed"] {
	background: #dcefe3;
	color: #145438;
}

.status-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.25rem 0 0;
}

.status-details div {
	min-width: 0;
	padding: 0.9rem;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: white;
}

.status-details dt {
	color: var(--ink-soft);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.status-details dd {
	margin: 0.35rem 0 0;
	color: var(--ink);
	font-weight: 650;
	overflow-wrap: anywhere;
}

.button-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1.25rem;
}

.deadline {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: 1.4rem;
	padding: 1.3rem;
	border-radius: 0.85rem;
	background: var(--forest);
	color: var(--cream);
}

.deadline-number {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.6rem;
	line-height: 1;
}

.deadline p {
	margin: 0;
	color: rgb(246 242 232 / 0.78);
}

.site-footer {
	background: var(--forest-deep);
	color: var(--cream);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 2rem;
}

.footer-inner p {
	margin: 0;
	color: rgb(246 242 232 / 0.66);
	font-size: 0.88rem;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.7rem 1.2rem;
}

.footer-links a {
	color: var(--mist);
	font-size: 0.88rem;
}

@media (max-width: 52rem) {
	.page-shell {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.table-of-contents {
		position: static;
	}

	.table-of-contents ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	.header-inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 0.85rem;
	}

	.site-nav {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 0.15rem;
	}

	.site-nav a {
		flex: 0 0 auto;
	}

	.data-grid,
	.choice-grid,
	.receipt-list,
	.status-details,
	.table-of-contents ol {
		grid-template-columns: 1fr;
	}

	.dialog-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.dialog-actions .primary-button,
	.dialog-actions .text-button {
		width: 100%;
		text-align: center;
	}

	.status-heading-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.deadline {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer-links {
		justify-content: flex-start;
	}
}

[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

@media print {
	.skip-link,
	.site-nav,
	.table-of-contents,
	.site-footer {
		display: none;
	}

	.hero {
		background: white;
		color: black;
	}

	.hero-copy,
	.updated {
		color: #333;
	}

	.page-shell {
		display: block;
		width: 100%;
	}
}
