/*
Theme Name: Leniwy Kucharz
Theme URI: https://leniwykucharz.pl
Author: Leniwy Kucharz
Description: Obiad, który robi się prawie sam
Version: 1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: leniwy-kucharz
*/

/* ramka wstepu (BLUF) i box TL;DR */
.wpm-bluf, .tldr { border-left: 4px solid var(--wp--preset--color--primary); border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.wpm-bluf > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.wpm-bluf .wpm-bluf-label { margin: 0 0 0.5em; font-weight: 700; color: var(--wp--preset--color--accent); }
.wpm-bluf p { line-height: 1.6; }
.wpm-bluf p:last-child, .wpm-bluf ul:last-child { margin-bottom: 0; }

/* portal kit: uklad klockow (kolory i fonty z theme.json) */
.wpm-header { border-bottom: 1px solid var(--wp--preset--color--surface); }
.wpm-masthead-kompaktowy { z-index: 20; }
.wpm-servicebar { padding-block: 0.4rem; }
.wpm-brand .wp-block-site-title { margin: 0; }
/* logo (znak albo znak z nazwa) zastepuje nazwe: site-title tylko dla czytnikow i SEO (wydawca 2026-10-08: przy rebrandingu sam znak, bez napisu) */
.wpm-brand:has(.wp-block-site-logo img) .wp-block-site-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wpm-kicker { margin-block: 1.5rem 1rem; }
.wpm-home-h1 { max-width: 22ch; }
.wpm-home-lead { max-width: 60ch; }
.wpm-trust { border-block: 1px solid var(--wp--preset--color--surface); padding-block: 0.6rem; margin-block: 1rem 2rem; }
.wpm-trust-masthead { border: 0; margin: 0; padding: 0; }
.wpm-trust-kafle > p { padding: 0.6rem 1rem; margin: 0; }
.wpm-section { margin-block: 2.5rem; }
.wpm-section-head { border-bottom: 2px solid var(--wp--preset--color--contrast); padding-bottom: 0.4rem; margin-bottom: 1rem; align-items: baseline; }
.wpm-section-title { margin: 0; }
.wpm-mini > .wp-block-column:first-child img { border-radius: 6px; }
.wpm-textrow { border-bottom: 1px solid var(--wp--preset--color--surface); padding-block: 0.5rem; }
.wpm-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wpm-meta .wp-block-avatar img { border-radius: 50%; }
.wpm-sidebar { position: sticky; top: 1rem; align-self: start; }
.wpm-aside-title { font-size: var(--wp--preset--font-size--large); border-bottom: 2px solid var(--wp--preset--color--contrast); padding-bottom: 0.3rem; margin-bottom: 0.8rem; }
.wpm-most-read .wp-block-post-template { counter-reset: wpm; list-style: none; padding: 0; }
.wpm-most-read .wp-block-post { counter-increment: wpm; display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; padding-block: 0.5rem; border-bottom: 1px solid var(--wp--preset--color--surface); }
.wpm-most-read .wp-block-post::before { content: counter(wpm); font-family: var(--wp--preset--font-family--heading, inherit); font-size: var(--wp--preset--font-size--x-large); line-height: 1; color: var(--wp--preset--color--muted); }
.wpm-silos, .wpm-footer-silos { list-style: none; padding: 0; margin: 0; }
.wpm-silos li, .wpm-footer-silos li { padding-block: 0.25rem; }
.wpm-single-head { margin-block: 1rem 1.5rem; }
.wpm-kicker-cat { font-size: var(--wp--preset--font-size--small); }
.wpm-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }
.wpm-breadcrumbs { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wpm-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 0.8rem; }
.wpm-breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--wp--preset--color--muted); }
.wpm-toc { border: 1px solid var(--wp--preset--color--surface); background: var(--wp--preset--color--surface); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.wpm-toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.wpm-author-box { margin-block: 2.5rem; border-radius: 6px; }
.wpm-author-box .wp-block-avatar img { border-radius: 50%; }
.wpm-prevnext { border-top: 1px solid var(--wp--preset--color--surface); padding-top: 1rem; }
.wpm-hub-head { margin-block: 1.5rem; }
.wpm-hub-list .wp-block-post:nth-child(-n+3) .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }
.wpm-footer-title { font-size: var(--wp--preset--font-size--medium); margin-bottom: 0.6rem; }
.wpm-footer .wp-block-navigation { font-size: var(--wp--preset--font-size--small); }
.wpm-copy { margin-top: 2rem; }
@media (max-width: 781px) { .wpm-sidebar { position: static; } .wpm-hero-small .wp-block-post-template { grid-template-columns: 1fr; } }

/* Leniwy Kucharz: tarcza minutnika i szlif (v1.1) */
@property --lk-sweep { syntax: "<angle>"; inherits: false; initial-value: 180deg; }
:root { --lk-b: var(--wp--preset--color--base); --lk-c: var(--wp--preset--color--contrast); --lk-p: var(--wp--preset--color--primary); }
h1, h2, h3, .wp-block-post-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wp-site-blocks > footer { margin-block-start: 0; }
:where(a, button, input, .wp-element-button):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; border-radius: 2px; }

.wpm-timer { position: relative; }
.wpm-timer::before, .wpm-timer::after { content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none; width: var(--lk-size); top: var(--lk-top); right: var(--lk-right); }
.wpm-timer::before {
  background: radial-gradient(circle closest-side, var(--lk-c) 0 9%, transparent 9.5%), conic-gradient(var(--lk-p) 0 var(--lk-sweep), var(--lk-face) var(--lk-sweep) 360deg);
  box-shadow: 0 0 0 0.4rem var(--lk-b), 0 0 0 calc(0.4rem + 2px) var(--lk-c);
  animation: lk-wind 1.4s cubic-bezier(.3,.7,.2,1) 0.2s both;
}
.wpm-timer::after {
  background: repeating-conic-gradient(from -0.4deg, var(--lk-c) 0 0.8deg, transparent 0.8deg 6deg), repeating-conic-gradient(from -0.9deg, var(--lk-c) 0 1.8deg, transparent 1.8deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 80%, #000 80.5% 96%, transparent 96.5%);
  mask: radial-gradient(circle closest-side, transparent 0 80%, #000 80.5% 96%, transparent 96.5%);
}
@keyframes lk-wind { from { --lk-sweep: 0deg; } to { --lk-sweep: 180deg; } }

.wpm-kicker.wpm-timer {
  --lk-size: clamp(9rem, 17vw, 14rem); --lk-top: 50%; --lk-right: clamp(2rem, 5vw, 4.5rem); --lk-face: var(--wp--preset--color--base);
  background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base);
  border-radius: 6px; padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
  padding-right: calc(var(--lk-size) + var(--lk-right) + 2.5rem);
  margin-block: 1.5rem 1.75rem;
}
.wpm-kicker.wpm-timer::before, .wpm-kicker.wpm-timer::after { transform: translateY(-50%); }
.wpm-kicker.wpm-timer .wpm-home-h1 { color: inherit; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 20ch; margin-top: 0; }
.wpm-kicker.wpm-timer .wpm-home-lead { color: inherit; max-width: 56ch; margin-bottom: 0; }

.wpm-hub-head.wpm-timer { --lk-size: 4.75rem; --lk-top: 2.6rem; --lk-right: 0.6rem; --lk-face: var(--wp--preset--color--secondary); }
.wpm-hub-head.wpm-timer .wpm-hub-h1 { padding-right: 7rem; }

@media (max-width: 700px) {
  .wpm-kicker.wpm-timer { --lk-size: 5.25rem; --lk-top: 1.4rem; --lk-right: 1.4rem; padding-right: clamp(1.25rem, 4vw, 3rem); }
  .wpm-kicker.wpm-timer::before, .wpm-kicker.wpm-timer::after { transform: none; }
  .wpm-kicker.wpm-timer .wpm-home-h1 { padding-right: 6rem; font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .wpm-hub-head.wpm-timer { --lk-size: 3.5rem; --lk-top: 2.4rem; }
  .wpm-hub-head.wpm-timer .wpm-hub-h1 { padding-right: 4.75rem; }
}

.wpm-masthead { padding-block: 0.65rem; gap: 1.5rem; }
.wpm-masthead .wp-block-navigation { font-weight: 700; font-size: 1rem; }
.wpm-masthead .wp-block-navigation a { text-decoration: none; padding-block: 0.2rem; border-bottom: 2px solid transparent; }
.wpm-masthead .wp-block-navigation a:hover, .wpm-masthead .wp-block-navigation .current-menu-item > a, .wpm-masthead .wp-block-navigation [aria-current="page"] { border-bottom-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--contrast); }
.wpm-header { border-bottom-color: var(--wp--preset--color--secondary); }

.wpm-trust { border-block-color: var(--wp--preset--color--secondary); }
.wpm-section-head { border-bottom: 1px solid var(--wp--preset--color--contrast); }
.wpm-section-title { font-size: var(--wp--preset--font-size--xx-large); }
.wpm-section-more a { color: var(--wp--preset--color--contrast); text-decoration-color: var(--wp--preset--color--primary); text-underline-offset: 0.25em; }
.wp-block-post-featured-image img { border-radius: 6px; }
.wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.wpm-meta a { color: var(--wp--preset--color--muted); text-decoration: none; }
.wpm-meta a:hover { color: var(--wp--preset--color--primary); }
.wpm-meta > * + *::before { content: none; }

.wp-block-post-content a, .wpm-author-box .wp-block-post-author-biography a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: currentColor; }
.wp-block-post-content a:hover { text-decoration-thickness: 2px; }
.wp-block-post-content { font-size: 1.0625rem; }
.wp-block-post-content > p, .wp-block-post-content > ul, .wp-block-post-content > ol { max-width: 68ch; }
.wp-block-post-content h2 { margin-top: 2.4em; font-size: var(--wp--preset--font-size--xx-large); }
.wp-block-post-content h3 { margin-top: 1.8em; }
.wp-block-post-content blockquote, .wp-block-quote { border-left: 4px solid var(--wp--preset--color--secondary); margin-inline: 0; padding: 0.25rem 0 0.25rem 1.25rem; font-family: var(--wp--preset--font-family--crimson-pro); font-style: italic; font-size: var(--wp--preset--font-size--large); line-height: 1.45; }
.wp-block-quote cite { font-family: var(--wp--preset--font-family--nunito); font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wp-block-post-content figure { margin-block: 2rem; }
.wp-block-post-content figure img { border-radius: 6px; }
.wp-block-post-content figcaption, .wp-element-caption { margin-top: 0.5rem; color: var(--wp--preset--color--muted); }
.wp-block-post-content table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.wp-block-post-content th, .wp-block-post-content td { border-bottom: 1px solid var(--wp--preset--color--secondary); padding: 0.5rem 0.6rem; text-align: left; }
.wp-block-post-content thead th { border-bottom: 2px solid var(--wp--preset--color--contrast); }
.wpm-bluf, .tldr { background: var(--wp--preset--color--secondary); }
.wpm-author-box { background: var(--wp--preset--color--secondary) !important; gap: 1.25rem; }
.wpm-kicker-cat a { color: var(--wp--preset--color--primary); font-weight: 700; text-decoration: none; }
.wpm-related-wrap { margin-block: 3rem 2rem; }
.wpm-related-wrap .wpm-section-title { border-bottom: 1px solid var(--wp--preset--color--contrast); padding-bottom: 0.4rem; margin-bottom: 1rem; }

.wpm-footer { border-top: 1px solid var(--wp--preset--color--secondary); }
.wpm-footer a { color: var(--wp--preset--color--contrast); text-decoration-color: var(--wp--preset--color--primary); text-underline-offset: 0.2em; }
.wpm-footer-title { font-size: var(--wp--preset--font-size--large); }

@media (max-width: 781px) { .wpm-section-title { font-size: var(--wp--preset--font-size--x-large); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .wpm-timer::before { animation: none; }
}
.editor-styles-wrapper .wpm-timer::before { animation: none; }
@media (max-width: 600px) { .wpm-brand .wp-block-site-logo img { width: 170px !important; height: auto; } .wpm-masthead { gap: 0.75rem; } }
.wpm-masthead .wp-block-search { flex: 0 1 17rem; min-width: 0; }
.wpm-masthead .wp-block-search__inside-wrapper { border-color: var(--wp--preset--color--secondary); border-radius: 6px; }
.wpm-masthead .wp-block-search__input { min-width: 0; border: 0; }
@media (max-width: 600px) {
  .wpm-masthead.wpm-masthead-kompaktowy { flex-wrap: wrap; row-gap: 0.5rem; }
  .wpm-masthead .wpm-brand { flex: 1 1 auto; }
  .wpm-masthead .wp-block-search { flex: 1 1 100%; order: 3; }
}
