/*
Theme Name: Artefacto EN
Template: twentytwentyfive
Description: Дочерняя тема EN-витрины Artefacto: бренд (Manrope + Source Serif 4, #de6518 на #f4efe9), шаблоны Т-2 хаб, Т-3 художник, Т-7 статья.
Version: 0.1.0
Requires at least: 6.6
Text Domain: artefacto-en
*/

/* Кнопки-«пилюли» и карточки как на живой главной (радиус 10/20 px). */
.wp-block-button__link { transition: background-color .15s ease; }
.wp-block-button__link:hover { background-color: var(--wp--preset--color--accent-dark); }
.is-style-outline > .wp-block-button__link:hover { background-color: var(--wp--preset--color--accent); color: #fff; }

.af-card { background: var(--wp--preset--color--base); border-radius: 20px; overflow: hidden; height: 100%; }
.af-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: var(--wp--preset--color--surface); }
.af-card .wp-block-image { margin: 0; }

.af-meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Короткий ответ в начале статьи (Т-7) и блок фактов. */
.af-answer { border-left: 4px solid var(--wp--preset--color--accent); }

/* FAQ на details/summary. */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: .9rem 0; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* Шапка: логотип без растяжения. */
.af-logo img { height: 44px; width: auto; display: block; }
@media (max-width: 600px) { .af-logo img { height: 36px; } }

/* Т-3: хвост H1 художника — второй строкой, мельче; тире только для текста страницы. */
.af-h1-suffix { display: block; margin-top: .5em; font-family: var(--wp--preset--font-family--manrope); font-size: var(--wp--preset--font-size--large); font-weight: 600; color: var(--wp--preset--color--muted); }
.af-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Рубрики блога — строкой-«таблетками». */
.af-cats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.af-cats li a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.af-cats li a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* Подвал: списки ссылок без маркеров. */
footer .wp-block-list { list-style: none; padding-left: 0; }

/* Хлебные крошки Rank Math */
.rank-math-breadcrumb { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); margin-bottom: 0.75rem; }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a { color: inherit; text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--wp--preset--color--accent-dark); text-decoration: underline; }
.rank-math-breadcrumb .separator { margin: 0 0.35em; }

/* Первый экран хаба: текст отдельно от картины, без наложения. */
.af-hub-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--wp--preset--color--surface); border-radius: 24px; overflow: hidden; }
.af-hub-hero-copy { padding: clamp(24px,4vw,52px); align-self: center; }
.af-hub-hero h1 { font-size: clamp(2.2rem,3.7vw,3.6rem); line-height: 1.08; margin: 16px 0; }
.af-eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--wp--preset--color--accent-dark); }
.af-hub-hero-art { margin: 0 !important; height: 100%; }
.af-hub-hero-art img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.af-highlights { list-style: none; padding: 0; }
.af-highlights li { border-left: 3px solid var(--wp--preset--color--accent); padding: 12px 20px; margin: 12px 0; background: var(--wp--preset--color--surface); border-radius: 0 12px 12px 0; }
.entry-content p { line-height: 1.75; }
.entry-content strong { font-weight: 800; }
.af-bio-details { margin-top: 16px; }
.af-bio-details summary { color: var(--wp--preset--color--accent-dark); }
.af-bio-details h3 { font-size: 1.25rem; margin-top: 28px; }
.af-preloader { position: fixed; inset: 0; z-index: 99999; background: #f4efe9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; pointer-events: none; }
.af-preloader-mark { font-family: Georgia,serif; font-size: 32px; color: #3b3b3b; }
.af-preloader-line { width: 100px; height: 3px; background: linear-gradient(90deg,#de6518 50%,#e3dcd3 50%); background-size: 200% 100%; animation: af-loading .8s ease-in-out infinite alternate; }
@keyframes af-loading { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .af-preloader-line { animation: none; } }
@media (max-width: 781px) { .af-hub-hero { grid-template-columns: 1fr; } .af-hub-hero-art img { min-height: 0; height: 230px; } .af-hub-hero-copy { padding: 24px; } }
