/*
Theme Name: 2orion
Theme URI: https://2orion.nl
Author: Renzo
Author URI: https://2orion.nl
Description: A dark, space-themed personal theme with an Orion constellation hero, projects as posts and a contact page without a form.
Version: 0.9.0
Requires at least: 6.3
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: 2orion
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--accent: #FF8A5B;
	--bg: #0A0C18;
	--surface: #11152A;
	--surface-2: #161A30;
	--photo: #12162A;
	--line: #1B2040;
	--line-2: #2A3050;
	--border: #232846;
	--border-hover: #3A4170;
	--text: #ECEEF7;
	--soft: #C9CEE6;
	--prose: #C3C8E0;
	--muted: #A3A9C7;
	--faint: #7A81A6;
	--rigel: #9CC9FF;
	--m42: #FF6FB5;
	--red: #FF5A5F;

	--font-display: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
	--font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	--gutter: clamp(20px, 5.5vw, 80px);
	--max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { filter: brightness(1.15); }

:focus-visible { outline: 2px solid var(--rigel); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; border-radius: 999px;
	background: var(--rigel); color: var(--bg); text-decoration: none; font-weight: 600;
}

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

.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.accent-dot { color: var(--accent); }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
}
.eyebrow .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Starfield
------------------------------------------------------------------ */
.starfield {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
.star {
	position: absolute;
	border-radius: 50%;
	background: #fff;
	animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.8); }
}

.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; overflow: clip; }
.site-main { flex: 1 0 auto; }

/* ------------------------------------------------------------------
   Header & navigation
------------------------------------------------------------------ */
.site-header { position: relative; z-index: 20; }
.header-inner {
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--text);
	text-decoration: none;
}
.site-logo:hover { filter: none; }
.site-logo svg { flex-shrink: 0; }
.site-logo .logo-a { fill: var(--accent); }
.site-logo .logo-c { fill: var(--rigel); }
.site-logo span {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.primary-nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	color: var(--muted);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease;
}
.primary-nav a:hover { color: var(--text); background: var(--surface-2); filter: none; }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_parent > a,
.primary-nav .current-menu-parent > a {
	color: var(--text);
	background: var(--surface-2);
}
.primary-nav .current-menu-item > a::before,
.primary-nav .current_page_item > a::before,
.primary-nav .current_page_parent > a::before,
.primary-nav .current-menu-parent > a::before {
	content: '';
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent);
}
.primary-nav .sub-menu { display: none; }

.menu-toggle {
	display: none;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ------------------------------------------------------------------
   Buttons & links
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	padding: 0 28px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: #4A5288; background: var(--photo); filter: none; }

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--accent);
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Home: hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	padding-top: 64px;
	padding-bottom: 120px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
	gap: 64px;
	align-items: center;
}
.hero-glow {
	position: absolute;
	right: -80px; top: 40px;
	width: 620px; height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(111, 92, 255, 0.16), rgba(10, 12, 24, 0) 65%);
	pointer-events: none;
	z-index: -1;
}
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.hero-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(56px, 9vw, 128px);
	line-height: 0.92;
	font-weight: 700;
	letter-spacing: -0.045em;
}
.hero-text {
	margin: 0;
	max-width: 620px;
	font-size: clamp(19px, 1.7vw, 24px);
	line-height: 1.5;
	color: var(--muted);
	text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }

.orion { width: 100%; height: auto; }
.orion .labels { font-family: var(--font-mono); font-size: 11px; fill: var(--faint); letter-spacing: 0.08em; }
.orion .betelgeuse { fill: var(--accent); }
.orion .rigel-line { stroke: var(--rigel); }
.orion .rigel-glow { fill: var(--rigel); }
.orion .m42-stop { stop-color: var(--m42); }
@supports (color: color-mix(in srgb, red 50%, white)) {
	.orion .rigel-core { fill: color-mix(in srgb, var(--rigel) 55%, #fff); }
	.orion .m42-core { fill: color-mix(in srgb, var(--m42) 45%, #fff); }
}
.glow { animation: glow 4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.14; } 50% { opacity: 0.38; } }

.shooting-star {
	position: absolute;
	top: 120px; left: 40%;
	width: 180px; height: 1px;
	background: linear-gradient(90deg, rgba(255,255,255,0), #fff);
	opacity: 0;
	animation: shoot 10s ease-in 1.5s infinite;
	pointer-events: none;
}
@keyframes shoot {
	0% { transform: translate(0, 0) rotate(20deg); opacity: 0; }
	2% { opacity: 1; }
	10% { transform: translate(620px, 226px) rotate(20deg); opacity: 0; }
	100% { opacity: 0; }
}

/* ------------------------------------------------------------------
   Home: about
------------------------------------------------------------------ */
.section-about {
	border-top: 1px solid var(--line);
}
.about {
	padding-top: 104px;
	padding-bottom: 104px;
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 96px;
}
.about-side { display: flex; flex-direction: column; gap: 40px; }
.about-body { max-width: 760px; }
.about-body > .section-title + * { margin-top: 28px; }

.section-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(40px, 4.5vw, 64px);
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.portrait { position: relative; width: 300px; height: 300px; }
.portrait .orbit {
	position: absolute; inset: 0;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	animation: spin 28s linear infinite;
}
.portrait .orbit::after {
	content: '';
	position: absolute; left: 252px; top: 36px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait .photo {
	position: absolute; left: 30px; top: 30px;
	width: 240px; height: 240px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--photo);
	border: 1px dashed #343B63;
	display: flex; align-items: center; justify-content: center;
	color: var(--faint); font-size: 15px;
}
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait .photo.has-image { border-style: solid; border-color: var(--line-2); }

/* ------------------------------------------------------------------
   Prose (post & page content)
------------------------------------------------------------------ */
.prose { font-size: 20px; line-height: 1.7; color: var(--prose); }
.about-body.prose { font-size: 21px; line-height: 1.65; color: var(--muted); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
	font-family: var(--font-display);
	color: var(--text);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-top: 1.6em;
}
.prose h2 { font-size: 40px; }
.prose h3 { font-size: 30px; }
.prose h4 { font-size: 24px; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote,
.prose .wp-block-quote,
.prose .wp-block-pullquote {
	margin-left: 0; margin-right: 0;
	padding: 28px 32px;
	border: 0;
	border-radius: 18px;
	background: var(--surface);
	font-size: 22px;
	line-height: 1.5;
	color: var(--text);
	text-align: left;
}
.prose blockquote::before {
	content: '\201C';
	display: block;
	font-family: var(--font-display);
	font-size: 48px;
	line-height: 0.6;
	color: var(--accent);
	margin-bottom: 8px;
}
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: 15px; font-style: normal; color: var(--faint); }
.prose code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--surface-2);
	color: var(--soft);
}
.prose pre {
	padding: 20px 24px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	overflow-x: auto;
	font-size: 15px;
	line-height: 1.6;
}
.prose pre code { padding: 0; background: none; }
.prose img, .prose .wp-block-image img { border-radius: 16px; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-button__link { border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600; }
.alignwide { max-width: min(1100px, 100vw - 2 * var(--gutter)); }

/* ------------------------------------------------------------------
   Project cards
------------------------------------------------------------------ */
.section-projects { padding-bottom: 128px; }
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}
.section-head-text { display: flex; flex-direction: column; gap: 20px; }

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 16px 16px 28px;
	border-radius: 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hover); filter: none; }
.card-thumb {
	height: 190px;
	border-radius: 14px;
	overflow: hidden;
	background-color: var(--surface-2);
	background-image: radial-gradient(rgba(156, 201, 255, 0.28) 1px, transparent 1.2px);
	background-size: 22px 22px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 0; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.card-num { font-family: var(--font-mono); font-size: 14px; color: var(--faint); }
.card-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.card-excerpt { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.card-more {
	margin-top: auto;
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 16px; font-weight: 600; color: var(--accent);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--soft);
	white-space: nowrap;
}
.status::before {
	content: '';
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent);
}
.status-launched::before { background: var(--rigel); }
.status-idea::before { background: var(--m42); }
.status-archived::before,
.status-obsolete::before,
.status-replaced::before { background: var(--red); }

/* ------------------------------------------------------------------
   Page intro (Projects, pages)
------------------------------------------------------------------ */
.page-intro {
	padding-top: 54px;
	padding-bottom: 60px;
	display: flex;
	flex-direction: column;
	gap: 21px;
}
.page-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(52px, 7.5vw, 104px);
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: -0.04em;
	overflow-wrap: anywhere;
}
.page-lead {
	margin: 0;
	max-width: 680px;
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.55;
	color: var(--muted);
}
.page-lead > * { margin: 0; }
.page-lead > * + * { margin-top: 0.8em; }

/* Pagination */
.pagination {
	padding-top: 28px;
	padding-bottom: 96px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.pagination .page-count {
	margin-right: 12px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
}
.pagination .page-numbers {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--soft);
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease;
}
.pagination a.page-numbers:hover { border-color: #4A5288; filter: none; }
.pagination .page-numbers.current { background: var(--m42); border-color: var(--m42); color: var(--bg); }
.pagination .page-numbers.dots { border: 0; background: none; }
.pagination .page-numbers.is-disabled { opacity: 0.4; }
.pagination-spacer { padding-bottom: 96px; }

.empty-state {
	padding: 48px;
	border-radius: 22px;
	border: 1px dashed var(--line-2);
	color: var(--muted);
	text-align: center;
}

/* ------------------------------------------------------------------
   Single project
------------------------------------------------------------------ */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
	align-self: flex-start;
}
.back-link:hover { color: var(--text); filter: none; }

.single-title { font-size: clamp(52px, 8vw, 112px); }
.single-lead { max-width: 760px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; }

.project-meta {
	margin: 12px 0 0;
	padding-top: 21px;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.project-meta div { display: flex; flex-direction: column; gap: 10px; }
.project-meta dt {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
}
.project-meta dd { margin: 0; font-size: 19px; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.project-meta dd a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pulse {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent);
	animation: pulse 2.4s ease-out infinite;
}
.pulse.is-launched { background: var(--rigel); animation: none; }
.pulse.is-idea { background: var(--m42); animation: none; }
.pulse.is-archived,
.pulse.is-obsolete,
.pulse.is-replaced { background: var(--red); animation: none; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
	100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.featured-image {
	border-radius: 28px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--surface-2);
}
.featured-image { margin: 0; }
.lightbox-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.lightbox-trigger img {
	display: block;
	width: 100%;
	height: clamp(200px, 22vw, 320px);
	object-fit: cover;
	object-position: center;
}
.zoom-icon {
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(10, 12, 24, 0.72);
	border: 1px solid #3A4170;
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-trigger:hover .zoom-icon,
.lightbox-trigger:focus-visible .zoom-icon { transform: scale(1.08); background: var(--surface-2); }
.lightbox-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 28px; }

.lightbox {
	width: 90vw;
	height: 90vh;
	max-width: 90vw;
	max-height: 90vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 6, 14, 0.86); }
.lightbox-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: zoom-out;
}
.lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid #3A4170;
	background: rgba(10, 12, 24, 0.8);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.lightbox-close:hover { background: var(--surface-2); }
body.has-lightbox { overflow: hidden; }

.single-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 0 78px;
}

.post-nav {
	padding-bottom: 90px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.post-nav a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 32px;
	border-radius: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s ease;
}
.post-nav a:hover { border-color: var(--border-hover); filter: none; }
.post-nav .next { grid-column: 2; align-items: flex-end; text-align: right; }
.post-nav .label {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
}
.post-nav .title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------ */
.contact {
	position: relative;
	padding-top: 54px;
	padding-bottom: 90px;
	display: grid;
	grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
	gap: 80px;
	align-items: start;
}
.contact-glow {
	position: absolute;
	left: -160px; top: 360px;
	width: 640px; height: 640px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(111, 92, 255, 0.14), rgba(10, 12, 24, 0) 65%);
	pointer-events: none;
	z-index: -1;
}
.contact-intro { display: flex; flex-direction: column; gap: 21px; }
.contact-title { font-size: clamp(64px, 6.7vw, 96px); line-height: 0.92; letter-spacing: -0.045em; }
.business-card {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	border-radius: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
}
.business-card p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--prose); }
.business-card a { font-weight: 600; }
.small-label {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
}

.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-row {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 24px 20px;
	border-radius: 16px;
	color: var(--text);
	text-decoration: none;
	transition: background 0.2s ease;
}
a.contact-row:hover { background: var(--surface); filter: none; }
.contact-icon {
	width: 56px; height: 56px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	display: flex; align-items: center; justify-content: center;
	color: var(--accent);
}
.contact-icon.is-rigel { color: var(--rigel); }
.contact-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-value {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}
.contact-row .go { flex-shrink: 0; color: var(--muted); transition: transform 0.2s ease; }
a.contact-row:hover .go { transform: translate(3px, -3px); }

/* ------------------------------------------------------------------
   Generic page / 404
------------------------------------------------------------------ */
.page-content { max-width: 760px; padding-bottom: 96px; }
.not-found { padding-top: 80px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-text a { color: var(--muted); }
.footer-text a:hover { color: var(--text); }

.footer-inner {
	padding-top: 32px;
	padding-bottom: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	font-size: 15px;
	color: var(--faint);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-nav a {
	display: flex; align-items: center;
	min-height: 44px; padding: 0 12px;
	color: var(--muted);
	text-decoration: none;
}
.footer-nav a:hover { color: var(--text); filter: none; }

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--rigel);
	color: var(--bg);
	text-decoration: none;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0;
	visibility: hidden;
	transition: filter 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.to-top.is-visible, .no-js .to-top { opacity: 1; visibility: visible; }
.to-top:hover { filter: brightness(1.12); color: var(--bg); }
.to-top svg { transition: transform 0.2s ease; }
.to-top:hover svg { transform: translateY(-3px); }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about { grid-template-columns: 1fr; gap: 48px; }
	.contact { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; padding-bottom: 72px; }
	.hero-visual { order: -1; max-width: 440px; width: 100%; margin: 0 auto; }
	.orion .labels { font-size: 13px; }
	.hero-glow { right: -200px; top: 0; }
	.project-meta { grid-template-columns: 1fr; gap: 18px; }
	.single-content { padding: 56px 0 64px; }
}

@media (max-width: 760px) {
	.header-inner { height: 72px; }
	.site-logo span { font-size: 22px; }
	.site-logo svg { width: 28px; height: 28px; }
	.menu-toggle { display: inline-flex; }
	.primary-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 72px;
		padding: 16px var(--gutter) 32px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.primary-nav a {
		justify-content: space-between;
		min-height: 64px;
		padding: 0;
		background: none !important;
		font-family: var(--font-display);
		font-size: 36px;
		font-weight: 700;
		letter-spacing: -0.02em;
	}
	.primary-nav .current-menu-item > a::before,
	.primary-nav .current_page_item > a::before,
	.primary-nav .current_page_parent > a::before,
	.primary-nav .current-menu-parent > a::before {
		order: 2;
		width: 10px; height: 10px;
	}

	.hero-actions { flex-direction: column; align-items: stretch; }
	.about { padding-top: 64px; padding-bottom: 64px; gap: 24px; }
	.about-side { gap: 24px; }
	.portrait { width: 220px; height: 220px; align-self: center; }
	.portrait .orbit::after { left: 184px; top: 26px; width: 12px; height: 12px; }
	.portrait .photo { left: 22px; top: 22px; width: 176px; height: 176px; font-size: 14px; }
	.about-body.prose { font-size: 18px; }
	.section-projects { padding-bottom: 80px; }
	.section-head { margin-bottom: 28px; }
	.card-grid { grid-template-columns: 1fr; gap: 20px; }
	.card-title { font-size: 26px; }
	.page-intro { padding-top: 24px; padding-bottom: 40px; }
	.pagination { justify-content: center; padding-bottom: 64px; }
	.pagination .page-count { width: 100%; margin: 0 0 4px; text-align: center; }
	.post-nav { grid-template-columns: 1fr; padding-bottom: 64px; }
	.post-nav .next { grid-column: auto; }
	.prose { font-size: 18px; }
	.prose h2 { font-size: 32px; }
	.contact { padding-top: 24px; padding-bottom: 64px; }
	.contact-row { gap: 18px; padding: 20px 8px; }
	.contact-icon { width: 48px; height: 48px; }
	.contact-row .go { display: none; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.footer-nav ul { margin-left: -12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.star, .glow, .shooting-star, .portrait .orbit, .pulse { animation: none; }
	.card, .card:hover { transform: none; }
	.zoom-icon { transition: none; }
}
