/*
Theme Name: derk eusman
Theme URI: https://derk-eusman-homepage.derk-eusman.chatgpt.site/
Author: derk eusman
Description: A calm, playful block theme for a personal portfolio, biography, and small digital projects.
Requires at least: 6.6
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: derk-eusman
Tags: full-site-editing, block-patterns, portfolio, one-column, custom-colors, custom-menu, editor-style
*/

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Nunito Sans";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
	--ink: #152a31;
	--paper: #f5f1e8;
	--paper-soft: #ebe6db;
	--cobalt: #4d6390;
	--ocean: #789c99;
	--sun: #b58a2a;
	--lavender: #9f8ce8;
	--line-dark: rgb(245 241 232 / 24%);
	--line-light: rgb(21 42 49 / 18%);
	--shell: min(100% - 48px, 1240px);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 5px; }
.shell { width: var(--shell); max-width: none !important; margin-inline: auto !important; }
.wp-block-group:empty { min-height: 1px; }

/* Header */
.site-header {
	position: relative;
	z-index: 10;
	display: grid !important;
	grid-template-columns: 1fr auto auto;
	gap: clamp(24px, 4vw, 72px);
	align-items: center;
	min-height: 104px;
	border-bottom: 1px solid var(--line-dark);
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.84rem;
	font-weight: 600;
}
.site-header .wp-block-site-title { margin: 0; font-size: 1rem; font-weight: 650; }
.site-header .wp-block-site-title a { text-decoration: none; }
.primary-navigation { gap: clamp(20px, 3vw, 42px); }
.primary-navigation .wp-block-navigation-item__content { opacity: 0.76; }
.primary-navigation .wp-block-navigation-item__content:hover { opacity: 1; }
.language { display: flex; gap: 7px; margin: 0; white-space: nowrap; }
.language span { opacity: 0.35; }
.language a { opacity: 0.76; }
.inner-page-header { background: var(--ink); color: var(--paper); }

/* Shared */
.eyebrow {
	margin: 0 0 24px;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sun);
}
.eyebrow.ink { color: var(--cobalt); }
.section-heading {
	display: grid;
	grid-template-columns: 0.65fr 1.35fr;
	gap: 32px;
	align-items: start;
}
.section-heading h2 {
	max-width: 820px;
	margin: 0;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(2.8rem, 6vw, 6.1rem);
	font-weight: 650;
	line-height: 0.95;
	letter-spacing: -0.065em;
}
.wp-block-button__link {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
}
.button-sun .wp-block-button__link { background: var(--sun); color: var(--ink); }
.text-button .wp-block-button__link {
	min-height: auto;
	padding: 5px 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: inherit;
}
.text-button .wp-block-button__link span { margin-left: 12px; font-size: 1rem; }
.text-link {
	width: fit-content;
	margin: 0;
	padding-block: 5px;
	border-bottom: 1px solid currentColor;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.79rem;
	font-weight: 650;
}
.text-link a { display: inline-flex; align-items: center; gap: 12px; }
.text-link span { font-size: 1rem; }

/* Hero */
.hero {
	position: relative;
	min-height: 96vh;
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
}
.hero-content {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: clamp(40px, 7vw, 120px);
	align-items: end;
	padding-block: clamp(90px, 12vh, 160px) 110px;
}
.hero-name {
	margin: 0;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(5.3rem, 12vw, 10.5rem);
	font-weight: 700;
	line-height: 0.77;
	letter-spacing: -0.085em;
}
.hero-intro { max-width: 520px; padding-bottom: 0.5rem; }
.hero-intro > p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.48rem); line-height: 1.45; }
.hero-links { margin-top: 38px !important; gap: 24px; }
.hero-foot {
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 72px;
	border-top: 1px solid var(--line-dark);
	color: rgb(245 241 232 / 66%);
	font-size: 0.8rem;
}
.hero-foot p { margin: 0; }
.hero-foot p:last-child { color: var(--sun); font-size: 1.2rem; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-axis { position: absolute; background: rgb(245 241 232 / 9%); }
.axis-horizontal { width: 100%; height: 1px; left: 0; top: 42%; }
.axis-vertical { width: 1px; height: 100%; left: 57%; top: 0; }
.orbit { position: absolute; border: 1px solid rgb(245 241 232 / 15%); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; right: -80px; top: 14%; }
.orbit-two { width: 690px; height: 690px; right: -210px; top: 0; }
.hero-disc { position: absolute; border-radius: 50%; }
.disc-ocean { width: 180px; height: 180px; left: 4%; bottom: 4%; background: rgb(120 156 153 / 16%); }
.disc-cobalt { width: 76px; height: 76px; left: 53%; top: 24%; background: rgb(77 99 144 / 42%); }
.sun-dot { position: absolute; width: 48px; height: 48px; right: 15%; top: 21%; border-radius: 50%; background: var(--sun); }
.letter-fragment {
	position: absolute;
	right: -0.08em;
	bottom: -0.25em;
	margin: 0;
	font-family: Montserrat, Arial, sans-serif;
	font-size: min(55vw, 760px);
	font-weight: 700;
	line-height: 1;
	color: rgb(77 99 144 / 24%);
}

/* Glimpses */
.glimpses { padding-block: clamp(100px, 13vw, 180px); }
.glimpse-grid { gap: 0; margin-top: clamp(70px, 9vw, 120px) !important; border-top: 1px solid var(--line-light); }
.glimpse-card {
	min-height: 390px;
	aspect-ratio: 1 / 1.12;
	padding: 24px 28px 30px 0;
	border-right: 1px solid var(--line-light);
}
.glimpse-card:not(:first-child) { padding-left: 28px; }
.glimpse-card:last-child { border-right: 0; }
.card-number { margin: 0; font-family: Montserrat, Arial, sans-serif; font-size: 0.72rem; color: var(--cobalt); }
.glimpse-card h3 { margin: 28px 0 12px; font-family: Montserrat, Arial, sans-serif; font-size: 1.16rem; }
.glimpse-card > p:last-child { max-width: 260px; margin: 0; font-size: 0.98rem; }
.glimpse-media { position: relative; width: 100%; height: 132px; overflow: hidden; margin-top: 36px !important; background: rgb(77 99 144 / 7%); border: 1px solid rgb(21 42 49 / 10%); }
.glimpse-media > .wp-block-group { position: absolute; min-height: 1px; margin: 0; }
.media-amsterdam > .wp-block-group { bottom: 0; border: 2px solid var(--cobalt); border-bottom: 0; }
.media-amsterdam > .wp-block-group:nth-child(1) { width: 26%; height: 68%; left: 10%; background: rgb(77 99 144 / 16%); }
.media-amsterdam > .wp-block-group:nth-child(2) { width: 31%; height: 88%; left: 36%; background: rgb(120 156 153 / 24%); }
.media-amsterdam > .wp-block-group:nth-child(3) { width: 23%; height: 55%; left: 67%; background: rgb(181 138 42 / 20%); }
.media-hospitality > .wp-block-group:nth-child(1) { width: 86px; height: 86px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 2px solid var(--cobalt); border-radius: 50%; box-shadow: inset 0 0 0 15px rgb(120 156 153 / 20%); }
.media-hospitality > .wp-block-group:nth-child(2) { width: 3px; height: 76px; left: 18%; top: 27px; background: var(--ink); box-shadow: 8px 0 0 var(--ink); }
.media-hospitality > .wp-block-group:nth-child(3) { width: 24px; height: 24px; right: 14%; top: 24px; border-radius: 50%; background: var(--sun); }
.media-making > .wp-block-group:nth-child(1), .media-making > .wp-block-group:nth-child(2) { width: 64px; height: 64px; }
.media-making > .wp-block-group:nth-child(1) { left: 21%; top: 24px; border-left: 3px solid var(--cobalt); border-top: 3px solid var(--cobalt); }
.media-making > .wp-block-group:nth-child(2) { right: 21%; bottom: 24px; border-right: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt); }
.media-making > .wp-block-group:nth-child(3) { width: 34px; height: 34px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(15deg); background: var(--sun); }
.media-adhd > .wp-block-group:nth-child(1) { width: 116px; height: 116px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--ocean); border-radius: 50%; }
.media-adhd > .wp-block-group:nth-child(2) { width: 27px; height: 27px; left: 26%; top: 23px; border-radius: 50%; background: var(--sun); }
.media-adhd > .wp-block-group:nth-child(3) { width: 18px; height: 18px; right: 22%; bottom: 23px; border-radius: 50%; background: var(--cobalt); }

/* Projects */
.projects-intro { padding-block: clamp(100px, 13vw, 180px); background: var(--cobalt); color: var(--paper); }
.project-heading { grid-template-columns: 0.65fr 1.15fr 0.85fr; }
.project-heading .section-copy { align-self: end; max-width: 360px; margin: 0; color: rgb(245 241 232 / 78%); }
.alarm-feature { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr); min-height: 720px; margin-top: clamp(75px, 9vw, 120px) !important; background: var(--paper); color: var(--ink); }
.project-copy { display: flex; flex-direction: column; padding: clamp(40px, 6vw, 78px); }
.project-meta { display: flex; justify-content: space-between; align-items: center; font-family: Montserrat, Arial, sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.project-meta p { margin: 0; }
.status { color: var(--cobalt); }
.project-copy h3 { margin: auto 0 24px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(3.4rem, 6.2vw, 6.4rem); line-height: 0.9; letter-spacing: -0.07em; }
.project-copy > p:not(.project-lead):not(.text-link) { max-width: 480px; }
.project-lead { max-width: 480px; font-size: 1.22rem; font-weight: 650; }
.project-copy .text-link { margin-top: 26px; }
.phone-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 720px; background: var(--ink); }
.phone-stage::before, .phone-stage::after { content: ""; position: absolute; border: 1px solid rgb(159 140 232 / 40%); border-radius: 50%; }
.phone-stage::before { width: 500px; height: 500px; }
.phone-stage::after { width: 360px; height: 360px; opacity: 0.6; }
.phone-frame { position: relative; z-index: 2; width: min(45%, 300px); overflow: hidden; margin: 0; border: 9px solid #0a1118; border-radius: 42px; box-shadow: 0 34px 70px rgb(0 0 0 / 38%); }
.phone-frame img { display: block; width: 100%; height: auto; }
.stage-label { position: absolute; z-index: 3; right: 26px; bottom: 22px; margin: 0; color: var(--lavender); font-family: Montserrat, Arial, sans-serif; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.project-pair { gap: 24px; margin-top: 24px !important; color: var(--ink); }
.compact-project { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 690px; padding: clamp(30px, 4vw, 54px); }
.app-lock-card { background: var(--ocean); }
.bingo-card { background: var(--sun); }
.compact-copy { position: relative; z-index: 2; margin-top: auto !important; }
.compact-copy h3 { margin: 0 0 16px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(3rem, 5vw, 5.2rem); line-height: 0.9; letter-spacing: -0.07em; }
.compact-copy > p:not(.text-link):not(.future-link) { max-width: 460px; margin: 0 0 28px; font-size: 1.08rem; }
.future-link { display: inline-block; width: fit-content; margin: 0; padding-block: 5px; border-bottom: 1px solid currentColor; font-family: Montserrat, Arial, sans-serif; font-size: 0.76rem; font-weight: 650; }
.nfc-art { position: relative; width: 240px; height: 240px; margin: clamp(50px, 8vw, 90px) auto 30px !important; }
.nfc-core { position: absolute; width: 34px; height: 34px; left: 28px; top: 103px; border-radius: 50%; background: var(--ink); }
.nfc-ring { position: absolute; top: 50%; left: 44px; transform: translateY(-50%); border: 9px solid var(--ink); border-left: 0; border-top-color: transparent; border-bottom-color: transparent; border-radius: 0 50% 50% 0; }
.ring-one { width: 64px; height: 104px; }
.ring-two { width: 112px; height: 160px; }
.ring-three { width: 162px; height: 218px; }
.bingo-art { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 390px); margin: clamp(50px, 7vw, 80px) auto 44px !important; border-top: 1px solid rgb(21 42 49 / 45%); border-left: 1px solid rgb(21 42 49 / 45%); transform: rotate(2deg); }
.bingo-art p { display: grid; place-items: center; aspect-ratio: 1; margin: 0; padding: 8px; border-right: 1px solid rgb(21 42 49 / 45%); border-bottom: 1px solid rgb(21 42 49 / 45%); font-family: Montserrat, Arial, sans-serif; font-size: 0.61rem; line-height: 1.2; text-align: center; }
.bingo-art .bingo-free { background: var(--ink); color: var(--paper); }
.all-projects { min-height: 88px; margin-top: 24px !important; padding-inline: 28px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font-family: Montserrat, Arial, sans-serif; font-size: 0.84rem; font-weight: 650; }
.all-projects a { display: flex; justify-content: space-between; align-items: center; min-height: 88px; }
.all-projects span { color: var(--sun); font-size: 1.3rem; }

/* About */
.about-preview { position: relative; overflow: hidden; padding-block: clamp(110px, 14vw, 200px); background: var(--paper); }
.about-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.8fr 0.7fr; gap: clamp(34px, 6vw, 90px); align-items: end; }
.about-title-wrap h2 { margin: 0; font-family: Montserrat, Arial, sans-serif; font-size: clamp(3rem, 6.6vw, 6.8rem); line-height: 0.94; letter-spacing: -0.07em; }
.about-copy { padding-bottom: 8px; }
.about-copy > p:not(.text-link) { margin: 0 0 22px; }
.about-lead { font-size: 1.25rem; font-weight: 650; }
.portrait-placeholder { min-height: 440px; display: flex; align-items: flex-end !important; justify-content: flex-end !important; padding: 24px; background: var(--paper-soft); border: 1px solid var(--line-light); }
.portrait-placeholder p { margin: 0; font-family: Montserrat, Arial, sans-serif; font-size: 0.68rem; font-weight: 650; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
.about-art { position: absolute; inset: 0; pointer-events: none; }
.about-letter { position: absolute; right: -0.18em; top: -0.25em; margin: 0; font-family: Montserrat, Arial, sans-serif; font-size: min(60vw, 780px); line-height: 1; font-weight: 700; color: rgb(120 156 153 / 16%); }
.about-dot { position: absolute; left: 42%; bottom: 6%; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); }

/* Contact and footer */
.contact-close { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 190px); background: var(--ink); color: var(--paper); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 34px; }
.contact-grid h2 { margin: 0; font-family: Montserrat, Arial, sans-serif; font-size: clamp(4.6rem, 11vw, 10.5rem); line-height: 0.8; letter-spacing: -0.085em; }
.contact-grid > div > p { max-width: 620px; margin: 52px 0 34px; font-size: 1.2rem; color: rgb(245 241 232 / 80%); }
.contact-orbits { position: absolute; inset: 0; pointer-events: none; }
.contact-orbits > .wp-block-group { position: absolute; right: -12%; top: 50%; transform: translateY(-50%); border: 1px solid rgb(245 241 232 / 13%); border-radius: 50%; }
.contact-orbits > .wp-block-group:nth-child(1) { width: 280px; height: 280px; }
.contact-orbits > .wp-block-group:nth-child(2) { width: 500px; height: 500px; }
.contact-orbits > .wp-block-group:nth-child(3) { width: 730px; height: 730px; }
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); }
.footer-grid { min-height: 250px; display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; padding-block: 54px; font-family: Montserrat, Arial, sans-serif; font-size: 0.75rem; }
.footer-grid .wp-block-site-title { margin: 0; font-size: 1rem; font-weight: 650; }
.footer-grid p { margin: 0; }
.footer-links, .footer-end { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-end { align-items: flex-end; color: rgb(245 241 232 / 58%); }
.muted-link { color: rgb(245 241 232 / 42%); }

/* Pages and posts */
.content-shell { min-height: 65vh; padding-block: clamp(80px, 10vw, 140px); }
.content-shell > h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: 0.92; letter-spacing: -0.07em; }
.post-card { padding-block: 40px; border-top: 1px solid var(--line-light); }
.post-card h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.5rem); }
.error-page { display: flex; flex-direction: column; justify-content: center; }

/* Editor */
.editor-styles-wrapper .hero-art,
.editor-styles-wrapper .about-art,
.editor-styles-wrapper .contact-orbits { pointer-events: auto; }
.editor-styles-wrapper .hero { min-height: 800px; }

@media (max-width: 900px) {
	:root { --shell: min(100% - 36px, 760px); }
	body { font-size: 17px; }
	.site-header { grid-template-columns: 1fr auto; min-height: 86px; }
	.primary-navigation { display: none !important; }
	.hero { min-height: auto; }
	.hero-content { grid-template-columns: 1fr; align-items: start; padding-block: 90px 150px; }
	.hero-intro { width: min(86%, 520px); margin-left: auto; }
	.section-heading, .project-heading { grid-template-columns: 1fr; }
	.section-heading .eyebrow { margin-bottom: 0; }
	.glimpse-grid { flex-wrap: wrap !important; }
	.glimpse-card { flex-basis: 50% !important; }
	.glimpse-card:nth-child(2) { border-right: 0; }
	.glimpse-card:nth-child(n+3) { border-top: 1px solid var(--line-light); }
	.alarm-feature { grid-template-columns: 1fr; }
	.project-copy { min-height: 580px; }
	.phone-stage { min-height: 680px; }
	.project-pair { flex-wrap: wrap !important; }
	.project-pair > .wp-block-column { flex-basis: 100% !important; }
	.compact-project { min-height: 620px; }
	.about-grid { grid-template-columns: 1fr 1fr; }
	.about-title-wrap { grid-column: 1 / -1; }
	.portrait-placeholder { min-height: 360px; }
	.contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	:root { --shell: min(100% - 28px, 520px); }
	.site-header { min-height: 76px; }
	.site-header .wp-block-site-title { font-size: 0.9rem; }
	.hero-content { gap: 50px; padding-block: 72px 140px; }
	.hero-name { font-size: clamp(4.8rem, 25vw, 7.4rem); }
	.hero-intro { width: 100%; }
	.hero-intro > p { font-size: 1.1rem; }
	.hero-links { align-items: flex-start; flex-direction: column; }
	.hero-foot p:first-child { max-width: 85%; font-size: 0.7rem; }
	.sun-dot { width: 30px; height: 30px; right: 12%; top: 17%; }
	.axis-vertical { left: 72%; }
	.disc-ocean { width: 120px; height: 120px; left: -38px; bottom: 8%; }
	.disc-cobalt { width: 48px; height: 48px; left: 70%; top: 25%; }
	.glimpses, .projects-intro { padding-block: 90px; }
	.section-heading h2 { font-size: clamp(2.7rem, 15vw, 4.5rem); }
	.glimpse-grid { display: block !important; margin-top: 60px !important; }
	.glimpse-card, .glimpse-card:not(:first-child) { min-height: 220px; aspect-ratio: auto; padding: 24px 0; border-right: 0; border-top: 1px solid var(--line-light); }
	.glimpse-card:first-child { border-top: 0; }
	.glimpse-media { height: 154px; margin-top: 30px !important; }
	.glimpse-card h3 { margin-top: 26px; }
	.project-copy { min-height: 600px; padding: 34px 26px 42px; }
	.phone-stage { min-height: 620px; }
	.phone-frame { width: 64%; }
	.compact-project { min-height: 580px; padding: 28px 24px 36px; }
	.nfc-art { margin-block: 28px 0 !important; transform: scale(0.8); }
	.bingo-art { width: 86%; margin-block: 46px 30px !important; }
	.about-preview { padding-block: 90px; }
	.about-grid { grid-template-columns: 1fr; }
	.about-title-wrap { grid-column: auto; }
	.portrait-placeholder { order: 2; min-height: 320px; }
	.about-copy { order: 3; }
	.about-dot { display: none; }
	.contact-close { padding-block: 100px; }
	.contact-grid h2 { font-size: clamp(4.5rem, 25vw, 7rem); }
	.contact-grid > div > p { margin-top: 40px; font-size: 1.08rem; }
	.footer-grid { grid-template-columns: 1fr 1fr !important; min-height: 300px; }
	.footer-end { grid-column: 1 / -1; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--line-dark); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
}
