@font-face {
	font-family: 'Crimson Pro';
	src: url('./CrimsonPro.ttf') format('truetype');
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

/* Native sheetBackground, teal900, dimgray800, teal800 and ochre500 tokens. */
:root {
	--rj-background: #e6eee9;
	--rj-text: #212e2d;
	--rj-secondary: #636b66;
	--rj-accent: #496e6c;
	--rj-button: #e5b36a;
	--rj-button-text: #212e2d;
	--rj-text-scale: 1;
	color-scheme: light;
	font-size: calc(18px * var(--rj-text-scale));
}

:root.rj-dark {
	--rj-background: #161f1d;
	--rj-text: #ece6da;
	--rj-secondary: #a2aca7;
	--rj-accent: #8fbdb8;
	--rj-button: #d3a15a;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--rj-background);
	color: var(--rj-text);
	font-family: 'Crimson Pro', ui-serif, Georgia, serif;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.rj-content {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	/* Reserve the top row for the app's close button, including the safe area. */
	padding: calc(56px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px));
}
h1,
h2,
p {
	margin: 0 0 0.65em;
}
h1 {
	font-size: 2.25rem;
	line-height: 1.08;
	font-weight: 600;
}
h2 {
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 600;
}
p {
	font-size: 1rem;
}
a {
	color: var(--rj-accent);
	text-underline-offset: 0.2em;
}
button {
	font: inherit;
	cursor: pointer;
}
.rj-button {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 14px;
	background: var(--rj-button);
	color: var(--rj-button-text);
	font-size: 1.1rem;
	font-weight: 600;
}
:focus-visible {
	outline: 3px solid var(--rj-accent);
	outline-offset: 4px;
}
img,
svg,
video {
	max-width: 100%;
	height: auto;
}
.rj-reduce-motion *,
.rj-reduce-motion *::before,
.rj-reduce-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}
