/* ---------------------------------------------------------------------------
   styles.css — tokens do DesignSystem.MD como variáveis + componentes
   --------------------------------------------------------------------------- */

/* Pausa não tem Light: o display pede 300 (token do DS) e recebe a Regular. */
@font-face {
	font-family: "Pausa";
	src: url("assets/fonts/Pausa-Regular.woff2") format("woff2");
	font-weight: 300 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Pausa";
	src: url("assets/fonts/Pausa-Italic.woff2") format("woff2");
	font-weight: 300 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Curiosa";
	src: url("assets/fonts/Curiosa-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Curiosa";
	src: url("assets/fonts/Curiosa-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Curiosa";
	src: url("assets/fonts/Curiosa-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Curiosa";
	src: url("assets/fonts/Curiosa-SemiBold.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* colors */
	--primary: #292524;
	--primary-active: #0c0a09;
	--ink: #0c0a09;
	--body: #4e4e4e;
	--body-strong: #292524;
	--muted: #777169;
	--muted-soft: #a8a29e;
	--hairline: #e7e5e4;
	--hairline-soft: #f0efed;
	--hairline-strong: #d6d3d1;
	--canvas: #f5f5f5;
	--canvas-soft: #fafafa;
	--surface-card: #ffffff;
	--surface-strong: #f0efed;
	--on-primary: #ffffff;
	--gradient-mint: #a7e5d3;
	--gradient-peach: #f4c5a8;
	--gradient-lavender: #c8b8e0;
	--gradient-sky: #a8c8e8;
	--gradient-rose: #e8b8c4;

	/* type */
	--font-display: "Pausa", "Times New Roman", serif;
	--font-text: "Curiosa", system-ui, sans-serif;

	/* radius */
	--r-xs: 4px;
	--r-sm: 6px;
	--r-md: 8px;
	--r-lg: 12px;
	--r-xl: 16px;
	--r-xxl: 24px;
	--r-pill: 9999px;

	/* spacing */
	--s-xxs: 4px;
	--s-xs: 8px;
	--s-sm: 12px;
	--s-base: 16px;
	--s-md: 20px;
	--s-lg: 24px;
	--s-xl: 32px;
	--s-xxl: 48px;
	--s-section: 96px;

	--shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
	--nav-h: 64px;
	--container: 1200px;
	--gutter: 24px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ base */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 24px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--body);
	font-family: var(--font-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--ink);
	text-decoration-color: var(--hairline-strong);
	text-underline-offset: 3px;
	transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease);
}
a:hover {
	text-decoration-color: var(--ink);
}

strong {
	font-weight: 500;
	color: var(--body-strong);
}

p {
	margin: 0 0 var(--s-sm);
}

ul,
ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-radius: var(--r-xs);
}

::selection {
	background: var(--ink);
	color: var(--on-primary);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 100;
	padding: 10px 20px;
	background: var(--primary);
	color: var(--on-primary);
	border-radius: var(--r-pill);
	text-decoration: none;
}
.skip:focus {
	top: 12px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
	position: relative;
}

.muted {
	color: var(--muted-soft);
}

/* ------------------------------------------------------------------ type scale */

.display-mega,
.display-xl,
.display-lg,
.display-md,
.display-sm {
	font-family: var(--font-display);
	font-weight: 300;
	color: var(--ink);
	margin: 0;
}
.display-mega {
	font-size: 64px;
	line-height: 1.05;
	letter-spacing: -1.92px;
}
.display-lg {
	font-size: 36px;
	line-height: 1.17;
	letter-spacing: -0.36px;
}
.display-md {
	font-size: 32px;
	line-height: 1.13;
	letter-spacing: -0.32px;
}
.display-sm {
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: 0;
}
.title-md {
	font-family: var(--font-text);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
	margin: 0;
}
.eyebrow {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}

/* ------------------------------------------------------------------ buttons & badges */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 10px 20px;
	border-radius: var(--r-pill);
	font-family: var(--font-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-primary {
	background: var(--primary);
	color: var(--on-primary);
}
.btn-primary:hover,
.btn-primary:active {
	background: var(--primary-active);
}
.btn-outline {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--hairline-strong);
	padding: 9px 19px;
}
.btn-outline:hover {
	border-color: var(--ink);
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	background: var(--surface-strong);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	margin: 0;
}

/* timestamp chip */
.ts {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 10px 0 8px;
	border-radius: var(--r-pill);
	border: 1px solid var(--hairline);
	background: var(--surface-card);
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: middle;
	transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.ts::before {
	content: "";
	width: 0;
	height: 0;
	border-left: 6px solid currentColor;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	opacity: 0.7;
}
.ts:hover {
	border-color: var(--ink);
}

/* wikilink */
.wl {
	color: var(--ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--hairline-strong);
	text-decoration-thickness: 1px;
}
.wl:hover {
	text-decoration-color: var(--ink);
}
.wl-plain {
	text-decoration: none;
}

.chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.chips .wl {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 3px 10px;
	border-radius: 13px;
	line-height: 1.35;
	background: var(--surface-strong);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-decoration: none;
	transition: background-color 150ms var(--ease);
}
.chips .wl:hover {
	background: var(--hairline);
}

.text-link {
	display: inline-flex;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}
.text-link span {
	transition: transform 150ms var(--ease);
}
.text-link:hover span {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------ top nav */

.top-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	background: rgba(245, 245, 245, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms var(--ease);
}
.top-nav.scrolled {
	border-bottom-color: var(--hairline);
}
.nav-inner {
	height: var(--nav-h);
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	gap: var(--s-lg);
}
.brand {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 20px;
	letter-spacing: -0.2px;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}
.nav-links ul {
	list-style: none;
	display: flex;
	gap: 2px;
}
.nav-links a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 12px;
	border-radius: var(--r-pill);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--muted);
	text-decoration: none;
	transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.nav-links a:hover {
	color: var(--ink);
}
.nav-links a.active {
	color: var(--ink);
	background: var(--surface-strong);
}

.search {
	margin-left: auto;
	flex: 0 1 260px;
	min-width: 0;
}
.search-field {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 8px 0 14px;
	border-radius: var(--r-pill);
	background: var(--surface-card);
	border: 1px solid var(--hairline-strong);
	color: var(--muted);
	cursor: text;
	transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.search-field:focus-within {
	border-color: var(--ink);
	box-shadow: 0 0 0 1px var(--ink);
}
.search-field svg {
	flex: none;
}
.search-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	letter-spacing: 0.15px;
	color: var(--ink);
}
.search-field input::placeholder {
	color: var(--muted);
}
.search-field input::-webkit-search-cancel-button {
	display: none;
}
.kbd {
	flex: none;
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--r-sm);
	border: 1px solid var(--hairline);
	background: var(--canvas-soft);
	font-family: var(--font-text);
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
}
.search-field:focus-within .kbd {
	display: none;
}

.nav-toggle {
	display: none;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--hairline-strong);
	border-radius: var(--r-pill);
	background: transparent;
	cursor: pointer;
	position: relative;
}
.nav-toggle span {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 1.5px;
	background: var(--ink);
	border-radius: 1px;
	transition: transform 200ms var(--ease), top 200ms var(--ease);
}
.nav-toggle span:first-child {
	top: 15px;
}
.nav-toggle span:last-child {
	top: 22px;
}
.nav-toggle[aria-expanded="true"] span:first-child {
	top: 18.5px;
	transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
	top: 18.5px;
	transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ search bar + panel */

.search-bar {
	border-top: 1px solid var(--hairline);
	background: rgba(245, 245, 245, 0.96);
}
.search-bar[hidden] {
	display: none;
}
.search-bar-inner {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 8px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-base);
}
.search-count {
	font-size: 14px;
	color: var(--body);
	font-variant-numeric: tabular-nums;
}
.search-count strong {
	color: var(--ink);
}
.search-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}
.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-pill);
	border: 1px solid transparent;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.icon-btn:hover {
	background: var(--surface-strong);
}
.icon-btn:disabled {
	color: var(--muted-soft);
	cursor: default;
	background: transparent;
}
.btn-text {
	height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
}
.btn-text:hover {
	background: var(--surface-strong);
}
.btn-text[aria-expanded="true"] {
	background: var(--surface-strong);
}

.search-panel {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter) var(--s-base);
}
.search-panel[hidden] {
	display: none;
}
.results {
	max-height: min(60vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--surface-card);
	border: 1px solid var(--hairline);
	border-radius: var(--r-xl);
	box-shadow: var(--shadow-soft);
	padding: var(--s-xs) 0;
}
.results-group + .results-group {
	border-top: 1px solid var(--hairline);
	margin-top: var(--s-xs);
	padding-top: var(--s-xs);
}
.results-group-head {
	display: flex;
	justify-content: space-between;
	padding: 10px var(--s-lg) 6px;
}
.results-group-head span:last-child {
	font-size: 12px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.result {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--s-base);
	width: 100%;
	padding: 10px var(--s-lg);
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	font-size: 15px;
	line-height: 1.47;
	letter-spacing: 0.15px;
	color: var(--body);
	cursor: pointer;
}
.result:hover,
.result.is-active {
	background: var(--canvas-soft);
}
.result mark {
	background: var(--hairline);
	color: var(--ink);
	border-radius: 3px;
	padding: 0 1px;
	box-shadow: inset 0 -2px 0 var(--ink);
}
.result-ts {
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	white-space: nowrap;
	padding-top: 2px;
}
.results-empty,
.results-more {
	padding: var(--s-lg);
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}
.results-empty strong {
	color: var(--ink);
}
.results-more {
	padding: 10px var(--s-lg);
	font-size: 13px;
}

/* marcas de busca na página */
mark.hl {
	background: var(--hairline);
	color: var(--ink);
	border-radius: 3px;
	box-shadow: inset 0 -2px 0 var(--ink);
	scroll-margin: 40vh 0;
}
mark.hl.current {
	background: var(--ink);
	color: var(--on-primary);
	box-shadow: 0 0 0 2px var(--ink);
}

/* ------------------------------------------------------------------ orbs (atmosfera) */

.orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(24px);
	z-index: 0;
}

/* ------------------------------------------------------------------ hero */

.hero {
	position: relative;
	padding: calc(var(--nav-h) + var(--s-section)) 0 var(--s-section);
	overflow: hidden;
}
.orb-hero-a {
	width: 620px;
	height: 620px;
	top: -120px;
	right: -80px;
	background: radial-gradient(circle at 50% 50%, var(--gradient-peach) 0%, rgba(244, 197, 168, 0) 68%);
	opacity: 0.85;
}
.orb-hero-b {
	width: 520px;
	height: 520px;
	top: 180px;
	right: 260px;
	background: radial-gradient(circle, var(--gradient-lavender) 0%, rgba(200, 184, 224, 0) 66%);
	opacity: 0.75;
}
.orb-hero-c {
	width: 480px;
	height: 480px;
	top: 40px;
	left: -220px;
	background: radial-gradient(circle, var(--gradient-mint) 0%, rgba(167, 229, 211, 0) 66%);
	opacity: 0.55;
}
.hero .container {
	z-index: 1;
}
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--s-xxl);
	align-items: center;
}
.hero-copy .badge {
	margin-bottom: var(--s-lg);
}
.hero-copy h1 {
	max-width: 13ch;
}
.hero-lede {
	margin: var(--s-lg) 0 var(--s-xl);
	max-width: 58ch;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.18px;
	color: var(--body);
}
.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-sm);
}
.people {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-base) var(--s-lg);
	margin-top: var(--s-xxl);
	padding-top: var(--s-lg);
	border-top: 1px solid var(--hairline-strong);
	max-width: 560px;
}
.person {
	display: flex;
	align-items: center;
	gap: var(--s-sm);
	font-size: 15px;
	line-height: 1.35;
}
.person:target .avatar {
	background: var(--ink);
	color: var(--on-primary);
}
.person strong {
	display: block;
	color: var(--ink);
}
.person-role {
	display: block;
	font-size: 13px;
	color: var(--muted);
	letter-spacing: 0;
}
.avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--surface-strong);
	border: 1px solid var(--hairline);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: var(--ink);
}
.hero-thumb {
	position: relative;
	display: block;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: var(--surface-card);
	border: 1px solid var(--hairline);
	aspect-ratio: 16 / 9;
	box-shadow: var(--shadow-soft);
}
.hero-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--ease);
}
.hero-thumb:hover img {
	transform: scale(1.02);
}
.play {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding-left: 3px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--on-primary);
}
.hero-caption {
	margin-top: var(--s-sm);
	font-size: 14px;
	color: var(--muted);
}
.stats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-lg) var(--s-xxl);
	margin-top: var(--s-section);
	padding-top: var(--s-lg);
	border-top: 1px solid var(--hairline);
}
.stats li {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.stat-num {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 36px;
	letter-spacing: -0.36px;
	line-height: 1;
	color: var(--ink);
	font-variant-numeric: lining-nums;
}
.stat-label {
	font-size: 14px;
	color: var(--muted);
}

/* ------------------------------------------------------------------ sections */

.section {
	padding: var(--s-section) 0;
	border-top: 1px solid var(--hairline);
}
.section-head {
	margin-bottom: var(--s-xxl);
	max-width: 760px;
}
.section-head .eyebrow {
	margin-bottom: var(--s-sm);
}
.section-sub {
	margin: var(--s-sm) 0 0;
	color: var(--muted);
	font-size: 16px;
}
.sub-head {
	margin: var(--s-section) 0 var(--s-lg);
}
.sub-head .count {
	font-family: var(--font-text);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
	vertical-align: super;
	margin-left: 4px;
}

.grid {
	display: grid;
	gap: var(--s-base);
}
.grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
	background: var(--surface-card);
	border: 1px solid var(--hairline);
	border-radius: var(--r-xl);
	transition: box-shadow 200ms var(--ease);
}
.card:hover {
	box-shadow: var(--shadow-soft);
}

/* ------------------------------------------------------------------ resumo */

.lead {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 26px;
	line-height: 1.38;
	letter-spacing: -0.1px;
	color: var(--ink);
	max-width: 36em;
	margin: 0;
}
.lead .wl {
	font-weight: 300;
}
.lead em {
	font-style: italic;
}

.feature-card {
	display: flex;
	flex-direction: column;
	gap: var(--s-sm);
	padding: var(--s-lg);
}
.feature-card p {
	flex: 1;
	margin: 0;
	font-size: 15px;
	line-height: 1.47;
	letter-spacing: 0.15px;
}
.card-num {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 24px;
	line-height: 1;
	color: var(--muted-soft);
}
.ts-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: var(--s-xxs);
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--s-xxl);
	align-items: start;
}
.steps {
	list-style: none;
	counter-reset: none;
}
.steps li {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: var(--s-base);
	padding: var(--s-base) 0;
	border-top: 1px solid var(--hairline);
}
.steps li:last-child {
	border-bottom: 1px solid var(--hairline);
}
.steps p {
	margin: 0;
	font-size: 18px;
	line-height: 1.44;
	letter-spacing: 0.18px;
	color: var(--body-strong);
}
.step-num {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 32px;
	line-height: 1;
	color: var(--muted-soft);
}
.stack {
	display: grid;
	gap: var(--s-base);
	margin-top: calc(var(--s-section) + 32px * 1.13 + var(--s-lg));
}
.prose-card {
	padding: var(--s-lg);
}
.prose-card .eyebrow {
	margin-bottom: var(--s-sm);
}
.prose-card ul,
.prose-card ol {
	list-style: none;
}
.prose-card li {
	position: relative;
	padding: 8px 0 8px 18px;
	font-size: 15px;
	line-height: 1.47;
	letter-spacing: 0.15px;
	border-top: 1px solid var(--hairline-soft);
}
.prose-card li:first-child {
	border-top: 0;
}
.prose-card li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 17px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--muted-soft);
}
.prose-card p {
	font-size: 15px;
}

/* ------------------------------------------------------------------ capítulos */

.mindmap {
	position: relative;
	overflow: hidden;
	background: var(--canvas-soft);
	border: 1px solid var(--hairline);
	border-radius: var(--r-xxl);
	padding: var(--s-xl);
	margin-bottom: var(--s-xxl);
}
.orb-mm {
	width: 560px;
	height: 560px;
	left: 50%;
	top: -340px;
	transform: translateX(-50%);
	background: radial-gradient(circle, var(--gradient-sky) 0%, rgba(168, 200, 232, 0) 65%);
	opacity: 0.7;
}
.mm-root {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--s-xl);
	text-align: center;
}
.mm-branches {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--s-sm);
}
.mm-branch {
	background: var(--surface-card);
	border: 1px solid var(--hairline);
	border-radius: var(--r-xl);
	padding: var(--s-md);
}
.mm-title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 var(--s-sm);
}
.mm-branch ul {
	list-style: none;
}
.mm-branch li {
	padding: 7px 0;
	border-top: 1px solid var(--hairline-soft);
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
}

.chapters {
	align-items: stretch;
}
.chapter {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: var(--s-base);
	padding: var(--s-lg);
	scroll-margin-top: calc(var(--nav-h) + 24px);
}
.chapter-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.chapter-num {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 48px;
	line-height: 0.9;
	letter-spacing: -0.96px;
	color: var(--muted-soft);
}
.chapter-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.chapter-body h3 {
	margin-bottom: var(--s-sm);
}
.chapter-body > p {
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: 0.15px;
}
.chapter-refs {
	margin: var(--s-xs) 0 var(--s-base);
}
.chapter-refs .eyebrow {
	margin-bottom: var(--s-xs);
}
.chapter .text-link {
	margin-top: auto;
	padding-top: var(--s-xs);
}

/* ------------------------------------------------------------------ temas */

.orb-card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--canvas-soft);
	border: 1px solid var(--hairline);
	border-radius: var(--r-xxl);
	padding: var(--s-xl);
	scroll-margin-top: calc(var(--nav-h) + 24px);
}
.orb-card > .orb {
	width: 420px;
	height: 420px;
	top: -220px;
	right: -160px;
	opacity: 0.8;
	z-index: -1;
}
.orb-card:nth-child(4n + 2) > .orb,
.orb-card:nth-child(4n + 3) > .orb {
	right: auto;
	left: -170px;
}
.orb-mint > .orb {
	background: radial-gradient(circle, var(--gradient-mint) 0%, rgba(167, 229, 211, 0) 66%);
}
.orb-peach > .orb {
	background: radial-gradient(circle, var(--gradient-peach) 0%, rgba(244, 197, 168, 0) 66%);
}
.orb-lavender > .orb {
	background: radial-gradient(circle, var(--gradient-lavender) 0%, rgba(200, 184, 224, 0) 66%);
}
.orb-sky > .orb {
	background: radial-gradient(circle, var(--gradient-sky) 0%, rgba(168, 200, 232, 0) 66%);
}
.orb-rose > .orb {
	background: radial-gradient(circle, var(--gradient-rose) 0%, rgba(232, 184, 196, 0) 66%);
}
.orb-card > .eyebrow {
	margin-bottom: var(--s-sm);
}
.orb-card h3 {
	margin-bottom: var(--s-base);
}
.orb-card > p {
	font-size: 16px;
	color: var(--body);
	margin-bottom: var(--s-lg);
}
.theme-row {
	padding-top: var(--s-sm);
	margin-top: var(--s-sm);
	border-top: 1px solid var(--hairline);
}
.theme-row .eyebrow {
	margin-bottom: var(--s-xs);
}

/* ------------------------------------------------------------------ citações */

.quotes {
	columns: 3;
	column-gap: var(--s-base);
}
.quote-card {
	break-inside: avoid;
	margin: 0 0 var(--s-base);
	padding: var(--s-xl);
	position: relative;
}
.quote-mark {
	display: block;
	height: 34px;
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 64px;
	line-height: 1;
	color: var(--muted-soft);
}
.quote-card blockquote {
	margin: 0 0 var(--s-lg);
}
.quote-card blockquote p {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 24px;
	line-height: 1.25;
	color: var(--ink);
}
.quote-card figcaption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-sm);
	padding-top: var(--s-base);
	border-top: 1px solid var(--hairline);
	font-size: 14px;
	line-height: 1.4;
	color: var(--muted);
}
.quote-who .wl {
	font-weight: 500;
}

/* ------------------------------------------------------------------ referências */

.conf-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-sm) var(--s-lg);
	font-size: 14px;
	color: var(--muted);
}
.conf-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.conf {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	background: var(--surface-strong);
	color: var(--ink);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.88px;
	text-transform: uppercase;
	white-space: nowrap;
}
.conf::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	box-sizing: border-box;
	border: 1.5px solid var(--ink);
}
.conf-explicita::before {
	background: var(--ink);
}
.conf-corrigida::before {
	background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}
.conf-inferida {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.table-card {
	background: var(--surface-card);
	border: 1px solid var(--hairline);
	border-radius: var(--r-xl);
	overflow: hidden;
}
.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0;
}
.ref-table {
	min-width: 980px;
}
th {
	position: sticky;
	top: 0;
	background: var(--canvas-soft);
	text-align: left;
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 1px solid var(--hairline);
	white-space: nowrap;
}
td {
	padding: 14px 16px;
	vertical-align: top;
	border-bottom: 1px solid var(--hairline-soft);
	color: var(--body);
}
tbody tr:last-child td {
	border-bottom: 0;
}
tbody tr {
	scroll-margin-top: calc(var(--nav-h) + 80px);
	transition: background-color 600ms var(--ease);
}
tbody tr:target,
tbody tr.flash {
	background: var(--surface-strong);
}
.col-name {
	min-width: 160px;
}
.col-name strong {
	font-size: 15px;
	color: var(--ink);
}
.ref-obras .col-name {
	min-width: 220px;
}
.col-ts {
	min-width: 96px;
	font-size: 0;
}
.col-ts .ts {
	margin: 0 4px 4px 0;
}
.col-contexto-da-mencao {
	min-width: 260px;
}

.conf-legend + .sub-head {
	margin-top: var(--s-xxl);
}
.extras {
	margin-top: var(--s-xxl);
}
.details {
	margin-top: var(--s-base);
	padding: 0;
}
.details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s-md) var(--s-lg);
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}
.details summary::-webkit-details-marker {
	display: none;
}
.details summary::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 200ms var(--ease);
}
.details[open] summary::after {
	transform: rotate(-135deg) translateY(-3px);
}
.details-body {
	padding: 0 var(--s-lg) var(--s-lg);
	font-size: 14px;
	line-height: 1.6;
	color: var(--body);
}
.details-body ul {
	list-style: none;
}

/* ------------------------------------------------------------------ transcript */

#transcript > .container > .details {
	margin: 0 0 var(--s-xxl);
}
.t-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: var(--s-xxl);
	align-items: start;
}
.t-toc {
	position: sticky;
	top: calc(var(--nav-h) + 24px);
	max-height: calc(100vh - var(--nav-h) - 48px);
	overflow-y: auto;
}
.t-toc .eyebrow {
	margin-bottom: var(--s-sm);
}
.t-toc ol {
	list-style: none;
}
.t-toc a {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 6px;
	padding: 7px 10px;
	border-radius: var(--r-md);
	font-size: 14px;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--muted);
	text-decoration: none;
	transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.t-toc a:hover {
	color: var(--ink);
}
.t-toc a.active {
	background: var(--surface-card);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--hairline);
}
.toc-num {
	font-variant-numeric: tabular-nums;
	color: var(--muted-soft);
}
.t-toc a.active .toc-num {
	color: var(--ink);
}
.t-body {
	max-width: 760px;
}
.t-chapter {
	scroll-margin-top: calc(var(--nav-h) + 24px);
}
.t-chapter + .t-chapter {
	margin-top: var(--s-xxl);
	padding-top: var(--s-xxl);
	border-top: 1px solid var(--hairline);
}
.t-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 var(--s-lg);
	font-weight: inherit;
}
.tp {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: var(--s-base);
	margin: 0 0 var(--s-md);
	scroll-margin-top: calc(var(--nav-h) + 24px);
}
.tp .ts {
	justify-self: start;
	margin-top: -1px;
}
.tp-text {
	font-size: 17px;
	line-height: 1.65;
	letter-spacing: 0.16px;
	color: var(--body-strong);
}

/* ------------------------------------------------------------------ prompts */

.p-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: var(--s-xxl);
	align-items: start;
}
.p-toc {
	position: sticky;
	top: calc(var(--nav-h) + 24px);
}
.p-toc .eyebrow {
	margin-bottom: var(--s-sm);
}
.p-toc ol {
	list-style: none;
}
.p-toc a {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 6px;
	padding: 8px 10px;
	border-radius: var(--r-md);
	font-size: 14px;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--muted);
	text-decoration: none;
	transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.p-toc a:hover {
	color: var(--ink);
}
.p-toc a.active {
	background: var(--surface-card);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--hairline);
}
.p-toc a.active .toc-num {
	color: var(--ink);
}
.p-body {
	display: grid;
	gap: var(--s-xl);
	min-width: 0;
}
.prompt {
	padding: var(--s-xl);
	scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prompt-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--s-lg);
	padding-bottom: var(--s-lg);
	margin-bottom: var(--s-lg);
	border-bottom: 1px solid var(--hairline);
}
.prompt-head .eyebrow {
	margin-bottom: var(--s-xs);
}
.prompt-head .display-sm {
	margin: 0;
}
.copy-btn {
	cursor: pointer;
	flex-shrink: 0;
}
.copy-btn.copied {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--on-primary);
}
.prompt-body {
	max-width: 68ch;
}
.prompt-body p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--body-strong);
	margin: 0 0 var(--s-md);
}
.prompt-body p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ footer */

.footer {
	padding: 64px 0;
	border-top: 1px solid var(--hairline);
	font-size: 15px;
	line-height: 1.47;
	letter-spacing: 0.15px;
	color: var(--body);
}
.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--s-xxl);
}
.footer-title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 24px;
	line-height: 1.2;
	color: var(--ink);
	margin-bottom: var(--s-sm);
}
.footer-meta {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: space-between;
	gap: var(--s-lg);
	margin: 0;
}
.footer-meta dt {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}
.footer-meta dd {
	margin: 0;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ extras (youtube-site) */

.display-mega.is-long {
	font-size: 52px;
	letter-spacing: -1.4px;
}
.hero-copy h1.is-long {
	max-width: 18ch;
}
.chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.chip-note {
	font-size: 12px;
	line-height: 1.35;
	color: var(--muted);
	letter-spacing: 0;
}
.nav-inner .brand {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nav-links {
	flex: none;
}
.hub-back {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0 -12px 0 -8px;
	border-radius: 50%;
	color: var(--muted);
	transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.hub-back:hover {
	background: var(--surface-strong);
	color: var(--ink);
}

/* índice de sites */
.hub-hero {
	padding-bottom: var(--s-xxl);
}
.hub-hero .badge {
	margin-bottom: var(--s-lg);
}
.hub-list {
	padding-top: var(--s-xxl);
}
.hub-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-lg);
}
.hub-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}
.hub-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--surface-strong);
	border-bottom: 1px solid var(--hairline);
	overflow: hidden;
}
.hub-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms var(--ease);
}
.hub-card:hover .hub-thumb img {
	transform: scale(1.02);
}
.hub-body {
	display: flex;
	flex-direction: column;
	gap: var(--s-xs);
	flex: 1;
	padding: var(--s-lg);
}
.hub-title {
	display: block;
	margin-bottom: var(--s-xxs);
}
.hub-meta,
.hub-counts {
	font-size: 14px;
	color: var(--muted);
	margin: 0;
}
.hub-counts {
	margin-top: auto;
	padding-top: var(--s-sm);
	border-top: 1px solid var(--hairline-soft);
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1279px) {
	.nav-links a {
		padding: 0 9px;
	}
	.search {
		flex-basis: 220px;
	}
	.mm-branches {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.display-mega {
		font-size: 48px;
		line-height: 1.08;
		letter-spacing: -0.96px;
	}
	.hero-grid,
	.split,
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.hero-copy h1 {
		max-width: 16ch;
	}
	.hero-media {
		max-width: 560px;
	}
	.grid-3,
	.hub-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.display-mega.is-long {
		font-size: 44px;
	}
	.chapters {
		grid-template-columns: 1fr;
	}
	.stack {
		margin-top: 0;
	}
	.quotes {
		columns: 2;
	}
	.t-layout,
	.p-layout {
		grid-template-columns: 1fr;
	}
	.t-toc {
		display: none;
	}
	.p-toc {
		position: static;
	}
	.p-toc ol {
		display: flex;
		flex-wrap: wrap;
		gap: var(--s-xs);
	}
	.p-toc a {
		grid-template-columns: auto auto;
		border: 1px solid var(--hairline-strong);
		border-radius: var(--r-pill);
		padding: 6px 14px;
	}
	.p-toc .toc-title {
		display: none;
	}
	.lead {
		font-size: 24px;
	}
	.orb-hero-a {
		width: 480px;
		height: 480px;
	}
	.orb-hero-b {
		width: 400px;
		height: 400px;
		right: 120px;
	}
}

/* tablet: links visíveis, busca recolhida num ícone que se expande sobre eles */
@media (min-width: 768px) and (max-width: 1023px) {
	.nav-inner {
		position: relative;
	}
	.nav-links a {
		padding: 0 8px;
	}
	.search {
		flex: 0 0 40px;
	}
	.search-field {
		padding: 0 11px;
		cursor: pointer;
	}
	.search-field input,
	.search-field .kbd {
		width: 0;
		opacity: 0;
	}
	.search:focus-within,
	.search:has(input:not(:placeholder-shown)) {
		position: absolute;
		left: calc(var(--gutter) + 180px);
		right: var(--gutter);
	}
	.search:focus-within .search-field,
	.search:has(input:not(:placeholder-shown)) .search-field {
		padding: 0 8px 0 14px;
		cursor: text;
	}
	.search:focus-within input,
	.search:has(input:not(:placeholder-shown)) input {
		width: auto;
		opacity: 1;
	}
}

@media (max-width: 767px) {
	.nav-inner {
		gap: var(--s-sm);
	}
	.nav-toggle {
		display: block;
	}
	.nav-links {
		position: absolute;
		top: var(--nav-h);
		left: 0;
		right: 0;
		background: var(--canvas);
		border-bottom: 1px solid var(--hairline);
		padding: var(--s-xs) var(--gutter) var(--s-base);
		display: none;
	}
	.nav-links.open {
		display: block;
	}
	.nav-links ul {
		flex-direction: column;
	}
	.nav-links a {
		height: 44px;
		padding: 0 12px;
		font-size: 17px;
	}
	.search {
		flex: 1 1 auto;
	}
	.kbd {
		display: none;
	}
	.grid-2 {
		grid-template-columns: 1fr;
	}
	.footer-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-content: stretch;
	}
}

@media (max-width: 639px) {
	.prompt {
		padding: var(--s-lg);
	}
	.prompt-head {
		flex-direction: column;
	}
	:root {
		--gutter: 20px;
		--s-section: 64px;
	}
	.display-mega {
		font-size: 36px;
		line-height: 1.1;
		letter-spacing: -0.72px;
	}
	.display-lg {
		font-size: 30px;
	}
	.display-md {
		font-size: 26px;
	}
	.brand {
		font-size: 17px;
	}
	.hero-lede {
		font-size: 16px;
	}
	.people {
		grid-template-columns: 1fr;
	}
	.stats {
		gap: var(--s-base) var(--s-lg);
	}
	.stat-num {
		font-size: 28px;
	}
	.grid-3,
	.hub-grid {
		grid-template-columns: 1fr;
	}
	.display-mega.is-long {
		font-size: 32px;
		letter-spacing: -0.5px;
	}
	.lead {
		font-size: 21px;
	}
	.mm-branches {
		grid-template-columns: 1fr;
	}
	.mindmap,
	.orb-card {
		padding: var(--s-lg);
	}
	.chapter {
		grid-template-columns: 1fr;
		gap: var(--s-sm);
	}
	.chapter-meta {
		flex-direction: row;
		align-items: center;
		gap: var(--s-sm);
	}
	.chapter-num {
		font-size: 36px;
	}
	.quotes {
		columns: 1;
	}
	.quote-card {
		padding: var(--s-lg);
	}
	.tp {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.tp-text {
		font-size: 16px;
	}
	.orb-hero-a {
		width: 340px;
		height: 340px;
		right: -140px;
	}
	.orb-hero-b {
		width: 300px;
		height: 300px;
		top: 320px;
		right: -60px;
	}
	.orb-hero-c {
		width: 300px;
		height: 300px;
		left: -160px;
	}
	.orb-card > .orb {
		width: 300px;
		height: 300px;
	}
	.search-bar-inner {
		padding: 6px var(--gutter);
	}
	.search-count {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition: none !important;
	}
}
