/**
 * Intimacy Insight — Base Stylesheet
 * --------------------------------------------------------------------
 * Phase 1 (Foundation) placeholder. This file currently provides only
 * a minimal CSS reset and base typography so the site is not unstyled
 * during early development. Component-level styles (header, homepage
 * sections, single article, archive, resources) are added in their
 * respective build phases per the approved architecture and will be
 * appended to this file or split into the dedicated files already
 * scaffolded in /assets/css/.
 */

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

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

body {
	margin: 0;
	font-family: var(--ii-font-body);
	font-size: var(--ii-text-base);
	line-height: var(--ii-leading-normal);
	color: var(--ii-color-text-primary);
	background-color: var(--ii-color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ii-font-heading);
	font-weight: var(--ii-weight-semibold);
	line-height: var(--ii-leading-tight);
	margin: 0 0 var(--ii-space-4);
	color: var(--ii-color-text-primary);
}

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

a {
	color: var(--ii-color-primary-dark);
	text-decoration: none;
	transition: color var(--ii-transition-fast);
}

a:hover,
a:focus {
	color: var(--ii-color-primary-dark);
}

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

/* Accessibility: visible focus state for keyboard navigation. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--ii-color-primary);
	outline-offset: 2px;
}

/* Screen-reader-only utility class (skip links, form labels, etc.). */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--ii-color-bg);
	border-radius: var(--ii-radius-sm);
	box-shadow: var(--ii-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--ii-color-text-primary);
	display: block;
	font-size: var(--ii-text-sm);
	height: auto;
	left: var(--ii-space-2);
	line-height: normal;
	padding: var(--ii-space-3);
	text-decoration: none;
	top: var(--ii-space-2);
	width: auto;
	z-index: var(--ii-z-modal);
}

.ii-container {
	max-width: var(--ii-container-lg);
	margin-inline: auto;
	padding-inline: var(--ii-space-5);
}
