/*
Theme Name: Build Notes
Theme URI: https://closedloop.sh/tools/wordpress-template
Author: ClosedLoop AI
Author URI: https://closedloop.sh/
Description: A thoughtful home for useful work. Build Notes pairs a product-builder portfolio with readable project stories, release notes and lessons. An original block theme with warm paper colors, expressive serif headings, core-block patterns and an uncluttered publishing experience.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
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: build-notes
Tags: blog, portfolio, one-column, custom-logo, custom-menu, featured-images, full-site-editing, block-patterns, wide-blocks, translation-ready

Build Notes, Copyright 2026 ClosedLoop AI.
Build Notes is distributed under the terms of the GNU GPL.
*/

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

:where(p, li, h1, h2, h3, h4, h5, h6, blockquote) {
	overflow-wrap: anywhere;
}

a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.065em;
}

:where(.wp-block-post-title, .wp-block-site-title, .wp-block-navigation) a {
	text-decoration: none;
}

:where(.wp-block-post-title, .wp-block-site-title, .wp-block-navigation) a:hover {
	text-decoration: underline;
}

.wp-site-blocks {
	overflow-x: clip;
}

.bn-header {
	padding-block: 1.6rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bn-header .wp-block-site-title {
	letter-spacing: -0.045em;
}

.bn-header .wp-block-navigation {
	font-size: 0.875rem;
}

.bn-footer {
	margin-block-start: var(--wp--preset--spacing--60);
	padding-block: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

.bn-main {
	padding-block-start: var(--wp--preset--spacing--50);
}

.bn-intro {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.bn-intro h1 {
	max-width: 13ch;
	margin-block: 1.25rem 1.75rem;
}

.bn-intro .bn-deck {
	max-width: 38rem;
}

.bn-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.bn-note-list {
	padding-inline-start: 0;
}

.bn-note-list > li {
	padding-block: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

.bn-note-list > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bn-note-list .wp-block-post-title {
	margin-block: 0.65rem 0.85rem;
	max-width: 24ch;
}

.bn-note-list .wp-block-post-excerpt {
	max-width: 42rem;
}

.bn-note-list .wp-block-post-date,
.bn-meta {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
}

.bn-note-list .wp-block-post-featured-image {
	margin-block-end: 1.5rem;
}

.bn-note-list .wp-block-post-featured-image img,
.bn-project-image img,
.wp-block-post-featured-image img {
	border-radius: 0.35rem;
}

.bn-pagination {
	margin-block-start: var(--wp--preset--spacing--40);
}

.bn-pagination .page-numbers.current {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.bn-article-header {
	padding-block-end: var(--wp--preset--spacing--40);
}

.bn-article-header h1 {
	max-width: 18ch;
}

.bn-project {
	padding-block: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
}

.bn-project h2 {
	max-width: 16ch;
}

.bn-project-image {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.35rem;
}

.bn-project-image img {
	display: block;
	width: 100%;
	height: auto;
}

.bn-story {
	padding-block: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

.bn-story .bn-section-number {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	line-height: 1;
}

.bn-story h3 {
	margin-block-start: 0.35rem;
}

.bn-callout {
	border-block: 1px solid var(--wp--preset--color--line);
	padding-block: var(--wp--preset--spacing--30);
}

.bn-callout p {
	margin-block: 0;
}

.bn-section-heading {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

.bn-comments {
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
}

.bn-comments .wp-block-comment-template {
	padding-inline-start: 0;
}

.bn-comments .wp-block-comment-template li {
	padding-block: 1.25rem;
}

.bn-comments .wp-block-comment-template ol {
	padding-inline-start: 1.5rem;
	border-inline-start: 1px solid var(--wp--preset--color--line);
}

:where(.comment-form, .wp-block-search) :where(input:not([type="checkbox"]):not([type="submit"]), textarea) {
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.2rem;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

.comment-form textarea {
	width: 100%;
}

.comment-form input[type="submit"],
.wp-block-search__button {
	padding: 0.8rem 1.2rem;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 0.2rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font: inherit;
	cursor: pointer;
}

.wp-block-code,
.wp-block-preformatted {
	overflow-x: auto;
	white-space: pre;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	min-width: 24rem;
}

.wp-block-image figcaption,
.wp-block-video figcaption,
.wp-block-table figcaption {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

@media (max-width: 781px) {
	.bn-project .wp-block-columns,
	.bn-story .wp-block-columns {
		gap: 1.5rem;
	}

	.bn-intro {
		padding-block-start: 1.5rem;
	}

	.bn-intro h1 {
		max-width: 14ch;
	}

	.bn-footer .wp-block-group.is-layout-flex {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
