/*
Theme Name: Fit-mania
Template: blocksy
Description: Motyw potomny Blocksy dla fit-mania.pl (netin 2026-10-26).
Version: 1.0.0
Text Domain: fitmania
*/

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolagegrotesque-normal-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolagegrotesque-normal-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dmsans-italic-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dmsans-italic-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: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dmsans-normal-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: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dmsans-normal-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;
}

/* ===== Tokeny ===== */
:root {
	--fm-pine: #0E3B2E;
	--fm-pine-2: #134A3A;
	--fm-lime: #C8F04A;
	--fm-coral: #FF6B4A;
	--fm-sand: #F5F2EA;
	--fm-card: #FFFFFF;
	--fm-ink: #1B2420;
	--fm-muted: #55625B;
	--fm-line: #E3DED2;
	--fm-r: 22px;
	--fm-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
	--fm-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--theme-font-family: var(--fm-body);
	--theme-text-color: var(--fm-ink);
	--theme-headings-color: var(--fm-pine);
	--theme-heading-color: var(--fm-pine);
	--theme-link-initial-color: var(--fm-pine-2);
	--theme-link-hover-color: var(--fm-pine);
	--theme-border-color: var(--fm-line);
	--theme-button-background-initial-color: var(--fm-pine);
	--theme-button-background-hover-color: var(--fm-pine-2);
	--theme-button-text-initial-color: #fff;
	--theme-button-border-radius: 999px;
	--theme-normal-container-max-width: 1240px;
	--theme-narrow-container-max-width: 760px;
}

body, body.home, #main-container, .site-main {
	background-color: var(--fm-sand);
	font-family: var(--fm-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--fm-ink);
}
h1, h2, h3, h4, h5, h6, .fm-h1 {
	font-family: var(--fm-head);
	color: var(--fm-pine);
	letter-spacing: -0.02em;
	line-height: 1.15;
}
a { transition: color .15s ease; }
:focus-visible { outline: 3px solid var(--fm-lime); outline-offset: 2px; }

.fm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== Pasek górny + nagłówek ===== */
.fm-topbar { background: var(--fm-pine); color: #DCE8E1; font-size: 13px; }
.fm-topbar .fm-wrap { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 16px; }
#header [data-row*="middle"] { background: rgba(245, 242, 234, .94); border-bottom: 1px solid var(--fm-line); backdrop-filter: blur(8px); }
#header .site-logo-container img { max-height: 42px; width: auto; }
#header .ct-menu-link { font-weight: 500; font-size: 15px; color: var(--fm-ink); text-transform: none; letter-spacing: 0; }
#header .menu > li > .ct-menu-link { padding: 8px 14px; border-radius: 999px; height: auto; }
#header .menu > li { align-items: center; display: flex; }
#header .menu > li:hover > .ct-menu-link,
#header .menu > li.current-menu-item > .ct-menu-link,
#header .menu > li.current-post-parent > .ct-menu-link,
#header .menu > li.current-menu-ancestor > .ct-menu-link { background: var(--fm-pine); color: var(--fm-lime); }
#header .ct-header-search { --theme-icon-color: var(--fm-pine); border: 1.5px solid var(--fm-pine); border-radius: 50%; width: 42px; height: 42px; justify-content: center; }
#header [data-id="trigger"] { --theme-icon-color: var(--fm-pine); }
#offcanvas .ct-panel-inner { background: var(--fm-pine); }
#offcanvas .ct-menu-link { color: #fff; font-family: var(--fm-head); font-size: 22px; }

/* ===== Elementy wspólne ===== */
.fm-h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; margin: 0; }
.fm-h1 em { font-style: normal; background: linear-gradient(transparent 60%, var(--fm-lime) 60%); }
.fm-lead { color: var(--fm-muted); max-width: 56ch; margin: 14px 0 0; font-size: 18px; }
.fm-chip { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 5px 11px; border-radius: 999px; background: var(--fm-lime); color: var(--fm-pine); line-height: 1.3; text-decoration: none; }
.fm-chip--fit-przepisy { background: var(--fm-coral); color: #fff; }
.fm-chip--cwiczenia-na-bol { background: #fff; color: var(--fm-pine); }
.fm-chip--dbaj-o-siebie { background: #E4DCFF; color: #3B2A82; }
.fm-chip--diety { background: #FFE7A3; color: #5A4300; }
.fm-meta { font-size: 13px; color: var(--fm-muted); }
.fm-more { font-weight: 700; color: var(--fm-pine); text-decoration: none; border-bottom: 2px solid var(--fm-lime); padding-bottom: 1px; }
.fm-more:hover { color: var(--fm-pine-2); border-color: var(--fm-pine); }

.fm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fm-ph { position: absolute; inset: 0; }
.g-pine { background: radial-gradient(circle at 25% 30%, #2F7D5F 0, #0E3B2E 70%); }
.g-lime { background: radial-gradient(circle at 30% 70%, #E6FF9C 0, #7FB51D 80%); }
.g-sky { background: radial-gradient(circle at 60% 40%, #9FD7FF 0, #2C6FA3 80%); }
.g-coral { background: radial-gradient(circle at 70% 20%, #FFB199 0, #E0573A 75%); }
.g-sun { background: radial-gradient(circle at 40% 40%, #FFE08A 0, #D49A12 80%); }
.g-violet { background: radial-gradient(circle at 35% 35%, #C9B8FF 0, #5B46A8 80%); }

.fm-sec { padding: 56px 24px; }
.fm-sec--tight { padding-top: 8px; }
.fm-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.fm-sec-h h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin: 0; }
.fm-sec-h p { margin: 6px 0 0; color: var(--fm-muted); }

/* ===== Hero ===== */
.fm-hero { padding-top: 40px; padding-bottom: 8px; }
.fm-hero-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.fm-picks { background: var(--fm-pine); color: #fff; border-radius: var(--fm-r); padding: 24px 26px; position: relative; overflow: hidden; }
.fm-picks::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: var(--fm-lime); opacity: .16; pointer-events: none; }
.fm-picks-h { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fm-lime); }
.fm-picks ol { list-style: none; margin: 10px 0 16px; padding: 0; }
.fm-picks li a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #23584A; color: #fff; text-decoration: none; font-weight: 500; }
.fm-picks li a:hover { color: var(--fm-lime); }
.fm-picks li b { font-family: var(--fm-head); color: var(--fm-lime); font-size: 20px; }
.fm-pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.fm-pills a { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid #2F6B58; color: #D7E6DE; text-decoration: none; }
.fm-pills a:hover { background: var(--fm-lime); border-color: var(--fm-lime); color: var(--fm-pine); }

.fm-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 18px; margin-top: 32px; }
.fm-bento .is-big { grid-row: span 2; }
.fm-bento--1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.fm-bento--2, .fm-bento--3 { grid-template-columns: 2fr 1fr; }
.fm-bento--4 .fm-ov:last-child { grid-column: span 2; }

.fm-ov { position: relative; border-radius: var(--fm-r); overflow: hidden; display: flex; align-items: flex-end; min-height: 220px; background: var(--fm-pine); isolation: isolate; }
.fm-ov::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,25,18,0) 30%, rgba(5,25,18,.86) 100%); }
.fm-ov-in { position: relative; z-index: 2; padding: 22px; width: 100%; }
.fm-ov-title { color: #fff; font-size: 20px; font-weight: 600; margin: 9px 0 6px; line-height: 1.22; }
.fm-ov.is-big .fm-ov-in { padding: 34px; }
.fm-ov.is-big .fm-ov-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.fm-ov-title a { color: #fff; text-decoration: none; }
.fm-ov-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.fm-ov .fm-meta { color: #CFE0D8; }
.fm-ov:hover .fm-img { transform: scale(1.04); }

/* ===== Działy ===== */
.fm-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fm-topic { background: var(--fm-card); border-radius: var(--fm-r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.fm-topic:hover { box-shadow: 0 14px 34px rgba(14,59,46,.10); transform: translateY(-3px); }
.fm-topic-top { position: relative; height: 160px; display: flex; align-items: flex-end; padding: 18px 22px; text-decoration: none; overflow: hidden; isolation: isolate; }
.fm-topic-top::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,25,18,.05) 20%, rgba(5,25,18,.72)); }
.fm-topic-top h3 { position: relative; z-index: 2; color: #fff; font-size: 28px; font-weight: 800; margin: 0; }
.fm-num { position: absolute; z-index: 2; top: 12px; right: 18px; font-family: var(--fm-head); font-weight: 800; font-size: 46px; line-height: 1; color: rgba(255,255,255,.42); }
.fm-topic-b { padding: 16px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.fm-topic-b p { color: var(--fm-muted); font-size: 15px; margin: 0; }
.fm-topic-b ul { list-style: none; margin: 10px 0 16px; padding: 0; }
.fm-topic-b li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--fm-line); font-weight: 500; font-size: 15px; color: var(--fm-ink); text-decoration: none; transition: padding .15s, color .15s; }
.fm-topic-b li a:hover { color: var(--fm-pine); padding-left: 4px; }
.fm-topic-b .fm-more { margin-top: auto; align-self: flex-start; font-size: 15px; }

/* ===== Karty ===== */
.fm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fm-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.fm-card { background: var(--fm-card); border-radius: var(--fm-r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.fm-card:hover { box-shadow: 0 14px 34px rgba(14,59,46,.10); transform: translateY(-3px); }
.fm-card-th { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.fm-card:hover .fm-img { transform: scale(1.04); }
.fm-card-b { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fm-card-b .fm-chip { align-self: flex-start; }
.fm-card-title { font-size: 21px; font-weight: 600; margin: 0; line-height: 1.25; }
.fm-card-title a { color: var(--fm-pine); text-decoration: none; }
.fm-card-title a::after { content: ""; position: absolute; inset: 0; }
.fm-card-b p { color: var(--fm-muted); font-size: 15px; margin: 0; }
.fm-card-b .fm-meta { margin-top: auto; }

.fm-band { background: var(--fm-pine); border-radius: 36px; margin: 0 24px; padding: 56px 0; }
.fm-band .fm-sec-h h2 { color: #fff; }
.fm-band .fm-sec-h p { color: #BCD2C7; }
.fm-band .fm-more { color: var(--fm-lime); }
.fm-band .fm-card { background: var(--fm-pine-2); }
.fm-band .fm-card-title a { color: #fff; }
.fm-band .fm-meta { color: #BCD2C7; }
.fm-band .fm-card-title { font-size: 19px; }

.fm-recipes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fm-recipe { display: grid; grid-template-columns: 200px 1fr; background: var(--fm-card); border-radius: var(--fm-r); overflow: hidden; position: relative; min-height: 150px; }
.fm-recipe-th { position: relative; display: block; overflow: hidden; }
.fm-recipe-b { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.fm-recipe-b p { margin: 0; color: var(--fm-muted); font-size: 15px; }

/* ===== Archiwum działu ===== */
.fm-arch-hero { padding: 36px 0 28px; }
.fm-arch-intro { color: var(--fm-muted); max-width: 70ch; margin-top: 14px; font-size: 18px; }
.fm-arch-intro p { margin: 0; }
.fm-page { font-size: .5em; color: var(--fm-muted); font-weight: 600; }
.fm-arch-more { background: var(--fm-card); border-radius: var(--fm-r); padding: 32px 36px; margin-top: 48px; max-width: 900px; }
.fm-arch-more h2 { font-size: 26px; margin: 1.2em 0 .5em; }
.fm-arch-more h2:first-child { margin-top: 0; }
.fm-crumbs { font-size: 13.5px; color: var(--fm-muted); margin-bottom: 14px; }
.fm-crumbs a { color: var(--fm-pine-2); text-decoration: none; }
.fm-crumbs a:hover { text-decoration: underline; }
.fm-pagination { margin-top: 40px; }
.fm-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fm-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--fm-card); color: var(--fm-pine); text-decoration: none; font-weight: 600; }
.fm-pagination .page-numbers.current, .fm-pagination .page-numbers:hover { background: var(--fm-pine); color: var(--fm-lime); }

/* ===== Wpis ===== */
.single-post .hero-section .page-title, .page .hero-section .page-title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.single-post .entry-content { font-size: 18px; }
.single-post .entry-content > h2 { font-size: clamp(25px, 2.6vw, 31px); margin-top: 1.8em; }
.single-post .entry-content > h3 { font-size: 21px; margin-top: 1.4em; }
.single-post .entry-content a { color: var(--fm-pine-2); text-decoration: underline; text-decoration-color: var(--fm-lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.single-post .entry-content a:hover { background: rgba(200,240,74,.35); }
.entry-content ul li::marker { color: var(--fm-coral); }
.entry-content ol li::marker { color: var(--fm-pine); font-weight: 700; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--fm-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--fm-line); font-size: 16px; }
.entry-content table th { background: var(--fm-pine); color: #fff; text-align: left; font-weight: 600; }
.entry-content table th, .entry-content table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--fm-line); }
.entry-content table tr:last-child td { border-bottom: 0; }
.entry-content blockquote { border-left: 4px solid var(--fm-lime); background: var(--fm-card); padding: 18px 22px; border-radius: 0 16px 16px 0; }
.single-post .ct-featured-image img, .single-post .ct-media-container img { border-radius: var(--fm-r); }
.fm-note { margin-top: 40px; background: #FFF3EE; border: 1px solid #FFD5C8; border-radius: 16px; padding: 16px 20px; font-size: 15px; color: #5B2A1C; }
.ct-related-posts .ct-module-title { font-family: var(--fm-head); color: var(--fm-pine); }
#fm-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--fm-lime); transform-origin: 0 50%; transform: scaleX(0); z-index: 9999; }

/* Karty Blocksy (wyszukiwarka, podobne wpisy) */
.entries .entry-card, .ct-related-posts article { background: var(--fm-card); border-radius: var(--fm-r); }
.entry-card .entry-title a { color: var(--fm-pine); }

/* ===== Stopka ===== */
#footer { background: var(--fm-pine); }
.fm-footer { background: var(--fm-pine); color: #BCD2C7; padding: 56px 0 26px; margin-top: 56px; font-size: 15px; }
.fm-footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.fm-footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.fm-footer p { max-width: 42ch; }
.fm-footer-h { color: #fff; font-family: var(--fm-head); font-weight: 700; font-size: 17px; margin: 0 0 10px; }
.fm-footer ul { list-style: none; margin: 0; padding: 0; }
.fm-footer li { margin: 6px 0; }
.fm-footer a { color: #DCE8E1; text-decoration: none; }
.fm-footer a:hover { color: var(--fm-lime); }
.fm-copy { border-top: 1px solid #23584A; margin-top: 36px; padding-top: 18px; font-size: 13px; }
.fm-wordmark { font-family: var(--fm-head); font-weight: 800; font-size: 26px; color: var(--fm-pine); letter-spacing: -.02em; }
.fm-wordmark.is-light { color: #fff; }
.fm-dot { color: var(--fm-coral); margin: 0 1px; }

/* ===== Responsywność ===== */
@media (max-width: 1000px) {
	.fm-grid4 { grid-template-columns: repeat(2, 1fr); }
	.fm-topics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.fm-hero-top, .fm-bento, .fm-grid3, .fm-recipes, .fm-footer-cols { grid-template-columns: 1fr; }
	.fm-bento { grid-template-rows: auto; }
	.fm-bento .is-big { grid-row: auto; min-height: 380px; }
	.fm-bento--4 .fm-ov:last-child { grid-column: auto; }
	.fm-hide-sm { display: none; }
	.fm-band { margin: 0 12px; border-radius: 26px; padding: 40px 0; }
}
@media (max-width: 640px) {
	.fm-wrap, .fm-sec { padding-left: 16px; padding-right: 16px; }
	.fm-topics, .fm-grid4 { grid-template-columns: 1fr; }
	.fm-recipe { grid-template-columns: 120px 1fr; }
	.fm-sec { padding-top: 40px; padding-bottom: 40px; }
	.fm-sec-h { flex-direction: column; align-items: flex-start; gap: 8px; }
	.fm-arch-more { padding: 22px; }
	.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 15px; }
	.entry-content table th, .entry-content table td { padding: 10px 12px; min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
