/* ==========================================================
   Jaap Denissen — Tech & Foto
   Design tokens
   ========================================================== */
:root {
	--color-bg:        #14100C;
	--color-bg-alt:    #1D1712;
	--color-card:      #241C15;
	--color-card-alt:  #2C2118;
	--color-border:    #3B2E20;
	--color-border-soft:#2A2016;
	--color-orange:    #FF6A1F;
	--color-orange-dim:#C9500F;
	--color-amber:     #FFB347;
	--color-amber-dim: #D99446;
	--color-text:      #F5EFE4;
	--color-text-muted:#B3A491;

	--font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
	--font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
	--font-mono:    'JetBrains Mono', 'Courier New', monospace;

	--radius: 10px;
	--wrap: 1120px;
}

/* ==========================================================
   Reset & base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background:
		radial-gradient(circle at 12% 0%, rgba(255,106,31,.07), transparent 42%),
		radial-gradient(circle at 88% 18%, rgba(255,179,71,.05), transparent 40%),
		var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-amber); text-decoration: none; }
a:hover { color: var(--color-orange); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--color-text); }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 5vw, 24px); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; width: auto; height: auto;
	background: var(--color-orange); color: #0D0C0A; padding: 10px 16px;
	border-radius: 6px; z-index: 999; clip: auto;
}

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

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
	html { scroll-behavior: auto; }
}

/* ==========================================================
   Buttons / links
   ========================================================== */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-display); font-weight: 600; font-size: 15px;
	padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
	transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--color-orange); color: #0D0C0A; }
.btn--primary:hover { background: var(--color-amber); color: #0D0C0A; transform: translateY(-1px); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-orange); color: var(--color-orange); }

.link-arrow { font-family: var(--font-display); font-weight: 600; color: var(--color-amber); }
.link-arrow:hover { color: var(--color-orange); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
	background: rgba(13,12,10,.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--color-border);
	position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); }
.site-brand:hover { color: var(--color-text); }
.site-brand__mark { width: 36px; height: 36px; border-radius: 9px; display: block; }
.site-brand__mark--sm { width: 28px; height: 28px; margin-bottom: 10px; }
.site-brand__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }

.nav-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-menu a { color: var(--color-text-muted); font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: var(--color-orange); }

@media (max-width: 640px) {
	.site-nav { display: none; }
}

/* ==========================================================
   Hero + status bar signature element
   ========================================================== */
.hero { padding: clamp(56px, 9vw, 88px) 0 clamp(64px, 9vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 56px); align-items: center; }
.eyebrow, .section-eyebrow {
	font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
	color: var(--color-amber); margin-bottom: 14px;
}
.hero__title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: .5em; }
.hero__title .accent, .section-title .accent { color: var(--color-orange); }
.hero__lead { max-width: 520px; color: var(--color-text-muted); font-size: 18px; margin-bottom: 1.8em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media-frame {
	aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--color-border);
	background:
		radial-gradient(circle at 30% 20%, rgba(255,106,31,.22), transparent 55%),
		radial-gradient(circle at 75% 80%, rgba(255,179,71,.16), transparent 50%),
		var(--color-card);
	display: flex; align-items: flex-end; padding: 18px; font-size: 13px; color: var(--color-text-muted);
	gap: 8px;
}

.status-bar__dot {
	width: 8px; height: 8px; border-radius: 50%; background: #7CFC8A; display: inline-block;
	box-shadow: 0 0 8px #7CFC8A; animation: jd-pulse 1.6s ease-in-out infinite;
}
.status-bar__cursor { animation: jd-blink 1s steps(1) infinite; color: var(--color-orange); }
@keyframes jd-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes jd-blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
}
@media (max-width: 480px) {
	.hero__actions .btn { flex: 1; justify-content: center; }
	.contact-cta__inner .btn { width: 100%; justify-content: center; }
}

.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head-row .section-title { margin-bottom: 0; }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section--alt {
	background:
		radial-gradient(circle at 85% 0%, rgba(255,106,31,.06), transparent 45%),
		var(--color-bg-alt);
	border-top: 1px solid var(--color-border-soft);
	border-bottom: 1px solid var(--color-border-soft);
}
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); max-width: 760px; letter-spacing: -0.01em; }
.section-lead { color: var(--color-text-muted); max-width: 620px; font-size: clamp(15px, 1.6vw, 17px); margin-bottom: 2.2em; }
.section-cta { margin-top: 32px; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.theme-card {
	background: linear-gradient(160deg, var(--color-card-alt), var(--color-card));
	border: 1px solid var(--color-border); border-radius: var(--radius);
	padding: 26px 22px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.theme-card:hover { border-color: var(--color-orange); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,106,31,.12); }
.theme-card__icon { font-size: 26px; display: block; margin-bottom: 12px; }
.theme-card h3 { font-size: 16.5px; margin-bottom: .4em; }
.theme-card p { color: var(--color-text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ==========================================================
   Skills
   ========================================================== */
.skill-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.skill-card {
	background: linear-gradient(160deg, var(--color-card-alt), var(--color-card));
	border: 1px solid var(--color-border); border-radius: var(--radius);
	padding: 20px 20px 22px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.skill-card:hover { border-color: var(--color-orange); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,106,31,.1); }
.skill-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.skill-card__icon {
	font-size: 18px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,106,31,.1); border-radius: 8px;
}
.skill-card__label {
	font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
	border: 1px solid transparent;
}
.skill-card__label.is-expert   { color: var(--color-orange); background: rgba(255,106,31,.12); border-color: rgba(255,106,31,.3); }
.skill-card__label.is-advanced { color: var(--color-amber);  background: rgba(255,179,71,.1);  border-color: rgba(255,179,71,.28); }
.skill-card__label.is-medium   { color: var(--color-text-muted); background: rgba(179,164,145,.08); border-color: var(--color-border); }
.skill-card__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0 0 16px; line-height: 1.35; min-height: 2.5em; }

.skill-meter { display: flex; gap: 5px; }
.skill-meter__seg { height: 7px; flex: 1; border-radius: 4px; background: var(--color-border-soft); }
.skill-meter__seg.is-filled { background: linear-gradient(90deg, var(--color-orange-dim), var(--color-orange)); box-shadow: 0 0 8px rgba(255,106,31,.35); }

/* ==========================================================
   Project & post cards
   ========================================================== */
.project-grid, .post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.project-card, .post-card {
	background: linear-gradient(160deg, var(--color-card-alt), var(--color-card));
	border: 1px solid var(--color-border); border-radius: var(--radius);
	overflow: hidden; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.project-card:hover, .post-card:hover { border-color: var(--color-orange); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,106,31,.12); }
.project-card__link, .post-card__link { display: block; padding: 22px; color: var(--color-text); }
.post-card__thumb, .project-card__thumb { margin: -22px -22px 16px; }
.post-card__thumb img, .project-card__thumb img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.project-card__icon { font-size: 20px; }
.project-card__status, .post-card__meta { display: block; font-size: 12px; color: var(--color-amber); margin: 8px 0 10px; }
.project-card h3, .post-card h3 { font-size: 17px; margin-bottom: .4em; line-height: 1.3; }
.project-card p, .post-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.55; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.tag-list li {
	font-size: 12px; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text-muted);
}

.empty-state { color: var(--color-text-muted); font-family: var(--font-mono); }

/* ==========================================================
   Pull quote
   ========================================================== */
.pull-quote {
	text-align: center; max-width: 700px; margin: 0 auto; padding: 60px 24px; border: 0;
}
.pull-quote p {
	font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--color-orange);
}
.pull-quote cite { color: var(--color-text-muted); font-style: normal; font-size: 14px; }

/* ==========================================================
   Contact CTA & Contact page
   ========================================================== */
.contact-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-cta .section-lead { margin-bottom: 0; }

.page-hero { padding: clamp(48px, 8vw, 72px) 0 clamp(28px, 5vw, 40px); text-align: left; }
.contact-layout { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: clamp(24px, 5vw, 48px); }
.about-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 5vw, 48px); align-items: start; }
@media (max-width: 720px) { .contact-layout, .about-layout { grid-template-columns: 1fr; } }

.contact-layout__info a { font-size: 18px; }

.contact-form p { margin-bottom: 18px; }
.contact-form label { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 8px;
	padding: 12px 14px; color: var(--color-text); font-family: var(--font-body); font-size: 15px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
	border-color: var(--color-orange); outline: none;
}
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-family: var(--font-mono); font-size: 14px; }
.form-notice--success { background: rgba(124,252,138,.1); border: 1px solid #7CFC8A; color: #7CFC8A; }
.form-notice--error { background: rgba(255,106,31,.1); border: 1px solid var(--color-orange); color: var(--color-orange); }

/* ==========================================================
   About page
   ========================================================== */
.about-layout__photo img { border-radius: var(--radius); border: 1px solid var(--color-border); }
.about-layout__photo-placeholder {
	aspect-ratio: 4/5; background: var(--color-card); border: 1px dashed var(--color-border); border-radius: var(--radius);
	display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 13px;
}
.about-layout__stats { color: var(--color-text-muted); font-size: 13px; margin-top: 28px; }

/* ==========================================================
   Single post / project
   ========================================================== */
.single-post__header { padding: 60px 0 32px; }
.single-post__thumb img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.single-post__content { max-width: 760px; padding: 40px 0; font-size: 17.5px; }
.single-post__content h2, .single-post__content h3 { margin-top: 1.4em; }
.single-post__content img { border-radius: var(--radius); }
.post-nav { display: flex; justify-content: space-between; padding: 24px 0 60px; gap: 20px; font-family: var(--font-display); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--color-border); padding: clamp(44px, 8vw, 64px) 0 0; background: var(--color-bg-alt); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer__about p { color: var(--color-text-muted); max-width: 320px; font-size: 14px; }
.footer-feed { font-size: 20px; }
.nav-menu--footer { flex-direction: column; gap: 12px; }
.footer-widget-title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; color: var(--color-amber); }
.site-footer__bottom {
	border-top: 1px solid var(--color-border); padding: 18px 24px; display: flex; justify-content: space-between;
	color: var(--color-text-muted); font-size: 12.5px; flex-wrap: wrap; gap: 8px;
}
.site-footer__bottom a { color: var(--color-text-muted); }
.site-footer__bottom a:hover { color: var(--color-orange); }

@media (max-width: 640px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer { padding-bottom: 0; }
}
@media (max-width: 640px) and (hover: none) and (pointer: coarse) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ==========================================================
   Mobile bottom tab bar
   ========================================================== */
.mobile-tabbar {
	display: none;
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
	background: rgba(13,12,10,.97);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--color-border);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mobile-tabbar__item {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 6px 2px; border-radius: 10px; color: var(--color-text-muted);
	font-family: var(--font-mono); font-size: 10.5px; line-height: 1;
	transition: color .15s ease, background .15s ease;
}
.mobile-tabbar__icon { font-size: 19px; line-height: 1; }
.mobile-tabbar__item:hover,
.mobile-tabbar__item.is-active { color: var(--color-orange); background: rgba(255,106,31,.08); }

@media (max-width: 640px) and (hover: none) and (pointer: coarse) {
	.mobile-tabbar { display: flex; }
}
