/* dropin.day's public pages (site/): plain HTML and CSS, no script (product-ui, public-pages.md).
   The app's tokens (web/src/app.css) and measures: the same header (52px, 16px sides, a 17px bold
   wordmark, the account icon at the right), the same system font, the same base size. */

:root {
	--bg: #fafaf9;
	--panel: #ffffff;
	--fg: #1c1917;
	--muted: #78716c;
	--faint: #a8a29e;
	--line: #e7e5e4;
	--soft: #f5f5f4;
	--accent: #1d4ed8;
	--on-accent: #ffffff;
	--danger: #b91c1c;
	color-scheme: light;
}

/* No script to set a class here: the system's choice. */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0c0a09;
		--panel: #1c1917;
		--fg: #f5f5f4;
		--muted: #a8a29e;
		--faint: #78716c;
		--line: #292524;
		--soft: #24201e;
		--accent: #60a5fa;
		--on-accent: #0c0a09;
		--danger: #f87171;
		color-scheme: dark;
	}
}

* {
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
	font-size: 16px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
	line-height: 1.5;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* The header: as the app's (web/src/lib/components/Shell.svelte). */
.site-header {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--line);
	background: var(--panel);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--fg);
}

.brand svg {
	display: block;
}

.brand .dot {
	fill: var(--accent);
}

.brand .day {
	color: var(--accent);
}

.brand:hover {
	text-decoration: none;
}

.account {
	position: relative;
	margin-left: auto;
}

.account summary {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	color: var(--muted);
	cursor: pointer;
	list-style: none;
}

.account summary::-webkit-details-marker {
	display: none;
}

.account summary:hover,
.account[open] summary {
	color: var(--fg);
}

.account .menu {
	position: absolute;
	right: 0;
	z-index: 10;
	width: 16rem;
	margin-top: 4px;
	padding: 8px 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
	box-shadow: 0 10px 24px rgb(0 0 0 / 0.12);
}

.account .menu a {
	display: block;
	padding: 8px 12px;
	color: var(--fg);
	font-size: 0.875rem;
}

.account .menu a:hover {
	background: var(--soft);
	text-decoration: none;
}

.account .menu hr {
	margin: 4px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

/* The column: as the app's wide pages (max-w-4xl, 16px sides, 24px top). */
main {
	max-width: 56rem;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.measure {
	max-width: 42rem;
}

h1 {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

h2 {
	margin: 2rem 0 0.5rem;
	font-size: 1.125rem;
}

.lead {
	margin: 0.75rem 0 0;
	font-size: 1.125rem;
	color: var(--muted);
}

.updated {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: var(--muted);
}

.prose p,
.prose li {
	margin: 0.5rem 0;
}

.prose ul {
	padding-left: 1.25rem;
}

code {
	font-family: ui-monospace, monospace;
	font-size: 0.9em;
}

.cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 1.5rem;
	padding: 0 18px;
	border-radius: 6px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
}

.cta:hover {
	text-decoration: none;
	filter: brightness(1.05);
}

.steps {
	display: grid;
	gap: 12px;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

.steps li {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
}

.steps b {
	display: block;
	margin-bottom: 4px;
}

.steps span {
	color: var(--muted);
	font-size: 0.9375rem;
}

.site-footer {
	max-width: 56rem;
	margin: 0 auto;
	padding: 16px 16px 32px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.8125rem;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.site-footer p {
	margin: 0;
}
