/*
Theme Name: Daily Journal
Theme URI: https://www.cassiemcdaniel.com
Author: Cassie McDaniel
Author URI: https://www.cassiemcdaniel.com
Description: A calm, editorial blog theme for publishing every day. Cream paper, forest-green accents, Cormorant headings, Source Serif body text and IBM Plex Mono labels, matching cassiemcdaniel.com.
Version: 1.3.0
Requires at least: 5.9
Tested up to: 6.7
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: daily-journal
Tags: blog, one-column, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
	--bg: #F9F8F7;
	--bg-warm: #EAE7E0;
	--green-dark: #2C4A35;
	--green-mid: #3D6147;
	--green-light: #6A8F6E;
	--green-pale: #D4E0D0;
	--ink: #1C1C18;
	--ink-mid: #3A3A34;
	--ink-muted: #6B6B60;
	--rust: #8B4A2F;
	--rust-pale: #E8D5CB;
	--rule: #C8C4BB;

	--display: "Cormorant", Georgia, "Times New Roman", serif;
	--body: "Source Serif 4", Georgia, serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--max: 1160px;
	--side: clamp(1.5rem, 5vw, 5rem);
	--measure: 42rem;

	--hl: rgba(106, 143, 110, 0.22);
	--hl-hover: rgba(106, 143, 110, 0.4);
	--toolbar-bg: var(--green-dark);
	--toolbar-fg: var(--bg);
	--toolbar-hover: rgba(255, 255, 255, 0.14);
	--toolbar-sep: rgba(242, 240, 235, 0.3);
	--shadow: rgba(28, 28, 24, 0.16);
	color-scheme: light;
}

/* Dark theme: deep green-charcoal paper, warm off-white ink, softened greens. */
:root[data-theme="dark"] {
	--bg: #1B1E1B;
	--bg-warm: #242824;
	--green-dark: #A9CBAD;
	--green-mid: #8FB894;
	--green-light: #6A8F6E;
	--green-pale: #2B382E;
	--ink: #E6E3DB;
	--ink-mid: #C9C5BB;
	--ink-muted: #9A978C;
	--rust: #DB9772;
	--rust-pale: #3A2B23;
	--rule: #343933;

	--hl: rgba(143, 184, 148, 0.2);
	--hl-hover: rgba(143, 184, 148, 0.38);
	--toolbar-bg: #2A312B;
	--toolbar-fg: #E6E3DB;
	--toolbar-hover: rgba(255, 255, 255, 0.1);
	--toolbar-sep: rgba(230, 227, 219, 0.22);
	--shadow: rgba(0, 0, 0, 0.5);
	color-scheme: dark;
}
:root[data-theme="dark"] img { filter: brightness(0.92); }
:root[data-theme="dark"] .dj-toolbar { border: 1px solid var(--rule); }

/* Smooth colour change, only while the toggle is used. */
@media (prefers-reduced-motion: no-preference) {
	.theme-transition,
	.theme-transition *,
	.theme-transition *::before,
	.theme-transition *::after {
		transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
	}
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--green-mid); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--green-light);
	outline-offset: 2px;
}

img, video, iframe { max-width: 100%; height: auto; }

.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;
}
.screen-reader-text:focus {
	background: var(--bg);
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	padding: 0.75rem 1rem;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 100000;
}

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-left: var(--side);
	padding-right: var(--side);
}

/* Mono label style shared by nav, meta, buttons */
.eyebrow,
.entry-meta,
.main-nav a,
.site-title,
.read-more,
.pagination,
.post-navigation,
.entry-footer,
.site-footer,
.comment-meta,
.search-submit,
.comment-form .submit,
.comment-form label,
.reply a {
	font-family: var(--mono);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

h1.eyebrow { font-weight: 400; line-height: 1.7; }
.eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	color: var(--rust);
}

/* Header */
.site-header { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}
.site-title { margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-title a:hover { color: var(--green-mid); }
.custom-logo { max-height: 40px; width: auto; display: block; }

.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.theme-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-right: -0.5rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 2px;
	color: var(--ink-muted);
	cursor: pointer;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2rem;
}
.main-nav a {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--ink-muted);
	text-decoration: none;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--ink); }
/* Last menu item is styled as the outlined call-to-action, like "Get in touch" */
.main-nav li:last-child > a {
	color: var(--ink-mid);
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--ink-muted);
	border-radius: 2px;
}
.main-nav li:last-child > a:hover { color: var(--bg); background: var(--green-dark); border-color: var(--green-dark); }

/* Content */
.site-main { padding: 4rem 0 5rem; }
.site-main .wrap > * { max-width: var(--measure); }
.site-main .wrap > .alignwide, .site-main .wrap > .post-navigation, .site-main .wrap > .comments-area { max-width: var(--measure); }

.archive-header { margin: 1.5rem 0 4rem; }
.archive-header .eyebrow { margin-bottom: 1.5rem; }
.archive-intro a { color: var(--green-mid); }
.archive-intro {
	max-width: 36rem;
	margin: 0;
	font-family: var(--body);
	font-style: italic;
	font-weight: 300;
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--ink-mid);
}
.archive-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
}
.archive-title--intro {
	max-width: 36rem;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1.18;
	letter-spacing: -0.015em;
}
.archive-title em { font-style: italic; color: var(--green-mid); }
.archive-description { margin: 1rem 0 0; color: var(--ink-mid); }

.entry { position: relative; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.entry:last-of-type { border-bottom: 0; margin-bottom: 0; }
/* Post lists sit a little tighter than a full post. */
.blog .entry, .archive .entry, .search .entry { padding-bottom: 1.9rem; margin-bottom: 1.9rem; }
.blog .entry:last-of-type, .archive .entry:last-of-type, .search .entry:last-of-type { padding-bottom: 0; }
.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 1.9rem; margin-bottom: 0.6rem; }
.blog .entry-meta, .archive .entry-meta, .search .entry-meta { margin-bottom: 0.5rem; }

.entry-meta {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	color: var(--rust);
}
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--green-mid); }

.entry-title {
	margin: 0 0 1rem;
	font-family: var(--display);
	font-weight: 600;
	font-size: 2.1rem;
	line-height: 1.12;
	letter-spacing: -0.015em;
}
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--green-mid); }
.single .entry-title { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.75rem; }

.post-thumbnail { display: block; margin: 0 0 1.5rem; }
.post-thumbnail img { display: block; width: 100%; border-radius: 2px; }

.entry-content { font-size: 1.125rem; color: var(--ink); }
.entry-content > * + * { margin-top: 1.4em; margin-bottom: 0; }
.entry-content p { margin-top: 0; }
.archive .entry-content, .blog .entry-content, .search .entry-content { color: var(--ink-mid); font-size: 1.05rem; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-top: 1.2em;
}
.entry-content h2 { font-size: 2rem; margin-top: 1.1em; }
.entry-content h3 { font-size: 1.55rem; margin-top: 1.2em; }
.entry-content h4 { font-size: 1.25rem; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding-left: 1.5rem;
	border-left: 2px solid var(--green-light);
	font-family: var(--display);
	font-size: 1.5rem;
	line-height: 1.4;
	font-style: italic;
	color: var(--green-dark);
}
.entry-content blockquote p { margin: 0; }
/* Divider: a short, centred, solid line. */
.entry-content hr, hr.wp-block-separator,
.entry-content hr.wp-block-separator.is-style-dots {
	width: 4.5rem;
	height: 0;
	margin: 2.75rem auto;
	border: 0;
	border-top: 1px solid var(--ink-muted);
	background: none;
}
.entry-content hr.wp-block-separator.is-style-dots::before { content: none; }
.entry-content hr.wp-block-separator.is-style-wide { width: 100%; border-top-color: var(--rule); }
.entry-content pre {
	overflow-x: auto;
	padding: 1rem 1.25rem;
	background: var(--bg-warm);
	border: 1px solid var(--rule);
	border-radius: 2px;
	font-family: var(--mono);
	font-size: 0.85rem;
	line-height: 1.6;
}
.entry-content code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-warm); padding: 0.1em 0.35em; border-radius: 2px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text {
	margin-top: 0.6rem;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--ink-muted);
}
.entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 0.6rem 0.75rem; text-align: left; }
.entry-content th { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.entry-content mark { background: var(--green-pale); padding: 0 0.2em; }
.entry-content .wp-block-button__link, .wp-block-button__link {
	background: var(--green-dark);
	color: var(--bg);
	font-family: var(--mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	border-radius: 2px;
	padding: 0.95rem 1.6rem;
	text-decoration: none;
}
.wp-block-button__link:hover { background: var(--green-mid); color: var(--bg); }

.read-more {
	display: inline-block;
	margin-top: 1.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--ink-muted);
	text-decoration: none;
}
.read-more:hover { color: var(--green-dark); }

.entry-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.72rem; color: var(--ink-muted); }
.entry-footer p { margin: 0 0 0.5rem; }
.entry-footer a { color: var(--green-mid); text-decoration: none; }
.entry-footer a:hover { color: var(--rust); }

/* Pagination */
.pagination .nav-links, .post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	font-size: 0.75rem;
}
.pagination .nav-links { justify-content: flex-start; }
.pagination .page-numbers {
	padding: 0.6rem 1rem;
	border: 1px solid var(--rule);
	border-radius: 2px;
	color: var(--ink-mid);
	text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--green-dark); color: var(--green-dark); }
.pagination .page-numbers.current { background: var(--green-dark); border-color: var(--green-dark); color: var(--bg); }
.post-navigation { margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.post-navigation a { display: block; color: var(--ink-mid); text-decoration: none; line-height: 1.6; }
.post-navigation a:hover { color: var(--rust); }
.post-navigation .nav-label { display: block; margin-bottom: 0.2rem; color: var(--ink-muted); }
.post-navigation .nav-links > div { max-width: 48%; }
.post-navigation .nav-next { text-align: right; margin-left: auto; }

/* Forms */
.search-form { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.search-form label { flex: 1; }
.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--ink-muted);
	border-radius: 2px;
}
.search-submit,
.comment-form .submit {
	padding: 0.85rem 1.5rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--bg);
	background: var(--green-dark);
	border: 1px solid var(--green-dark);
	border-radius: 2px;
	cursor: pointer;
}
.search-submit:hover, .comment-form .submit:hover { background: var(--green-mid); border-color: var(--green-mid); }

/* Comments */
.comments-area { margin-top: 4rem; }
.comments-title { font-family: var(--display); font-size: 1.9rem; font-weight: 600; margin: 0 0 0.75rem; }
.comment-reply-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin: 0 0 0.75rem; }
.comments-area .comment-respond { margin-bottom: 2.5rem; }
.comments-area .comment-list .comment-respond { margin: 1rem 0 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { margin: 0; }

/* Each comment is open text beside an avatar: no boxes, no dividers. */
.comment-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 1rem; padding: 1.25rem 0 0.5rem; }
.children .comment-body { grid-template-columns: 36px minmax(0, 1fr); gap: 0 0.85rem; }
.comment-avatar img { display: block; width: 100%; height: auto; border-radius: 50%; }
.comment-main { min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.75rem; margin: 0 0 0.3rem; }
.comment-author-name {
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
}
.comment-author-name a { color: inherit; text-decoration: none; }
.comment-time { font-size: 0.7rem; color: var(--ink-muted); text-decoration: none; }
.comment-time:hover { color: var(--rust); }
.comment-content { font-size: 1rem; line-height: 1.65; color: var(--ink-mid); }
.comment-content > * + * { margin-top: 0.6em; }
.comment-content p { margin: 0; }
.comment-awaiting-moderation { margin: 0 0 0.4rem; font-size: 0.85rem; font-style: italic; color: var(--ink-muted); }
.reply { margin-top: 0.35rem; }
.reply a { font-size: 0.7rem; color: var(--green-mid); text-decoration: none; }
.reply a:hover { color: var(--rust); }

/* Replies tuck under the parent with a thin, solid thread. */
.comment-list .children { list-style: none; margin: 0 0 0 22px; padding: 0 0 0 1.4rem; position: relative; }
.comment-list .children::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25rem;
	bottom: 0.5rem;
	width: 1px;
	background: var(--rule);
}
.comment-list .children .children { margin-left: 18px; }

/* Comment form: outlined fields. */
.comment-form p { margin: 0 0 1.25rem; }
.comment-form label { display: block; margin-bottom: 0.15rem; font-size: 0.7rem; color: var(--ink-muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	padding: 0.7rem 0.85rem;
	background: var(--bg);
	border: 1px solid var(--ink-muted);
	border-radius: 2px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--green-dark); box-shadow: 0 0 0 1px var(--green-dark); }
.comment-form textarea { min-height: 6.5rem; resize: vertical; }
.comment-form ::placeholder, .dj-composer ::placeholder { color: var(--ink-muted); opacity: 1; }
.comment-form .form-submit { display: flex; align-items: center; gap: 1rem; margin-bottom: 0; }
.comment-form .dj-cancel { display: none; }
.js .comment-form .dj-cancel { display: inline; }
.comment-form .submit.dj-submit { padding: 0.7rem 1.2rem; font-size: 0.72rem; letter-spacing: 0.1em; }

/* The top-level reply form starts as one line and opens when someone clicks into it (see comment-form.js). */
.js .comments-area > .comment-respond .comment-form:not(.is-open) textarea { height: 3.1rem; min-height: 0; overflow: hidden; resize: none; }
.js .comments-area > .comment-respond .comment-form:not(.is-open) .comment-form-author,
.js .comments-area > .comment-respond .comment-form:not(.is-open) .comment-form-email,
.js .comments-area > .comment-respond .comment-form:not(.is-open) .comment-form-cookies-consent,
.js .comments-area > .comment-respond .comment-form:not(.is-open) .logged-in-as,
.js .comments-area > .comment-respond .comment-form:not(.is-open) .form-submit { display: none; }
.js .comments-area > .comment-respond .comment-form:not(.is-open) .comment-form-comment { margin-bottom: 0; }
.comment-form .comment-notes, .comment-form .logged-in-as { font-size: 0.9rem; color: var(--ink-muted); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.9rem; color: var(--ink-muted); }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 0.9rem; }

/* Emoji reactions on comments */
.comment-reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.55rem; }
.comment-reactions:empty { display: none; }
.cr-chip, .cr-add {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.15rem 0.55rem;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.7rem;
	line-height: 1.5;
	color: var(--ink-mid);
	cursor: pointer;
}
.cr-chip:hover, .cr-add:hover { border-color: var(--green-mid); }
.cr-chip.is-mine { background: var(--green-pale); border-color: var(--green-light); }
.cr-emoji { font-size: 0.95rem; line-height: 1; }
.cr-add { display: none; padding: 0.15rem 0.4rem; color: var(--ink-muted); }
.js .cr-add { display: inline-flex; }
.cr-add svg, .dj-chip-add svg, .dj-more-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cr-add svg .dj-fill, .dj-chip-add svg .dj-fill, .dj-more-btn svg .dj-fill { fill: currentColor; stroke: none; }

/* Highlight to react or comment */
.entry-content mark.dj-hl {
	padding: 0;
	color: inherit;
	background: var(--hl);
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.entry-content mark.dj-hl:hover,
.entry-content mark.dj-hl:focus-visible { background: var(--hl-hover); }

/* Counts live in the right margin, level with the first line of the words. */
.dj-margin { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.dj-note-badge {
	appearance: none;
	position: absolute;
	display: flex;
	align-items: flex-start;
	width: max-content;
	padding: 0;
	background: none;
	border: 0;
	font-family: var(--mono);
	font-size: 0.72rem;
	line-height: 1.4;
	color: var(--ink-muted);
	text-align: left;
	cursor: pointer;
	pointer-events: auto;
}
.dj-note-badge[hidden] { display: none; }
.dj-note-badge:hover { color: var(--ink); }
.dj-note-full { display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; }
.dj-note-chip { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.dj-note-emoji { font-size: 0.95rem; line-height: 1; }
.dj-note-total { display: none; }
.dj-note-badge.is-compact .dj-note-full { display: none; }
.dj-note-badge.is-compact .dj-note-total {
	display: inline-block;
	min-width: 1.25rem;
	padding: 0 0.3rem;
	background: var(--green-pale);
	border-radius: 999px;
	font-size: 0.62rem;
	text-align: center;
	color: var(--green-dark);
}

.dj-toolbar {
	position: absolute;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 0.1rem;
	padding: 0.3rem;
	background: var(--bg-warm);
	border: 1px solid var(--rule);
	border-radius: 10px;
	box-shadow: 0 8px 24px var(--shadow);
	-webkit-user-select: none;
	user-select: none;
}
.dj-toolbar[hidden], .dj-panel[hidden] { display: none; }
.dj-toolbar button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink-mid);
	border-radius: 7px;
	line-height: 1;
	cursor: pointer;
}
.dj-toolbar button:hover, .dj-toolbar button:focus-visible { background: var(--green-pale); color: var(--ink); }
.dj-toolbar svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dj-toolbar svg .dj-fill { fill: currentColor; stroke: none; }
.dj-toolbar .dj-emoji { font-size: 1.3rem; }
.dj-emoji-row { display: none; align-items: center; gap: 0.1rem; }
.dj-toolbar.is-expanded .dj-emoji-row { display: inline-flex; }
.dj-toolbar.is-expanded .dj-react-btn { display: none; }
.dj-toolbar.is-expanded .dj-comment-btn { margin-left: 0.15rem; border-left: 1px solid var(--rule); border-radius: 0 7px 7px 0; }

.dj-panel {
	position: absolute;
	z-index: 9999;
	width: min(22rem, calc(100vw - 1.5rem));
	padding: 1.1rem 1.25rem;
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: 4px;
	box-shadow: 0 16px 40px var(--shadow);
	font-family: var(--body);
	font-size: 0.95rem;
	color: var(--ink);
}
.dj-close {
	position: absolute;
	top: 0.35rem;
	right: 0.45rem;
	appearance: none;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: none;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--ink-muted);
	cursor: pointer;
}
.dj-quote {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 1.5rem 1rem 0;
	font-family: var(--display);
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.35;
	color: var(--green-dark);
}
.dj-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.dj-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.65rem;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--ink-mid);
	cursor: pointer;
}
.dj-chip:hover { border-color: var(--green-mid); }
.dj-chip.is-mine { background: var(--green-pale); border-color: var(--green-light); }
.dj-chip-emoji { font-size: 1rem; line-height: 1; }
.dj-chip-add { padding: 0.3rem 0.5rem; color: var(--ink-muted); }
.dj-card .dj-chips { margin-right: 1.5rem; }

/* Emoji picker */
.dj-picker {
	position: absolute;
	z-index: 10001;
	width: min(20rem, calc(100vw - 1rem));
	padding: 0.6rem;
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: 6px;
	box-shadow: 0 16px 40px var(--shadow);
}
.dj-picker[hidden], .dj-picker [hidden] { display: none !important; }
.dj-picker-search {
	display: block;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0.5rem 0.7rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	background: var(--bg-warm);
	border: 0;
	border-radius: 4px;
}
.dj-picker-search:focus, .dj-picker-search:focus-visible { outline: 0; box-shadow: none; }
.dj-picker-search::placeholder { color: var(--ink-muted); opacity: 1; }
.dj-picker-quick, .dj-picker-tabs { display: flex; gap: 0.1rem; margin-bottom: 0.4rem; }
.dj-picker-quick { padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }
.dj-picker-tabs { justify-content: space-between; }
.dj-picker-tab, .dj-emoji-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 4px;
	line-height: 1;
	cursor: pointer;
}
.dj-picker-tab { width: 2rem; height: 2rem; font-size: 1rem; opacity: 0.55; }
.dj-picker-tab.is-active { opacity: 1; background: var(--green-pale); }
.dj-picker-tab:hover { opacity: 1; }
.dj-emoji-btn { width: 2.2rem; height: 2.2rem; font-size: 1.35rem; }
.dj-emoji-btn:hover, .dj-emoji-btn:focus-visible { background: var(--green-pale); }
.dj-picker-grid { display: flex; flex-wrap: wrap; max-height: 13rem; overflow-y: auto; }
.dj-picker-status { margin: 0; padding: 0.4rem; font-size: 0.85rem; color: var(--ink-muted); }
.dj-picker-status:empty { display: none; }
.dj-notes { margin: 0 0 1rem; padding: 0; list-style: none; }
.dj-notes li + li { margin-top: 0.9rem; }
.dj-note-head {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 0.15rem;
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.dj-note-author { color: var(--rust); }
.dj-note-text { margin: 0; white-space: pre-line; color: var(--ink-mid); }
.dj-add {
	appearance: none;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--green-mid);
	text-decoration: underline;
	text-underline-offset: 0.25em;
	cursor: pointer;
}
.dj-composer textarea,
.dj-composer input[type="text"] {
	display: block;
	width: 100%;
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--ink-muted);
	border-radius: 2px;
	resize: vertical;
}
.dj-composer textarea:focus, .dj-composer input[type="text"]:focus { outline: 0; border-color: var(--green-dark); box-shadow: 0 0 0 1px var(--green-dark); }
.dj-composer input[type="text"] { margin-top: 0.75rem; }
.dj-composer .dj-hp { position: absolute; left: -9999px; }
.dj-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.dj-submit {
	appearance: none;
	padding: 0.7rem 1.2rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--green-dark);
	border: 1px solid var(--green-dark);
	border-radius: 2px;
	cursor: pointer;
}
.dj-submit:hover { background: var(--green-mid); border-color: var(--green-mid); }
.dj-submit:disabled { opacity: 0.6; cursor: wait; }
.dj-cancel {
	appearance: none;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-muted);
	cursor: pointer;
}
.dj-status { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--rust); }
.dj-status:empty { display: none; }
.dj-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	z-index: 10000;
	max-width: calc(100vw - 2rem);
	padding: 0.7rem 1.1rem;
	background: var(--ink);
	color: var(--bg);
	border-radius: 4px;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	opacity: 0;
	transform: translate(-50%, 1rem);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.dj-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
	.dj-toast, .entry-content mark.dj-hl { transition: none; }
}

/* Footer */
.site-footer { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--rule); font-size: 0.72rem; color: var(--ink-muted); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--rust); }
.site-footer p { margin: 0; }
.site-footer .widget + .widget, .site-footer .widget { margin-bottom: 1.5rem; }
.widget-title { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust); margin: 0 0 0.75rem; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky .entry-title::before { content: "\2605  "; color: var(--rust); font-size: 0.7em; }
.bypostauthor { display: block; }
.gallery-caption { display: block; }

@media (max-width: 600px) {
	.site-main { padding-top: 2.5rem; }
	.entry-title { font-size: 1.8rem; }
	.entry-content { font-size: 1.05rem; }
	.main-nav ul { gap: 0.5rem 1.25rem; }
}

@media print {
	.main-nav, .theme-toggle, .site-footer, .comments-area, .post-navigation, .search-form, .dj-toolbar, .dj-panel, .dj-toast, .dj-picker, .dj-margin { display: none; }
	body { background: #fff; color: #000; }
}
