/*
 * Kininusa News — base layer (Phase 5).
 * Minimal reset + typography + accessibility primitives.
 */

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

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

body {
	margin: 0;
	font-family: var(--kn-font-body);
	font-size: var(--kn-font-size-base);
	line-height: var(--kn-line-height-base);
	color: var(--kn-color-text);
	background-color: var(--kn-color-background);
	-webkit-font-smoothing: antialiased;
}

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

img {
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--kn-font-heading);
	line-height: var(--kn-line-height-tight);
	font-weight: var(--kn-font-weight-bold);
}

h1 {
	font-size: var(--kn-font-size-3xl);
}

h2 {
	font-size: var(--kn-font-size-2xl);
}

h3 {
	font-size: var(--kn-font-size-xl);
}

h4 {
	font-size: var(--kn-font-size-lg);
}

h5 {
	font-size: var(--kn-font-size-base);
}

h6 {
	font-size: var(--kn-font-size-sm);
}

p,
ul,
ol,
blockquote {
	margin: 0 0 1em;
}

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

a:hover {
	color: var(--kn-color-link-hover);
	text-decoration: underline;
}

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

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

/* Screen-reader text (WordPress convention). */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: var(--kn-space-3);
	left: var(--kn-space-3);
	z-index: var(--kn-z-overlay);
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--kn-space-3) var(--kn-space-4);
	clip: auto;
	clip-path: none;
	background: var(--kn-color-surface);
	color: var(--kn-color-text);
	border-radius: var(--kn-radius-sm);
	box-shadow: var(--kn-shadow-md);
}
