/*
Theme Name: С пониманием
Author: С пониманием
Description: Пробная блоковая тема для библиотеки PDF. Только стандартные блоки WordPress.
Version: 0.9.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: s-ponimaniem
License: GPL-2.0-or-later
*/
:root {
  --ink: #405348;
  --green: #637e64;
  --green-deep: #47644d;
  --cream: #f6f8f1;
  --paper: #fffdf8;
  --amber: #f2dfb1;
  --terracotta: #c77b6b;
  --rust: #9b5f54;
  --teal: #648c8d;
  --sage: #e6efdf;
  --sky: #e1eef0;
  --rose: #f5e5df;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); }
body { font-family: Candara, "Segoe UI", Arial, sans-serif; }
h1, h2, h3, h4, .brand, .step-number { font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; }
a { color: var(--green-deep); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid #bc8173; outline-offset: 5px; }
.wp-site-blocks { padding: 0; }
.site-header { margin: 0 !important; padding: 19px clamp(20px, 5vw, 76px); background: #fffdf8; border-bottom: 1px solid #e2e9de; }
.site-header > .wp-block-group { max-width: 1200px; margin: auto; }
.brand { margin: 0 !important; color: #52634a; font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 30px; font-weight: 600; letter-spacing: -.4px; }
.brand a { color: inherit; text-decoration: none; }
.brand-caption { margin-top: 3px !important; color: #718074; font-size: 11px; letter-spacing: .3px; }
.site-header .wp-block-navigation { gap: 26px; font-size: 14px; }
.site-header .wp-block-navigation a { color: #4e6055; text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--terracotta); }
.lab-notice { margin: 0 !important; padding: 9px 18px; background: #e9ecdf; color: #57614d; text-align: center; font-size: 12px; }

.hero { position: relative; overflow: hidden; margin: 0 !important; padding: 58px clamp(20px, 5vw, 76px) 64px; background:
  radial-gradient(ellipse at 90% 8%, #dcebe1a0 0, transparent 32%),
  radial-gradient(ellipse at 3% 8%, #e6efdf 0, transparent 43%),
  linear-gradient(115deg, #f6f8f1 0%, #fffdf8 58%, #e6eff0 100%); }
.hero > .wp-block-columns { max-width: 1200px; margin: auto; gap: 44px; align-items: center !important; }
.hero h1 { max-width: 680px; margin: 18px 0 22px; color: #49644e; font-size: clamp(37px, 4.3vw, 60px); line-height: 1.1; letter-spacing: -1.8px; }
.eyebrow { color: #a66543; font-size: 11px !important; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.intro { max-width: 550px; color: #586a5d; font-size: 18px; line-height: 1.65; }
.quiet { color: #738175; font-size: 13px; }
.hero-art { max-width: 520px; margin: 0 auto !important; overflow: hidden; padding: 7px; border: 1px solid #f6fbf3; border-radius: 25px; background: #fffdf8; box-shadow: 0 18px 42px #45614c22; }
.hero-art img { display: block; width: 100%; height: auto; border-radius: 18px; }
.hero .wp-block-buttons { gap: 12px; margin-top: 28px; }
.wp-block-button__link { border: 0; border-radius: 999px; padding: 14px 23px; background: var(--green); box-shadow: 0 5px 13px #345b431f; font-size: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.wp-block-button__link { font-family: Candara, "Segoe UI", Arial, sans-serif; font-weight: 600; letter-spacing: .1px; }
.wp-block-button__link:hover { background: var(--green-deep); box-shadow: 0 7px 17px #345b4329; transform: translateY(-2px); }
.is-style-outline .wp-block-button__link { border: 1px solid #d5a89c; background: #fffdf8aa; box-shadow: none; color: #945f55; }
.is-style-outline .wp-block-button__link:hover { background: #fffaf7; color: #76554f; }

.section { margin: 0 !important; padding: 62px clamp(20px, 5vw, 76px); }
.section > *, .page-main > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section h2 { color: #49644e; font-size: 36px; line-height: 1.2; letter-spacing: -.7px; }
.section .wp-block-post-template { gap: 24px; }
.wp-block-post-featured-image { margin-bottom: 17px; overflow: hidden; border: 1px solid #e2eadf; border-radius: 16px; background: #edf2e9; }
.wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.wp-block-post-title { color: #45594c; line-height: 1.2; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--terracotta); }
.wp-block-post-excerpt { color: #6b786d; font-size: 14px; line-height: 1.55; }
.wp-block-post-terms { color: #a9695d; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.wp-block-post-terms a { text-decoration: none; }
.wp-block-post-template > li { overflow: hidden; padding: 15px; border: 1px solid #e1e9de; border-radius: 21px; background: var(--paper); box-shadow: 0 9px 22px #4053480d; transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-post-template > li:hover { transform: translateY(-3px); box-shadow: 0 15px 28px #57432d18; }
.wp-block-post-template > li:nth-child(3n + 1) { background: linear-gradient(180deg, #f4e8dc 0, #fffdf8 56%); }
.wp-block-post-template > li:nth-child(3n + 2) { background: linear-gradient(180deg, #e6efdf 0, #fffdf8 56%); }
.wp-block-post-template > li:nth-child(3n) { background: linear-gradient(180deg, #e1eef0 0, #fffdf8 56%); }
.wp-block-post-template .wp-block-post-title { margin-top: 7px; font-size: 23px; }
.wp-block-post-excerpt__more-link { color: #637e64; font-size: 14px; font-weight: 600; }
.soft-section { position: relative; overflow: hidden; background: linear-gradient(120deg, #e6efdf, #f6f8f1 67%, #e6eff0); }
.soft-section .wp-block-columns { gap: 20px; }
.soft-section .wp-block-column { padding: 9px 22px 18px; border-radius: 18px; background: #fffdf8bf; }
.step-number { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: #f2dfb1; color: #76604a; font-family: Georgia, serif; font-size: 24px; }
.soft-section .wp-block-column:nth-child(2) .step-number { background: #e1eef0; color: #577c80; }
.soft-section .wp-block-column:nth-child(3) .step-number { background: #f5e5df; color: #9b5f54; }
.site-footer { margin: 0 !important; padding: 40px clamp(20px, 5vw, 76px); border-top: 1px solid #e0e8dd; background: #eef3e9; font-size: 13px; }
.site-footer > .wp-block-group { max-width: 1200px; margin: auto; }
.site-footer p { color: #6b786d; }

.page-main { min-height: 50vh; margin: 0 !important; padding: 50px clamp(20px, 5vw, 76px) 82px; }
.page-main > * { max-width: 1200px; }
.page-main h1 { color: #49644e; font-size: clamp(36px, 4.7vw, 56px); line-height: 1.12; letter-spacing: -1px; }
.material-main { max-width: 850px !important; }
.material-main > .wp-block-post-featured-image { max-width: 430px; }
.material-main .wp-block-post-content { max-width: 760px; }
.material-facts { padding: 20px 24px; border-radius: 14px; background: #e6efdf; }
.material-facts p { margin: 6px 0; font-size: 15px; }
.material-price { color: #52684c; font-size: 25px; font-weight: 700; }
.wp-block-file { padding: 24px; border-radius: 14px; background: #edf2e9; font-size: 16px; }
.wp-block-file a.wp-block-file__button { padding: 12px 20px; border-radius: 999px; background: #637e64; color: white; font-size: 15px; }
.demo-label { padding: 12px 16px; border-left: 3px solid #bc8173; background: #f8ece8; font-size: 13px; }
.wp-block-query-pagination { padding-top: 25px; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 32px !important; }

/* Small watercolor details from the project's garden palette */
.brand a::after { content: ""; display: inline-block; width: 21px; height: 24px; margin-left: 7px; vertical-align: -4px; background: center / contain no-repeat url("assets/ui-leaf.png"); }
.hero > .wp-block-columns, .section > *, .soft-section > * { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; z-index: 0; left: 1.2%; bottom: 7px; width: 65px; height: 60px; background: center bottom / contain no-repeat url("assets/ui-grass.png"); opacity: .76; pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: 0; top: 17px; right: 41%; width: 48px; height: 32px; background: center / contain no-repeat url("assets/ui-grasshopper.png"); transform: rotate(-7deg); opacity: .86; pointer-events: none; }
.hero .wp-block-button:first-child .wp-block-button__link::before,
.wp-block-file a.wp-block-file__button::before { content: ""; display: inline-block; width: 18px; height: 21px; margin-right: 8px; vertical-align: -5px; background: center / contain no-repeat url("assets/ui-leaf.png"); }
.hero .wp-block-button.is-style-outline .wp-block-button__link::before { content: ""; display: inline-block; width: 18px; height: 21px; margin-right: 8px; vertical-align: -5px; background: center / contain no-repeat url("assets/ui-daisy.png"); }
.section:not(.soft-section) { position: relative; overflow: hidden; }
.section:not(.soft-section)::after { content: ""; position: absolute; z-index: 0; top: 43px; right: clamp(24px, 7vw, 100px); width: 46px; height: 58px; background: center / contain no-repeat url("assets/ui-daisy.png"); opacity: .78; pointer-events: none; }
.wp-block-post-excerpt__more-link::after { content: ""; display: inline-block; width: 18px; height: 14px; margin-left: 7px; vertical-align: -2px; background: center / contain no-repeat url("assets/ui-ladybug.png"); }
.soft-section::after { content: ""; position: absolute; z-index: 0; right: clamp(18px, 4vw, 58px); bottom: 9px; width: 62px; height: 42px; background: center / contain no-repeat url("assets/ui-grasshopper.png"); transform: rotate(-4deg); opacity: .82; pointer-events: none; }
.site-footer { position: relative; overflow: hidden; }
.site-footer > .wp-block-group { position: relative; z-index: 1; }
.site-footer::after { content: ""; position: absolute; top: 50%; right: clamp(24px, 8vw, 112px); width: 58px; height: 48px; background: center / contain no-repeat url("assets/ui-sun-cloud.png"); transform: translateY(-50%); opacity: .68; pointer-events: none; }

@media (max-width: 900px) {
  .hero { padding-top: 45px; padding-bottom: 48px; }
  .hero > .wp-block-columns { gap: 25px; }
  .hero h1 { font-size: clamp(36px, 5.3vw, 48px); letter-spacing: -1px; }
  .section { padding-top: 46px; padding-bottom: 46px; }
  .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .hero { padding-top: 34px; padding-bottom: 38px; }
  .hero > .wp-block-columns { gap: 16px; }
  .hero-art { max-width: 420px; }
  .hero h1 { margin-top: 12px; font-size: 38px; letter-spacing: -.7px; }
  .intro { font-size: 16px; }
  .hero .wp-block-buttons { flex-direction: column; align-items: flex-start; }
  .site-header { padding: 16px 20px; }
  .brand { font-size: 26px; }
  .brand-caption { font-size: 10px; }
  .section { padding-top: 39px; padding-bottom: 39px; }
  .section h2 { font-size: 30px; }
  .hero::after { top: 8px; right: 5%; width: 37px; height: 26px; opacity: .74; }
  .hero::before { left: 1%; width: 46px; height: 43px; opacity: .56; }
  .section:not(.soft-section)::after { top: 32px; right: 18px; width: 34px; height: 42px; opacity: .56; }
  .soft-section::after { right: 8px; bottom: 4px; width: 44px; height: 30px; opacity: .65; }
  .site-footer::after { display: none; }
  .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
  .page-main { padding-top: 32px; }
  .wp-block-columns { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

