/* ==========================================================================
   Base: reset, typography, layout primitives, accessibility.
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.dps-shell {
	margin: 0;
	background: var(--dps-paper);
	color: var(--dps-text);
	font-family: var(--dps-font-body);
	font-size: var(--dps-fs-body);
	line-height: var(--dps-lh-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (max-width: 1023px) {
	body.dps-shell {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--dps-4);
	font-family: var(--dps-font-display);
	font-weight: 700;
	line-height: var(--dps-lh-heading);
	letter-spacing: var(--dps-ls-heading);
	color: inherit;
}

h1, h2, h3 {
	text-wrap: balance;
}

h1 {
	font-size: var(--dps-fs-display);
	line-height: var(--dps-lh-display);
	letter-spacing: var(--dps-ls-display);
}

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

h3 {
	font-family: var(--dps-font-body);
	font-size: var(--dps-fs-h3);
	font-weight: 600;
	letter-spacing: 0;
}

h4 {
	font-family: var(--dps-font-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}

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

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

.dps-content a,
.entry-content a,
.comment-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

ul,
ol {
	margin: 0 0 var(--dps-4);
	padding-left: 1.25em;
}

address {
	font-style: normal;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--dps-ink);
	outline-offset: 3px;
	border-radius: 6px;
}

.dps-header :focus-visible,
.dps-footer :focus-visible,
.dps-drawer :focus-visible,
.dps-search :focus-visible,
.dps-mobilebar :focus-visible {
	outline-color: var(--dps-cyan);
}

/* Layout primitives */

.dps-container {
	width: 100%;
	max-width: var(--dps-container);
	margin-inline: auto;
	padding-inline: var(--dps-gutter);
}

.dps-section {
	padding-block: var(--dps-section);
}

.dps-section--dark {
	background: var(--dps-ink);
	color: var(--dps-text-invert);
}

.dps-section--ink2 {
	background: var(--dps-ink-2);
	color: var(--dps-text-invert);
}

.dps-section--white {
	background: var(--dps-white);
}

.dps-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--dps-2);
	margin: 0 0 var(--dps-3);
	font-family: var(--dps-font-body);
	font-size: var(--dps-fs-xs);
	font-weight: 600;
	letter-spacing: var(--dps-ls-caps);
	text-transform: uppercase;
	color: var(--dps-muted);
}

.dps-section--dark .dps-eyebrow,
.dps-section--ink2 .dps-eyebrow {
	color: var(--dps-muted-invert);
}

.dps-lead {
	font-size: var(--dps-fs-lead);
	line-height: 1.6;
	color: var(--dps-muted);
	max-width: 62ch;
}

.dps-section--dark .dps-lead,
.dps-section--ink2 .dps-lead {
	color: var(--dps-muted-invert);
}

.dps-hide-sm {
	display: none;
}

@media (min-width: 1024px) {
	.dps-hide-sm {
		display: inline-flex;
	}
}

/* Accessibility helpers */

.dps-skip {
	position: fixed;
	top: -80px;
	left: var(--dps-gutter);
	z-index: 9999;
	padding: 12px 20px;
	background: var(--dps-lime);
	color: var(--dps-ink);
	border-radius: var(--dps-r-sm);
	font-weight: 600;
	font-size: var(--dps-fs-sm);
	transition: top var(--dps-t-fast) var(--dps-ease);
}

.dps-skip:focus {
	top: 12px;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

[hidden] {
	display: none !important;
}

body.dps-lock {
	overflow: hidden;
}

/* Content pages ---------------------------------------------------------- */

.entry-content,
.dps-content {
	max-width: 720px;
}

.entry-content > * + *,
.dps-content > * + * {
	margin-top: var(--dps-4);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--dps-8);
	margin-bottom: var(--dps-3);
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
	margin-top: 0;
}

.entry-content p {
	line-height: var(--dps-lh-body);
}

.entry-content img {
	border-radius: var(--dps-r);
}

.entry-content ul,
.entry-content ol {
	margin-top: var(--dps-3);
}
