/**
 * Global typography — body copy, headings, lists, links.
 * Load order: `base.css` → `main.css` → this file → `btns.css` (`app.html`).
 */

body {
	font-family: var(--app-font-body);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

/* inline text links */
body,
.app-link,
.app-link:hover,
.app-link:visited {
	color: var(--app-text);
}

.app-link,
.app-link:visited {
	text-decoration: none;
}

.app-link:hover {
	text-decoration: underline;
}

.app-link {
	text-underline-offset: 4px;
}

.status-bar {
	font-family: var(--app-font-system);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--app-font-heading);
	font-weight: 500;
	font-synthesis: weight;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

body,
p,
ul,
.h-ul {
	font-size: var(--font-size-base);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

h1 {
	font-size: var(--font-size-h1);
	letter-spacing: -0.045em;
}

h2 {
	font-size: var(--font-size-h2);
}

h3 {
	font-size: var(--font-size-h3);
}

h4 {
	font-size: var(--font-size-h4);
}

h5 {
	font-size: var(--font-size-h5);
}

h6 {
	font-size: var(--font-size-h6);
}

ul {
	margin-top: 0;
	margin-bottom: var(--app-space-8);
}

/* Pagination toolbars — bits-ui/shadcn `ul`; must not inherit prose list margins */
ul[data-slot="pagination-content"] {
	margin-bottom: 0;
	margin-top: 0;
}

.h-ul {
	font-size: var(--font-size-base);
	margin-bottom: var(--app-space-2);
}

small {
	font-size: var(--font-size-small);
}

/* Brand spelling stays TrainersMap even inside an uppercase line. */
.brand-name {
	text-transform: none;
}

/* Section eyebrow — uppercase caption above a heading */
.eyebrow {
	margin: 0 0 var(--app-space-103);
	color: var(--app-text-dim);
	display: flex;
	align-items: center;
	gap: var(--app-space-102);
	text-transform: uppercase;
	font-size: var(--font-size-caption);
	letter-spacing: 0.08em;
	font-weight: 700;
}

/* @ prefix on username handles. Size / weight / color inherit from the handle. */
.handle-at {
	font-family: var(--app-font-at);
}

code {
	font-family: var(--app-font-digital);
	font-size: var(--app-space-122);
	padding: var(--app-space-108) var(--app-space-113);
	background: var(--app-code-bg);
	color: var(--app-text);
}

/* New-tab marker on external links. Plain anchors only when they have no element children. */
a[target="_blank"]:not(:empty, :has(*))::after,
a[target="_blank"][data-slot="button"]::after {
	content: "↗";
	display: inline-block;
	flex-shrink: 0;
	margin-inline-start: var(--app-space-1);
}
