/* platinumemerald.com: one stylesheet for every page. System fonts only (nothing is fetched from
   another site). Colours are tokens: emerald greens with platinum silver-greys. Dark is the
   default look, light follows the system (or data-theme on <html>). */
:root {
	--bg: #0a1310;
	--bg2: #0f1b17;
	--card: #13231d;
	--card2: #172a23;
	--line: #2b3b36;
	--fg: #eef3f1;
	--muted: #a6b4af;
	--accent: #34d482;
	--accent2: #1fa865;
	--accent-fg: #04170d;
	--plat: #d3dade;
	--plat-mid: #9aa5ab;
	--plat-dark: #5c676d;
	--warn: #e9c46a;
	--bad: #ff8a7a;
	--ok: #6be59d;
	--radius: 12px;
	--shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
	--bezel: linear-gradient(135deg, #f7f9fa 0%, #c3cbd0 28%, #7d888f 52%, #dfe5e8 76%, #8d989e 100%);
	color-scheme: dark;
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme='dark']) {
		--bg: #f3f6f5;
		--bg2: #e8eeeb;
		--card: #ffffff;
		--card2: #f7faf9;
		--line: #cbd6d2;
		--fg: #0f211a;
		--muted: #4c6058;
		--accent: #11804a;
		--accent2: #0d6a3d;
		--accent-fg: #ffffff;
		--plat: #4f5b61;
		--plat-mid: #7c878d;
		--plat-dark: #5c676d;
		--warn: #855800;
		--bad: #b3261e;
		--ok: #12723f;
		--shadow: 0 10px 28px rgba(16, 36, 26, 0.16);
		color-scheme: light;
	}
}
:root[data-theme='dark'] {
	color-scheme: dark;
}
* {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a {
	color: var(--accent);
}
a:hover {
	text-decoration-thickness: 2px;
}
.wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px;
}

/* header */
.top {
	border-bottom: 1px solid var(--line);
	background: var(--bg2);
}
.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	min-height: 62px;
	flex-wrap: wrap;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--plat);
	font-weight: 800;
	letter-spacing: 0.14em;
	font-size: 15px;
	padding: 10px 0;
	white-space: nowrap;
}
.brand svg {
	width: 30px;
	height: 30px;
	flex: none;
}
.brand em {
	font-style: normal;
	color: var(--accent);
}
.topnav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.topnav a {
	color: var(--muted);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 15px;
}
.topnav a:hover,
.topnav a[aria-current='page'] {
	color: var(--fg);
	background: var(--card);
}

/* sections */
main {
	padding-bottom: 40px;
	overflow-wrap: break-word;
}
section {
	padding: 40px 0 8px;
}
h1 {
	font-size: clamp(32px, 6vw, 50px);
	line-height: 1.1;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}
h2 {
	font-size: clamp(23px, 4vw, 29px);
	line-height: 1.2;
	margin: 0 0 14px;
}
h3 {
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 6px;
}
.lede {
	font-size: clamp(17px, 2.4vw, 20px);
	max-width: 40em;
	margin: 0 0 18px;
}
.sub {
	color: var(--muted);
	max-width: 44em;
	margin: -4px 0 18px;
}
.kicker {
	color: var(--plat-mid);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 13px;
	margin: 0 0 6px;
}

/* hero: the title screen in a platinum bezel, shown at a whole-number scale of its 240x160 pixels
   (app.js picks the largest that fits this screen's device pixels; the sizes below are the same
   choice made without the script) */
.hero {
	padding-top: 36px;
	text-align: center;
}
.screen-row {
	display: flex;
	justify-content: center;
}
.screen {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 8px;
	border-radius: 16px;
	background: var(--bezel);
	border: 1px solid #3f494f;
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	line-height: 0;
	max-width: 100%;
}
.screen img {
	display: block;
	width: 720px;
	height: auto;
	max-width: 100%;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	background: #000;
	box-shadow: 0 0 0 2px #2c3438;
}
@supports (image-rendering: pixelated) {
	.screen img {
		image-rendering: pixelated;
	}
}
@media (max-width: 800px) {
	.screen img {
		width: 480px;
	}
}
@media (max-width: 540px) {
	.screen {
		padding: 5px;
		border-radius: 12px;
		margin: 0 -10px;
		max-width: calc(100% + 20px);
	}
	.screen img {
		width: 240px;
	}
}
@media (max-width: 540px) and (min-width: 392px) and (min-resolution: 2dppx) and (max-resolution: 2.99dppx) {
	.screen img {
		width: 360px;
	}
}
@media (max-width: 540px) and (min-width: 352px) and (min-resolution: 3dppx) {
	.screen img {
		width: 320px;
	}
}
@media (max-width: 540px) and (min-width: 432px) and (min-resolution: 3dppx) {
	.screen img {
		width: 400px;
	}
}
.hero-text {
	max-width: 44em;
	margin: 28px auto 0;
}
.hero .lede {
	margin-left: auto;
	margin-right: auto;
}
.soon-tag {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-fg);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}
.status {
	display: inline-block;
	text-align: left;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--plat-mid);
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 20px;
	font-size: 15px;
}
.status b {
	color: var(--plat);
}
.btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 0 4px;
}

/* buttons */
.btn,
button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent);
	color: var(--accent-fg);
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	min-height: 46px;
}
.btn:hover {
	filter: brightness(1.07);
}
.btn:focus-visible {
	outline: 3px solid var(--plat);
	outline-offset: 3px;
}
.btn.ghost {
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
}
.btn:disabled {
	opacity: 0.5;
	cursor: default;
	filter: none;
}

/* the four regions */
.regions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 860px) {
	.regions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 460px) {
	.regions {
		grid-template-columns: minmax(0, 1fr);
	}
}
.region {
	background: var(--card);
	border: 1px solid var(--line);
	border-top: 4px solid var(--c, var(--accent));
	border-radius: var(--radius);
	padding: 16px;
}
.region h3 {
	margin: 0 0 2px;
}
.region .from {
	color: var(--muted);
	font-size: 14px;
	margin: 0 0 10px;
}
.region .start {
	margin: 0;
	font-size: 15px;
}
.region.hoenn {
	--c: #2fbf78;
}
.region.kanto {
	--c: #e0623a;
}
.region.sinnoh {
	--c: #b8c1c6;
}
.region.johto {
	--c: #8fa9c4;
}

/* features */
.features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 860px) {
	.features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.features {
		grid-template-columns: minmax(0, 1fr);
	}
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
}
.features .card {
	position: relative;
	padding-left: 52px;
}
/* a small emerald in a platinum setting: two octagons */
.features .card::before,
.features .card::after {
	content: '';
	position: absolute;
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.features .card::before {
	left: 17px;
	top: 21px;
	width: 22px;
	height: 22px;
	background: var(--bezel);
}
.features .card::after {
	left: 21px;
	top: 25px;
	width: 14px;
	height: 14px;
	background: linear-gradient(135deg, #6ff0b0, #1fa865 55%, #0c6038);
}
.features p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

/* the email updates box */
.signup {
	background: var(--card2);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	position: relative;
	overflow: hidden;
}
.signup::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--bezel);
}
.signup h2 {
	margin-top: 4px;
}
.signup p {
	margin: 0 0 6px;
	color: var(--muted);
	max-width: 40em;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.updates {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 540px;
	margin: 14px 0 4px;
}
.updates input {
	flex: 1 1 220px;
	min-width: 0;
	min-height: 46px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}
.updates input:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}
.updates .btn {
	flex: 0 0 auto;
}
.updates-note {
	min-height: 1.5em;
	margin: 6px 0 0;
	font-weight: 600;
}
.updates-note.ok {
	color: var(--ok);
}
.updates-note.err {
	color: var(--bad);
}

/* FAQ */
details {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	margin: 8px 0;
	padding: 0 16px;
}
summary {
	cursor: pointer;
	font-weight: 700;
	padding: 14px 0;
}
summary:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}
details[open] summary {
	border-bottom: 1px solid var(--line);
	margin-bottom: 10px;
}
details p {
	margin: 0 0 14px;
	font-size: 16px;
}

/* plain pages (privacy, 404) */
.page h2 {
	margin-top: 28px;
	font-size: 21px;
}
.page p {
	max-width: 44em;
}
.page code {
	font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0.05em 0.35em;
}
.page .btns {
	justify-content: flex-start;
}

/* footer */
footer {
	border-top: 1px solid var(--line);
	background: var(--bg2);
	padding: 24px 0 36px;
	font-size: 14px;
	color: var(--muted);
}
footer p {
	margin: 0 0 10px;
	max-width: 62em;
}
footer .links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
}
footer .links a {
	color: var(--fg);
}
