/* Seculum · seculum.app
   Tokens from DESIGN.md §2: true black, mono greys, one orange for "act now",
   rosé only as the background of protected time. */

:root {
	color-scheme: dark;

	--surface-0: #000;
	--surface-1: #141416;
	--surface-2: #1c1c1f;
	--separator: #26262a;
	--text-1: #f2f2f4;
	--text-2: #b4b4ba;
	--text-3: #85858b;
	--fill-anchor: #f2f2f4;
	--fill-commitment: #4a4a50;
	--stroke-routine: #85858b;
	--hatch: #2a2a2e;
	--signal: #ff6a00;
	--on-signal: #000;
	--affection-band: #2a1b20;
	--affection-edge: #9a7380;
	--bezel: #0d0d0f;
	--bezel-edge: #2e2e33;

	--sans:
		-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue",
		"Segoe UI", Roboto, system-ui, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 12px;
	--space-lg: 16px;
	--space-xl: 24px;
	--space-2xl: 32px;
	--space-3xl: 48px;
	--space-4xl: 64px;
	--space-5xl: 96px;

	--gutter: clamp(16px, 5vw, 48px);
	--section: clamp(96px, 14vw, 176px);

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);

	--fs-micro: 0.75rem;
	--fs-meta: 0.8125rem;
	--fs-body: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
	--fs-lead: clamp(1.125rem, 0.7vw + 0.95rem, 1.375rem);
	--fs-h2: clamp(2rem, 3.4vw + 1.1rem, 3.5rem);
	--fs-h1: clamp(2.75rem, 6.4vw + 1.2rem, 6.5rem);
}

/* "Aumentar contraste" on the web: the same high-contrast tokens as the app. */
@media (prefers-contrast: more) {
	:root {
		--text-2: #d0d0d4;
		--text-3: #b4b4ba;
		--stroke-routine: #b4b4ba;
		--fill-commitment: #5e5e64;
		--separator: #3a3a40;
		--hatch: #3a3a40;
		--affection-band: #382430;
		--affection-edge: #c89aa8;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--surface-0);
	color: var(--text-2);
	font-family: var(--sans);
	font-size: var(--fs-body);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img,
svg,
picture {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3 {
	color: var(--text-1);
	margin: 0;
	text-wrap: balance;
}

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

a {
	color: var(--text-1);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	text-decoration-color: var(--text-3);
	transition: text-decoration-color 150ms var(--ease-out);
}

a:hover {
	text-decoration-color: currentColor;
}

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

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

.skip {
	position: absolute;
	left: var(--space-lg);
	top: -100px;
	z-index: 10;
	padding: var(--space-sm) var(--space-md);
	background: var(--text-1);
	color: var(--surface-0);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.skip:focus {
	top: var(--space-lg);
}

.wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: max(var(--gutter), env(safe-area-inset-left))
		max(var(--gutter), env(safe-area-inset-right));
}

.mono {
	font-family: var(--mono);
	font-variant-numeric: tabular-nums;
}

.kicker {
	font-family: var(--mono);
	font-size: var(--fs-micro);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-3);
}

.lead {
	font-size: var(--fs-lead);
	line-height: 1.55;
	color: var(--text-2);
	max-width: 36em;
}

.text-link {
	font-weight: 500;
	text-decoration: underline;
}

.aside {
	font-size: 0.9375rem;
	color: var(--text-3);
	max-width: 34em;
}

/* MARK: Bar (the only glass, as in the app) */

.bar {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgb(0 0 0 / 0.72);
	-webkit-backdrop-filter: saturate(140%) blur(16px);
	backdrop-filter: saturate(140%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms var(--ease-out);
}

.bar.is-scrolled {
	border-bottom-color: var(--separator);
}

.bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	padding-top: env(safe-area-inset-top);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	text-decoration: none;
	color: var(--text-1);
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.bar-links,
.foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-xl);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bar-links a,
.foot-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--text-2);
	text-decoration: none;
	font-size: 0.9375rem;
}

.bar-links a:hover,
.foot-links a:hover,
.bar-links a[aria-current="page"],
.foot-links a[aria-current="page"] {
	color: var(--text-1);
}

/* MARK: Hero */

.hero {
	padding-block: clamp(32px, 8vw, 120px) clamp(72px, 10vw, 140px);
}

.hero-inner {
	display: grid;
	gap: var(--space-2xl);
	align-items: center;
}

.hero-monk {
	width: min(176px, 46vw);
}

.monk {
	width: 100%;
	height: auto;
	overflow: visible;
}

.monk .sil {
	fill: var(--surface-0);
}

.monk .ink {
	fill: none;
	stroke: var(--text-1);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.monk .dot {
	fill: var(--text-1);
}

.monk text {
	font-family: var(--mono);
	font-size: 15.2px;
	text-anchor: middle;
	dominant-baseline: central;
}

/* Until the opening takes over, the drawing waits; if the script never runs it shows itself. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.monk.is-pending .ink,
	.monk.is-pending .dot {
		opacity: 0;
		animation: monk-fallback 200ms ease-out 2.5s forwards;
	}
}

@keyframes monk-fallback {
	to {
		opacity: 1;
	}
}

.hero-copy {
	display: grid;
	gap: var(--space-xl);
}

.hero h1 {
	font-size: var(--fs-h1);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.035em;
	margin-top: calc(var(--space-sm) * -1);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-lg) var(--space-xl);
	margin-top: var(--space-sm);
}

.soon {
	display: inline-flex;
	align-items: center;
	gap: var(--space-md);
	color: var(--text-1);
	font-weight: 500;
}

/* A hairline, not a button: nothing to press until the app is in the store. */
.soon::before {
	content: "";
	width: 24px;
	border-top: 1px solid var(--text-3);
}

@media (min-width: 860px) {
	.hero-inner {
		grid-template-columns: minmax(240px, 0.8fr) 1.6fr;
		gap: clamp(32px, 6vw, 96px);
	}

	.hero-monk {
		width: 100%;
		max-width: 260px;
		justify-self: end;
	}
}

/* MARK: Sections */

.feature {
	padding-block: var(--section);
	border-top: 1px solid var(--separator);
}

.feature-head {
	display: grid;
	gap: var(--space-lg);
	max-width: 34rem;
}

.feature-head--wide {
	max-width: 46rem;
}

.feature-head .kicker {
	margin-bottom: calc(var(--space-xs) * -1);
}

.feature h2 {
	font-size: var(--fs-h2);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin-bottom: var(--space-xs);
}

.feature-head p + p {
	margin-top: calc(var(--space-xs) * -1);
}

.split {
	display: grid;
	gap: var(--space-4xl);
	align-items: center;
}

.split > div {
	display: grid;
	gap: var(--space-2xl);
	align-content: start;
}

@media (min-width: 860px) {
	.split {
		grid-template-columns: 1.1fr 0.9fr;
		gap: clamp(48px, 7vw, 112px);
	}

	.split--media-first {
		grid-template-columns: 0.9fr 1.1fr;
	}
}

@media (max-width: 859px) {
	.split--media-first > :first-child {
		order: 2;
	}
}

/* MARK: Phone */

.phone {
	--w: min(320px, 76vw);
	--pad: calc(var(--w) * 0.028);
	--radius: calc(var(--w) * 0.155);
	width: var(--w);
	margin: 0 auto;
	padding: var(--pad);
	border-radius: var(--radius);
	background: var(--bezel);
	border: 1px solid var(--bezel-edge);
	box-shadow: inset 0 0 0 1px #000;
}

.phone {
	position: relative;
	margin-bottom: var(--space-2xl);
}

.phone figcaption {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: var(--space-md);
	text-align: center;
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.feature--protected .phone figcaption {
	color: var(--text-2);
}

.feature--leave .phone figcaption {
	color: var(--on-signal);
}

.phone img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius) - var(--pad));
	background: var(--surface-0);
}

.phone--lg {
	--w: min(340px, 78vw);
}

.phone--sm {
	--w: min(230px, 48vw);
}

/* MARK: Hoje, annotated */

.feature--today .feature-head {
	margin-bottom: var(--space-4xl);
}

.annotated {
	display: grid;
	gap: var(--space-3xl);
}

.callouts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-xl);
	max-width: 34rem;
	margin-inline: auto;
}

.callouts li {
	display: grid;
	gap: var(--space-xs);
}

.tag {
	font-family: var(--mono);
	font-size: var(--fs-meta);
	font-variant-numeric: tabular-nums;
	color: var(--text-1);
}

.tag--signal {
	color: var(--signal);
}

@media (min-width: 860px) {
	.feature--today .feature-head {
		margin-inline: auto;
		text-align: center;
		justify-items: center;
	}

	.annotated {
		--half: calc(min(340px, 78vw) / 2 + 1px);
		--pad: calc(min(340px, 78vw) * 0.028);
		--leader: clamp(40px, 5vw, 72px);
		position: relative;
		display: flex;
		justify-content: center;
		gap: 0;
	}

	.callouts {
		position: absolute;
		inset: 0;
		display: block;
		margin: 0;
		max-width: none;
	}

	.callouts li {
		position: absolute;
		width: min(20rem, calc(50% - var(--half) - var(--space-lg)));
		transform: translateY(-0.95em);
	}

	.callouts .r {
		left: calc(50% + var(--half));
		padding-left: calc(var(--leader) + var(--space-md));
	}

	.callouts .l {
		right: calc(50% + var(--half));
		padding-right: calc(var(--leader) + var(--space-md));
		text-align: right;
		justify-items: end;
	}

	/* Leader from the phone's edge to the note, at the height of what it points at. */
	.callouts li::before {
		content: "";
		position: absolute;
		top: 0.95em;
		width: var(--leader);
		border-top: 1px solid var(--text-3);
	}

	.callouts .r::before {
		left: 0;
	}

	.callouts .l::before {
		right: 0;
	}

	.callouts li::after {
		content: "";
		position: absolute;
		top: calc(0.95em - 3px);
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: var(--text-1);
	}

	.callouts .r::after {
		left: -3px;
	}

	.callouts .l::after {
		right: -3px;
	}

	.callouts .c2::after,
	.callouts .c4::after {
		background: var(--signal);
	}

	.callouts .c1 {
		top: calc(var(--pad) + (100% - 2 * var(--pad)) * 0.344);
	}

	.callouts .c2 {
		top: calc(var(--pad) + (100% - 2 * var(--pad)) * 0.419);
	}

	.callouts .c3 {
		top: calc(var(--pad) + (100% - 2 * var(--pad)) * 0.566);
	}

	.callouts .c4 {
		top: calc(var(--pad) + (100% - 2 * var(--pad)) * 0.705);
	}

	.callouts .c5 {
		top: calc(var(--pad) + (100% - 2 * var(--pad)) * 0.84);
	}
}

/* MARK: Ritmo */

.rhythm {
	margin: 0;
	display: grid;
	gap: var(--space-3xl);
}

.rhythm-row {
	display: grid;
	gap: var(--space-md);
}

.rhythm-label {
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-3);
}

.rhythm-note {
	font-size: 0.9375rem;
	color: var(--text-3);
}

.rail {
	position: relative;
	display: flex;
	align-items: center;
	height: 40px;
}

/* The day's line, like the rail of Hoje laid on its side. */
.rail::before {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	border-top: 1px solid var(--separator);
}

.seg {
	position: relative;
	height: 14px;
	border-radius: 7px;
	margin-inline: 1px;
}

.seg--anchor {
	background: var(--fill-anchor);
}

.seg--commit {
	background: var(--fill-commitment);
}

.seg--routine {
	border: 1.5px solid var(--stroke-routine);
	background: var(--surface-0);
}

.seg--night {
	height: 40px;
	border-radius: 8px;
	border: 1px dashed var(--text-3);
	background: var(--surface-0);
}

.g05 {
	flex: 0.5;
}

.g1 {
	flex: 1;
}

.g15 {
	flex: 1.5;
}

.g35 {
	flex: 3.5;
}

.g4 {
	flex: 4;
}

.g5 {
	flex: 5;
}

.g7 {
	flex: 7;
}

.hours-axis {
	display: flex;
	justify-content: space-between;
	font-family: var(--mono);
	font-size: var(--fs-micro);
	font-variant-numeric: tabular-nums;
	color: var(--text-3);
	margin-top: calc(var(--space-xs) * -1);
}

.sleep-line {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-height: 48px;
	padding: 0 var(--space-lg);
	border-radius: 14px;
	background: var(--surface-2);
	color: var(--text-1);
	font-size: 0.9375rem;
}

.sleep-total {
	margin-left: auto;
}

.i {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--text-2);
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.hatch-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-md);
	min-height: 48px;
	padding: 0 var(--space-md);
	border: 1.5px solid var(--stroke-routine);
	border-radius: 14px;
	background: repeating-linear-gradient(-45deg, var(--hatch) 0 3px, transparent 3px 10px);
	color: var(--text-1);
	font-size: 0.875rem;
}

.hatch-line span {
	background: var(--surface-0);
	padding: 2px 6px;
	border-radius: 4px;
}

/* MARK: Peso */

.weights {
	margin: 0;
	display: grid;
	border-top: 1px solid var(--separator);
}

.weights > div {
	display: grid;
	grid-template-columns: 9.5rem 1fr;
	gap: var(--space-lg);
	padding-block: var(--space-lg);
	border-bottom: 1px solid var(--separator);
}

.weights dt {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	color: var(--text-1);
	font-weight: 600;
	font-size: 0.9375rem;
}

.weights dd {
	margin: 0;
	font-size: 0.9375rem;
}

.w {
	flex: none;
	width: 32px;
	height: 12px;
	border-radius: 6px;
}

.w--anchor {
	background: var(--fill-anchor);
}

.w--commit {
	background: var(--fill-commitment);
}

.w--routine {
	border: 1.5px solid var(--stroke-routine);
}

.w--small {
	height: 2px;
	background: var(--text-3);
}

.w--state {
	border: 1.5px solid var(--stroke-routine);
	background: repeating-linear-gradient(
		-45deg,
		var(--stroke-routine) 0 1.5px,
		transparent 1.5px 5px
	);
}

@media (max-width: 420px) {
	.weights > div {
		grid-template-columns: 1fr;
		gap: var(--space-xs);
	}
}

/* MARK: Tempo protegido (the rosé band) */

.feature--protected {
	background: var(--affection-band);
	border-top: 1.5px solid var(--affection-edge);
	border-bottom: 1.5px solid var(--affection-edge);
}

.feature--protected + .feature {
	border-top: 0;
}

.feature--protected .kicker,
.feature--protected .aside {
	color: var(--text-2);
}

.feature--protected .phone {
	--bezel: #120b0e;
}

/* MARK: Hora de sair (the one orange screen) */

.feature--leave {
	position: relative;
	isolation: isolate;
	background: var(--signal);
	color: var(--on-signal);
	border-top: 0;
}

.feature--leave::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--signal);
	transform-origin: 50% 46%;
}

.feature--leave h2,
.feature--leave .kicker,
.feature--leave p {
	color: var(--on-signal);
}

.feature--leave .kicker {
	opacity: 0.72;
}

.feature--leave .phone {
	--bezel: #000;
	--bezel-edge: #000;
}

/* Armed by the script: black until it comes into view, then the orange rises from a line. */
.feature--leave.is-armed {
	background: var(--surface-0);
}

.feature--leave.is-armed::before {
	transform: scaleY(0.003);
	transition: transform 400ms var(--ease-out);
}

.feature--leave.is-armed .leave-inner {
	opacity: 0;
	transition: opacity 200ms var(--ease-out) 220ms;
}

.feature--leave.is-armed.is-flooded::before {
	transform: scaleY(1);
}

.feature--leave.is-armed.is-flooded .leave-inner {
	opacity: 1;
}

.island-demo {
	display: grid;
	gap: var(--space-md);
	justify-items: start;
	padding-top: var(--space-lg);
}

.island-demo p {
	font-size: 0.9375rem;
	max-width: 26em;
}

.island {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 44px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	background: #000;
	color: var(--text-1);
	font-size: 0.9375rem;
}

/* MARK: Agente */

.pipeline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm) 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--mono);
	font-size: var(--fs-meta);
	color: var(--text-1);
}

.pipeline li + li::before {
	content: "→";
	margin-inline: 10px;
	color: var(--text-3);
}

.rules {
	display: grid;
	gap: var(--space-2xl);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	border-top: 1px solid var(--separator);
	padding-top: var(--space-xl);
}

.rules ul {
	margin: var(--space-md) 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-sm);
	color: var(--text-1);
	font-size: 0.9375rem;
}

.split > .phone-pair {
	position: relative;
	display: block;
	padding-bottom: 22%;
	width: min(100%, 440px);
	margin-inline: auto;
}

.phone-pair .phone {
	--w: min(300px, 64vw);
	margin: 0;
}

.phone-pair .phone:first-child figcaption {
	text-align: left;
}

.phone-pair .phone--sm {
	--w: min(230px, 48vw);
	position: absolute;
	right: 0;
	bottom: 0;
	box-shadow: 0 0 0 10px var(--surface-0);
}

/* MARK: Planejar */

.one-three-five {
	display: flex;
	gap: clamp(24px, 5vw, 56px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.one-three-five li {
	display: grid;
	gap: 2px;
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-3);
}

.one-three-five .num {
	font-family: var(--sans);
	font-size: clamp(4.5rem, 9vw, 8rem);
	font-weight: 100;
	line-height: 1;
	letter-spacing: 0;
	color: var(--text-1);
	font-variant-numeric: tabular-nums;
}

/* MARK: Privacidade */

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-2xl) clamp(24px, 4vw, 56px);
	margin: var(--space-3xl) 0;
}

.facts > div {
	border-top: 1px solid var(--text-3);
	padding-top: var(--space-lg);
}

.facts dt {
	color: var(--text-1);
	font-weight: 600;
	margin-bottom: var(--space-sm);
}

.facts dd {
	margin: 0;
	font-size: 0.9375rem;
	max-width: 30em;
}

/* MARK: Closing */

.closing {
	padding-block: var(--section);
	border-top: 1px solid var(--separator);
}

.closing-inner {
	display: grid;
	gap: var(--space-xl);
	justify-items: start;
}

.latin {
	font-size: var(--fs-h1);
	font-weight: 100;
	font-style: italic;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--text-1);
}

.closing h2 {
	font-size: var(--fs-lead);
	font-weight: 400;
	color: var(--text-2);
	max-width: 30em;
}

.closing-note {
	font-size: 0.9375rem;
	color: var(--text-3);
	max-width: 32em;
}

/* MARK: Footer */

.foot {
	border-top: 1px solid var(--separator);
	padding-block: var(--space-3xl) calc(var(--space-3xl) + env(safe-area-inset-bottom));
}

.foot-inner {
	display: grid;
	gap: var(--space-lg);
}

.foot-note {
	font-size: var(--fs-meta);
	color: var(--text-3);
}

@media (min-width: 860px) {
	.foot-inner {
		grid-template-columns: auto 1fr;
		align-items: center;
	}

	.foot-links {
		justify-content: flex-end;
	}

	.foot-note {
		grid-column: 1 / -1;
	}
}

/* MARK: Documents (privacidade, termos, suporte, 404) */

.doc {
	padding-block: clamp(48px, 8vw, 112px) var(--section);
}

.doc-inner {
	display: grid;
	gap: var(--space-3xl);
}

.doc-head {
	display: grid;
	gap: var(--space-lg);
	max-width: 44rem;
}

.doc h1 {
	font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
	font-weight: 200;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.doc-meta {
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.doc-body {
	max-width: 42rem;
	color: var(--text-2);
}

.doc-body h2 {
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	margin: var(--space-3xl) 0 var(--space-md);
	scroll-margin-top: 88px;
}

.doc-body > :first-child {
	margin-top: 0;
}

.doc-body p + p,
.doc-body p + ul,
.doc-body ul + p {
	margin-top: var(--space-lg);
}

.doc-body ul {
	margin: 0;
	padding-left: 1.1em;
	display: grid;
	gap: var(--space-md);
}

.doc-body li::marker {
	color: var(--text-3);
}

.doc-body b,
.doc-body strong {
	color: var(--text-1);
	font-weight: 600;
}

.callout-box {
	padding: var(--space-xl);
	border-radius: 18px;
	background: var(--surface-1);
	border: 1px solid var(--separator);
	color: var(--text-2);
}

.callout-box b {
	color: var(--text-1);
}

.toc {
	display: none;
}

@media (min-width: 1000px) {
	.doc-inner--toc {
		grid-template-columns: 13rem minmax(0, 42rem);
		gap: var(--space-3xl) clamp(48px, 6vw, 96px);
	}

	.doc-inner--toc .doc-head {
		grid-column: 1 / -1;
	}

	.toc {
		display: block;
		position: sticky;
		top: 96px;
		align-self: start;
	}

	.toc ol {
		margin: var(--space-md) 0 0;
		padding: 0;
		list-style: none;
		display: grid;
		gap: 2px;
	}

	.toc a {
		display: block;
		padding: 6px 0;
		color: var(--text-3);
		text-decoration: none;
		font-size: 0.875rem;
	}

	.toc a:hover {
		color: var(--text-1);
	}
}

/* FAQ */

.faq {
	border-top: 1px solid var(--separator);
}

.faq details {
	border-bottom: 1px solid var(--separator);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	min-height: 60px;
	padding-block: var(--space-md);
	color: var(--text-1);
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

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

.faq summary::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 1.5px solid var(--text-3);
	border-bottom: 1.5px solid var(--text-3);
	transform: translateY(-2px) rotate(45deg);
	transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.faq .answer {
	padding-bottom: var(--space-xl);
	display: grid;
	gap: var(--space-md);
	max-width: 40em;
}

@media (prefers-reduced-motion: no-preference) {
	.faq details[open] .answer {
		animation: reveal 200ms var(--ease-out);
	}
}

@keyframes reveal {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

.lost {
	display: grid;
	gap: var(--space-xl);
	justify-items: start;
	padding-block: clamp(64px, 14vw, 160px);
}

.lost img {
	width: 120px;
	height: auto;
	opacity: 0.8;
}
