/*
Theme Name: Hedzer
Theme URI: https://hedzeroosterwal.com/
Author: Hedzer Oosterwal
Description: Personal site of Hedzer Oosterwal.
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.3.0
License: GPL-2.0-or-later
Text Domain: hedzer
*/

:root {
	--h-ground: #FFFFFF;
	--h-sand: #F4F4F5;
	--h-line: #E4E4E7;
	--h-ink: #121212;
	--h-graphite: #1C1C1C;
	--h-muted: #52525B;
	--h-soft: #A1A1AA;
	--h-accent: #121212;
	--h-on-dark: #FFFFFF;
	--h-display: 'Space Grotesk', Inter, system-ui, sans-serif;
}

body { margin: 0; background: var(--h-ground); color: var(--h-ink); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
a { color: var(--h-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--h-muted); }
:focus-visible { outline: 2px solid var(--h-ink); outline-offset: 2px; }

.h-wrap { box-sizing: border-box; width: 100%; max-width: 1148px; margin: 0 auto; padding: 0 24px; }
.h-narrow { max-width: 808px; }
.h-section { padding: 88px 0; }
.h-sand { background: var(--h-sand); }
.h-dark { background: var(--h-ink); color: var(--h-ground); }
.h-dark a { color: #FFFFFF; }
.h-dark a:hover { color: var(--h-soft); }

.h-eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--h-muted); }
.h-dark .h-eyebrow { color: var(--h-soft); }
.h-h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.h-text { margin: 18px 0 0; font-size: 19px; color: var(--h-muted); max-width: 680px; }
.h-dark .h-text { color: var(--h-soft); }

/* Header */
.h-header { border-bottom: 1px solid var(--h-line); }
.h-header .h-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 20px; padding-bottom: 20px; }
.h-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--h-ink); text-decoration: none; font-family: var(--h-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.h-mark:hover { color: var(--h-ink); }
.h-mono { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--h-ink); color: #FFFFFF; font-size: 15px; letter-spacing: 0.02em; }
.h-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.h-nav a { color: var(--h-ink); text-decoration: none; }
.h-nav a:hover { color: var(--h-muted); }
.h-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Home hero */
.h-hero { padding: 104px 0 88px; }
.h-hero-name { margin: 0; font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.95; letter-spacing: -0.035em; }
.h-hero-lead { margin: 28px 0 0; max-width: 720px; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; color: var(--h-muted); }
.h-hero-lead strong { color: var(--h-ink); font-weight: 600; }
.h-hero-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.h-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.h-btn-solid { background: var(--h-ink); color: var(--h-ground); }
.h-btn-solid:hover { background: #3F3F46; color: #FFFFFF; }
.h-btn-line { border: 1px solid var(--h-ink); color: var(--h-ink); }
.h-btn-line:hover { border-color: var(--h-muted); color: var(--h-muted); }

/* Now */
.h-now { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.h-now li { padding: 24px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--h-line); }
.h-now-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--h-muted); }
.h-now strong { display: block; font-family: var(--h-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.h-now p { margin: 0; font-size: 16px; color: var(--h-muted); }

/* Journey teaser on home */
.h-journey-teaser { margin: 40px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--h-ink); }
.h-journey-teaser li { position: relative; padding: 0 0 26px 28px; }
.h-journey-teaser li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--h-ink); }
.h-journey-teaser .h-year { font-family: var(--h-display); font-weight: 700; color: var(--h-accent); margin-right: 10px; }
.h-journey-teaser span:last-child { color: var(--h-muted); }

/* Things I build (a light touch) */
.h-builds { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.h-builds a, .h-builds span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--h-line); background: #FFFFFF; color: var(--h-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.h-builds a:hover { border-color: var(--h-ink); }
.h-builds .is-paused { color: var(--h-muted); background: transparent; }

/* Writing list */
.h-posts .wp-block-post-template { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.h-posts .wp-block-post-template > li { padding: 22px 0; border-top: 1px solid var(--h-line); }
.h-posts .wp-block-post-date { font-size: 14px; color: var(--h-muted); margin: 0 0 4px; }
.h-posts .wp-block-post-title { margin: 0; font-size: 24px; font-weight: 600; }
.h-posts .wp-block-post-title a { color: var(--h-ink); text-decoration: none; }
.h-posts .wp-block-post-title a:hover { color: var(--h-muted); }
.h-posts .wp-block-post-excerpt { margin: 6px 0 0; color: var(--h-muted); }
.h-posts .wp-block-post-excerpt__more-text { display: none; }

/* Pages */
.h-page { padding: 72px 0 104px; }
.h-page .wp-block-post-title { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.025em; margin: 0 0 28px; }
.h-page .wp-block-post-content { font-size: 19px; line-height: 1.7; }
.h-page .wp-block-post-content > * + * { margin-block-start: 1.1em; }
.h-page .wp-block-post-content h2 { font-size: 30px; margin-top: 2em; }
.h-page .wp-block-post-content h3 { font-size: 22px; margin-top: 1.6em; }
.h-page .wp-block-post-content img { max-width: 100%; height: auto; border-radius: 12px; }
.h-meta { margin: 0 0 8px; font-size: 14px; color: var(--h-muted); }

/* Journey timeline (page content) */
.h-timeline { border-left: 2px solid var(--h-ink); padding-left: 0; margin-top: 2em !important; }
.h-timeline > .wp-block-group { position: relative; padding: 0 0 36px 32px; }
.h-timeline > .wp-block-group::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--h-ink); }
.h-timeline .h-year { margin: 0 !important; font-family: var(--h-display); font-weight: 700; font-size: 15px; color: var(--h-accent); letter-spacing: 0.04em; }
.h-timeline h3 { margin: 2px 0 6px !important; font-size: 24px; }
.h-timeline p:not(.h-year) { margin: 0 !important; color: var(--h-muted); }

/* Skill groups (page content) */
.h-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 2em !important; }
.h-skills > .wp-block-group { padding: 24px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--h-line); }
.h-skills h3 { margin: 0 0 8px !important; font-size: 21px; }
.h-skills p, .h-skills ul { margin: 0 !important; font-size: 16px; color: var(--h-muted); }
.h-skills ul { padding-left: 18px; margin-top: 10px !important; }

/* Project cards (page content) */
.h-projects { display: grid; gap: 18px; margin-top: 2em !important; }
.h-projects > .wp-block-group { padding: 24px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--h-line); }
.h-projects h3 { margin: 0 0 6px !important; font-size: 22px; }
.h-projects p { margin: 0 !important; color: var(--h-muted); font-size: 17px; }
.h-projects p + p { margin-top: 10px !important; }

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: 16px; max-width: 640px; }
.wpcf7 label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.wpcf7 input:not([type=submit]), .wpcf7 textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid #D4D4D8; background: #FFFFFF; font: inherit; color: var(--h-ink); }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--h-accent); outline-offset: 1px; }
.wpcf7 input[type=submit] { justify-self: start; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--h-ink); color: var(--h-ground); font: inherit; font-weight: 600; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #3F3F46; }

/* Footer */
.h-footer { border-top: 1px solid var(--h-line); font-size: 14px; color: var(--h-muted); }
.h-footer .h-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.h-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.h-footer a { color: var(--h-muted); }
.h-footer a:hover { color: var(--h-ink); }

@media (max-width: 600px) {
	.h-section { padding: 64px 0; }
	.h-hero { padding: 64px 0 56px; }
}

/* Journey: the logo of each step beside its text */
.h-timeline .h-entry.has-logo { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 22px; }
.h-timeline .h-entry.has-logo > * { grid-column: 2; }
.h-timeline .h-entry.has-logo > .h-entry-logo { grid-column: 1; grid-row: 1 / span 3; margin: 2px 0 0 !important; }
.h-timeline .h-entry-logo img { display: block; width: 88px !important; height: 88px !important; max-width: none; box-sizing: border-box; padding: 10px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--h-line); border-radius: 16px; }
.h-timeline .h-entry-logo img[src*="/themes/hedzer/"] { padding: 0; object-fit: cover; border-color: transparent; }
@media (max-width: 600px) {
	.h-timeline .h-entry.has-logo { grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; }
	.h-timeline .h-entry-logo img { width: 60px !important; height: 60px !important; padding: 6px; border-radius: 12px; }
}
