/*
Theme Name: Ciekawe.to — Blocksy Child
Theme URI: https://ciekawe.to/
Description: Lekki motyw potomny Blocksy dla magazynu Ciekawe.to, z układem redakcyjnym i obsługą filmów YouTube.
Author: Ciekawe.to
Template: blocksy
Version: 1.0.0
Text Domain: ciekaweto
*/

:root {
  --ct-ink: #202d27;
  --ct-green: #254b3b;
  --ct-moss: #637b61;
  --ct-paper: #f7f4ed;
  --ct-white: #fffefa;
  --ct-rust: #c96b4d;
  --ct-line: #e8e3d8;
  --ct-radius: 18px;
  --ct-shadow: 0 12px 34px rgba(31, 48, 39, .08);
}

body { color: var(--ct-ink); background: var(--ct-paper); }
a { color: var(--ct-green); }
a:hover { color: var(--ct-rust); }
.ct-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.ct-eyebrow { color: var(--ct-rust); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ct-section { padding: clamp(42px, 7vw, 84px) 0; }
.ct-section--white { background: var(--ct-white); }
.ct-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.ct-section__head h2 { margin: 5px 0 0; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.04em; }
.ct-link { font-weight: 750; text-decoration: none; }
.ct-hero { padding: clamp(34px, 6vw, 74px) 0 54px; }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(28px, 6vw, 70px); align-items: center; }
.ct-hero h1 { max-width: 700px; margin: 12px 0 18px; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .99; letter-spacing: -.065em; }
.ct-hero__intro { max-width: 580px; color: #56625b; font-size: clamp(1.05rem, 1.7vw, 1.24rem); line-height: 1.65; }
.ct-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border-radius: 99px; background: var(--ct-green); color: white; font-weight: 750; text-decoration: none; }
.ct-button:hover { background: var(--ct-rust); color: white; }
.ct-feature { overflow: hidden; border-radius: 24px; background: var(--ct-green); color: white; box-shadow: var(--ct-shadow); }
.ct-feature__image { display: block; aspect-ratio: 1.18; background: #d9ddce; }
.ct-feature__image img { width: 100%; height: 100%; object-fit: cover; }
.ct-feature__placeholder { display: grid; place-items: center; height: 100%; color: var(--ct-green); font-size: 3rem; }
.ct-feature__body { padding: 23px 26px 28px; }
.ct-feature__body .ct-eyebrow { color: #f0ae8f; }
.ct-feature__body h2 { margin: 8px 0; color: white; font-size: clamp(1.45rem, 2.7vw, 2.15rem); line-height: 1.1; letter-spacing: -.035em; }
.ct-feature__body h2 a { color: inherit; text-decoration: none; }
.ct-feature__body p { margin: 0; color: #e2e8df; line-height: 1.55; }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ct-card { overflow: hidden; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: var(--ct-white); transition: transform .2s ease, box-shadow .2s ease; }
.ct-card:hover { transform: translateY(-3px); box-shadow: var(--ct-shadow); }
.ct-card__image { display: block; aspect-ratio: 1.55; background: #e7e4dc; }
.ct-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ct-card__placeholder { height: 100%; display: grid; place-items: center; color: #72806f; font-size: 2.2rem; }
.ct-card__body { padding: 19px 20px 21px; }
.ct-card__body h3 { margin: 7px 0 9px; font-size: 1.28rem; line-height: 1.2; letter-spacing: -.025em; }
.ct-card__body h3 a { color: var(--ct-ink); text-decoration: none; }
.ct-card__body p { margin: 0; color: #657068; line-height: 1.55; }
.ct-meta { color: #68746b; font-size: .84rem; }
.ct-video-card { position: relative; }
.ct-video-card .ct-card__image { position: relative; }
.ct-play { position: absolute; inset: 50% auto auto 50%; display: grid; width: 54px; height: 54px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ct-rust); color: white; font-size: 1.25rem; box-shadow: 0 4px 18px #0003; }
.ct-empty { padding: 28px; border: 1px dashed #c9c8bc; border-radius: var(--ct-radius); color: #626c63; }
.ct-article { max-width: 780px; margin: 0 auto; padding: clamp(38px, 7vw, 82px) 20px; }
.ct-article h1 { margin: 10px 0 16px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; }
.ct-article__lead { color: #5d685f; font-size: 1.2rem; line-height: 1.65; }
.ct-article__image { margin: 30px 0; overflow: hidden; border-radius: 22px; }
.ct-article__image img { width: 100%; height: auto; }
.ct-article__content { font-size: 1.08rem; line-height: 1.8; }
.ct-article__content h2, .ct-article__content h3 { margin-top: 1.7em; line-height: 1.2; letter-spacing: -.025em; }
.ct-video { position: relative; overflow: hidden; margin: 30px 0; border-radius: 20px; background: #101512; aspect-ratio: 16 / 9; }
.ct-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-archive-head { padding: 60px 0 26px; }
.ct-archive-head h1 { margin: 8px 0; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -.06em; }
.ct-pagination { margin-top: 32px; }
.ct-pagination .page-numbers { display: inline-flex; padding: 9px 14px; margin-right: 5px; border-radius: 99px; background: white; text-decoration: none; }
@media (max-width: 820px) { .ct-hero__grid { grid-template-columns: 1fr; } .ct-feature__image { aspect-ratio: 1.6; } .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-wrap { width: min(100% - 28px, 1160px); } .ct-grid { grid-template-columns: 1fr; } .ct-section__head { align-items: start; flex-direction: column; } .ct-hero h1 { font-size: clamp(2.55rem, 14vw, 4rem); } }
