/* Receptarna – osnovni videz nad temo Blocksy. */

body {
	font-family: var(--rp-font-body);
	color: var(--rp-brown);
	background-color: var(--rp-paper);
}

h1, h2, h3, h4,
.entry-title,
.site-title {
	font-family: var(--rp-font-heading);
	color: var(--rp-brown);
}

h1, .entry-title, .site-title { font-weight: 800; letter-spacing: -0.01em; }
h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }

/* Slogan: "kjer so dobri recepti doma" */
.rp-slogan,
.site-description {
	font-family: var(--rp-font-slogan);
	font-style: italic;
	font-weight: 400;
	color: var(--rp-brown);
}

/* Povezave v besedilu: temnejša oranžna zaradi kontrasta na svetlem ozadju. */
.entry-content a:not(.wp-block-button__link):not(.button) {
	color: var(--rp-orange-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.entry-content a:not(.wp-block-button__link):not(.button):hover { color: var(--rp-brown); }

/* Gumbi (CTA): oranžno ozadje, temno besedilo. */
.wp-block-button__link,
.ct-button,
button[type="submit"],
input[type="submit"],
.button,
.wc-block-components-button:not(.is-link) {
	background-color: var(--rp-orange);
	color: var(--rp-brown);
	border-radius: var(--rp-radius-sm);
	font-weight: 700;
	border: 0;
}
.wp-block-button__link:hover,
.ct-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:hover,
.wc-block-components-button:not(.is-link):hover {
	background-color: var(--rp-brown);
	color: var(--rp-white);
}

/* Sekundarni gumb */
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--rp-brown);
	border: 2px solid var(--rp-brown);
}

/* Viden fokus za tipkovnico (WCAG 2.2). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--rp-green-dark);
	outline-offset: 2px;
}

/* Razdelki na kremnem ozadju */
.rp-section--cream {
	background: var(--rp-cream);
	border-radius: var(--rp-radius);
	padding: calc(var(--rp-space) * 2);
}

/* Bloki "kartice" (recepti, članki) */
.rp-card {
	background: var(--rp-white);
	border-radius: var(--rp-radius);
	box-shadow: var(--rp-shadow);
	overflow: hidden;
}

/* Oznaka "Preizkušeno v Receptarni" (izpis: vtičnik Receptarna Core) */
.rp-tested-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	background: var(--rp-green-dark);
	color: var(--rp-white);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.3;
}
.rp-tested-badge svg { width: 1em; height: 1em; fill: currentColor; }

/* Zmanjšano gibanje */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
