/*
Theme Name: Noir Ink
Theme URI: https://example.com/noir-ink
Author: Noir Ink
Author URI: https://example.com
Description: A minimalist black-and-white Full Site Editing theme for IT blogs and project portfolios. Built for WordPress 6.7+.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noir-ink
Tags: full-site-editing, block-themes, blog, portfolio, black-white, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-decoration-color 0.25s ease, opacity 0.2s ease;
}

a:hover {
	text-decoration-color: currentColor;
}

::selection {
	background: #0a0a0a;
	color: #fafafa;
}

/* -------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------- */

.noir-header {
	border-bottom: 1px solid #e5e5e5;
}

.noir-header .wp-block-site-title a {
	text-decoration: none;
	letter-spacing: -0.03em;
}

.noir-header .wp-block-navigation a {
	text-decoration: none;
}

.noir-header .wp-block-navigation a:hover {
	opacity: 0.55;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.noir-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 47px,
			rgba(10, 10, 10, 0.035) 47px,
			rgba(10, 10, 10, 0.035) 48px
		);
	min-height: min(88vh, 720px);
	display: flex;
	align-items: center;
}

.noir-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1px;
	background: #0a0a0a;
	opacity: 0.12;
}

.noir-hero .wp-block-heading {
	letter-spacing: -0.04em;
	line-height: 0.95;
	animation: noir-fade-up 0.7s ease both;
}

.noir-hero p {
	max-width: 32rem;
	animation: noir-fade-up 0.7s ease 0.1s both;
}

.noir-hero .wp-block-buttons {
	animation: noir-fade-up 0.7s ease 0.18s both;
}

/* -------------------------------------------------------------------------
   Posts / projects
   ------------------------------------------------------------------------- */

.noir-post-list .wp-block-post {
	border-bottom: 1px solid #e5e5e5;
	padding-block: 1.75rem;
	transition: opacity 0.25s ease;
}

.noir-post-list .wp-block-post:hover {
	opacity: 0.72;
}

.noir-post-list .wp-block-post-title a {
	text-decoration: none;
}

.noir-post-list .wp-block-post-title a:hover {
	text-decoration: underline;
}

.noir-project-grid .wp-block-post {
	border: 1px solid #e5e5e5;
	padding: 1.5rem;
	height: 100%;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.noir-project-grid .wp-block-post:hover {
	border-color: #0a0a0a;
	transform: translateY(-2px);
}

.noir-project-grid .wp-block-post-title a {
	text-decoration: none;
}

.noir-project-grid .wp-block-post-featured-image {
	margin-bottom: 1rem;
	overflow: hidden;
}

.noir-project-grid .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.noir-project-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* -------------------------------------------------------------------------
   Entry / single
   ------------------------------------------------------------------------- */

.noir-entry-meta {
	color: #6b6b6b;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.noir-entry-content > * + * {
	margin-top: 1.25rem;
}

.noir-entry-content a {
	text-decoration-color: rgba(10, 10, 10, 0.35);
}

.noir-entry-content a:hover {
	text-decoration-color: #0a0a0a;
}

.noir-tech-terms a {
	display: inline-block;
	border: 1px solid #0a0a0a;
	padding: 0.25rem 0.65rem;
	margin: 0 0.35rem 0.35rem 0;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.noir-tech-terms a:hover {
	background: #0a0a0a;
	color: #fafafa;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.noir-footer {
	background: #0a0a0a;
	color: #fafafa;
}

.noir-footer a {
	color: #fafafa;
	text-decoration-color: rgba(250, 250, 250, 0.35);
}

.noir-footer a:hover {
	text-decoration-color: #fafafa;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.wp-block-button .wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #0a0a0a;
	color: #fafafa;
	border-color: #0a0a0a;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: transparent;
	color: #0a0a0a;
	border: 1px solid #0a0a0a;
}

/* -------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */

@keyframes noir-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.noir-hero {
		min-height: auto;
		padding-block: 4rem !important;
	}

	.noir-header .wp-block-group {
		row-gap: 1rem;
	}
}
