/* Lanka Ideas - base styles */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body > main {
	flex: 1 0 auto;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

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

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: var(--fw-head);
}

p {
	margin: 0;
}

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

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

.on-dark :focus-visible {
	outline-color: var(--lime);
}

::selection {
	background: var(--lime);
	color: var(--text);
}

[hidden] {
	display: none !important;
}

.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;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	background: var(--text);
	color: #fff;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 500;
}

.skip-link:focus {
	top: 12px;
}

/* Page width: 1248px content with side padding (96px desktop, 20px phone). */
.wrap {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--pad));
	margin-inline: auto;
	padding-inline: var(--pad);
}

/* Shared type */
.label {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--muted);
}

.h-hero {
	font-size: var(--fs-hero);
	line-height: 1.18;
	letter-spacing: var(--ls-hero);
	max-width: 760px;
}

.h-section {
	font-size: var(--fs-section);
	line-height: 1.22;
	letter-spacing: var(--ls-section);
}

.lead {
	font-size: 14px;
	line-height: 1.7;
	color: var(--muted);
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
}

@media (max-width: 600px) {
	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
}

/* [CHECK] marks for the owner's review */
mark.li-check {
	background: var(--warn-bg);
	color: var(--warn);
	font-size: 0.82em;
	font-weight: 600;
	padding: 1px 5px;
	white-space: normal;
}
