/*
 * Raiment's public pages: quiet and typographic, as contineo-web. Warm paper, ink,
 * one amber accent; Newsreader for display, Inter for text, Plex Mono for labels.
 * Light and dark follow the system. No scripts, no inline styles (the pages run
 * under a CSP that forbids both); every asset lives under /_site/.
 */

@font-face {
	font-family: 'Newsreader Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(/_site/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations');
}
@font-face {
	font-family: 'Newsreader Variable';
	font-style: italic;
	font-display: swap;
	font-weight: 200 800;
	src: url(/_site/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations');
}
@font-face {
	font-family: 'Inter Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(/_site/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
}
/* Arial (or a metric twin) sized and spaced like Inter, so the text doesn't reflow when
   Inter arrives (font-display: swap). Measured on the privacy page's text: Inter is 7.07%
   wider than Arial; Inter's ascent/descent (1984/494 of 2048) over that. */
@font-face {
	font-family: 'Inter Fallback';
	src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica');
	size-adjust: 107.07%;
	ascent-override: 90.48%;
	descent-override: 22.53%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url(/_site/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}

:root {
	--bg: #f6f3ec;
	--fg: #161a22;
	--muted: #5d6270;
	--faint: #9a9da6;
	--line: #dcd7cb;
	--card: #efebe2;
	--ink: #1d2a44;
	--accent: #a8681f;
	--font-display: 'Newsreader Variable', 'Iowan Old Style', Georgia, serif;
	--font-sans: 'Inter Variable', 'Inter Fallback', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f131b;
		--fg: #ebe7de;
		--muted: #a1a6b2;
		--faint: #666c79;
		--line: #262d3b;
		--card: #151b26;
		--ink: #c9d4ea;
		--accent: #e2ac62;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/* Room for the scrollbar on every page, so a long page (privacy) and a short one
	   (home) centre their content in the same place: no sideways jump between them. */
	scrollbar-gutter: stable;
	background: var(--bg);
	color: var(--fg);
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-sans);
	font-feature-settings: 'cv11', 'ss01';
	line-height: 1.6;
}

h1,
h2,
p,
ul {
	margin: 0;
}

a {
	color: inherit;
}

::selection {
	background: color-mix(in oklab, var(--accent) 30%, transparent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

code {
	font-family: var(--font-mono);
	font-size: 0.88em;
}

/* The page's measure: one column, generous gutters. */
.wrap {
	margin-inline: auto;
	width: 100%;
	max-width: 72rem;
	padding-inline: 1.25rem;
}

@media (min-width: 640px) {
	.wrap {
		padding-inline: 2rem;
	}
}

/* Header and footer */
.site-header {
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 4rem;
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.brand img {
	width: 28px;
	height: 28px;
}
.nav {
	display: flex;
	gap: 1rem;
	list-style: none;
	padding: 0;
	font-size: 0.875rem;
}
@media (min-width: 640px) {
	.nav {
		gap: 1.75rem;
	}
}
.nav a {
	color: var(--muted);
	text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
	color: var(--fg);
}

.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--line);
}
.site-footer .wrap {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding-block: 2.5rem;
	font-size: 0.875rem;
	color: var(--muted);
}
@media (min-width: 640px) {
	.site-footer .wrap {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
.legal {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}
.legal img {
	width: 22px;
	height: 22px;
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	list-style: none;
	padding: 0;
}
.footer-links a {
	text-decoration: none;
}
.footer-links a:hover {
	color: var(--fg);
}

/* Page body */
.page {
	padding-top: 4rem;
	padding-bottom: 6rem;
}
@media (min-width: 640px) {
	.page {
		padding-top: 6rem;
	}
}
.measure {
	max-width: 42rem;
}

/* Small mono label: eyebrows. */
.label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.label a {
	text-decoration: none;
}

.title {
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 3rem;
	line-height: 1.08;
	letter-spacing: -0.015em;
}
@media (min-width: 640px) {
	.title--hero {
		font-size: 3.75rem;
	}
}
/* The name's "ai", in amber, where the name is set large. */
.stop {
	color: var(--accent);
}
.lede {
	margin-top: 1.5rem;
	font-size: 1.125rem;
	color: var(--muted);
}
.updated {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--faint);
}

/* Feature cards on the home page */
.features {
	display: grid;
	gap: 1.5rem;
	max-width: 56rem;
	margin-top: 3.5rem;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) {
	.features {
		grid-template-columns: 1fr 1fr;
	}
}
.features li {
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	background: var(--card);
	padding: 1.5rem;
}
.features h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.25rem;
}
.features p {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: var(--muted);
}

/* Long-form text (privacy, terms, the home page's sections). */
.prose {
	margin-top: 2.5rem;
}
.prose--after-cards {
	margin-top: 3.5rem;
}
.prose h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.25;
	margin-top: 2.75rem;
	margin-bottom: 0.75rem;
}
.prose p,
.prose ul {
	margin-bottom: 1rem;
	color: color-mix(in oklab, var(--fg) 88%, var(--bg));
}
.prose ul {
	list-style: disc;
	padding-left: 1.25rem;
}
.prose li {
	margin-bottom: 0.4rem;
}
.prose a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-color: var(--accent);
}

/* Sign in (/login): one narrow column, Google's button, what's asked for. */
.signin {
	max-width: 30rem;
}
.btn-google {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
	padding: 0.7rem 1.25rem 0.7rem 1rem;
	border: 1px solid #747775;
	border-radius: 999px;
	background: #fff;
	color: #1f1f1f;
	font-family: 'Roboto', var(--font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: box-shadow 120ms ease;
}
.btn-google:hover {
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}
@media (prefers-color-scheme: dark) {
	.btn-google {
		border-color: #8e918f;
		background: #131314;
		color: #e3e3e3;
	}
}
.signin-notes {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.9rem;
	color: var(--muted);
}
.signin-notes h2 {
	margin-bottom: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.signin-notes ul {
	margin: 0 0 1rem;
	padding-left: 1.1rem;
}
.signin-notes li {
	margin-bottom: 0.4rem;
}
.signin-notes a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 0.2em;
}

/* The app's own pages (google_login.page): the same frame, a smaller title. */
.title--app {
	font-size: 2.25rem;
}
.prose--app {
	margin-top: 1.5rem;
}
.prose--app h2 {
	margin-top: 2.5rem;
}
.prose--app .label {
	margin: 1.25rem 0 0.4rem;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.btn {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 0.4rem;
	background: var(--card);
	color: var(--fg);
	font: inherit;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
}
.prose .btn {
	text-decoration: none;
}
.btn:hover {
	border-color: var(--muted);
}
.btn--danger {
	border-color: #b3261e;
	background: #b3261e;
	color: #fff;
}
.btn--danger:hover {
	border-color: #8c1d18;
	background: #8c1d18;
}
