/*
Theme Name: Domowy Garnek
Theme URI: https://aniaimarcin-gotuja.pl
Author: Domowy Garnek
Description: Obiady, zupy i desery na każdy dzień tygodnia
Version: 1.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: domowy-garnek
*/

/* 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; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.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; } }

/* Domowy Garnek: emaliowany garnek (panel H1 = scianka garnka z kobaltowym brzegiem i uchami) */
:root { --dg-rim: .7rem; --dg-ear: 2.1rem; }
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.wp-block-post-content > p, .wp-block-post-content > ul, .wp-block-post-content > ol { max-width: 68ch; }
a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
.wp-block-post-title a, .wpm-section-title a, .wp-block-navigation a, .wp-block-site-title a { text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
:where(a, button, input, .wp-element-button, summary):focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; border-radius: 2px; }

.dg-brand { flex-direction: column; gap: .35rem !important; }
.wpm-brand.dg-brand:has(.wp-block-site-logo img) .wp-block-site-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.dg-brand .wp-block-site-title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1; letter-spacing: -.01em; }
.dg-brand .wp-block-site-title a { color: var(--wp--preset--color--contrast); }
.wpm-header { border-bottom: 0; }
.wpm-sections-bar { border-top: 1px solid var(--wp--preset--color--surface); border-bottom: 4px solid var(--wp--preset--color--primary); padding-block: .5rem; margin-top: .75rem; }
.wpm-sections-bar .wp-block-navigation a { font-weight: 600; font-size: var(--wp--preset--font-size--small); }

.dg-pot {
  position: relative;
  background-color: var(--wp--preset--color--secondary);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent) 0 1.2px, transparent 1.6px), radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent) 0 1px, transparent 1.4px);
  background-size: 23px 19px, 31px 27px;
  background-position: 0 0, 11px 7px;
  border-top: var(--dg-rim) solid var(--wp--preset--color--primary);
  border-radius: 1.1rem 1.1rem 2.75rem 2.75rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem) clamp(1.25rem, .75rem + 3vw, 3.5rem) clamp(1.75rem, 1rem + 3vw, 3.25rem);
  margin-inline: var(--dg-ear);
}
.dg-pot::before, .dg-pot::after {
  content: ""; position: absolute; top: .9rem; width: var(--dg-ear); height: 1.5rem;
  border: .55rem solid var(--wp--preset--color--primary); box-sizing: border-box;
}
.dg-pot::before { left: calc(-1 * var(--dg-ear)); border-right: 0; border-radius: .9rem 0 0 .9rem; }
.dg-pot::after { right: calc(-1 * var(--dg-ear)); border-left: 0; border-radius: 0 .9rem .9rem 0; }
.dg-pot > * { position: relative; }
.dg-pot.wpm-kicker { margin-block: 1.75rem 2rem; }
.dg-pot .wpm-home-h1, .dg-pot h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em; max-width: 17ch; margin-top: 0; }
.dg-pot .wpm-home-lead, .dg-pot .wpm-hub-lead { max-width: 56ch; }
.dg-pot .wp-block-buttons { margin-top: 1.5rem; }
.dg-pot .wp-element-button { padding: .8rem 1.5rem; }
.dg-pot-hub .trust-bar { border: 0; padding: 0; margin-bottom: 0; color: var(--wp--preset--color--contrast); }
.dg-pot-404 { margin-block: 3rem; }
.dg-pot-404 .wp-block-search { max-width: 30rem; }

.wpm-hero-okladka { margin-block: 0 1.25rem; }
.wpm-hero-okladka .wp-block-cover { border-radius: 6px; overflow: hidden; }
.wpm-hero-okladka .wp-block-post-title a { color: var(--wp--preset--color--base); }
.wpm-hero-okladka .wp-block-post-terms a { color: var(--wp--preset--color--base); }
.dg-hero-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; }

.wpm-trust-kafle { background: none !important; gap: .75rem !important; border: 0; }
.wpm-trust-kafle > p { flex: 1 1 14rem; background: var(--wp--preset--color--surface); border-top: 3px solid var(--wp--preset--color--primary); border-radius: 0 0 6px 6px; color: var(--wp--preset--color--contrast) !important; }

.wpm-section { margin-block: 3.25rem; }
.wpm-section-head { border-bottom: 0; position: relative; padding-bottom: .7rem; }
.wpm-section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 3px; background: var(--wp--preset--color--primary); }
.wpm-section-title { font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); }
.wpm-section-more { margin: 0; font-weight: 600; }
.wp-block-post-featured-image img { border-radius: 6px; }
.wpm-meta { gap: .25rem .9rem !important; }

.wpm-bluf { background: var(--wp--preset--color--secondary); border-left-width: 5px; }
.wpm-bluf .wpm-bluf-label { text-transform: none; letter-spacing: 0; opacity: 1; font-weight: 600; color: var(--wp--preset--color--primary); }
.wp-block-quote { border-left: 4px solid var(--wp--preset--color--primary); padding-left: 1.25rem; margin-inline: 0; }
.wp-block-quote p { font-family: var(--wp--preset--font-family--instrument-serif); font-style: italic; font-size: var(--wp--preset--font-size--x-large); line-height: 1.25; }
.wp-block-post-content figure { margin-block: 2rem; }
.wp-block-post-content figure img { border-radius: 6px; }
.wp-block-post-content figcaption { margin-top: .5rem; text-align: left; }
.wp-block-post-content table { font-variant-numeric: tabular-nums; border-collapse: collapse; width: 100%; }
.wp-block-post-content thead { border-bottom: 3px solid var(--wp--preset--color--primary); }
.wp-block-post-content td, .wp-block-post-content th { border-bottom: 1px solid var(--wp--preset--color--surface); padding: .5rem .6rem; text-align: left; }
.wpm-kicker-cat a { font-weight: 600; text-decoration: none; }
.wpm-author-box { border-top: 4px solid var(--wp--preset--color--primary); border-radius: 0 0 6px 6px; }

.wpm-footer { border-top: 5px solid var(--wp--preset--color--primary); }
.dg-note { margin-top: 2rem; max-width: 62ch; color: var(--wp--preset--color--contrast); }
.wpm-copy { margin-top: .5rem; }

@media (max-width: 600px) {
  :root { --dg-ear: 1.1rem; --dg-rim: .55rem; }
  .dg-pot::before, .dg-pot::after { height: 1.1rem; border-width: .4rem; top: .7rem; }
  .dg-pot { border-radius: .9rem .9rem 1.75rem 1.75rem; }
  .wpm-servicebar .wp-block-search { width: 100%; }
}
.wpm-footer-title { font-size: var(--wp--preset--font-size--x-large); }
.wpm-footer .wpm-footer-silos { font-size: var(--wp--preset--font-size--small); }
.wpm-trust-kafle { margin-inline: 0 !important; max-width: none !important; }
