/* WordPress-specific overrides for Lowhill Cassia */

.admin-bar .topbar {
	top: 32px;
}

body.lh-not-front .topbar {
	background: color-mix(in srgb, var(--paper) 90%, transparent);
	backdrop-filter: blur(12px) saturate(1.05);
	box-shadow: 0 1px 0 var(--line-soft);
	padding-top: 15px;
	padding-bottom: 15px;
}

body.lh-not-front .topbar .brand b,
body.lh-not-front .topbar .brand span,
body.lh-not-front .topbar .nav-inline a,
body.lh-not-front .topbar .left a {
	color: var(--ink-2);
}

body.lh-not-front .topbar .brand b {
	color: var(--ink);
}

body.lh-not-front .topbar .menu-btn span {
	background: var(--ink);
}

@media (max-width: 782px) {
	.admin-bar .topbar {
		top: 46px;
	}
}

/* Inner pages (blog, single, page) */
.lh-inner {
	padding-top: clamp(120px, 16vw, 180px);
	padding-bottom: clamp(76px, 11vw, 160px);
	background: var(--paper);
}

.lh-inner .wrap {
	max-width: 820px;
}

.lh-inner h1.entry-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.08;
	margin: 0 0 24px;
	word-break: keep-all;
}

.lh-inner .entry-meta {
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 36px;
}

.lh-inner .entry-content {
	color: var(--ink-2);
	font-size: 16px;
	line-height: 1.85;
}

.lh-inner .entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lh-inner .entry-content img {
	margin: 2em 0;
}

.lh-archive-grid {
	display: grid;
	gap: 48px;
}

.lh-back {
	margin-top: 48px;
}

.lh-404 {
	text-align: center;
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 24px;
}

.lh-404 h1 {
	font-family: var(--display);
	font-size: clamp(48px, 8vw, 96px);
	margin: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

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

/* JS disabled or slow: never leave content hidden (DESIGN.md §5.5) */
html:not(.js-ready) [data-reveal] {
	opacity: 1;
	transform: none;
}

/* Contact */
.lh-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 80px);
	margin-top: 40px;
}
.lh-map iframe { width: 100%; min-height: 420px; border: 0; }
.lh-contact-form label { display: block; margin-bottom: 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lh-contact-form input, .lh-contact-form textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
	padding: 12px 2px; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.lh-form-msg { margin-top: 16px; font-size: 13px; }
.lh-tags { color: var(--accent); font-size: 13px; }

/* Resume */
.lh-resume-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 64px); max-width: var(--maxw); margin: 0 auto; }
.lh-timeline-item { padding: 24px 0; border-top: 1px solid var(--line); }
.lh-year { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; color: var(--accent); }
.lh-timeline-item h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 8px 0; }
.lh-subhead { font-family: var(--display); margin-top: 48px; }
.lh-activities { padding-left: 1.2em; color: var(--ink-2); line-height: 1.9; }
.lh-resume-side img { width: 100%; margin-bottom: 16px; }

/* Portfolio single */
.lh-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 48px 0; }
.lh-gallery-item { overflow: hidden; aspect-ratio: 1; background: var(--paper-3); }
.lh-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.lh-portfolio-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.lh-video-embed { margin: 32px 0; aspect-ratio: 16/9; }
.lh-video-embed iframe { width: 100%; height: 100%; }

@media (max-width: 860px) {
	.lh-contact-grid, .lh-resume-grid { grid-template-columns: 1fr; }
	.lh-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
