/* Self-hosted variable fonts (SIL Open Font License, see assets/fonts/OFL.txt). Latin + Latin Extended cover Turkish. */
@font-face {
	font-family: "Saira";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 75% 125%;
	font-display: swap;
	src: url("../fonts/saira-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Saira";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 75% 125%;
	font-display: swap;
	src: url("../fonts/saira-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
	background: var(--myco-color-bg);
	color: var(--myco-color-body);
	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;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--myco-space-md);
	color: var(--myco-color-text);
	font-family: var(--myco-font-sans);
	font-weight: 700;
	line-height: var(--myco-line-height-tight);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* Display headings use Saira (Klavika-like); h3+ stay in Plus Jakarta Sans. */
h1,
h2 {
	font-family: var(--myco-font-heading);
	font-stretch: var(--myco-heading-stretch);
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.25;
}

h4 {
	font-size: 1.125rem;
	line-height: 1.35;
}

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

strong,
b {
	font-weight: 700;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

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

::selection {
	background: var(--myco-color-accent);
	color: var(--myco-color-white);
}

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

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

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

.entry-content h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.entry-content a {
	color: var(--myco-color-primary);
	font-weight: 600;
	text-decoration-color: var(--myco-color-accent);
	text-decoration-thickness: 2px;
}

.entry-content a:hover {
	text-decoration-color: currentColor;
}

.entry-content ul li::marker {
	color: var(--myco-color-accent);
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--myco-color-border);
}

.entry-content blockquote {
	margin: var(--myco-space-2xl) 0;
	padding: var(--myco-space-lg) var(--myco-space-xl);
	border-left: 4px solid var(--myco-color-accent);
	background: var(--myco-color-surface);
	border-radius: 0 var(--myco-radius-md) var(--myco-radius-md) 0;
}

.entry-content img {
	border-radius: var(--myco-radius-md);
}

.entry-content code {
	padding: 0.1rem 0.25rem;
	background: var(--myco-color-surface);
	border-radius: 4px;
	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-md);
}
