body {
	background: var(--myco-color-bg);
	color: var(--myco-color-text);
	font-family: var(--myco-font-sans);
	font-size: var(--myco-font-size-base);
	line-height: var(--myco-line-height);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--myco-space-md);
	color: var(--myco-color-primary);
	font-family: var(--myco-font-serif);
	font-weight: 600;
	font-optical-sizing: auto;
	line-height: var(--myco-line-height-tight);
	letter-spacing: var(--myco-tracking-tight);
}

h1 {
	font-size: clamp(2.125rem, 4.2vw, 3.375rem);
}

h2 {
	font-size: clamp(1.625rem, 3vw, 2.375rem);
}

h3 {
	font-size: clamp(1.3rem, 2.5vw, 1.625rem);
}

h4 {
	font-size: clamp(1.125rem, 2vw, 1.3rem);
}

h5,
h6 {
	font-size: var(--myco-font-size-base);
	letter-spacing: var(--myco-tracking-wide);
	text-transform: uppercase;
}

p {
	margin: 0 0 var(--myco-space-md);
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color var(--myco-transition);
}

a:hover {
	color: var(--myco-color-accent);
}

.entry-content {
	color: var(--myco-color-text);
	font-size: var(--myco-font-size-lg);
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: var(--myco-space-lg);
}

/*
 * Scoped away from buttons on purpose. Unscoped, this rule outranks
 * .myco-button (0,2,0 vs 0,1,0) and repaints a button label to the same
 * colour as its own background — invisible until hover. Any palette
 * reproduces that, so the guard belongs here, at the source.
 */
.entry-content a:not(.myco-button) {
	color: var(--myco-color-accent);
	text-decoration: underline;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--myco-space-2xl);
}

/* Opening paragraph of an article gets a slightly larger, calmer setting. */
.entry-content > p:first-of-type {
	color: var(--myco-color-primary-soft);
	font-size: 1.2em;
	line-height: 1.6;
}

.entry-content blockquote {
	margin: var(--myco-space-2xl) 0;
	padding: var(--myco-space-lg) var(--myco-space-xl);
	border-left: 3px solid var(--myco-color-accent-2);
	background: var(--myco-color-surface);
	border-radius: 0 var(--myco-radius-lg) var(--myco-radius-lg) 0;
	color: var(--myco-color-primary-soft);
	font-family: var(--myco-font-serif);
	font-size: 1.1em;
	font-style: italic;
	line-height: 1.55;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content code {
	padding: 0.1rem 0.25rem;
	background: var(--myco-color-surface);
	border-radius: var(--myco-radius-sm);
	font-size: 0.92em;
}

.entry-content pre {
	overflow-x: auto;
	padding: var(--myco-space-lg);
	border: 1px solid var(--myco-color-border);
	background: var(--myco-color-surface);
	color: var(--myco-color-text);
	border-radius: var(--myco-radius-lg);
}
