/*
Theme Name: Me & My Agents
Theme URI: https://myagents.blog
Author: Jacco
Description: Blockthema voor Me & My Agents. Een persoonlijk bouwlogboek: warm papier, zwarte druk, één blauwe pen. Bevat de reekslijn, agentprofielen en de vaste artikelcomponenten (opdracht, controle, valkuil, gesprek, resultaat).
Version: 0.1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mma
Tags: blog, one-column, block-patterns, full-site-editing
*/

/* ==========================================================================
   Inhoud
   1.  Basis
   2.  Woordmerk & kop
   3.  Metadata (mono)
   4.  De reekslijn
   5.  Statusblok
   6.  Agents
   7.  Artikelcomponenten
   8.  Reacties
   9.  Diversen
   ========================================================================== */

/* 1. Basis ---------------------------------------------------------------- */

:root {
	--mma-lijn-zacht: #f1eee7;
	--mma-pen-wash: rgba(36, 64, 214, 0.07);
}

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

/* Leesbreedte voor lopende tekst in artikelen. */
.mma-artikel .entry-content > p,
.mma-artikel .entry-content > ul,
.mma-artikel .entry-content > ol,
.mma-artikel .entry-content > h2,
.mma-artikel .entry-content > h3 {
	max-width: 62ch;
}

.mma-grafiet {
	color: var(--wp--preset--color--grafiet);
}

.mma-potlood {
	color: var(--wp--preset--color--potlood);
}

/* 2. Woordmerk & kop ------------------------------------------------------ */

.mma-wordmark {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	font-size: 1.06rem;
	letter-spacing: -0.035em;
	line-height: 1.02;
	color: var(--wp--preset--color--druk);
	text-decoration: none;
}

.mma-wordmark:hover {
	text-decoration: none;
}

.mma-wordmark .amp {
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--pen);
}

.mma-wordmark--groot {
	font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--lijn);
}

.site-header .wp-block-navigation {
	font-size: var(--wp--preset--font-size--klein);
}

.site-header .wp-block-navigation a {
	color: var(--wp--preset--color--potlood);
}

.site-header .wp-block-navigation .current-menu-item a,
.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--druk);
	text-decoration: none;
}

.site-footer {
	border-top: 1px solid var(--wp--preset--color--lijn);
}

/* 3. Metadata (mono) ------------------------------------------------------ */

.mma-meta,
.mma-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--potlood);
}

.mma-label--pen {
	color: var(--wp--preset--color--pen);
}

/* Metadata-rij boven of onder een artikel. */
.mma-metarij {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--potlood);
}

.mma-metarij strong,
.mma-metarij b {
	font-weight: 400;
	color: var(--wp--preset--color--druk);
}

/* Agentnamen behouden altijd hun eigen schrijfwijze. Nooit uppercase. */
.mma-agentnaam {
	font-weight: 600;
	letter-spacing: -0.012em;
	text-transform: none !important;
}

/* 4. De reekslijn --------------------------------------------------------- */

.mma-reeks {
	position: relative;
	padding-left: 34px;
	list-style: none;
	margin: 0;
}

.mma-reeks::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 14px;
	bottom: 14px;
	width: 1px;
	background: var(--wp--preset--color--lijn);
}

.mma-reeks .wp-block-post {
	position: relative;
	padding: 13px 0;
	border-bottom: 1px solid var(--mma-lijn-zacht);
	display: grid;
	grid-template-columns: 1fr;
	gap: 3px;
	align-items: baseline;
}

.mma-reeks .wp-block-post:last-child {
	border-bottom: 0;
}

.mma-reeks .wp-block-post::before {
	content: "";
	position: absolute;
	left: -31px;
	top: 21px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--pen);
	border: 1.5px solid var(--wp--preset--color--pen);
}

/* Nog niet gepubliceerd of aangemerkt als 'binnenkort'. */
.mma-reeks .wp-block-post.mma-binnenkort::before {
	background: var(--wp--preset--color--papier);
	border-color: var(--wp--preset--color--lijn);
}

.mma-reeks .wp-block-post.mma-bezig::before {
	background: var(--wp--preset--color--blad);
	border-color: var(--wp--preset--color--pen);
	box-shadow: 0 0 0 4px var(--mma-pen-wash);
}

.mma-reeks .wp-block-post-title {
	font-size: var(--wp--preset--font-size--basis);
	letter-spacing: -0.015em;
	margin: 0;
	font-weight: 400;
}

.mma-reeks .wp-block-post-title a {
	color: var(--wp--preset--color--druk);
	text-decoration: none;
}

.mma-reeks .wp-block-post-title a:hover {
	color: var(--wp--preset--color--pen);
	text-decoration: none;
}

/* Het afleveringsnummer, gebonden aan post meta. */
.mma-nummer {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--potlood);
	margin: 0 0 2px;
}

@media (min-width: 680px) {
	.mma-reeks .wp-block-post {
		grid-template-columns: auto 1fr auto;
		gap: 0 14px;
	}

	.mma-nummer {
		margin: 0;
	}
}

/* 5. Statusblok ----------------------------------------------------------- */

.mma-status,
.mma-project {
	border: 1px solid var(--wp--preset--color--lijn);
	border-radius: 3px;
	overflow: hidden;
	background: var(--wp--preset--color--blad);
}

.mma-status__kop,
.mma-project__kop {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 16px;
	background: var(--wp--preset--color--papier);
	border-bottom: 1px solid var(--wp--preset--color--lijn);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--potlood);
}

.mma-status__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 680px) {
	.mma-status__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.mma-status__cel {
	padding: 15px 16px;
	border-right: 1px solid var(--mma-lijn-zacht);
	border-bottom: 1px solid var(--mma-lijn-zacht);
}

.mma-status__cel span {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	color: var(--wp--preset--color--potlood);
	margin-bottom: 4px;
}

.mma-status__cel b {
	font-weight: 500;
	font-size: 0.96rem;
	letter-spacing: -0.012em;
}

/* 6. Agents --------------------------------------------------------------- */

.mma-agents {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--wp--preset--color--lijn);
}

@media (min-width: 680px) {
	.mma-agents {
		grid-template-columns: 1fr 1fr;
	}
}

.mma-agent {
	padding: 20px 0;
	border-bottom: 1px solid var(--mma-lijn-zacht);
}

@media (min-width: 680px) {
	.mma-agent {
		padding: 20px 26px 20px 0;
	}

	.mma-agent:nth-child(odd) {
		border-right: 1px solid var(--mma-lijn-zacht);
	}

	.mma-agent:nth-child(even) {
		padding-left: 26px;
		padding-right: 0;
	}
}

.mma-agent__naam {
	font-size: 1.22rem;
	font-weight: 600;
	letter-spacing: -0.022em;
	margin: 0;
}

.mma-agent__naam a {
	color: var(--wp--preset--color--druk);
	text-decoration: none;
}

.mma-agent__rol {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--pen);
	margin: 3px 0 8px;
}

.mma-agent__omschrijving {
	margin: 0;
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--grafiet);
}

/* 7. Artikelcomponenten --------------------------------------------------- */
/* Blokstijlen op core/group. Zie inc/blokken.php voor de registratie. */

.is-style-mma-opdracht,
.is-style-mma-valkuil,
.is-style-mma-controle {
	max-width: 62ch;
	border-radius: 3px;
	padding: 0 !important;
	overflow: hidden;
}

.is-style-mma-opdracht {
	border: 1px solid var(--wp--preset--color--pen);
}

.is-style-mma-controle,
.is-style-mma-valkuil {
	border: 1px solid var(--wp--preset--color--lijn);
}

/* De eerste kop in het blok wordt de labelbalk. */
.is-style-mma-opdracht > :first-child,
.is-style-mma-controle > :first-child,
.is-style-mma-valkuil > :first-child {
	margin: 0;
	padding: 9px 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.is-style-mma-opdracht > :first-child {
	background: var(--mma-pen-wash);
	border-bottom: 1px solid rgba(36, 64, 214, 0.2);
	color: var(--wp--preset--color--pen);
}

.is-style-mma-controle > :first-child {
	background: var(--wp--preset--color--papier);
	border-bottom: 1px solid var(--wp--preset--color--lijn);
	color: var(--wp--preset--color--potlood);
}

.is-style-mma-valkuil > :first-child {
	background: var(--wp--preset--color--druk);
	color: #fff;
}

.is-style-mma-opdracht > :not(:first-child),
.is-style-mma-controle > :not(:first-child),
.is-style-mma-valkuil > :not(:first-child) {
	margin: 0;
	padding: 16px;
}

/* De opdracht is letterlijk overneembaar, dus mono. */
.is-style-mma-opdracht > :not(:first-child) {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--klein);
	line-height: 1.7;
	color: var(--wp--preset--color--druk);
}

.is-style-mma-controle > :not(:first-child),
.is-style-mma-valkuil > :not(:first-child) {
	color: var(--wp--preset--color--grafiet);
}

/* Checklist met blauwe vinkjes: blokstijl op core/list. */
.is-style-mma-check {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.is-style-mma-check li {
	position: relative;
	padding: 6px 0 6px 26px;
}

.is-style-mma-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--wp--preset--color--pen);
	font-size: 0.9rem;
}

/* Agentgesprek: blokstijl op core/quote of core/group. */
.is-style-mma-gesprek {
	max-width: 62ch;
	border-left: 2px solid var(--wp--preset--color--lijn);
	padding-left: 20px;
}

.is-style-mma-gesprek p {
	margin: 0 0 15px;
	color: var(--wp--preset--color--grafiet);
}

.is-style-mma-gesprek p:last-child {
	margin-bottom: 0;
}

/* Wie er spreekt: zet het eerste woord van de regel in <strong>. */
.is-style-mma-gesprek strong {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 400;
	color: var(--wp--preset--color--pen);
	margin-bottom: 3px;
	letter-spacing: 0.02em;
}

/* Resultaat: sluit het artikel af. */
.is-style-mma-resultaat {
	max-width: 62ch;
	border-top: 2px solid var(--wp--preset--color--druk);
	padding-top: 16px !important;
	padding-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.is-style-mma-resultaat > :first-child {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--potlood);
	margin: 0 0 8px;
	font-weight: 400;
}

.is-style-mma-resultaat > :not(:first-child) {
	font-size: var(--wp--preset--font-size--lede);
	letter-spacing: -0.012em;
	margin: 0;
}

/* Terminaloutput. Zwart, met een gestempelde mislukking. */
.mma-terminal {
	background: var(--wp--preset--color--druk);
	color: #e8e6e1;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--klein);
	line-height: 1.8;
	padding: 16px 18px;
	border-radius: 3px;
	max-width: 62ch;
	overflow-x: auto;
}

.mma-terminal .prompt {
	color: #8fa1f2;
}

/* Geen rood. Een mislukking wordt zwart gestempeld. */
.mma-terminal .mislukt,
.mma-stempel {
	background: #e8e6e1;
	color: var(--wp--preset--color--druk);
	padding: 0 5px;
	border-radius: 2px;
}

/* 8. Reacties ------------------------------------------------------------- */

.mma-reacties {
	max-width: 64ch;
}

.mma-reacties .wp-block-comments-title {
	border-top: 2px solid var(--wp--preset--color--druk);
	padding-top: 16px;
	font-size: var(--wp--preset--font-size--kop);
}

/* De vraag van deze aflevering. Zonder vraag geen gesprek. */
.mma-vraag {
	background: var(--mma-pen-wash);
	border-left: 2px solid var(--wp--preset--color--pen);
	padding: 14px 16px;
	margin: 18px 0 26px;
	max-width: 64ch;
}

.mma-vraag:empty {
	display: none;
}

.mma-vraag__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--pen);
	margin: 0 0 5px;
}

.wp-block-comment-template li {
	padding: 18px 0;
	border-bottom: 1px solid var(--mma-lijn-zacht);
	list-style: none;
}

.wp-block-comment-template li ol {
	margin-left: 0;
	padding-left: 20px;
	border-left: 2px solid var(--wp--preset--color--lijn);
}

@media (min-width: 680px) {
	.wp-block-comment-template li ol {
		margin-left: 26px;
	}
}

.wp-block-comment-author-name {
	font-weight: 600;
	font-size: 0.98rem;
	letter-spacing: -0.015em;
}

.wp-block-comment-author-name a {
	color: var(--wp--preset--color--druk);
	text-decoration: none;
}

.wp-block-comment-date,
.wp-block-comment-edit-link {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--potlood);
}

/* Label bij de auteur van de blog. */
.bypostauthor > .wp-block-comment-author-name::after {
	content: "auteur";
	display: inline-block;
	margin-left: 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--wp--preset--color--pen);
	border: 1px solid rgba(36, 64, 214, 0.35);
	border-radius: 2px;
	padding: 1px 6px;
	vertical-align: 1px;
}

.wp-block-comment-content p {
	margin: 6px 0 0;
	color: var(--wp--preset--color--grafiet);
}

.wp-block-comment-reply-link {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
}

/* Formulier */
.wp-block-post-comments-form {
	margin-top: 24px;
	border: 1px solid var(--wp--preset--color--lijn);
	border-radius: 3px;
	padding: 18px;
}

.wp-block-post-comments-form .comment-reply-title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 400;
	color: var(--wp--preset--color--potlood);
	margin: 0 0 10px;
	letter-spacing: 0.02em;
}

.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"],
.wp-block-post-comments-form textarea {
	width: 100%;
	background: var(--wp--preset--color--blad);
	border: 1px solid var(--wp--preset--color--lijn);
	border-radius: 2px;
	padding: 11px 12px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--druk);
}

.wp-block-post-comments-form textarea:focus,
.wp-block-post-comments-form input:focus {
	outline: 2px solid var(--wp--preset--color--pen);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--pen);
}

.wp-block-post-comments-form .comment-form-author,
.wp-block-post-comments-form .comment-form-email {
	display: inline-block;
	width: 100%;
}

@media (min-width: 560px) {
	.wp-block-post-comments-form .comment-form-author,
	.wp-block-post-comments-form .comment-form-email {
		width: calc(50% - 6px);
	}

	.wp-block-post-comments-form .comment-form-author {
		margin-right: 8px;
	}
}

.wp-block-post-comments-form .form-submit input[type="submit"],
.wp-block-post-comments-form .wp-block-button__link {
	background: var(--wp--preset--color--pen);
	border: 0;
	border-radius: 2px;
	color: #fff;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--klein);
	font-weight: 500;
	padding: 11px 18px;
	cursor: pointer;
}

.mma-moderatie-notitie {
	margin-top: 12px;
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--potlood);
	max-width: 52ch;
}

/* 9. Diversen ------------------------------------------------------------- */

.mma-volgende {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid var(--wp--preset--color--lijn);
	padding-top: 20px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--meta);
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	background: var(--wp--preset--color--druk);
	color: #fff;
	padding: 10px 14px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* Reset van de standaardlijst in de query-loop, zodat de reekslijn klopt. */
.mma-reeks .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mma-reeks .wp-block-post-template .mma-meta {
	white-space: nowrap;
}
