/*
Theme Name: Lissy Stam Portfolio
Theme URI: https://lissystam.nl
Author: Brainpink
Author URI: https://brainpink.nl
Description: Minimalistisch, typografisch portfolio-thema met scroll- en entree-animaties. Nagebouwd van het Lovable-ontwerp, zonder page builder en zonder externe afhankelijkheden.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lissy-stam
*/

/* ---------- Fonts (zelf gehost, AVG-proof) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--bg: hsl(40 20% 94%);
	--fg: hsl(0 0% 8%);
	--fg-80: hsl(0 0% 8% / .8);
	--muted: hsl(0 0% 55%);
	--border: hsl(0 0% 8% / .1);
	--surface: hsl(0 0% 8% / .05);
	--accent: hsl(120 60% 45%);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; font-size: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.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:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--fg); color: var(--bg); padding: .5rem 1rem; border-radius: .5rem;
}

.font-display {
	font-family: var(--font);
	font-weight: 900;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}
.eyebrow {
	font-size: .875rem;
	line-height: 1.25rem;
	font-weight: 500;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .025em;
}

/* ---------- Animatie-starttoestand (alleen met JS) ---------- */
.js [data-animate],
.js [data-reveal-children] > * { opacity: 0; }

/* ---------- Hoeknavigatie ---------- */
.corner {
	position: fixed;
	z-index: 50;
	font-size: .875rem;
	line-height: 1.25rem;
	font-weight: 500;
}
.corner a { transition: opacity .2s ease, color .2s ease; }
.corner a:hover { opacity: .7; }
.corner--tl { top: 2rem; left: 2rem; }
.corner--tr { top: 2rem; right: 2rem; }
.corner--bl { bottom: 2rem; left: 2rem; }
.corner--br { bottom: 2rem; right: 2rem; }
.corner--brand a { color: var(--accent); }

.back-link {
	display: inline-flex; align-items: center; gap: .5rem;
	color: var(--muted); font-weight: 400;
}
.back-link:hover { color: var(--fg); opacity: 1 !important; }
.back-link svg { width: 1rem; height: 1rem; }

/* Ingelogd: ruimte voor de WordPress-adminbalk */
.admin-bar .corner--tl, .admin-bar .corner--tr { top: calc(2rem + 32px); }
.admin-bar .badge { top: calc(1.5rem + 32px); }
@media (max-width: 782px) {
	.admin-bar .corner--tl, .admin-bar .corner--tr { top: calc(2rem + 46px); }
	.admin-bar .badge { top: calc(1.5rem + 46px); }
}

/* Draaiende badge */
.badge {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	translate: -50% 0;
	z-index: 50;
	width: 4rem;
	height: 4rem;
}
.badge a, .badge__inner { display: block; width: 100%; height: 100%; }
.badge svg { width: 100%; height: 100%; animation: spin 20s linear infinite; overflow: visible; }
.badge text {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .17em;
	fill: var(--fg);
	font-family: var(--font);
}
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Hero ---------- */
.hero {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 8rem 2rem 6rem;
}
.hero__photo { position: relative; margin-bottom: 3rem; }
.hero__img {
	width: 12rem;
	height: 12rem;
	object-fit: cover;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-xl);
	transition: scale .6s var(--spring), rotate .6s var(--spring);
}
.hero__img:hover { scale: 1.03; rotate: -1deg; }
.hero__img--placeholder {
	background: var(--surface);
	display: flex; align-items: center; justify-content: center;
	color: var(--muted); font-size: .875rem; text-align: center; padding: 1rem;
}
.hero__text {
	text-align: center;
	max-width: 32rem;
	margin-bottom: 6rem;
	font-size: 1.125rem;
	line-height: 1.625;
}

/* Zwevende emoji's */
.emoji { position: absolute; will-change: translate; }
.emoji--1 { top: -1rem; right: -1.5rem; }
.emoji--2 { top: 50%; right: -2.5rem; }
.emoji--3 { bottom: -1.25rem; right: -.5rem; }
.emoji__pop {
	animation:
		emoji-fade .4s ease var(--d, .6s) both,
		emoji-scale .75s linear var(--d, .6s) both;
}
.emoji__float {
	animation:
		emoji-rotate 4s ease-in-out calc(var(--d, .6s) + .5s) infinite,
		emoji-bob 3s ease-in-out calc(var(--d, .6s) + .5s) infinite;
}
.emoji__bubble {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	background: var(--bg);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	cursor: default;
	user-select: none;
	transition: scale .45s var(--spring);
}
.emoji__bubble:hover { scale: 1.15; }

@keyframes emoji-fade { from { opacity: 0; } to { opacity: 1; } }
/* Benadering van spring (stiffness 260, damping 14) */
@keyframes emoji-scale {
	0%   { scale: 0; }
	35%  { scale: 1.12; }
	55%  { scale: .95; }
	72%  { scale: 1.03; }
	86%  { scale: .99; }
	100% { scale: 1; }
}
@keyframes emoji-rotate {
	0%, 100% { rotate: 0deg; }
	33%      { rotate: -6deg; }
	66%      { rotate: 6deg; }
}
@keyframes emoji-bob {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -6px; }
}

/* ---------- Werklijst ---------- */
.work {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 2rem 8rem;
	margin-top: -6rem;
}
.work__item a {
	display: block;
	text-align: center;
	font-size: 12vw;
	line-height: .9;
	color: var(--fg);
	transition: color .3s ease;
}
.work__item a:hover, .work__item a:focus-visible { color: var(--muted); }

/* ---------- About / Contact ---------- */
.section {
	max-width: 42rem;
	margin: 0 auto;
	padding: 8rem 2rem;
	scroll-margin-top: 2rem;
}
.section__title { margin-bottom: 2rem; }
.about { display: flex; flex-direction: column; gap: 1.5rem; }
.about p, .about__p {
	font-size: 1.125rem;
	line-height: 1.625;
}
.about strong, .about b { font-weight: 600; }
.about__tagline { color: var(--muted); font-style: italic; }

.contact { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact__links, .contact__meta { display: flex; flex-direction: column; }
.contact__links { gap: .75rem; }
.contact__meta { gap: .5rem; }
.contact__links a {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	font-size: 1.125rem;
	line-height: 1.75rem;
	transition: color .2s ease;
	align-self: flex-start;
}
.contact__links a:hover { color: var(--muted); }
.contact__links svg { width: 1rem; height: 1rem; opacity: .5; transition: opacity .2s ease; }
.contact__links a:hover svg { opacity: 1; }
.contact__meta span { font-size: 1.125rem; line-height: 1.75rem; }
.contact__clock { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer__inner {
	max-width: 80rem;
	margin: 0 auto;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: .875rem;
	color: var(--muted);
}

/* Op de homepage staan About/Contact vast in de hoeken: houd de footer daarboven vrij */
.home .site-footer__inner { padding-bottom: 5rem; }

/* ---------- Project / archief ---------- */
.page-wrap {
	max-width: 56rem;
	margin: 0 auto;
	padding: 8rem 2rem 6rem;
}
.page-wrap--wide { max-width: 72rem; }
.page-head .eyebrow { margin-bottom: 1rem; }
.page-title {
	font-size: 12vw;
	line-height: .9;
	margin-bottom: 2rem;
	overflow-wrap: anywhere;
}
.page-intro {
	font-size: 1.25rem;
	line-height: 1.625;
	color: var(--muted);
	max-width: 42rem;
	margin-bottom: 4rem;
}
.page-intro p + p { margin-top: 1rem; }
.project-hero {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--surface);
	border-radius: 1rem;
	overflow: hidden;
	margin-bottom: 6rem;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero--video { aspect-ratio: 16 / 9; }
.project-hero--video iframe,
.project-hero--video video { width: 100%; height: 100%; border: 0; }

/* Content uit de blok-editor */
.entry-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p,
.entry-content li {
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--fg-80);
}
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li + li { margin-top: 1rem; }
.entry-content h2,
.entry-content h3 {
	font-size: .875rem;
	line-height: 1.25rem;
	text-transform: uppercase;
	letter-spacing: .025em;
	color: var(--muted);
	margin-top: 6rem;
	margin-bottom: 1.5rem;
}
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--muted); }
.entry-content strong { font-weight: 600; }
.entry-content figure { margin: 4rem 0; }
.entry-content img { border-radius: 1rem; }
.entry-content figcaption {
	margin-top: .75rem; font-size: .875rem; color: var(--muted); text-align: left;
}
.entry-content .wp-block-gallery { gap: 1rem; }
.entry-content .wp-block-gallery img { border-radius: .75rem; }
.entry-content .wp-block-embed__wrapper iframe,
.entry-content .wp-block-video video { border-radius: 1rem; width: 100%; }
.entry-content .wp-block-columns { gap: 1rem; }
.entry-content blockquote {
	margin: 4rem 0; padding: 0; border: 0;
	font-size: 1.5rem; line-height: 1.4; font-weight: 500;
}
.entry-content blockquote p { font-size: inherit; color: var(--fg); }
.entry-content blockquote cite { display: block; margin-top: 1rem; font-size: .875rem; color: var(--muted); font-style: normal; }
.alignwide { margin-left: calc(-1 * min(8rem, (100vw - 56rem) / 2 + 2rem)); margin-right: calc(-1 * min(8rem, (100vw - 56rem) / 2 + 2rem)); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignfull img { border-radius: 0; }

/* Volgend project */
.next-project {
	border-top: 1px solid var(--border);
	margin-top: 6rem;
	padding-top: 3rem;
}
.next-project .eyebrow { margin-bottom: 1rem; }
.next-project a {
	display: block;
	font-size: 10vw;
	line-height: .9;
	transition: color .3s ease;
}
.next-project a:hover { color: var(--muted); }

/* Projectgrid */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem 1.5rem;
}
.card { display: block; }
.card__media {
	aspect-ratio: 4 / 3;
	border-radius: 1rem;
	overflow: hidden;
	background: var(--surface);
	margin-bottom: 1rem;
}
.card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: scale .8s var(--ease);
}
.card:hover .card__media img { scale: 1.03; }
.card__title {
	font-size: 1.125rem;
	line-height: 1.5;
	font-weight: 500;
	transition: color .2s ease;
}
.card:hover .card__title { color: var(--muted); }
.card .eyebrow { margin-top: .25rem; font-size: .75rem; }
.empty { font-size: 1.125rem; color: var(--muted); }

.pagination { margin-top: 4rem; display: flex; gap: 1rem; font-size: .875rem; }
.pagination a:hover { color: var(--muted); }

/* 404 / standaardpagina */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Breakpoints (Tailwind md / lg) ---------- */
@media (min-width: 768px) {
	.hero__img { width: 14rem; height: 14rem; }
	.hero__text { font-size: 1.25rem; }
	.work__item a { font-size: 10vw; }
	.contact { grid-template-columns: 1fr 1fr; }
	.site-footer__inner { flex-direction: row; }
	.page-title { font-size: 8vw; }
	.page-intro { font-size: 1.5rem; }
	.grid { grid-template-columns: 1fr 1fr; }
	.next-project a { font-size: 6vw; }
}
@media (min-width: 1024px) {
	.work__item a { font-size: 8vw; }
}
@media (min-width: 1400px) {
	.page-title { font-size: 7rem; }
	.next-project a { font-size: 5rem; }
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-animate],
	.js [data-reveal-children] > * { opacity: 1; }
	.badge svg,
	.emoji__pop,
	.emoji__float { animation: none !important; }
	.hero__img, .emoji__bubble, .card__media img { transition: none; }
}
