/* sipper.dev. Colours come from the app icon (teal #268089 to slate #22485A). */

:root {
	color-scheme: light dark;
	--bg: #fbfbf9;
	--bg-tint: #eef3f2;
	--surface: #ffffff;
	--ink: #132322;
	--ink-2: #4a5958;
	--line: #d8e0df;
	--accent: #1c7277;
	--accent-strong: #145a5e;
	--on-accent: #ffffff;
	--band: #173b44;
	--band-ink: #eef5f4;
	--band-ink-2: #bcd0cf;
	--band-accent: #8edbd8;
	--band-line: rgb(255 255 255 / 0.14);
	--shot-shadow: drop-shadow(0 24px 36px rgb(19 35 34 / 0.18)) drop-shadow(0 2px 6px rgb(19 35 34 / 0.12));
	--max: 72rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--overlap: clamp(3rem, 11vw, 8rem);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1516;
		--bg-tint: #131e1f;
		--surface: #182425;
		--ink: #e7eeed;
		--ink-2: #a5b4b3;
		--line: #2a3a3a;
		--accent: #62c9c6;
		--accent-strong: #8fdcd9;
		--on-accent: #062120;
		--band: #0f2a30;
		--shot-shadow: drop-shadow(0 24px 36px rgb(0 0 0 / 0.45)) drop-shadow(0 2px 6px rgb(0 0 0 / 0.35));
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-strong); }

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

h1, h2, h3 {
	margin: 0 0 0.6em;
	color: var(--ink);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h2 {
	max-width: 20ch;
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	font-weight: 700;
}

h3 {
	font-size: 1.2rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; text-wrap: pretty; }

code {
	padding: 0.1em 0.35em;
	border-radius: 5px;
	background: color-mix(in srgb, var(--ink) 7%, transparent);
	font-family: var(--mono);
	font-size: 0.9em;
}

kbd {
	display: inline-block;
	min-width: 1.7em;
	margin-left: 0.2em;
	padding: 0.05em 0.4em;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--surface);
	color: var(--ink);
	font: 500 0.9em/1.4 var(--font);
	text-align: center;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 10;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	background: var(--surface);
	transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Header and footer */

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--ink);
	font-size: 1.125rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem clamp(1rem, 3vw, 1.75rem); }
.site-nav a { color: var(--ink-2); font-size: 0.975rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.site-footer {
	padding-block: 2.5rem 3rem;
	border-top: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 0.95rem;
}
.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* Actions */

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.button {
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}
.button:hover {
	border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
	color: var(--ink);
}
.button.primary {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}
.button.primary:hover {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
	color: var(--on-accent);
}

/* Not a control: says where Sipper will be available, so it must not look like a button. */
.status {
	margin-right: 0.75rem;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 600;
}

.fine { margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }

/* Home page */

.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }

.hero h1 {
	max-width: 15ch;
	font-size: clamp(2.4rem, 5.6vw, 4rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.lede {
	max-width: 36em;
	color: var(--ink-2);
	font-size: clamp(1.125rem, 1.9vw, 1.3125rem);
	line-height: 1.5;
}

.shot { margin: 0; }
.shot img { filter: var(--shot-shadow); }

.hero-shot {
	position: relative;
	z-index: 1;
	max-width: 62rem;
	margin: clamp(2.5rem, 6vw, 4rem) auto calc(-1 * var(--overlap));
}

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section.tint { background: var(--bg-tint); }
.section.after-hero { padding-top: calc(var(--overlap) + clamp(4rem, 9vw, 6.5rem)); }

.section-intro {
	max-width: 36em;
	color: var(--ink-2);
	font-size: 1.1875rem;
	line-height: 1.55;
}

/* minmax(0, 1fr) stops a wide screenshot or code block from stretching the single column. */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 900px) {
	.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.split.flip > :first-child { order: 2; }
}

.split h3 { margin-top: 1.75rem; margin-bottom: 0.35em; }

.points {
	display: grid;
	gap: 0.8rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}
.points li { position: relative; padding-left: 1.15rem; }
.points li::before {
	content: "";
	position: absolute;
	top: 0.68em;
	left: 0;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--accent);
}

/* Something for the translucent call alert to sit on, as it would on a desktop. */
.stage {
	display: grid;
	place-items: center;
	padding: clamp(1.5rem, 6vw, 4rem);
	border-radius: 18px;
	background: var(--band);
}

.shortcuts {
	margin: 1.75rem 0 0;
	border-top: 1px solid var(--line);
}
.shortcuts div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.6rem;
	border-bottom: 1px solid var(--line);
}
.shortcuts dt { color: var(--ink-2); }
.shortcuts dd { margin: 0; white-space: nowrap; }

.table-scroll { margin-top: clamp(2.5rem, 5vw, 4rem); overflow-x: auto; }

.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td {
	padding: 0.85rem 1.25rem 0.85rem 0;
	border-top: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--line); }
.spec th { width: 25%; min-width: 8.5rem; font-weight: 600; }
.spec td { color: var(--ink-2); }

.rows { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem 3rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
	.row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.row h3 { margin: 0; font-size: 1.25rem; }
.row p { max-width: 38em; }
.row > div > :last-child { margin-bottom: 0; }

.code {
	margin: 1rem 0;
	padding: 0.9rem 1.1rem;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font: 0.95rem/1.5 var(--mono);
}
.code code { padding: 0; background: none; font-size: inherit; }

.band { background: var(--band); color: var(--band-ink); }
.band h2 { color: var(--band-ink); }
.band .section-intro, .band p { color: var(--band-ink-2); }
.band a { color: var(--band-accent); }
.band a:hover { color: var(--band-ink); }

.facts {
	display: grid;
	gap: 0;
	max-width: 48rem;
	margin: 2.5rem 0 2rem;
	padding: 0;
	list-style: none;
}
.facts li {
	padding-block: 1rem;
	border-top: 1px solid var(--band-line);
	color: var(--band-ink-2);
}
.facts strong { color: var(--band-ink); font-weight: 650; }

.reqs { max-width: 48rem; margin: 2.5rem 0 0; }
.reqs div {
	display: grid;
	gap: 0.15rem 1.5rem;
	padding-block: 0.7rem;
	border-top: 1px solid var(--line);
}
.reqs div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 560px) {
	.reqs div { grid-template-columns: 10rem minmax(0, 1fr); }
}
.reqs dt { font-weight: 600; }
.reqs dd { margin: 0; color: var(--ink-2); }

/* Text pages */

.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }

.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); letter-spacing: -0.025em; }
.prose h2 { max-width: none; margin-top: 2.75rem; font-size: 1.55rem; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.4em; font-size: 1.125rem; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45em; }
.prose .updated { color: var(--ink-2); }
.prose .reqs { margin-top: 1rem; }

.toc {
	margin: 2rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--line);
}
.toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.not-found { padding-block: clamp(4rem, 12vw, 8rem); }
