/* Small additions to theme.json. Colors come from the palette (Appearance > Editor > Styles). */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

/* Home sections sit flush; each section brings its own padding and top line. */
.arlen-home > * + * {
	margin-block-start: 0;
}

/* "All projects ->" style links. */
.arlen-more a {
	font-weight: 500;
	text-decoration: none;
}
.arlen-more a:hover {
	text-decoration: underline;
}

/* Post list rows: Latest writing, Blog, archives. */
.arlen-post-list {
	border-top: 1px solid var(--wp--preset--color--line);
}
.arlen-post-list > li {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-block-start: 0 !important;
}

/* Project cards. */
.arlen-cards .wp-block-post-featured-image {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--soft);
	overflow: hidden;
}
.arlen-cards .wp-block-post-featured-image img {
	border-radius: 0;
}
.arlen-cards .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}
.arlen-cards li:hover .wp-block-post-featured-image img {
	transform: scale(1.02);
}

/* Blog cards: Latest writing, Blog page, category and tag pages.
   Picture on the left, text on the right, so pictures stay small. */
.arlen-post-card {
	flex-direction: row !important;
	align-items: center !important;
	gap: 24px !important;
}
.arlen-post-card .wp-block-post-featured-image {
	flex: 0 0 42%;
	margin: 0;
}
.arlen-post-cards--list .arlen-post-card .wp-block-post-featured-image {
	flex-basis: min(34%, 340px);
}
.arlen-post-card__text {
	flex: 1;
	min-width: 0;
}
.arlen-post-cat a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.arlen-post-card .wp-block-post-title a {
	text-decoration: none;
}
.arlen-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
}
.arlen-post-card .wp-block-post-excerpt {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}
.arlen-post-card .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Blog page: the newest post a little bigger on top (first page only). */
@media (min-width: 782px) {
	body:not(.paged) .arlen-post-cards--featured .wp-block-post-template > li:first-child {
		grid-column: 1 / -1;
		padding-bottom: 48px;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
	body:not(.paged) .arlen-post-cards--featured li:first-child > .arlen-post-card {
		gap: 44px !important;
	}
	body:not(.paged) .arlen-post-cards--featured li:first-child .wp-block-post-featured-image {
		flex-basis: 50%;
	}
	body:not(.paged) .arlen-post-cards--featured li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--xx-large) !important;
		line-height: 1.15;
	}
	body:not(.paged) .arlen-post-cards--featured li:first-child .wp-block-post-excerpt {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* Phones: a small square picture beside the text. */
@media (max-width: 600px) {
	.arlen-post-card {
		align-items: flex-start !important;
		gap: 16px !important;
	}
	.arlen-post-card .wp-block-post-featured-image,
	.arlen-post-cards--list .arlen-post-card .wp-block-post-featured-image {
		flex: 0 0 104px;
	}
	.arlen-post-card .wp-block-post-featured-image img {
		aspect-ratio: 1 !important;
		border-radius: 12px;
	}
	.arlen-post-card .wp-block-post-title {
		font-size: var(--wp--preset--font-size--medium) !important;
		line-height: 1.3;
	}
	.arlen-post-card .wp-block-post-excerpt__excerpt {
		-webkit-line-clamp: 2;
	}
}

/* Category links under the Blog intro, as pills. */
.arlen-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}
.arlen-cat-pills li {
	margin: 0;
}
.arlen-cat-pills a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}
.arlen-cat-pills a:hover {
	border-color: var(--wp--preset--color--contrast);
}

/* Footer. */
.arlen-footer a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.arlen-footer a:hover {
	text-decoration: underline;
}
.arlen-footer-heading {
	margin: 0 0 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.arlen-footer-links > * {
	margin: 0;
}
.arlen-footer-brand .arlen-link-icons.wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 20px;
}
.arlen-footer-social.wp-block-social-links,
.arlen-footer .arlen-link-icons.wp-block-social-links {
	gap: 16px;
	font-size: 20px;
}
.arlen-footer-social .wp-social-link,
.arlen-footer .arlen-link-icons .wp-social-link {
	color: var(--wp--preset--color--muted);
	transition: color 0.15s ease;
}
.arlen-footer-social .wp-social-link:hover,
.arlen-footer .arlen-link-icons .wp-social-link:hover {
	color: var(--wp--preset--color--contrast);
}
.arlen-footer-bottom a {
	color: inherit;
}
@media (max-width: 781px) {
	.arlen-footer-cols {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	.arlen-footer-brand {
		grid-column: 1 / -1;
	}
}

/* Header search: an icon that opens a search box. */
.arlen-header-search .wp-block-search__inside-wrapper {
	gap: 6px;
	padding: 0;
	border: 0;
}
.arlen-header-search .wp-block-search__button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 999px;
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
}
.arlen-header-search .wp-block-search__button:hover {
	border-color: var(--wp--preset--color--contrast) !important;
}
.arlen-header-search .wp-block-search__button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.arlen-header-search .wp-block-search__input {
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}
.arlen-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	width: 220px;
}
/* Phones: the search icon sits at the top right, next to the name. */
@media (max-width: 600px) {
	header > .wp-block-group {
		position: relative;
	}
	header .arlen-header-search {
		position: absolute;
		top: 11px;
		right: var(--wp--style--root--padding-right, 24px);
	}
	header .arlen-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
		width: min(220px, 60vw);
	}
}

/* Links page: animated sky (assets/js/status-scene.js) or your own colour (Link page → Appearance), behind a glass card. Day by default, night after dark. */
body.arlen-links-scene {
	background: #17214B;
}
.arlen-links-scene #scene {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	cursor: crosshair;
}
.arlen-links-scene .wp-site-blocks {
	position: relative;
	z-index: 1;
	pointer-events: none;
}
.arlen-links-scene .arlen-links .wp-block-post-content {
	pointer-events: auto;
}
.arlen-links-page .arlen-links .wp-block-post-content {
	padding: 36px 28px 28px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 28px;
	background: rgba(250, 250, 249, 0.82);
	box-shadow: 0 30px 80px rgba(8, 10, 40, 0.28);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
	transition: background 0.8s, border-color 0.8s;
}
.arlen-links-page.arlen-links-nocard .arlen-links .wp-block-post-content {
	padding: 8px 0;
	border: 0;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.arlen-links-scene.is-night:not(.arlen-links-nocard) .arlen-links .wp-block-post-content {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(11, 13, 32, 0.58);
}
.arlen-tod {
	position: fixed;
	z-index: 2;
	right: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(10, 12, 30, 0.35);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.arlen-tod .sun,
.is-night .arlen-tod .moon {
	display: none;
}
.is-night .arlen-tod .sun {
	display: block;
}

/* Contact rows. */
.arlen-contact a {
	color: inherit;
	text-decoration: none;
}
.arlen-contact a:hover {
	text-decoration: underline;
}

/* Lead paragraph style (Paragraph block > Styles > Lead). */
.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* Tags under a post, as pills. */
.arlen-tags a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.arlen-tags a:hover {
	border-color: var(--wp--preset--color--contrast);
}
.arlen-tags .wp-block-post-terms__separator {
	display: inline-block;
	width: 8px;
	font-size: 0;
}

/* Previous / next post links as cards. */
.arlen-postnav > * {
	flex: 1 1 260px;
}
.arlen-postnav a {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration: none;
}
.arlen-postnav a:hover {
	border-color: var(--wp--preset--color--contrast);
}
.arlen-postnav .post-navigation-link-next {
	text-align: right;
}
.arlen-postnav .post-navigation-link__label {
	display: block;
	margin-bottom: 4px;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
}

/* Phones: date on its own line above each post title, so rows line up. */
@media (max-width: 600px) {
	.arlen-post-list .wp-block-post-date {
		flex-basis: 100% !important;
	}
}

/* Author box. */
.wp-block-post-author .wp-block-post-author__avatar img {
	border-radius: 999px;
}
.wp-block-post-author__byline {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-family: var(--wp--preset--font-family--geist-mono);
}
.wp-block-post-author__name {
	font-weight: 600;
}
.wp-block-post-author__bio {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Gallery block "Masonry" style (Gallery page): two columns, one on phones. */
.wp-block-gallery.has-nested-images.is-style-masonry {
	display: block;
	columns: 2 320px;
	column-gap: 18px;
}
.wp-block-gallery.has-nested-images.is-style-masonry figure.wp-block-image:not(#individual-image) {
	display: block;
	width: 100%;
	margin: 0 0 26px;
	break-inside: avoid;
}
.wp-block-gallery.has-nested-images.is-style-masonry figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.wp-block-gallery.has-nested-images.is-style-masonry figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin: 0;
	padding: 10px 2px 0;
	background: none;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	text-align: left;
	text-shadow: none;
}
.wp-block-gallery.has-nested-images.is-style-masonry figure.wp-block-image:has(figcaption)::before {
	content: none;
}
.arlen-gallery-page .is-style-lead {
	max-width: 640px;
	margin-left: 0 !important;
}

/* Phones: a little less space between menu items so all five fit on one line. */
@media (max-width: 600px) {
	header .wp-block-navigation .wp-block-navigation__container {
		gap: 18px !important;
	}
}

/* Link page (/links/): profile, buttons, sections and icon row (mu-plugin arlen-links). */
.arlen-lt {
	--lt-text: var(--wp--preset--color--contrast);
	--lt-muted: var(--wp--preset--color--muted);
	--lt-btn-bg: rgba(255, 255, 255, 0.6);
	--lt-btn-line: var(--wp--preset--color--line);
	--lt-radius: 14px;
	--lt-accent-icon: var(--lt-accent);
	color: var(--lt-text);
}
.arlen-lt.is-shape-pill {
	--lt-radius: 999px;
}
.arlen-lt.is-shape-square {
	--lt-radius: 4px;
}
.arlen-links-scene.is-night .arlen-lt,
.arlen-links-nocard.is-bg-dark .arlen-lt {
	--lt-text: #F4F4F5;
	--lt-muted: #C8CADA;
	--lt-btn-bg: rgba(255, 255, 255, 0.06);
	--lt-btn-line: rgba(255, 255, 255, 0.18);
	--lt-accent-icon: color-mix(in srgb, var(--lt-accent) 45%, #fff);
}
.arlen-links-nocard.is-bg-dark .arlen-lt {
	--lt-btn-bg: rgba(255, 255, 255, 0.14);
	--lt-btn-line: rgba(255, 255, 255, 0.32);
}
.arlen-links-nocard.is-bg-dark .arlen-lt-profile,
.arlen-links-nocard.is-bg-dark .arlen-lt-section,
.arlen-links-nocard.is-bg-dark .arlen-lt-foot {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.arlen-links-nocard .arlen-lt-btn {
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.arlen-lt-profile {
	text-align: center;
}
.arlen-lt-avatar {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 auto 16px;
	border-radius: 22%;
	object-fit: cover;
}
.arlen-lt-avatar.is-circle {
	border-radius: 50%;
}
.arlen-lt-name {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	color: var(--lt-text);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}
.arlen-lt-verified {
	flex: none;
	width: 0.78em;
	height: 0.78em;
	color: #1D8CF8;
}
.arlen-lt-bio {
	margin: 8px 0 0;
	color: var(--lt-muted);
	line-height: 1.5;
}

/* Icon rows (Link page and footer): styled here, without the Social Icons block's stylesheet. */
.arlen-link-icons.wp-block-social-links,
.arlen-lt-icons.wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.arlen-link-icons .wp-social-link,
.arlen-lt-icons .wp-social-link {
	margin: 0;
	background: none;
}
.arlen-link-icons .wp-social-link a,
.arlen-lt-icons .wp-social-link a {
	display: block;
	padding: 0.2em;
	color: inherit;
	line-height: 0;
}
.arlen-link-icons .wp-social-link svg,
.arlen-lt-icons .wp-social-link svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.arlen-lt .arlen-lt-icons.wp-block-social-links {
	justify-content: center;
	gap: 14px;
	margin: 18px 0 0;
	padding: 0;
	font-size: 22px;
}
.arlen-lt-icons .wp-social-link {
	color: var(--lt-text);
	transition: transform 0.15s ease;
}
.arlen-lt-icons .wp-social-link:hover {
	transform: translateY(-2px);
}
.arlen-lt-icons .wp-social-link .arlen-lt-img,
.arlen-footer .arlen-link-icons .wp-social-link .arlen-lt-img {
	display: block;
	width: 1em;
	height: 1em;
	border-radius: 4px;
	object-fit: cover;
}
.wp-social-link .arlen-lt-emoji {
	display: block;
	font-size: 1em;
	line-height: 1;
}

.arlen-lt-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.arlen-lt-btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 10px 18px;
	overflow: hidden;
	border: 1px solid var(--lt-btn-line);
	border-radius: var(--lt-radius);
	background: var(--lt-btn-bg);
	color: var(--lt-text);
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.arlen-lt-btn:hover {
	border-color: var(--lt-text);
	transform: translateY(-1px);
}
.arlen-lt-btn:focus-visible {
	outline: 2px solid var(--lt-accent);
	outline-offset: 3px;
}
.arlen-lt-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 26px;
	height: 26px;
	color: var(--lt-icon, currentColor);
}
.arlen-lt-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}
.arlen-lt-icon.is-image {
	width: 38px;
	height: 38px;
	margin: -4px 0 -4px -8px;
}
.arlen-lt-icon .arlen-lt-img {
	width: 100%;
	height: 100%;
	border-radius: min(var(--lt-radius), 10px);
	object-fit: cover;
}
.arlen-lt-icon .arlen-lt-emoji {
	font-size: 22px;
	line-height: 1;
}
.arlen-lt-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.arlen-lt-label {
	font-size: 16px;
	font-weight: 500;
}
.arlen-lt-desc {
	color: var(--lt-muted);
	font-size: 13px;
}
.arlen-lt-arrow {
	flex: none;
	color: var(--lt-muted);
	font-size: 15px;
}
.arlen-lt.is-align-center .arlen-lt-btn {
	justify-content: center;
	padding-right: 56px;
	padding-left: 56px;
	text-align: center;
}
.arlen-lt.is-align-center .arlen-lt-icon,
.arlen-lt.is-align-center .arlen-lt-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}
.arlen-lt.is-align-center .arlen-lt-icon {
	left: 16px;
}
.arlen-lt.is-align-center .arlen-lt-icon.is-image {
	left: 9px;
	margin: 0;
}
.arlen-lt.is-align-center .arlen-lt-arrow {
	right: 18px;
}

.arlen-lt.is-style-soft .arlen-lt-btn {
	border-color: transparent;
	background: color-mix(in srgb, var(--lt-accent) 14%, var(--lt-btn-bg));
}
.arlen-lt.is-style-soft .arlen-lt-btn:hover {
	border-color: transparent;
	background: color-mix(in srgb, var(--lt-accent) 22%, var(--lt-btn-bg));
}
.arlen-lt.is-style-solid .arlen-lt-btn,
.arlen-lt .arlen-lt-btn.is-highlight {
	border-color: var(--lt-accent);
	background: var(--lt-accent);
	color: #fff;
}
.arlen-lt.is-style-solid .arlen-lt-btn:hover,
.arlen-lt .arlen-lt-btn.is-highlight:hover {
	border-color: var(--lt-accent);
	filter: brightness(1.1);
}
.arlen-lt.is-style-solid .arlen-lt-icon,
.arlen-lt .arlen-lt-btn.is-highlight .arlen-lt-icon {
	color: #fff;
}
.arlen-lt.is-style-solid .arlen-lt-desc,
.arlen-lt.is-style-solid .arlen-lt-arrow,
.arlen-lt .arlen-lt-btn.is-highlight .arlen-lt-desc,
.arlen-lt .arlen-lt-btn.is-highlight .arlen-lt-arrow {
	color: rgba(255, 255, 255, 0.8);
}
.arlen-lt .arlen-lt-btn.is-highlight {
	box-shadow: 0 10px 26px color-mix(in srgb, var(--lt-accent) 38%, transparent);
}
.arlen-lt-btn.is-highlight::before {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
	transform: translateX(-100%);
	animation: arlen-shine 3.6s ease-in-out infinite;
	pointer-events: none;
}
@keyframes arlen-shine {
	0%, 55% { transform: translateX(-100%); }
	85%, 100% { transform: translateX(100%); }
}

.arlen-lt-section {
	margin: 30px 0 0;
	text-align: center;
}
.arlen-lt-section-title {
	margin: 0;
	color: var(--lt-text);
	font-size: 15px;
	font-weight: 600;
}
.arlen-lt-section-desc {
	margin: 4px 0 0;
	color: var(--lt-muted);
	font-size: 13px;
}
.arlen-lt-section + .arlen-lt-list {
	margin-top: 12px;
}
.arlen-lt-foot {
	margin: 28px 0 0;
	color: var(--lt-muted);
	font-size: var(--wp--preset--font-size--x-small);
	text-align: center;
}


@media (prefers-reduced-motion: reduce) {
	.arlen-cards .wp-block-post-featured-image img {
		transition: none;
	}
	.arlen-lt-btn.is-highlight::before {
		animation: none;
	}
}
