/*
Theme Name: Wojownicy Maryi Pionki
Description: Blokowy motyw regionalnej wspólnoty w Pionkach.
Version: 1.1.2
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: wojownicy-maryi-pionki
License: GNU General Public License v2 or later
*/
:root {
  --wm-ink: var(--wp--preset--color--ink, #13151b);
  --wm-paper: var(--wp--preset--color--paper, #f4f1ea);
  --wm-white: var(--wp--preset--color--white, #fffcf5);
  --wm-gold: var(--wp--preset--color--gold, #dfbd7a);
  --wm-muted: #58544c;
  --wm-rule: #ddd6c8;
  --wm-display: var(--wp--preset--font-family--display, "Barlow Condensed", "Arial Narrow", sans-serif);
  --wm-body: var(--wp--preset--font-family--body, "DM Sans", system-ui, sans-serif);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wm-paper); color: var(--wm-ink); font: 400 1rem/1.6 var(--wm-body); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1,h2,h3 { margin: 0; font-family: var(--wm-display); line-height: .98; }
h2 { font-size: clamp(2.7rem, 5vw, 4.35rem); }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p { margin: 0; }
.wp-site-blocks > *, .wm-main > * { margin-block-start: 0; }
.wm-wrap { width: min(100% - clamp(2rem, 10vw, 9rem), 1216px); margin-inline: auto; }
.wm-skip { position: absolute; top: .5rem; left: .5rem; z-index: 100; background: white; padding: .65rem 1rem; transform: translateY(-150%); }
.wm-skip:focus { transform: none; }
.wm-header { background: #14161c; color: #f4f1ea; border-bottom: 1px solid #37343a; }
.wm-header-row, .wm-brand, .wm-section-top, .wm-footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.wm-header-row { min-height: 80px; }
.wm-brand { justify-content: flex-start; gap: .9rem; }
.wm-brand-logo { margin: 0; width: 53px; flex: 0 0 53px; }
.wm-brand-logo a { display: flex; align-items: center; min-height: 44px; }
.wm-brand-name { line-height: .92; font: 700 1.3rem/.94 var(--wm-display); text-transform: uppercase; letter-spacing: .04em; }
.wm-brand-name a { text-decoration: none; }
.wm-brand-name span { display: block; margin-top: .24rem; color: var(--wm-gold); font: 700 .63rem/1.1 var(--wm-body); letter-spacing: .21em; }
.wm-nav, .wm-nav .wp-block-navigation__container { gap: clamp(1rem, 2.45vw, 2.3rem); }
.wm-nav { font-size: .87rem; font-weight: 600; }
.wm-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.wm-nav a:hover { color: var(--wm-gold); }
.wm-nav-php { display: flex; align-items: center; }
@media (min-width: 871px) {
  .wm-nav .wm-nav-icon-home { display: none; }
}
.wm-hero {
  position: relative; overflow: hidden; color: var(--wm-white);
  background: radial-gradient(ellipse at 71% 34%, #373331, #171920 49%, #101219 83%);
}
.wm-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 2rem; min-height: 496px; padding-block: clamp(3rem, 6vw, 5.4rem) 2rem; }
.wm-hero h1 { font-size: clamp(4.1rem, 8.4vw, 8.2rem); text-transform: uppercase; letter-spacing: -.018em; }
.wm-hero h1 em { font-style: normal; color: var(--wm-gold); }
.wm-kicker { color: #715526; font: 700 .68rem/1.5 var(--wm-body); letter-spacing: .17em; }
.wm-hero-kicker { color: var(--wm-gold); display: flex; gap: .85rem; align-items: center; margin-bottom: 1.2rem; }
.wm-hero-kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; flex: 0 0 auto; }
.wm-lead { margin-block: 1.5rem 1.8rem; font-size: clamp(1rem, 2vw, 1.23rem); color: #e0dcd4; }
.wm-hero-mark { display: grid; place-items: center; min-width: 0; }
.wm-crest { margin: 0; width: 100%; }
.wp-block-video.wm-crest > video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent),
    linear-gradient(to bottom, #000a, #000 5%);
  mask-composite: intersect;
}
@media (min-width: 871px) {
  .wm-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wm-hero-mark { width: calc(100% + clamp(2rem, 5vw, 5rem)); }
}
.wm-hero-motto { display: flex; align-items: center; justify-content: flex-end; gap: .85rem; padding: .55rem 0 1.4rem; color: #d3b986; font-size: .64rem; font-weight: 700; letter-spacing: .27em; }
.wm-hero-motto::after { content: ""; width: 45px; height: 1px; background: currentColor; }
.wp-block-buttons { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .7rem; }
.wp-block-button__link, .wp-block-button.is-style-outline > .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; background: var(--wm-gold);
  border: 1px solid transparent; border-radius: 2px; padding: .65rem 1.06rem; color: #16161a;
  font: 700 .86rem/1.3 var(--wm-body); transition: background-color .18s, color .18s, border-color .18s;
}
.wp-block-button__link:hover { background: #f0d49c; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border-color: #a59b88; color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: currentColor; background: #c59d5820; }
.wm-facts { background: #202129; color: var(--wm-white); border-top: 1px solid #555044; }
.wm-facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-fact { padding: 1.18rem clamp(1rem, 3vw, 2.4rem); border-left: 1px solid #514a3e; }
.wm-fact:last-child { border-right: 1px solid #514a3e; }
.wm-fact .wm-kicker { color: var(--wm-gold); }
.wm-fact-value { font: 700 clamp(1.4rem, 2.7vw, 1.9rem)/1.1 var(--wm-display); margin-top: .32rem; }
.wm-news, .wm-about, .wm-meetings, .wm-contact { padding-block: clamp(3.3rem, 6.2vw, 6.4rem); }
.wm-news { background: var(--wm-paper); }
.wm-section-top { align-items: end; margin-bottom: 1.9rem; }
.wm-section-heading .wm-kicker, .wm-about-copy .wm-kicker, .wm-meetings-copy .wm-kicker, .wm-contact-copy .wm-kicker { margin-bottom: .55rem; }
.wm-posts ul.wp-block-post-template, .wm-post-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.65rem);
  padding: 0; margin: 0; list-style: none;
}
.wm-posts .wp-block-post { min-width: 0; display: flex; }
.wm-card { background: var(--wm-white); border: 1px solid var(--wm-rule); width: 100%; height: 100%; display: flex; flex-direction: column; }
.wm-card-image { margin: 0; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #212229; }
.wm-card-image a { display: block; height: 100%; }
.wm-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.wm-card-image a:hover img { transform: scale(1.035); }
.wm-card-copy { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .62rem; }
.wm-card h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.02; overflow-wrap: anywhere; }
.wm-card h3 a { text-decoration: none; }
.wm-card h3 a:hover { text-decoration: underline; }
.wm-card .wp-block-post-date { color: #715526; font-size: .73rem; font-weight: 700; letter-spacing: .025em; }
.wm-card .wp-block-post-excerpt { color: var(--wm-muted); font-size: .91rem; }
.wm-card .wp-block-post-excerpt p { margin: 0; }
.wm-card .wp-block-read-more { display: inline-flex; align-items: center; min-height: 44px; font-size: .83rem; font-weight: 700; text-underline-offset: .23em; margin-top: auto; }
.wm-about { background: #e8e1d4; }
.wm-about-grid, .wm-meetings-grid, .wm-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4.7rem); align-items: center; }
.wm-about-image { margin: 0; }
.wm-about-image img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.wm-about-copy h2 + p, .wm-meetings-copy h2 + p, .wm-contact-copy h2 + p { margin-top: 1.2rem; }
.wm-about-copy p + p, .wm-contact-copy p + p { margin-top: .65rem; }
.wm-about-copy .wp-block-buttons, .wm-meetings-copy .wp-block-buttons { margin-top: 1.35rem; }
.wm-meetings { background: var(--wm-white); }
.wm-meeting-table { margin: 0; }
.wm-meeting-table table { width: 100%; border-collapse: collapse; table-layout: auto; }
.wm-meeting-table td { border: 0; border-bottom: 1px solid var(--wm-rule); padding: .8rem; vertical-align: top; }
.wm-meeting-table tr:first-child td { border-top: 1px solid var(--wm-rule); }
.wm-meeting-table td:first-child { padding-left: 0; color: #715526; font-weight: 700; }
.wm-contact { background: #202129; color: var(--wm-white); }
.wm-contact .wm-kicker { color: var(--wm-gold); }
.wm-contact a { text-underline-offset: .23em; }
.wm-email { font-weight: 700; color: var(--wm-gold); overflow-wrap: anywhere; }
.wm-video { margin: 0; }
.wm-video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #121318; }
.wm-animation video { -webkit-user-drag: none; user-select: none; }
.wm-footer { background: #14161c; color: #e0dcd4; padding-block: 1.8rem; border-top: 1px solid #37343a; font-size: .84rem; }
.wm-footer-brand { font: 700 1.45rem/1.2 var(--wm-display); color: var(--wm-white); margin-bottom: .24rem; }
.wm-footer-links a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: .25em; }
.wm-footer-links a:hover { color: var(--wm-gold); }
.wm-footer-credit { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #37343a; color: #d9d4ca; font-size: .78rem; }
.wm-footer-credit strong { color: var(--wm-gold); }
.wm-interior { padding-block: clamp(2.6rem, 6vw, 5.5rem); min-height: 58vh; }
.wm-interior h1 { font-size: clamp(3rem, 7vw, 6rem); margin-block: .5rem 1.45rem; }
.wm-article { width: min(100% - 2rem, 820px); margin-inline: auto; }
.wm-article .wp-block-post-featured-image { margin: 0 0 2rem; }
.wm-article :is(.wm-article-body,.wp-block-post-content) > * + * { margin-top: 1rem; }
.wm-article :is(.wm-article-body,.wp-block-post-content) h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.12; }
.wm-article iframe { max-width: 100%; }
.wm-article figure { max-width: 100%; }
.wm-article figure img { margin-inline: auto; }
.wm-article a { overflow-wrap: anywhere; }
.wm-back { display: inline-flex; align-items: center; min-height: 44px; }
.wm-pagination, .wm-interior .wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.wm-pagination a { padding: .55rem; }
@media (max-width: 870px) {
  :root { --wm-dock-height: 70px; }
  body:not(.editor-styles-wrapper) { padding-bottom: calc(var(--wm-dock-height) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--wm-dock-height) + env(safe-area-inset-bottom, 0px)); }
  .wm-header-row { min-height: 73px; }
  .wm-hero-grid { min-height: 390px; gap: 1rem; }
  .wm-hero h1 { font-size: clamp(3.4rem, 9vw, 5.3rem); }
  .wm-header nav.wm-nav {
    position: fixed; z-index: 40; inset: auto 0 0;
    display: block; width: 100%; min-height: var(--wm-dock-height);
    padding: .3rem max(.35rem, env(safe-area-inset-right, 0px)) calc(.3rem + env(safe-area-inset-bottom, 0px)) max(.35rem, env(safe-area-inset-left, 0px));
    background: #14161c; border-top: 1px solid #575046; box-shadow: 0 -5px 24px #0003;
  }
  .wm-header .wm-nav-php,
  .wm-header .wm-nav .wp-block-navigation__container {
    display: flex; align-items: stretch; justify-content: space-evenly; flex-wrap: nowrap; gap: 0;
  }
  .wm-header .wm-nav .wp-block-navigation__container { width: 100%; }
  .wm-header .wm-nav .wp-block-navigation-item,
  .wm-header .wm-nav-php > a { flex: 1 1 0; min-width: 0; }
  .wm-header nav.wm-nav a {
    display: flex;
    width: 100%; min-height: 59px; padding: .16rem .1rem;
    flex-direction: column; gap: .22rem;
    align-items: center; justify-content: flex-start; text-align: center;
    font-size: clamp(.6rem, 2.55vw, .78rem); line-height: 1.15; overflow-wrap: anywhere;
  }
  .wm-nav-icon-home { --wm-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E"); }
  .wm-nav-icon-news { --wm-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 9h8M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
  .wm-nav-icon-about { --wm-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 19v-1a4 4 0 014-4h4a4 4 0 014 4v1M16 5a3 3 0 010 6m2 3a4 4 0 013 4v1'/%3E%3C/svg%3E"); }
  .wm-nav-icon-calendar { --wm-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='14' rx='2'/%3E%3Cpath d='M8 4v4m8-4v4M4 11h16m-11 4h2m3 0h2'/%3E%3C/svg%3E"); }
  .wm-nav-icon-book { --wm-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7C9 5 6 5 3 6v13c3-1 6-1 9 1 3-2 6-2 9-1V6c-3-1-6-1-9 1v13'/%3E%3C/svg%3E"); }
  .wm-nav-icon-contact { --wm-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E"); }
  .wm-nav :is(a[class*="wm-nav-icon-"], li[class*="wm-nav-icon-"] > a)::before {
    content: ""; display: block; width: 1.3rem; height: 1.3rem; flex: 0 0 1.3rem;
    background-color: var(--wm-gold); mask: var(--wm-nav-icon) center / contain no-repeat;
  }
  .wm-nav .wp-block-navigation-item__label { max-width: 100%; }
  .wm-header .wm-nav a:focus-visible { outline-offset: -3px; }
  .editor-styles-wrapper .wm-header nav.wm-nav { position: static; }
}
@media (max-width: 630px) {
  .wm-hero-grid { grid-template-columns: 1fr; padding-block: 2.6rem .5rem; gap: 1.5rem; }
  .wm-crest { max-width: 440px; }
  .wm-hero h1 { font-size: clamp(3.35rem, 11.6vw, 4.8rem); }
  .wm-hero-motto { padding: .4rem 0 1rem; }
  .wm-lead { margin-block: 1rem 1.2rem; }
  .wm-fact { padding: .75rem .52rem; }
  .wm-fact .wm-kicker { letter-spacing: .045em; font-size: .61rem; }
  .wm-fact-value { font-size: 1.26rem; }
  .wm-section-top, .wm-footer-row { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .wm-posts ul.wp-block-post-template, .wm-post-grid, .wm-about-grid, .wm-meetings-grid, .wm-contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

