:root {
	color-scheme: light;
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-alt: #f4f5f7;
	--surface-dark: #111418;
	--surface-dark-soft: #1b2026;
	--text: #14161a;
	--muted: #666d76;
	--border: #d8dde3;
	--border-dark: #2d3440;
	--accent: #111418;
	--accent-hover: #2a3038;
	--accent-text: #ffffff;
	--link: rgb(29, 78, 216);
	--success: #24563b;
	--warning: #805800;
	--control-bg: #ffffff;
	--control-border: #3a414b;
	--control-focus: #ffffff;
	--cover-bg: #ffffff;
	--cover-muted: #5f6875;
	--nav-muted: #c9ced6;
	--divider-muted: #a3a9b1;
	--shadow-cover: rgba(0, 0, 0, 0.16);
	--c-green-600: rgb(22, 163, 74);
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bg: #101214;
	--surface: #171a1f;
	--surface-alt: #20242b;
	--surface-dark: #080a0d;
	--surface-dark-soft: #12161c;
	--text: #f2f4f7;
	--muted: #b0b8c3;
	--border: #363d47;
	--border-dark: #3d4652;
	--accent: #e8ecf2;
	--accent-hover: #cdd5df;
	--accent-text: #ffffff;
	--link: #9fc4ff;
	--success: #83d4a4;
	--warning: #f0c36a;
	--control-bg: #11151b;
	--control-border: #596371;
	--control-focus: #dce6f2;
	--cover-bg: #f7f8fa;
	--cover-muted: #5f6875;
	--nav-muted: #c9ced6;
	--divider-muted: #7f8895;
	--shadow-cover: rgba(0, 0, 0, 0.36);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #101214;
		--surface: #171a1f;
		--surface-alt: #20242b;
		--surface-dark: #080a0d;
		--surface-dark-soft: #12161c;
		--text: #f2f4f7;
		--muted: #b0b8c3;
		--border: #363d47;
		--border-dark: #3d4652;
		--accent: #e8ecf2;
		--accent-hover: #cdd5df;
		--accent-text: #ffffff;
		--link: #9fc4ff;
		--success: #83d4a4;
		--warning: #f0c36a;
		--control-bg: #11151b;
		--control-border: #596371;
		--control-focus: #dce6f2;
		--cover-bg: #f7f8fa;
		--cover-muted: #5f6875;
		--nav-muted: #c9ced6;
		--divider-muted: #7f8895;
		--shadow-cover: rgba(0, 0, 0, 0.36);
	}
}

* {
	box-sizing: border-box;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	font-family: "Noto Sans", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	display: flex;
	flex-flow: column nowrap;
}

header, h1, h2, h3, h4, h5, h6 {
	font-family: "Source Serif 4", Georgia, serif;
}

main {
	flex: 1 0 auto;
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 44px 0 70px;
}

footer {
	flex-shrink: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

a.link:not(.plain) {
	color: var(--link);
}

a.link:not(.plain):visited {
	color: rgb(126, 34, 206);
}

a.link:hover {
	text-decoration: underline;
}

a.link.plain {
	color: inherit;
}

button,
input,
select {
	font: inherit;
}

table thead {
	font-weight: bold;
}

table.with-borders {
	border: 1px solid var(--accent);
	padding: 0.5em;
}

table.with-borders thead {
	border-bottom: 1px solid var(--accent);
}

table.with-borders td {
	padding: 0 0.5em;
}

details > summary {
	cursor: pointer;
	user-select: none;
}

textarea {
	resize: vertical;
}

.header {
	background: var(--surface-dark);
	color: var(--accent-text);
	border-bottom: 1px solid #000000;
}

.header-inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: -0.02em;
	font-size: 1.1rem;
}

.logo-mark {
	display: grid;
	place-items: center;
	background: var(--cover-bg);
	color: var(--surface-dark);
	font-weight: 700;
	width: 36px;
	height: 36px;
	border-radius: 3px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 0.95rem;
	color: var(--nav-muted);

}

.nav a:hover {
	color: var(--accent-text);
}

.nav-menu {
	position: relative;
}

.nav-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nav-menu-trigger::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

.nav-menu-list {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 190px;
	padding: 10px 8px 8px;
	display: none;
	background: var(--surface-dark-soft);
	border: 1px solid var(--border-dark);
	border-radius: 4px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.nav-menu-list > * {
	display: block;
	padding: 8px 10px;
	border-radius: 3px;
	color: var(--nav-muted);
	white-space: nowrap;
}

.nav-menu-list > a:hover,
.nav-menu-list > a:focus {
	background: var(--surface-dark);
	color: var(--accent-text);
}

.nav-menu:hover .nav-menu-list,
.nav-menu:focus-within .nav-menu-list {
	display: block;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 22px;
}

.theme-switcher, .language-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--nav-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

header select {
	border: 1px solid var(--border-dark);
	border-radius: 3px;
	background: var(--surface-dark-soft);
	color: var(--accent-text);
	padding: 7px 28px 7px 9px;
	cursor: pointer;
}

.hero {
	border-bottom: 1px solid var(--border);
	background: var(--surface);
}

.hero-inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 64px 0 42px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}

.hero-copy {
	max-width: 880px;
}

.hero-kicker {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	line-height: 1;
	letter-spacing: -0.06em;
}

.hero p {
	margin: 20px 0 0;
	max-width: 660px;
	color: var(--muted);
	font-size: 1.12rem;
}

@media (max-width: 720px) {
	.section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.hero-inner {
		padding-top: 42px;
	}
}

.footer {
	background: var(--surface-dark);
	color: var(--nav-muted);
}

.footer-inner {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	font-size: 0.92rem;
}

@media (max-width: 720px) {
	.header-inner,
	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.nav {
		width: 100%;
		justify-content: space-between;
		gap: 12px;
	}

	.nav-menu-list {
		left: auto;
		right: 0;
	}

	.header-tools {
		width: 100%;
		align-items: flex-start;
		flex-direction: column;
	}
}

/* Components */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--accent);
	border-radius: 3px;
	background: var(--accent);
	color: var(--bg);
	font-weight: 700;
	cursor: pointer;
}

.button {
	padding: 12px 16px;
	white-space: nowrap;
}

.button:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

.button.small {
	padding: 0.25rem 0.5rem;
}

.button.light {
	background: var(--cover-bg);
	color: var(--surface-dark);
	border-color: var(--cover-bg);
}

.button.light:hover {
	background: #e9edf2;
	border-color: #e9edf2;
}

.button.secondary {
	background: transparent;
	color: var(--accent);
	border-color: var(--accent);
}

.button.secondary:hover {
	background: var(--accent);
	color: var(--bg);
}

.button.success {
	background-color: rgb(22 163 74);
	border-color: rgb(22 163 74);
	color: rgb(255 255 255);
}

.button.success:hover {
	background-color: rgb(21 128 61);
	border-color: rgb(21 128 61);
}

.button.success:disabled {
	background-color: rgb(74 222 128);
	border-color: rgb(74 222 128);
}

.button.danger {
	background-color: rgb(239, 68, 68);
	border-color: rgb(239, 68, 68);
	color: rgb(255, 255, 255);
}

.button.danger:hover {
	background-color: rgb(185, 28, 28);
	border-color: rgb(185, 28, 28);
}

.button.danger:disabled {
	background-color: rgb(252, 165, 165);
	border-color: rgb(252, 165, 165);
}

.notice { /* Used with <section> */
	margin-top: 28px; /* 30px */
	border-left: 5px solid var(--surface-dark);
	background: var(--surface-alt);
	padding: 16px 18px; /* 18px 20pc */
}

.notice h2 { /* h3 */
	margin: 0 0 6px;
	font-size: 1.12rem; /* 1.12rem */
}

.notice p {
	margin: 0;
	color: var(--muted);
}

.suggestion-window {
	border-width: 2px;
	border-color: rgb(129, 140, 248);
	background-color: rgb(255, 255, 255);
	box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	border-top-width: 1px;
	border-top-color: rgb(148, 163, 184);
	border-bottom-left-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
}

.suggestion-item {
	background-color: rgb(255, 255, 255);
	color: black;
	padding: 0.25rem;
	text-align: start;
}

.suggestion-item:hover {
	background-color: rgb(241, 245, 249);
}

.suggestion-item {
	cursor: pointer;
}

.suggestion-item:last-child {
	border-bottom-left-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
}

/* Utilities */

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
	margin-top: 0.25rem;
}