/*
Theme Name: SPA Tool
Theme URI: https://spatool.ru/
Author: SPA Tool
Description: A self-hosted site and development journal for SPA Tool.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.3
Text Domain: spa-tool
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    --paper: #fff;
    --canvas: #f7f9fa;
    --ink: #14252f;
    --muted: #586c78;
    --line: #dce4e8;
    --blue: #278bc7;
    --cyan: #24b7db;
    --link: #176b98;
    --ice: #eaf4fa;
    --max: 1240px;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
::selection { background: #bce7f5; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.wrap { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }
.site-notice { background: var(--ice); font-size: 14px; color: #315569; }
.site-notice .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 8px; min-height: 37px; padding-block: 8px; }
.site-notice strong { font-weight: 600; }
.site-notice a { margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fffffffa; border-bottom: 1px solid #e9edf0; }
.admin-bar .site-header { top: 32px; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 36px; min-height: 90px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 42px; height: 42px; }
.brand-name { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.8px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1.7px; line-height: 1.5; margin-top: 5px; }
.custom-logo-link img { display: block; width: auto; max-height: 52px; max-width: 200px; }
.nav-list { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.nav-list a { font-size: 14px; font-weight: 550; }
.header-link { display: inline-block; padding: 9px 17px; border: 1px solid #c5d4dc; border-radius: 5px; font-size: 14px; font-weight: 600; }
.header-link:hover { border-color: var(--blue); }
.mobile-nav { display: none; }
.hero { padding: 68px 0 72px; overflow: hidden; background: var(--canvas); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 30px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--link); font-size: 14px; line-height: 1.5; font-weight: 650; letter-spacing: 1px; margin: 0 0 22px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 4.8vw, 70px); line-height: 1.06; letter-spacing: -.052em; font-weight: 650; margin-bottom: 26px; }
.hero-lead { max-width: 500px; color: var(--muted); font-size: 18px; line-height: 1.7; margin-bottom: 22px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.platforms > span:not(.platform-label) { padding: 5px 11px; border: 1px solid #cedde6; border-radius: 4px; font-size: 14px; font-weight: 600; color: #315569; }
.platform-label { font-size: 14px; color: var(--muted); margin-left: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 23px; background: var(--ink); border: 1px solid var(--ink); color: #fff; border-radius: 5px; font-size: 14px; font-weight: 600; transition: background .16s, border-color .16s; cursor: pointer; }
.button:hover { background: #205b7b; border-color: #205b7b; color: #fff; }
.quiet-link { display: inline-block; color: var(--link); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: #9cbdce; text-underline-offset: 5px; }
.quiet-link:hover { text-decoration-color: var(--link); }
.hero-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin: 22px 0 0; }
.hero-visual { margin-right: -24px; min-width: 0; }
.hero-picture { display: block; }
.hero-art { display: block; width: 100%; height: auto; }
.section { padding: 88px 0; }
.features-section { border-bottom: 1px solid var(--line); }
.section-heading { max-width: 680px; }
h2 { font-size: clamp(32px, 3.1vw, 43px); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; margin-bottom: 0; }
.section-intro { max-width: 570px; color: var(--muted); font-size: 16px; line-height: 1.8; margin: 23px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; margin-top: 51px; }
.feature { min-width: 0; }
.feature svg { display: block; width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 25px; }
.feature h3 { font-size: 21px; font-weight: 600; letter-spacing: -.55px; line-height: 1.3; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.85; margin-bottom: 0; }
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 105px; }
.how-layout .section-intro { max-width: 390px; }
.how-list { border-top: 1px solid var(--line); }
.how-list article { padding: 24px 0 25px; border-bottom: 1px solid var(--line); }
.how-list h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; margin-bottom: 9px; }
.how-list p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 450px; margin-bottom: 0; }
.release-section { padding: 70px 0; background: var(--ice); }
.release-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 110px; align-items: start; }
.release-copy { max-width: 460px; color: #4c6879; font-size: 16px; line-height: 1.8; margin: 23px 0 0; }
.release-details { padding-top: 4px; }
.release-state { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.release-details > p { font-size: 16px; line-height: 1.8; color: #4c6879; margin: 13px 0 0; max-width: 380px; }
.price { margin-top: 25px; padding-top: 23px; border-top: 1px solid #c7dce7; }
.price > span { display: block; font-size: 14px; color: #4c6879; }
.price strong { display: block; margin-top: 8px; font-size: 25px; font-weight: 600; letter-spacing: -.8px; line-height: 1.5; }
.price small { font-size: 14px; font-weight: 400; letter-spacing: 0; padding-inline: 6px; color: #4c6879; }
.price p { max-width: 370px; color: #4c6879; font-size: 16px; line-height: 1.8; margin: 8px 0 0; }
.journal-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 100px; }
.journal-layout > div > .quiet-link { margin-top: 24px; }
.journal-entry { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.journal-entry time { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.journal-entry h3, .journal-entry h2 { font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -.6px; margin-bottom: 13px; }
.journal-entry p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 15px; }
.empty-state { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 680px; }
.journal-list > .empty-state { padding-top: 26px; border-top: 1px solid var(--line); }
.faq-section { padding-top: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 21px 0; }
.faq-list summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 550; line-height: 1.55; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--link); font-size: 19px; line-height: 1; font-weight: 400; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 15px 32px 0 0; }
.site-footer { padding: 47px 0 25px; background: #f0f4f6; border-top: 1px solid #e7edf0; }
.footer-main { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 70px; align-items: start; }
.footer-description { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 18px 0 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 12px; }
.footer-links { padding-top: 2px; }
.footer-search p { font-size: 14px; margin: 0 0 12px; color: var(--muted); }
.search-form { display: flex; width: 100%; border: 1px solid #c0d0d9; border-radius: 4px; background: var(--paper); }
.search-field { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; padding: 11px 12px; }
.search-submit { border: 0; background: transparent; color: var(--link); cursor: pointer; font-size: 14px; font-weight: 600; padding: 11px 13px; }
.footer-bottom { display: flex; align-items: start; justify-content: space-between; gap: 25px; border-top: 1px solid #dbe4e9; padding-top: 21px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.content-main { padding: 70px 0 90px; min-height: 60vh; }
.content-heading { max-width: 1000px; margin-bottom: 40px; }
.content-heading h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.15; overflow-wrap: anywhere; }
.content-heading > p:last-child { color: var(--muted); font-size: 16px; }
.entry-meta { font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.entry-content { max-width: 790px; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content h2 { font-size: 30px; margin: 42px 0 20px; }
.entry-content h3 { font-size: 23px; font-weight: 600; margin: 30px 0 14px; }
.entry-content a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.entry-content blockquote { border-left: 3px solid var(--blue); color: var(--muted); padding-left: 23px; margin: 26px 0; }
.entry-content pre { overflow: auto; padding: 18px; background: var(--canvas); border: 1px solid var(--line); font-size: 14px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); }
.archive-list { max-width: 900px; }
.archive-list .journal-entry { grid-template-columns: 130px 1fr; gap: 35px; }
.navigation.pagination { margin-top: 35px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; }
.page-numbers.current { color: #fff; background: var(--ink); border-color: var(--ink); }
.comments-area { max-width: 790px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 24px; font-weight: 600; }
.comment-list { padding-left: 20px; font-size: 14px; }
.comment-metadata { font-size: 14px; color: var(--muted); }
.comment-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.comment-form input:not([type=checkbox]), .comment-form textarea { display: block; width: 100%; background: var(--paper); color: var(--ink); border: 1px solid #bdced7; border-radius: 3px; padding: 10px; }
.comment-form .submit { width: auto !important; background: var(--ink) !important; color: #fff !important; cursor: pointer; padding: 11px 22px !important; }
.comment-form-cookies-consent { font-size: 14px; }
.comment-form-cookies-consent label { display: inline; }
.not-found { max-width: 900px; }
.not-found .search-form { max-width: 460px; margin-top: 32px; }
@media (min-width: 1500px) {
    .hero { padding: 88px 0 90px; }
    .hero-grid { gap: 42px; }
}
@media (max-width: 1100px) {
    .wrap { width: calc(100% - 56px); }
    .nav-list { gap: 22px; }
    .hero-lead { font-size: 16px; }
    .hero-grid { gap: 18px; }
    .hero-visual { margin-right: -18px; }
    .actions { gap: 20px; }
    .feature-grid { gap: 30px; }
    .how-layout, .release-layout { gap: 60px; }
    .journal-layout, .faq-layout { gap: 55px; }
    .footer-main { gap: 40px; }
}
@media (max-width: 900px) {
    html { scroll-padding-top: 90px; }
    .desktop-nav, .header-link { display: none; }
    .header-row { min-height: 78px; }
    .mobile-nav { display: block; position: relative; }
    .mobile-nav summary { display: flex; align-items: center; gap: 13px; padding: 10px 0 10px 20px; font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .menu-lines { display: block; position: relative; width: 18px; height: 12px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
    .menu-lines::after { content: ""; position: absolute; top: 4px; width: 18px; height: 1px; background: var(--ink); }
    .mobile-nav[open] .nav-list { display: flex; position: absolute; right: 0; top: 44px; min-width: 220px; flex-direction: column; gap: 20px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 32px #14252f12; }
    .hero { padding: 52px 0 37px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-copy { max-width: 660px; }
    h1 { font-size: clamp(48px, 7.7vw, 64px); }
    .hero-lead { max-width: 570px; font-size: 17px; }
    .hero-visual { width: min(750px, calc(100% + 20px)); justify-self: center; margin: 0; }
    .hero-art { width: 100%; }
    .section { padding: 65px 0; }
    .section-intro { font-size: 16px; }
    .feature-grid { gap: 25px; margin-top: 40px; }
    .feature h3 { font-size: 18px; }
    .how-layout { gap: 40px; }
    .release-layout { gap: 50px; }
    .journal-layout, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
    .journal-layout .section-intro { margin-top: 15px; }
    .journal-layout > div > .quiet-link { margin-top: 15px; }
    .faq-section { padding-top: 0; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-search { grid-column: 1 / -1; max-width: 440px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
    .wrap { width: calc(100% - 36px); }
    .site-notice { font-size: 14px; }
    .site-notice .wrap { gap: 4px 6px; }
    .site-notice a { margin-left: 5px; }
    .header-row { min-height: 73px; gap: 20px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 17px; }
    .brand small { font-size: 12px; letter-spacing: 1.4px; }
    .brand { gap: 10px; }
    .hero { padding-top: 40px; padding-bottom: 20px; }
    .hero-grid { gap: 20px; }
    .eyebrow { font-size: 14px; margin-bottom: 20px; }
    h1 { font-size: clamp(40px, 10.6vw, 56px); margin-bottom: 22px; }
    .hero-lead { font-size: 16px; line-height: 1.75; }
    .platforms { gap: 8px; }
    .platform-label { font-size: 14px; margin-left: 2px; }
    .platforms > span:not(.platform-label) { font-size: 14px; padding: 4px 8px; }
    .actions { gap: 20px; margin-top: 26px; }
    .button { font-size: 14px; min-height: 45px; padding: 12px 17px; }
    .quiet-link { font-size: 14px; }
    .hero-note { font-size: 14px; margin-top: 19px; align-items: baseline; }
    .hero-visual { width: calc(100% + 36px); margin-inline: -18px; }
    .section { padding: 48px 0; }
    h2 { font-size: 32px; }
    .section-intro { font-size: 16px; margin-top: 19px; }
    .feature-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 35px; }
    .feature { position: relative; padding-left: 47px; }
    .feature svg { position: absolute; left: 0; top: 1px; width: 25px; height: 25px; margin: 0; }
    .feature h3 { font-size: 20px; margin-bottom: 10px; }
    .feature p { font-size: 16px; }
    .how-layout { grid-template-columns: 1fr; gap: 31px; }
    .how-layout .section-intro { max-width: 440px; }
    .how-list article { padding: 21px 0; }
    .how-list h3 { font-size: 18px; }
    .release-section { padding: 45px 0; }
    .release-layout { grid-template-columns: 1fr; gap: 30px; }
    .release-copy { font-size: 16px; margin-top: 19px; }
    .price strong { font-size: 24px; }
    .journal-layout, .faq-layout { gap: 27px; }
    .journal-entry { grid-template-columns: 1fr; gap: 12px; padding: 23px 0; }
    .journal-entry time { margin: 0; }
    .journal-entry h3, .journal-entry h2 { font-size: 22px; }
    .faq-section { padding-top: 0; }
    .faq-list summary { font-size: 14px; }
    .faq-list details p { font-size: 16px; margin-right: 22px; }
    .site-footer { padding-top: 34px; }
    .footer-main { grid-template-columns: 1fr; gap: 28px; }
    .footer-nav { gap: 12px; }
    .footer-search { grid-column: auto; max-width: none; }
    .footer-bottom { flex-direction: column; gap: 8px; margin-top: 27px; font-size: 14px; }
    .content-main { padding: 42px 0 60px; }
    .content-heading { margin-bottom: 30px; }
    .content-heading h1 { font-size: 35px; }
    .entry-content { font-size: 16px; }
    .entry-content h2 { font-size: 28px; }
    .archive-list .journal-entry { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
