/* Design standard base: the page, its text and the shared states. Load after tokens.css. */

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

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

body {
	margin: 0;
	min-block-size: 100dvh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
hr {
	margin: 0;
}

/* The hidden attribute wins over every kit display rule. */
[hidden] {
	display: none !important;
}

h1 {
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	line-height: 1.3;
}

h2,
h3 {
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	line-height: 1.4;
}

h4,
h5,
h6 {
	margin: 0;
	font-size: var(--text-md);
}

b,
strong,
th,
dt,
h4,
h5,
h6 {
	font-weight: var(--weight-semibold);
}

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

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img,
video,
canvas {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

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

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

.muted {
	color: var(--text-secondary);
}

/* Numbers, dates, times and money: tabular figures, one line. */
.num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Text that may be long (a name, a title): one line, cut with an ellipsis. */
.truncate {
	display: block;
	max-inline-size: 28ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nowrap {
	white-space: nowrap;
}

.mono {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

.icon {
	inline-size: 18px;
	block-size: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon-sm {
	inline-size: 14px;
	block-size: 14px;
}

.icon-lg {
	inline-size: 22px;
	block-size: 22px;
}

/* An arrow, chevron or other icon that points along the reading direction turns in Arabic. */
:dir(rtl) .icon-flip {
	transform: scaleX(-1);
}

/* Pinned to the start edge, so a long hidden label never widens the page. */
.visually-hidden {
	position: absolute;
	inset-inline-start: 0;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	inset-block-start: var(--space-2);
	inset-inline-start: var(--space-2);
	z-index: 100;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: var(--on-ink);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
	}
}
