/* =================================================================
   Digital Distribution Netherlands — main stylesheet
   Standalone theme. Design tokens, layout, components.
   ================================================================= */

:root {
	/* Palette */
	--base: #F6F5F1;       /* warm off-white page */
	--paper: #FCFBF8;      /* lifted surfaces */
	--ink: #15171B;        /* near-black text */
	--muted: #585D66;      /* secondary text */
	--line: #E2E0D8;       /* hairlines on light */
	--pine: #134E3A;       /* deep pine */
	--pine-deep: #0E3B2C;  /* darkest pine, hero + footer ground */
	--accent: #1C7A57;     /* link / interactive green */
	--accent-bright: #2E9D6F;
	--cream: #EFEDE4;      /* text on pine */
	--cream-dim: #A9BDB1;  /* muted text on pine */
	--line-dark: rgba(239, 237, 228, 0.16); /* hairlines on pine */

	/* Type */
	--font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

	/* Rhythm */
	--wrap: 1120px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
	background: var(--base);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-bright); }

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

.mono {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1.4rem;
}
.eyebrow--light { color: var(--accent-bright); }

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	background: var(--ink);
	color: var(--cream);
	padding: 0.6rem 1rem;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}

/* ---------- Header ---------- */

.site-header {
	background: var(--pine-deep);
	color: var(--cream);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
}

.brand__link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--cream);
}
.brand__mark {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.14em;
	color: var(--accent-bright);
}
.brand__name {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	color: var(--cream-dim);
}

.header-cta {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cream);
	text-decoration: none;
	padding: 0.5rem 1rem;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.header-cta:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.site-nav__list {
	list-style: none;
	display: flex;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.site-nav__list a { color: var(--cream); text-decoration: none; }
.site-nav__list a:hover { color: var(--accent-bright); }

/* ---------- Hero ---------- */

.hero {
	background: var(--pine-deep);
	color: var(--cream);
	padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem);
	position: relative;
	overflow: hidden;
}
.hero::after {
	/* faint baseline grid texture, very subtle */
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
	background-size: 100% 2.4rem;
	opacity: 0.35;
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.hero__title {
	font-size: clamp(2.6rem, 6.2vw, 4.7rem);
	font-weight: 500;
	color: var(--cream);
	margin: 0 0 1.4rem;
}
.hero__lead {
	font-family: var(--font-body);
	font-size: clamp(1.05rem, 1.7vw, 1.22rem);
	line-height: 1.55;
	color: var(--cream);
	max-width: 34ch;
	margin: 0 0 2rem;
}
.hero__pills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.6rem;
	margin: 0;
	padding: 0;
}
.hero__pills li {
	color: var(--cream-dim);
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	font-size: 0.68rem;
}

/* ---------- Schematic ---------- */

.hero__schematic { width: 100%; }
.schematic { width: 100%; height: auto; display: block; overflow: visible; }

.schematic__lines path {
	fill: none;
	stroke: var(--accent-bright);
	stroke-width: 1.25;
	opacity: 0.55;
}
.schematic__source circle { fill: var(--accent-bright); }
.schematic__pulse {
	fill: none;
	stroke: var(--accent-bright);
	stroke-width: 1.5;
	transform-origin: 120px 180px;
	animation: ddn-pulse 3s ease-out infinite;
}
@keyframes ddn-pulse {
	0%   { transform: scale(1);   opacity: 0.8; }
	70%  { transform: scale(3.4); opacity: 0; }
	100% { transform: scale(3.4); opacity: 0; }
}
.schematic__nodes circle { fill: var(--cream); }
.schematic__label,
.schematic__endlabels text {
	font-family: var(--font-mono);
	fill: var(--cream-dim);
	font-size: 11px;
	letter-spacing: 0.03em;
}
.schematic__label--source { fill: var(--cream); }

/* ---------- Sections (shared) ---------- */

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

.section__title {
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	max-width: 18ch;
	margin: 0 0 1.4rem;
}
.section__title--invert { color: var(--cream); }

.lede {
	font-size: clamp(1.12rem, 1.7vw, 1.32rem);
	line-height: 1.5;
	color: var(--ink);
	max-width: 46ch;
	margin: 0 0 1.2rem;
	font-family: var(--font-body);
}
.lede--invert { color: var(--cream); }

.grid { display: grid; }
.grid--split {
	grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}
.grid__aside .eyebrow { margin-top: 0.4rem; }
.grid__main p:not(.lede) { color: var(--muted); max-width: 52ch; }

/* About */
.section--about { border-bottom: 1px solid var(--line); }

/* Services */
.section--services .eyebrow { margin-bottom: 2.6rem; }
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1.6rem 1.5rem 1.8rem;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 14px 30px -18px rgba(19, 78, 58, 0.45);
}
.card__no {
	display: block;
	color: var(--accent);
	font-size: 0.7rem;
	margin-bottom: 1.4rem;
}
.card__title {
	font-size: 1.4rem;
	margin: 0 0 0.7rem;
}
.card__text { color: var(--muted); margin: 0; }

/* Labels (inverted band) */
.section--labels {
	background: var(--pine);
	color: var(--cream);
}
.section--labels .grid__main p:not(.lede) { color: var(--cream-dim); max-width: 52ch; }

/* Audience */
.section--audience { border-top: 1px solid var(--line); }

/* Contact */
.section--contact { padding-bottom: calc(var(--section-y) + 1rem); }
.section--contact .eyebrow { margin-bottom: 2.4rem; }
.contact {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line);
	padding-top: 2.4rem;
}
.contact__label {
	color: var(--accent);
	margin: 0 0 0.7rem;
	font-weight: 500;
}
.contact__value {
	font-size: 1.02rem;
	color: var(--ink);
	line-height: 1.5;
	margin: 0;
}
.contact__value a { word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--pine-deep);
	color: var(--cream);
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}
.brand__mark--footer {
	font-size: 1.4rem;
	display: inline-block;
	margin-bottom: 0.6rem;
}
.site-footer__tagline {
	color: var(--cream-dim);
	max-width: 34ch;
	font-size: 0.95rem;
	margin: 0;
}
.site-footer__meta { text-align: right; }
.site-footer__meta .mono { color: var(--cream-dim); margin: 0 0 0.35rem; }
.site-footer__meta a { color: var(--cream); }
.site-footer__meta a:hover { color: var(--accent-bright); }

/* ---------- Generic content (page.php / index.php fallbacks) ---------- */

.page-content { padding-block: var(--section-y); }
.page-content .entry-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.page-content .entry-content { max-width: 68ch; }
.page-content .entry-content > * { margin-bottom: 1.1em; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__schematic { max-width: 460px; margin-top: 1rem; }
	.grid--split { grid-template-columns: 1fr; gap: 1rem; }
	.grid__aside .eyebrow { margin-bottom: 0.6rem; }
	.cards { grid-template-columns: 1fr; }
	.contact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.site-header__inner { flex-wrap: wrap; }
	.contact { grid-template-columns: 1fr; }
	.site-footer__inner { flex-direction: column; align-items: flex-start; }
	.site-footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.schematic__pulse { animation: none; opacity: 0; }
	.card { transition: none; }
}
