/*
Theme Name: Странники жизни
Theme URI: https://strazhy.ru/
Author: strazhy.ru
Description: Тема сайта «Странники жизни» — тёплая палитра, жёлтые акценты, обложки статей, лента рубрик, видео и страница автора.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: strazhy
License: GPL-2.0-or-later
*/

/* ---------- Токены ---------- */
:root {
	--bg: #F6F1E8;
	--card: #FFFCF6;
	--ink: #1F2A2A;
	--ink-2: #3E4A48;
	--muted: #5E6663;
	--line: #E3DACB;
	--line-2: #D6CCBA;
	--accent: #F2C230;      /* жёлтые кнопки, текст на них тёмный */
	--accent-hover: #E3B21C;
	--teal: #1F5C5A;        /* ссылки, стрелки */
	--teal-dark: #123F3D;
	--label: #8A4526;       /* подписи-рубрики */
	--sand: #F7D774;        /* блок «О насущном» */
	--sand-line: #D9B23F;
	--dark: #1F2A2A;        /* подвал и блок формулы */
	--on-dark: #F6F1E8;
	--on-dark-2: #C9CFCB;
	--radius: 20px;
	--radius-lg: 28px;
	--wrap: 1280px;
	--gutter: 80px;
	--f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--f-ui: 'Golos Text', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
	--f-read: 'PT Serif', Georgia, serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.6; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; color: var(--ink); }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--accent); color: var(--ink); border-radius: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 120px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-title { font-size: 56px; line-height: 1; }
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.more-link { font-weight: 500; white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 30px; border-radius: 999px; font-size: 17px; font-weight: 500; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { padding: 12px 22px; font-size: 15px; }
.btn--dark { background: var(--ink); color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--f-display); font-size: 28px; font-weight: 700; line-height: 1; }
.brand__tagline { font-size: 12px; color: var(--muted); margin-top: 4px; }
.brand .custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-post-ancestor > a, .main-nav .current-category-ancestor > a { color: var(--teal); }
.main-nav li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; padding: 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(31,42,42,.08); flex-direction: column; gap: 0; }
.main-nav .sub-menu a { display: block; padding: 8px 18px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; }

.search-panel { display: none; border-top: 1px solid var(--line); padding: 20px 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form input[type=search] { flex: 1; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: inherit; color: var(--ink); }

/* ---------- Главная: первый экран ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero__text { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: 76px; line-height: 1.02; letter-spacing: -.01em; }
.hero__lead { font-size: 20px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__author { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.hero__photo { position: relative; height: 460px; border-radius: 240px 240px 24px 24px; overflow: hidden; background: #FBEBB0; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__name { font-family: var(--f-display); font-size: 26px; font-weight: 600; }
.hero__bio { font-size: 15px; color: var(--muted); }

/* ---------- Формула ---------- */
.formula { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: 48px 56px; display: flex; align-items: center; gap: 56px; }
.formula__sign { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.formula__sigma { font-family: var(--f-display); font-size: 96px; line-height: .8; }
.formula__arrow { font-size: 32px; color: var(--accent); }
.formula__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; flex-grow: 1; }
.formula__item { display: flex; flex-direction: column; gap: 8px; }
.formula__item strong { font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1.1; }
.formula__item span { font-size: 15px; line-height: 1.5; color: var(--on-dark-2); }

/* ---------- Карточки статей ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; }
.card { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.card:hover { color: var(--ink); }
.card:hover .card__title { color: var(--teal); }
.card__media { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; background: #EFE6D6; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(0deg, #F3E7C9, #F3E7C9); }
.card__placeholder svg { width: 72px; height: 72px; opacity: .55; }
.card__cat { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--label); font-weight: 600; }
.card__title { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.12; transition: color .15s; }
.card__excerpt { font-size: 16px; line-height: 1.55; color: var(--muted); }
.badge-video { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(20,26,26,.72); color: var(--on-dark); font-size: 13px; }
.badge-video svg { width: 10px; height: 10px; fill: currentColor; }

.card--featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.card--featured .card__media { grid-column: span 7; height: 440px; }
.card--featured .card__body { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; padding-right: 24px; }
.card--featured .card__title { font-size: 48px; line-height: 1.05; }
.card--featured .card__excerpt { font-size: 17px; color: var(--ink-2); }

/* ---------- Разделы ---------- */
.rubrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rubric { padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; color: var(--ink); transition: border-color .15s, transform .15s; }
.rubric:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
.rubric__title { font-family: var(--f-display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.rubric__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Практики ---------- */
.practices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.practices__intro { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; }
.practices__intro .btn { align-self: flex-start; margin-top: 12px; }
.practices__list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.practices__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.practices__list a::after { content: '→'; font-family: var(--f-ui); font-size: 22px; color: var(--teal); transition: transform .15s; }
.practices__list a:hover::after { transform: translateX(4px); }

/* ---------- О насущном ---------- */
.essentials { background: var(--sand); border-radius: var(--radius-lg); padding: 72px 80px; display: flex; flex-direction: column; gap: 36px; }
.essentials .eyebrow { color: #6E3A1F; }
.essentials__pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.essentials__pair { display: flex; flex-direction: column; gap: 14px; }
.essentials__pair p:first-child { font-size: 18px; line-height: 1.55; }
.essentials__pair p:last-child { font-family: var(--f-display); font-size: 32px; font-style: italic; line-height: 1.2; }
.essentials__final { padding-top: 32px; border-top: 1px solid var(--sand-line); font-family: var(--f-display); font-size: 44px; font-weight: 600; line-height: 1.15; max-width: 1000px; }

/* ---------- Книги ---------- */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.book { display: flex; gap: 24px; align-items: center; color: var(--ink); }
.book__cover { width: 130px; height: 180px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--teal); box-shadow: 0 8px 24px rgba(31,42,42,.12); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__title { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.book__more { font-size: 15px; color: var(--teal); font-weight: 500; margin-top: 8px; display: block; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 120px; background: var(--dark); color: #D8DDD9; padding: 72px 0 40px; }
.site-footer a { color: #D8DDD9; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h2 { font-family: var(--f-ui); font-size: 15px; font-weight: 600; color: var(--on-dark); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--on-dark); line-height: 1; }
.footer-accent { color: var(--accent) !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #9AA39F; border-top: 1px solid #3A4644; padding-top: 24px; margin-top: 56px; }
.footer-bottom a { color: #9AA39F; }

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal); }
.crumbs span[aria-current] { color: var(--teal); }

/* ---------- Статья ---------- */
.entry-head { padding-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.entry-title { font-size: 68px; line-height: 1.04; max-width: 1000px; }
.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.entry-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.entry-meta .author { color: var(--ink); font-weight: 500; }
.pill-video { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-size: 13px; font-weight: 500; }
.pill-video svg { width: 12px; height: 12px; fill: currentColor; }
.entry-cover { width: 100%; height: 560px; object-fit: cover; object-position: center 45%; border-radius: var(--radius-lg); margin-top: 16px; }

.entry-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 72px; }
.entry-toc { grid-column: span 3; align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.entry-toc .eyebrow { font-size: 13px; }
.entry-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.entry-toc a { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line); }
.entry-toc a:hover, .entry-toc a.is-active { color: var(--teal); border-left-color: var(--teal); }
.entry-content { grid-column: 4 / span 6; font-family: var(--f-read); font-size: 21px; line-height: 1.7; color: #26302F; min-width: 0; }
.entry-layout--no-toc .entry-content { grid-column: 3 / span 8; }
.entry-content > * + * { margin-top: 24px; }
.entry-content > p:first-child { font-size: 25px; line-height: 1.6; color: var(--ink); }
.entry-content h2 { font-size: 40px; margin-top: 48px; scroll-margin-top: 24px; }
.entry-content h3 { font-size: 30px; margin-top: 40px; }
.entry-content h4 { font-family: var(--f-ui); font-size: 19px; margin-top: 32px; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content img { border-radius: 16px; margin-left: auto; margin-right: auto; height: auto; }
.entry-content img.alignleft, .entry-content img[style*="float: left"], .entry-content img[style*="float:left"] { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.entry-content img.alignright, .entry-content img[style*="float: right"], .entry-content img[style*="float:right"] { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.entry-content img.aligncenter { display: block; margin: 24px auto; }
.entry-content .pull-left { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.entry-content .pull-right { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.entry-content h3, .entry-content h4 { scroll-margin-top: 24px; }
/* Выделения из старых статей: синий → бирюзовый, красный → терракотовый, фон → мягкий жёлтый маркер */
.entry-content .hl { color: var(--teal); font-weight: 600; }
.entry-content .hl-warm { color: #8A4526; font-weight: 600; }
.entry-content .hl-bg { background: #F7D774; color: var(--ink); padding: 0 .2em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.entry-content .hl a, .entry-content .hl-warm a { color: inherit; }
.entry-content blockquote { margin: 40px 0; padding: 24px 28px; background: #FBF1D3; border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; font-size: 20px; line-height: 1.65; color: var(--ink); }
.entry-content blockquote p { margin: 0 0 .8em; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
/* Короткая цитата (одна строка-мысль) — крупным курсивом, как в макете */
.entry-content blockquote.is-style-large, .entry-content blockquote.wp-block-quote.is-large { background: none; border-left: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 32px 0; font-family: var(--f-display); font-style: italic; font-size: 34px; line-height: 1.25; color: var(--teal); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 16px; }
.entry-content td, .entry-content th { border: 1px solid var(--line-2); padding: 10px 12px; }
.entry-content figure { margin: 32px 0; }
.entry-content figcaption { font-family: var(--f-ui); font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content iframe { border: 0; border-radius: 16px; }
.entry-content .wp-block-file, .entry-content a[href$=".pdf"], .entry-content a[href$=".doc"], .entry-content a[href$=".docx"] { font-family: var(--f-ui); }

/* Видео */
.video-facade { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--dark); cursor: pointer; margin: 32px 0; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: rgba(31,42,42,.28); transition: background .2s; }
.video-facade:hover::after { background: rgba(31,42,42,.18); }
.video-facade__play { position: absolute; top: 50%; left: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; z-index: 2; cursor: pointer; transition: transform .2s; }
.video-facade:hover .video-facade__play { transform: scale(1.06); }
.video-facade__play svg { width: 36px; height: 36px; fill: var(--ink); margin-left: 6px; }
.video-facade__src { position: absolute; right: 20px; bottom: 20px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(20,26,26,.72); color: var(--on-dark); font-family: var(--f-ui); font-size: 13px; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; z-index: 3; }

/* Автор, CTA */
.author-card { max-width: 820px; margin: 96px auto 0; padding: 40px; border-radius: 24px; background: var(--dark); color: var(--on-dark); display: flex; gap: 28px; align-items: center; }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card__body { display: flex; flex-direction: column; gap: 10px; }
.author-card__name { font-family: var(--f-display); font-size: 30px; font-weight: 600; color: var(--on-dark); }
.author-card__bio { font-size: 15px; line-height: 1.5; color: var(--on-dark-2); }
.author-card .btn { align-self: flex-start; margin-top: 6px; }

.cta { margin-top: 96px; padding: 48px 56px; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta__title { font-family: var(--f-display); font-size: 40px; font-weight: 600; color: var(--on-dark); }
.cta__text { font-size: 17px; color: var(--on-dark-2); margin-top: 10px; }
.cta .btn { flex-shrink: 0; }

/* ---------- Рубрика ---------- */
.archive-head { padding-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.archive-title { font-size: 84px; line-height: 1; }
.archive-desc { max-width: 720px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font-size: 15px; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-current { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.archive-featured { padding-top: 56px; }
.archive-grid { padding-top: 72px; }

.pagination { padding-top: 80px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid var(--line-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.pagination .page-numbers.dots { border: 0; }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Страницы, поиск, 404 ---------- */
.page-content { max-width: 820px; margin: 0 auto; padding-top: 32px; }
.empty-state { padding: 96px 0 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.empty-state h1 { font-size: 64px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
	:root { --gutter: 48px; }
	.main-nav ul { gap: 18px; }
	.hero__title { font-size: 64px; }
}
@media (max-width: 1100px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 28px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 4px; }
	.main-nav a { display: block; padding: 10px 0; font-size: 18px; }
	.main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; min-width: 0; }
	.main-nav .sub-menu a { padding: 6px 0; font-size: 16px; color: var(--muted); }
	.header-actions .btn { display: none; }
	.hero { grid-template-columns: 1fr; row-gap: 48px; padding-top: 64px; padding-bottom: 72px; }
	.hero__text, .hero__author { grid-column: auto; }
	.hero__author { max-width: 420px; }
	.formula { flex-direction: column; align-items: flex-start; gap: 32px; }
	.cards, .rubrics, .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.practices { grid-template-columns: 1fr; row-gap: 40px; }
	.practices__intro, .practices__list { grid-column: auto; }
	.card--featured { grid-template-columns: 1fr; row-gap: 24px; }
	.card--featured .card__media, .card--featured .card__body { grid-column: auto; }
	.card--featured .card__media { height: 360px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-layout { grid-template-columns: 1fr; }
	.entry-toc { display: none; }
	.entry-content, .entry-layout--no-toc .entry-content { grid-column: auto; max-width: 720px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
	:root { --gutter: 20px; }
	body { font-size: 16px; }
	.site-header__inner { padding-top: 14px; padding-bottom: 14px; }
	.brand__name { font-size: 22px; }
	.brand__tagline { display: none; }
	.brand__mark { width: 30px; height: 30px; }
	.section { padding-top: 64px; }
	.section-title { font-size: 38px; }
	.section-head { margin-bottom: 24px; }
	.hero { padding-top: 40px; padding-bottom: 48px; }
	.hero__title { font-size: 44px; }
	.hero__lead { font-size: 17px; }
	.hero__actions .btn { width: 100%; }
	.hero__photo { height: 380px; }
	.formula { padding: 28px 24px; border-radius: 22px; }
	.formula__sigma { font-size: 56px; }
	.formula__items { grid-template-columns: 1fr; gap: 20px; }
	.formula__item strong { font-size: 28px; }
	.cards, .rubrics, .books { grid-template-columns: 1fr; row-gap: 32px; }
	.card__media { height: 220px; }
	.card__title { font-size: 26px; }
	.card--featured { padding: 16px; }
	.card--featured .card__media { height: 240px; }
	.card--featured .card__title { font-size: 34px; }
	.card--featured .card__body { padding-right: 0; }
	.rubric { padding: 22px; }
	.rubric__title { font-size: 26px; }
	.practices__list a { font-size: 24px; padding: 20px 0; }
	.essentials { padding: 28px 24px; }
	.essentials__pairs { grid-template-columns: 1fr; gap: 28px; }
	.essentials__pair p:last-child { font-size: 26px; }
	.essentials__final { font-size: 30px; }
	.site-footer { margin-top: 64px; padding: 40px 0 28px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; }
	.entry-head { padding-top: 32px; }
	.entry-title { font-size: 40px; }
	.entry-cover { height: 260px; border-radius: 20px; }
	.entry-layout { padding-top: 40px; }
	.entry-content { font-size: 18px; }
	.entry-content > p:first-child { font-size: 20px; }
	.entry-content h2 { font-size: 30px; }
	.entry-content blockquote { font-size: 18px; padding: 20px; }
	.entry-content blockquote.is-style-large { font-size: 26px; }
	.entry-content img[style*="float"], .entry-content img.alignleft, .entry-content img.alignright { float: none !important; max-width: 100%; margin: 16px auto; }
	.video-facade__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
	.author-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; margin-top: 56px; }
	.cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; margin-top: 56px; }
	.cta__title { font-size: 30px; }
	.archive-title { font-size: 48px; }
	.archive-desc { font-size: 17px; }
	.pills { flex-wrap: nowrap; overflow-x: auto; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; }
	.pill { flex-shrink: 0; }
	.empty-state h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
