/*
Theme Name: Florem
Theme URI: https://praktijkflorem.nl
Author: Hart IT
Author URI: https://hartit.nl
Description: Custom WordPress theme voor Praktijk Florem — psychologenpraktijk van Anja Folmer. Warm, rustig en vertrouwd ontwerp voor kinderen, jongeren, ouders en scholen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: florem
Tags: custom-theme, health, one-column, custom-menu, custom-logo, accessibility-ready

Dit bestand bevat de theme header, de reset en de basis typografie.
Design tokens staan in assets/css/tokens.css, componenten in assets/css/main.css.
*/

/* ==========================================================================
   1. Reset
   ========================================================================== */

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

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul[class],
ol[class] {
	margin: 0;
	padding: 0;
	list-style: none;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

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

button {
	background: none;
	border: 0;
	cursor: pointer;
}

table {
	border-collapse: collapse;
	width: 100%;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: var(--space-md) 0;
}

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   2. Basis
   ========================================================================== */

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

/* ==========================================================================
   3. Typografie
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-primary);
	text-wrap: balance;
}

h1 {
	font-weight: 600;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h2 {
	font-weight: 500;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h3 {
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.3;
}

h4 {
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.4;
}

h5,
h6 {
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.5;
}

p {
	text-wrap: pretty;
}

p + p {
	margin-top: var(--space-sm);
}

strong,
b {
	font-weight: 600;
}

small {
	font-size: 0.875rem;
}

blockquote {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	line-height: 1.55;
	color: var(--color-primary);
	border-left: 3px solid var(--color-accent);
	padding-left: var(--space-md);
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

/* Links */

a {
	color: var(--color-primary);
	text-decoration: none;
	background-image: linear-gradient(var(--color-accent), var(--color-accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}

a:hover,
a:focus-visible {
	background-size: 100% 2px;
}

/* Content-lijsten (binnen redactionele tekst) */

.entry-content ul,
.entry-content ol {
	margin: var(--space-sm) 0;
	padding-left: 1.35rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

/* ==========================================================================
   4. Toegankelijkheid
   ========================================================================== */

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

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--space-sm);
	z-index: 999;
	background: var(--color-primary);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-pill);
	background-image: none;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: var(--space-sm);
}
