/*
Theme Name: WPDock Demo
Theme URI: https://wpdock.local/theme
Author: WPDock
Author URI: https://wpdock.local
Description: A deliberately small classic theme for the WPDock demo site. No build step, no external assets, one column, system fonts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpdock-demo
Tags: one-column, custom-logo, block-styles
*/

:root {
	--wpd-ink: #16181d;
	--wpd-muted: #5b6472;
	--wpd-line: #e3e6ec;
	--wpd-bg: #ffffff;
	--wpd-accent: #1f6feb;
	--wpd-measure: 44rem;
}

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

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

body {
	margin: 0;
	background: var(--wpd-bg);
	color: var(--wpd-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.wpd-shell {
	max-width: var(--wpd-measure);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* --- Wordmark ---------------------------------------------------------- */

.wpd-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
	font-weight: 650;
	letter-spacing: -0.015em;
}

.wpd-mark svg {
	display: block;
	flex: none;
}

.wpd-mark-text {
	font-size: 1.05rem;
}

.wpd-mark-text b {
	font-weight: 650;
}

.wpd-mark-text span {
	color: var(--wpd-muted);
	font-weight: 500;
}

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

.wpd-header {
	border-bottom: 1px solid var(--wpd-line);
	padding: 1.1rem 0;
}

.wpd-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wpd-nav a {
	color: var(--wpd-muted);
	text-decoration: none;
	font-size: 0.9rem;
	margin-left: 1rem;
}

.wpd-nav a:hover,
.wpd-nav a:focus {
	color: var(--wpd-accent);
}

.wpd-masthead {
	padding: 3rem 0 2rem;
	border-bottom: 1px solid var(--wpd-line);
}

.wpd-site-title {
	margin: 0;
	font-size: 2.1rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.wpd-site-title a {
	color: inherit;
	text-decoration: none;
}

.wpd-site-description {
	margin: 0.5rem 0 0;
	color: var(--wpd-muted);
	font-size: 1.05rem;
}

/* --- Content ----------------------------------------------------------- */

.wpd-main {
	padding: 2.5rem 0 3rem;
}

.wpd-secret-proof {
	margin: 0 0 2.25rem;
	padding: 1rem;
	border: 1px solid var(--wpd-line);
	border-radius: 6px;
	background: #f6f7f9;
}

.wpd-secret-proof h2 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	line-height: 1.3;
}

.wpd-secret-proof p {
	margin: 0;
	color: var(--wpd-muted);
	font-size: 0.9rem;
}

.wpd-secret-proof-meta {
	margin-bottom: 0.45rem !important;
}

.wpd-secret-proof code {
	display: block;
	overflow-wrap: anywhere;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--wpd-line);
	border-radius: 6px;
	background: var(--wpd-bg);
	color: var(--wpd-ink);
	font-size: 0.9rem;
	line-height: 1.45;
}

.wpd-entry + .wpd-entry {
	margin-top: 2.75rem;
	padding-top: 2.75rem;
	border-top: 1px solid var(--wpd-line);
}

.wpd-entry-title {
	margin: 0 0 0.35rem;
	font-size: 1.45rem;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.wpd-entry-title a {
	color: inherit;
	text-decoration: none;
}

.wpd-entry-title a:hover,
.wpd-entry-title a:focus {
	color: var(--wpd-accent);
}

.wpd-entry-meta {
	margin: 0 0 1rem;
	color: var(--wpd-muted);
	font-size: 0.85rem;
}

.wpd-entry-content > *:first-child {
	margin-top: 0;
}

.wpd-entry-content > *:last-child {
	margin-bottom: 0;
}

.wpd-entry-content a {
	color: var(--wpd-accent);
}

.wpd-entry-content img {
	max-width: 100%;
	height: auto;
}

.wpd-entry-content pre {
	overflow-x: auto;
	padding: 0.9rem 1rem;
	background: #f6f7f9;
	border: 1px solid var(--wpd-line);
	border-radius: 6px;
	font-size: 0.9rem;
}

.wpd-entry-content blockquote {
	margin: 1.4rem 0;
	padding-left: 1rem;
	border-left: 3px solid var(--wpd-line);
	color: var(--wpd-muted);
}

.wpd-empty {
	color: var(--wpd-muted);
}

.wpd-pagination {
	margin-top: 2.5rem;
	display: flex;
	gap: 1rem;
	font-size: 0.95rem;
}

/* --- Guestbook --------------------------------------------------------- */

.wpd-guestbook-notice {
	margin: 0 0 1.5rem;
	padding: 0.7rem 1rem;
	border-radius: 6px;
	border: 1px solid var(--wpd-line);
	font-size: 0.95rem;
}

.wpd-guestbook-notice-ok {
	border-color: #b7e0c4;
	background: #f0faf3;
	color: #14663a;
}

.wpd-guestbook-notice-error {
	border-color: #eec2c2;
	background: #fdf3f3;
	color: #8a2020;
}

.wpd-guestbook-form {
	margin: 0 0 2.75rem;
	padding: 1.5rem;
	border: 1px solid var(--wpd-line);
	border-radius: 10px;
}

.wpd-field {
	margin: 0 0 1.1rem;
}

.wpd-field:last-child {
	margin-bottom: 0;
}

.wpd-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.wpd-field input[type="text"],
.wpd-field textarea {
	display: block;
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--wpd-line);
	border-radius: 6px;
	background: var(--wpd-bg);
	color: var(--wpd-ink);
	font: inherit;
	font-size: 0.95rem;
}

.wpd-field input[type="text"]:focus,
.wpd-field textarea:focus,
.wpd-field input[type="file"]:focus,
.wpd-field button:focus {
	outline: 2px solid var(--wpd-accent);
	outline-offset: 2px;
}

.wpd-field textarea {
	resize: vertical;
	min-height: 6rem;
}

.wpd-field input[type="file"] {
	display: block;
	width: 100%;
	font-size: 0.9rem;
	color: var(--wpd-muted);
}

.wpd-hint {
	display: block;
	margin-top: 0.35rem;
	color: var(--wpd-muted);
	font-size: 0.8rem;
}

.wpd-field button {
	padding: 0.6rem 1.2rem;
	border: 0;
	border-radius: 6px;
	background: var(--wpd-accent);
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.wpd-field button:hover {
	filter: brightness(1.08);
}

.wpd-guestbook-entries {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpd-guestbook-entry {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.25rem 0;
	border-top: 1px solid var(--wpd-line);
}

.wpd-guestbook-entry-image {
	flex: none;
	width: 96px;
}

.wpd-guestbook-entry-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.wpd-guestbook-entry-body {
	flex: 1 1 auto;
	min-width: 0;
}

.wpd-guestbook-entry-meta {
	margin: 0 0 0.3rem;
	font-size: 0.9rem;
}

.wpd-guestbook-entry-meta span {
	margin-left: 0.5rem;
	color: var(--wpd-muted);
	font-size: 0.8rem;
}

.wpd-guestbook-entry-message {
	margin: 0;
	overflow-wrap: break-word;
}

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

.wpd-footer {
	border-top: 1px solid var(--wpd-line);
	padding: 1.5rem 0 2.5rem;
	color: var(--wpd-muted);
	font-size: 0.85rem;
}

.wpd-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

/* --- Accessibility ----------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--wpd-bg);
	clip-path: none;
	color: var(--wpd-ink);
	display: block;
	height: auto;
	left: 8px;
	padding: 0.6rem 1rem;
	top: 8px;
	width: auto;
	z-index: 100000;
}

@media (prefers-color-scheme: dark) {
	:root {
		--wpd-ink: #e8eaee;
		--wpd-muted: #99a1ae;
		--wpd-line: #2a2f38;
		--wpd-bg: #14161a;
		--wpd-accent: #6ea8ff;
	}

	.wpd-entry-content pre {
		background: #1c1f25;
	}

	.wpd-secret-proof {
		background: #1c1f25;
	}

	/* The notice colours are the only hardcoded ones in the sheet, so they need a
	   dark counterpart rather than a token swap. */
	.wpd-guestbook-notice-ok {
		border-color: #2c5c40;
		background: #16241c;
		color: #8fd6a8;
	}

	.wpd-guestbook-notice-error {
		border-color: #6b3232;
		background: #2a1a1a;
		color: #f0a6a6;
	}
}
