/* Pairmate — base reset + typography + layout primitives. */

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

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

body {
	margin: 0;
	font-family: var(--pm-font-body);
	font-size: var(--pm-text-md);
	line-height: var(--pm-line-base);
	color: var(--pm-ink);
	background: var(--pm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pm-font-serif);
	font-weight: 400;
	line-height: var(--pm-line-tight);
	color: var(--pm-ink);
	margin: 0 0 var(--pm-space-4);
}

h1 { font-size: var(--pm-text-4xl); }
h2 { font-size: var(--pm-text-3xl); }
h3 { font-size: var(--pm-text-2xl); }
h4 { font-size: var(--pm-text-xl); }
h5 { font-size: var(--pm-text-lg); }
h6 { font-size: var(--pm-text-md); }

p {
	margin: 0 0 var(--pm-space-4);
}

a {
	color: var(--pm-teal-dark);
	text-decoration: none;
}
a:hover,
a:focus-visible {
	text-decoration: underline;
}

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

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}
button:disabled,
button[disabled] {
	cursor: not-allowed;
}

input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

hr {
	border: none;
	border-top: 1px solid var(--pm-line);
	margin: var(--pm-space-6) 0;
}

::selection {
	background: var(--pm-teal);
	color: var(--pm-ink);
}

/* Layout primitives */

.pm-container {
	max-width: var(--pm-container-max);
	margin: 0 auto;
	padding: 0 var(--pm-space-5);
}

.pm-main {
	min-height: 60vh;
	padding: var(--pm-space-6) 0;
}

.pm-stack > * + * {
	margin-top: var(--pm-space-4);
}

.pm-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pm-space-3);
	align-items: center;
}

/* Utilities */

.pm-muted { color: var(--pm-muted); }
.pm-text-center { text-align: center; }
.pm-italic { font-style: italic; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--pm-line-2);
	clip: auto !important;
	clip-path: none;
	color: var(--pm-ink);
	display: block;
	height: auto;
	left: var(--pm-space-2);
	line-height: normal;
	padding: var(--pm-space-3) var(--pm-space-4);
	text-decoration: none;
	top: var(--pm-space-2);
	width: auto;
	z-index: var(--pm-z-toast);
}
