:root {
	color-scheme: light;

	--color-background: #ffffff;
	--color-text: #191919;
	--color-muted: #595959;
	--color-border: #dddddd;

	--font-body: system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;

	--content-width: 72rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

.container {
	width: min(var(--content-width), calc(100% - 2rem));
	margin-inline: auto;
}

.site-header {
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
}

.brand {
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

nav a[aria-current="page"] {
	font-weight: 700;
}

.main-content {
	flex: 1;
	padding-block: 4rem;
}

h1 {
	max-width: 24ch;
	margin-block: 0.5rem 1rem;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.15;
	overflow-wrap: anywhere;
}

p {
	max-width: 65ch;
}

.muted {
	color: var(--color-muted);
}

.site-footer {
	padding-block: 1.5rem;
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
}

small {
	font-size: 0.875rem;
}

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 1rem;
	padding: 0.75rem;
	transform: translateY(-200%);
	background: var(--color-background);
	border: 1px solid var(--color-text);
}

.skip-link:focus {
	transform: translateY(0);
}
.auth-form {
	display: grid;
	gap: 1.25rem;
	max-width: 30rem;
	margin-top: 2rem;
}

.field {
	display: grid;
	gap: 0.4rem;
}

label {
	font-weight: 600;
}

input,
button {
	font: inherit;
}

input {
	width: 100%;
	min-width: 0;
	padding: 0.75rem;
	border: 1px solid #777;
	border-radius: 0.25rem;
	background: #fff;
	color: #191919;
}

input:focus-visible,
button:focus-visible {
	outline: 2px solid #191919;
	outline-offset: 3px;
}

button {
	width: fit-content;
	padding: 0.75rem 1.25rem;
	border: 1px solid #191919;
	border-radius: 0.25rem;
	background: #191919;
	color: #fff;
	cursor: pointer;
}

button:hover {
	background: #383838;
}

nav {
	align-items: center;
}

.inline-form {
	margin: 0;
}

.link-button {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.link-button:hover {
	background: transparent;
}

.message {
	max-width: 40rem;
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid #777;
	background: #f4f4f4;
	overflow-wrap: anywhere;
}

.message-error {
	border-left: 4px solid #191919;
}

.account-details {
	max-width: 40rem;
}

.account-details dt {
	margin-top: 1rem;
	font-weight: 600;
}

.account-details dd {
	margin-left: 0;
	overflow-wrap: anywhere;
}
textarea {
	width: 100%;
	min-width: 0;
	padding: 0.75rem;
	border: 1px solid #777;
	border-radius: 0.25rem;
	background: #fff;
	color: #191919;
	font: inherit;
	line-height: 1.5;
	resize: vertical;
}

textarea:focus-visible {
	outline: 2px solid #191919;
	outline-offset: 3px;
}

.review-card {
	margin-block: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--color-border);
	overflow-wrap: anywhere;
}

.review-card h3 {
	margin-top: 0;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.secondary-button {
	background: #fff;
	color: #191919;
}

.secondary-button:hover {
	background: #eeeeee;
}

.preserve-lines {
	white-space: pre-wrap;
}
