/*
Theme Name: Nocturne
Description: Pianoçu üçün şəxsi sayt: ifalar, bloq və fotolar.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: nocturne
*/

/* Sections set their own vertical rhythm; the footer stays at the bottom on short pages. */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main > .alignfull:first-child { margin-block-start: 0; }

::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--paper); }

/* Small uppercase label above headings. */
.eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.section { padding-block: var(--wp--preset--spacing--60); }
.page-intro { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); }
.page-intro p:not(.eyebrow) { color: var(--wp--preset--color--muted); max-width: 36rem; }

/* Header */
.site-header {
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.site-header .wp-block-site-title a,
.site-footer .wp-block-site-title a { color: inherit; text-decoration: none; }
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--accent); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--medium);
}

/* Hero */
.hero { padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50); }
.hero-title {
	margin-block: 0.75rem 0;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.025em;
}
.hero-tagline {
	margin-block-start: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	color: var(--wp--preset--color--muted);
}
.hero .wp-block-buttons { margin-block-start: 2rem; }

.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid currentColor;
}
.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* "Son kayıt" card next to the name. */
.now-playing {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--preset--color--paper-deep);
	border-top: 2px solid var(--wp--preset--color--ink);
}
.now-playing .wp-block-post-title { margin-block: 0.5rem 1rem; }
.now-playing .wp-block-post-content p { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* Bach, Prelude in C, BWV 846 — the opening bar, drawn as a staff under the hero. */
.staff { margin-block-start: var(--wp--preset--spacing--60); color: var(--wp--preset--color--ink); }
.staff svg {
	display: block;
	width: 100%;
	height: 104px;
	-webkit-mask-image: linear-gradient(to right, #000 60%, transparent);
	mask-image: linear-gradient(to right, #000 60%, transparent);
}
.staff .lines line { stroke: var(--wp--preset--color--line); stroke-width: 1; }
.staff .notes { fill: currentColor; stroke: currentColor; opacity: 0.82; }

/* Section heading row: title on the left, "see all" link on the right. */
.section-head { margin-block-end: var(--wp--preset--spacing--40); }
.section-head h2 { margin: 0; }
.more-link { margin: 0; font-size: var(--wp--preset--font-size--small); }
.more-link a { text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* Recording cards on the front page. */
.recordings-grid .wp-block-post {
	padding-top: 1.1rem;
	border-top: 1px solid var(--wp--preset--color--ink);
}
.recordings-grid .wp-block-post-featured-image { margin-block-end: 1rem; }
.recordings-grid .wp-block-post-title { margin-block: 0 0.5rem; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.wp-block-post-excerpt__excerpt { margin: 0; }

/* Recordings archive: one row per piece, player beside the title. */
.recording-list .wp-block-post {
	display: grid;
	gap: 1rem 3rem;
	padding-block: 2rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.recording-list .wp-block-post-title { margin-block: 0.25rem 0; }
.recording-list .wp-block-post-content > * { margin-block: 0 0.75rem; }
.recording-list .wp-block-post-content p { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
@media (min-width: 782px) {
	.recording-list .wp-block-post { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* Blog list: date in the margin, title and excerpt beside it. */
.post-list .wp-block-post {
	display: grid;
	gap: 0.25rem 2rem;
	padding-block: 1.75rem;
	border-top: 1px solid var(--wp--preset--color--line);
}
.post-list .wp-block-post-title { margin: 0 0 0.4rem; font-size: var(--wp--preset--font-size--large); }
.post-list .wp-block-post-date { padding-top: 0.45rem; }
@media (min-width: 640px) {
	.post-list .wp-block-post { grid-template-columns: 9rem minmax(0, 1fr); }
}

/* Quote band */
.about-band .big-quote {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	line-height: 1.15;
}
.about-band .quote-by { margin-block-start: 1rem; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Single posts and recordings */
.entry-head { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); }
.entry-head .wp-block-post-title { margin-block: 0.75rem 0.5rem; }
.entry-foot { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.entry-foot a { text-decoration: none; }

.wp-block-audio audio { width: 100%; min-width: 0; }
.wp-block-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: var(--wp--preset--color--night);
	border-radius: 2px;
}
.recording-list .wp-block-video,
.now-playing .wp-block-video { margin-inline: 0; max-width: none; }
.wp-block-gallery img { border-radius: 2px; }
.wp-block-image figcaption,
.wp-block-gallery figcaption { font-size: var(--wp--preset--font-size--x-small); }

/* Footer: a keyboard strip, then the dark band. */
.keys {
	margin: 0 !important;
	background-color: var(--wp--preset--color--night);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='36'%3E%3Crect width='140' height='36' fill='%23EEE7DA'/%3E%3Cg fill='%2317150F'%3E%3Crect x='19.25' width='1.5' height='36'/%3E%3Crect x='39.25' width='1.5' height='36'/%3E%3Crect x='59.25' width='1.5' height='36'/%3E%3Crect x='79.25' width='1.5' height='36'/%3E%3Crect x='99.25' width='1.5' height='36'/%3E%3Crect x='119.25' width='1.5' height='36'/%3E%3Crect x='139.25' width='1.5' height='36'/%3E%3Crect x='13' width='13' height='22' rx='1'/%3E%3Crect x='34' width='13' height='22' rx='1'/%3E%3Crect x='73' width='13' height='22' rx='1'/%3E%3Crect x='93' width='13' height='22' rx='1'/%3E%3Crect x='113' width='13' height='22' rx='1'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 140px 36px;
}
.site-footer { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.site-footer a { color: inherit; }
.site-footer .footer-note { opacity: 0.6; font-size: var(--wp--preset--font-size--x-small); }
.site-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--paper); opacity: 0.7; }

@media (prefers-reduced-motion: no-preference) {
	.wp-block-post-title a,
	.wp-element-button { transition: color 0.2s, background-color 0.2s; }
}
