/*
Theme Name: 750ml — Винный журнал
Author: 750ml
Description: Адаптивная классическая тема для авторского винного блога.
Version: 1.2.4
Requires at least: 5.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wine750
*/
:root{--paper:#f5f2ec;--ink:#282721;--wine:#742d40;--muted:#6d6b60;--rule:#d8d3c9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,sans-serif;font-size:17px;line-height:1.65}a{color:inherit;text-underline-offset:4px}a:hover{color:var(--wine)}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--wine);outline-offset:5px}h1,h2,h3,.wp-block-site-title{font-family:Georgia,serif;font-weight:400;line-height:1.1;letter-spacing:-.035em}h1{font-size:clamp(38px,5vw,72px)}h2{font-size:36px}h3{font-size:27px}p{margin:0 0 1em}.site-header,.site-footer,.site-main{max-width:1320px;margin:auto;padding-left:44px;padding-right:44px}.header-top{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:25px 0 20px}.identity{display:flex;align-items:center;gap:24px}.wp-block-site-title,.brand{font-family:Georgia,serif;font-size:64px;line-height:1;margin:0;letter-spacing:-5px;text-decoration:none}.wp-block-site-title a{text-decoration:none}.tagline{font-size:11px;letter-spacing:.14em;text-transform:uppercase;max-width:180px;line-height:1.6;margin:0}.header-search{max-width:260px}.wp-block-search__input,input[type=search]{background:transparent;border:0;border-bottom:1px solid var(--rule);padding:12px;font:inherit;min-width:0;width:100%}.wp-block-search__button,button{background:var(--wine);color:white;border:0;padding:12px 18px;cursor:pointer;font:inherit}.header-nav{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:16px 0;font-size:13px;letter-spacing:.03em}.header-nav a{text-decoration:none}.wp-block-navigation__container{gap:28px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:var(--wine);font-weight:700}.masthead{display:grid;grid-template-columns:1.5fr 1fr;gap:55px;padding:48px 0 40px;align-items:end}.masthead h1{margin:0}.masthead p{font-size:16px;max-width:370px;color:var(--muted);margin:0}.section-label{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ink);padding:20px 0;margin-top:38px}.section-label h2{font-family:Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;margin:0}.section-label p{font-size:12px;color:var(--muted);margin:0}.featured-query .wp-block-post-template{list-style:none;padding:0}.featured-query .wp-block-post{display:grid;grid-template-columns:1.35fr 1fr;gap:0;background:#ebe6dc}.featured-query .wp-block-post-featured-image{margin:0;min-height:390px;background:#acae91}.featured-query .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;display:block}.featured-copy{padding:40px;align-self:center}.featured-copy h2{font-size:clamp(30px,3.2vw,45px);margin:16px 0 22px}.wp-block-post-title a{text-decoration:none}.wp-block-post-terms{font-size:11px;color:var(--wine);text-transform:uppercase;letter-spacing:.12em}.wp-block-post-terms a{text-decoration:none}.wp-block-post-date{font-size:12px;color:var(--muted)}.wp-block-post-excerpt{color:var(--muted);font-size:15px;line-height:1.7}.wp-block-post-excerpt__more-link{display:inline-block;color:var(--wine);font-size:12px;font-weight:700}.story-grid .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px;padding:0;list-style:none}.story-grid .wp-block-post-featured-image{margin:0 0 20px;aspect-ratio:3/2;background:#ddd6c8}.story-grid .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover}.story-grid .wp-block-post-title{font-size:29px;margin:12px 0 15px}.story-grid .wp-block-post{padding-bottom:24px;border-bottom:1px solid var(--rule)}.wp-block-query-pagination{display:flex;gap:22px;justify-content:center;padding:35px 0}.wp-block-query-pagination a,.page-numbers{padding:6px 12px}.author-note{margin:50px 0 60px;background:#e8e7de;border-left:3px solid var(--wine);padding:32px 40px;display:grid;grid-template-columns:1fr 2fr;gap:40px}.author-note h2{font-size:32px;margin:8px 0}.author-note p{font-size:15px;margin:0}.site-footer{border-top:1px solid var(--rule);padding-top:25px;padding-bottom:30px}.footer-row{display:flex;justify-content:space-between;gap:30px;align-items:center}.site-footer p{font-size:12px;color:var(--muted);margin:0}.article-header{max-width:900px;margin:60px auto 35px}.article-header h1{font-size:clamp(36px,5vw,64px);margin:20px 0}.article-meta{display:flex;gap:25px;font-size:13px;color:var(--muted)}.article-cover{max-width:1120px;margin:0 auto 45px}.article-cover img{width:100%;max-height:650px;object-fit:cover}.article-body{max-width:760px;margin:auto;font-family:Georgia,serif;font-size:21px;line-height:1.8;overflow-wrap:anywhere}.article-body h2{font-size:36px;margin-top:1.6em}.article-body img{max-width:100%;height:auto}.article-body blockquote{margin:35px 0;border-left:3px solid var(--wine);padding-left:28px;font-size:26px;color:var(--wine)}.article-body .alignwide{max-width:100%}.post-navigation{max-width:760px;margin:40px auto;display:flex;gap:40px;justify-content:space-between;border-top:1px solid var(--rule);padding-top:25px}.empty-state{padding:30px;border:1px solid var(--rule)}.archive-heading{margin:50px 0 30px}.wp-block-categories-list{padding-left:20px}.wp-block-post-comments-form{max-width:760px;margin:40px auto}.wp-block-post-comments-form textarea{width:100%}.preview-notice{padding:8px 20px;background:#742d40;color:#fff;text-align:center;font-size:11px;letter-spacing:.03em}.demo-art{display:block;width:100%;height:100%;object-fit:cover}.preview-nav{display:flex;gap:28px;flex-wrap:wrap}.preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.preview-grid article{border-bottom:1px solid var(--rule);padding-bottom:25px}.preview-grid figure{aspect-ratio:3/2;margin:0 0 20px;overflow:hidden}.preview-grid h3{margin:12px 0}.preview-grid a{text-decoration:none}.preview-feature{display:grid;grid-template-columns:1.35fr 1fr;background:#ebe6dc}.preview-feature>figure{margin:0;min-height:390px}.preview-feature h2{font-size:44px;margin:15px 0 20px}.preview-feature h2 a{text-decoration:none}.preview-previewonly{font-size:12px;color:var(--muted)}@media(max-width:900px){.site-header,.site-main,.site-footer{padding-left:24px;padding-right:24px}.masthead{gap:25px}.featured-copy{padding:27px}.story-grid .wp-block-post-template,.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tagline{display:none}.preview-feature h2{font-size:35px}}@media(max-width:600px){.site-header,.site-main,.site-footer{padding-left:20px;padding-right:20px}.header-top{gap:18px}.wp-block-site-title,.brand{font-size:49px}.header-search{max-width:165px}.header-search input{font-size:13px}.header-search button{padding:10px}.masthead{grid-template-columns:1fr;padding:32px 0;gap:20px}.masthead h1{font-size:44px}.featured-query .wp-block-post,.preview-feature{grid-template-columns:1fr}.featured-query .wp-block-post-featured-image,.preview-feature>figure{min-height:240px;height:240px}.featured-copy{padding:26px}.featured-copy h2,.preview-feature h2{font-size:34px}.story-grid .wp-block-post-template,.preview-grid{grid-template-columns:1fr}.author-note{grid-template-columns:1fr;gap:20px;padding:25px;margin:35px 0}.footer-row{align-items:flex-start;flex-direction:column;gap:15px}.article-header{margin-top:35px}.article-body{font-size:19px}.preview-nav{gap:12px 20px}.article-meta{flex-wrap:wrap;gap:8px 20px}}

/* Classic WordPress templates, v1.1 */
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.skip-link:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;clip:auto;background:#fff;padding:10px;z-index:99999}.search-form{display:flex;gap:4px}.search-form label{min-width:0}.header-nav ul.menu{display:flex;gap:18px 28px;flex-wrap:wrap;list-style:none;margin:0;padding:0}.header-nav .sub-menu{padding:5px 0 0 15px;list-style:none;font-size:12px}.preview-feature>figure>a{display:block;height:100%}.preview-feature>figure img{width:100%;height:100%;object-fit:cover;display:block}.preview-grid figure img{width:100%;height:100%;object-fit:cover}.preview-grid figure>a{display:block;height:100%}.preview-grid h2{font-size:29px;margin:12px 0}.pagination{padding:35px 0;text-align:center}.comments-area{max-width:760px;margin:40px auto}.comments-area textarea{width:100%}.comments-area input{max-width:100%}.article-body iframe,.article-body video{max-width:100%}.article-body table{display:block;overflow-x:auto}.article-body figure{max-width:100%;margin-left:0;margin-right:0}.article-body .alignleft{float:left;margin-right:20px}.article-body .alignright{float:right;margin-left:20px}.article-body:after{content:"";display:table;clear:both}.site-main{min-height:50vh}

/* Compact editorial layout, v1.2 */
body{font-size:15px;line-height:1.5}
p{margin-bottom:.75em}
h1{font-size:clamp(30px,3.5vw,46px)}
h2{font-size:28px}h3{font-size:23px}
.site-header,.site-main,.site-footer{padding-left:32px;padding-right:32px}
.header-top{gap:20px;padding:16px 0 12px}
.identity{gap:18px}
.wp-block-site-title,.brand{font-size:50px;letter-spacing:-3px}
.tagline{font-size:10px;line-height:1.45}
.header-search{max-width:250px}
.wp-block-search__input,input[type=search]{padding:8px 10px}
.wp-block-search__button,button{padding:8px 12px}
.header-nav{padding:10px 0;font-size:12px}
.header-nav ul.menu,.preview-nav,.wp-block-navigation__container{gap:10px 22px}
.masthead{gap:30px;padding:24px 0 22px}
.masthead p{font-size:14px;line-height:1.5}
.section-label{padding:12px 0;margin-top:22px;gap:12px}
.section-label h2,.section-label p{font-size:11px}
.preview-feature,.featured-query .wp-block-post{grid-template-columns:1fr 1.25fr}
.preview-feature>figure,.featured-query .wp-block-post-featured-image{min-height:0;height:260px;align-self:center}
.featured-copy{padding:22px 26px}
.featured-copy h2,.preview-feature h2{font-size:30px;line-height:1.13;margin:10px 0 12px}
.wp-block-post-excerpt{font-size:14px;line-height:1.5}
.wp-block-post-terms,.eyebrow{font-size:10px;letter-spacing:.1em}
.wp-block-post-date{font-size:11px}
.story-grid .wp-block-post-template,.preview-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 20px}
.preview-grid figure,.story-grid .wp-block-post-featured-image{aspect-ratio:16/9;margin:0 0 12px}
.preview-grid h2,.preview-grid h3,.story-grid .wp-block-post-title{font-size:23px;line-height:1.17;margin:8px 0 10px}
.preview-grid article,.story-grid .wp-block-post{padding-bottom:16px;min-width:0;overflow-wrap:anywhere}
.preview-grid .wp-block-post-excerpt,.story-grid .wp-block-post-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:8px}
.preview-grid .wp-block-post-excerpt p{margin:0}
.author-note{margin:26px 0 30px;padding:20px 24px;gap:26px}
.author-note h2{font-size:26px;margin:6px 0}
.author-note p{font-size:14px;line-height:1.5}
.site-footer{padding-top:16px;padding-bottom:18px}
.footer-row{gap:20px}
.article-header{max-width:860px;margin:30px auto 22px}
.article-header h1{font-size:clamp(30px,3.6vw,46px);margin:12px 0}
.article-meta{gap:18px;font-size:12px}
.article-cover{max-width:960px;margin:0 auto 26px}
.article-cover img{display:block;max-height:440px}
.article-body{font-size:18px;line-height:1.65}
.article-body h2{font-size:28px;margin-top:1.2em;margin-bottom:.6em}
.article-body h3{font-size:23px}
.article-body blockquote{margin:22px 0;padding-left:20px;font-size:22px}
.post-navigation{margin:26px auto;gap:24px;padding-top:16px}
.archive-heading{margin:28px 0 20px}
.pagination,.wp-block-query-pagination{padding:22px 0}
.comments-area,.wp-block-post-comments-form{margin:26px auto}
.empty-state{padding:20px}
@media(max-width:1100px){
 .story-grid .wp-block-post-template,.preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
 .site-header,.site-main,.site-footer{padding-left:22px;padding-right:22px}
 .story-grid .wp-block-post-template,.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
 .preview-feature>figure,.featured-query .wp-block-post-featured-image{height:230px}
 .featured-copy{padding:18px 20px}
 .featured-copy h2,.preview-feature h2{font-size:27px}
 .author-note{gap:20px}
}
@media(max-width:600px){
 .site-header,.site-main,.site-footer{padding-left:16px;padding-right:16px}
 .header-top{gap:12px;padding:12px 0}
 .brand,.wp-block-site-title{font-size:40px;letter-spacing:-2px}
 .header-search{max-width:185px;flex:1;min-width:0}
 .header-search input{font-size:14px;padding:8px 6px}
 .header-search button{font-size:12px;padding:8px 10px;min-height:36px}
 .header-nav{padding:9px 0}
 .header-nav a{display:inline-block;padding:3px 0}
 .header-nav ul.menu,.preview-nav{gap:6px 16px}
 .masthead{grid-template-columns:1fr;gap:10px;padding:20px 0 18px}
 .masthead h1{font-size:34px}
 .masthead p{font-size:13px}
 .preview-feature,.featured-query .wp-block-post{grid-template-columns:1fr}
 .preview-feature>figure,.featured-query .wp-block-post-featured-image{height:190px;width:100%}
 .featured-copy{padding:18px}
 .featured-copy h2,.preview-feature h2{font-size:27px}
 .section-label{margin-top:20px;padding:11px 0}
 .author-note{grid-template-columns:1fr;padding:18px;gap:12px;margin:22px 0}
 .author-note h2{font-size:24px}
 .footer-row{gap:8px}
 .article-header{margin:24px auto 18px}
 .article-header h1{font-size:32px}
 .article-meta{gap:6px 16px}
 .article-cover{margin-bottom:20px}
 .article-cover img{max-height:280px}
 .article-body{font-size:17px;line-height:1.65}
 .article-body h2{font-size:26px}
 .article-body blockquote{font-size:20px;padding-left:16px}
}
@media(max-width:540px){
 .story-grid .wp-block-post-template,.preview-grid{grid-template-columns:1fr;gap:20px}
 .preview-grid figure,.story-grid .wp-block-post-featured-image{height:180px;aspect-ratio:auto}
 .preview-grid h2,.preview-grid h3,.story-grid .wp-block-post-title{font-size:23px}
}

/* Preview images: consistent 3:2 ratio at every viewport, v1.2.1. */
.preview-feature>figure,
.featured-query .wp-block-post-featured-image,
.preview-grid figure,
.story-grid .wp-block-post-featured-image{
 width:100%;height:auto;min-height:0;aspect-ratio:3/2;
 position:relative;overflow:hidden;
}
.preview-feature>figure>a,
.preview-grid figure>a,
.featured-query .wp-block-post-featured-image>a,
.story-grid .wp-block-post-featured-image>a{
 position:absolute;inset:0;display:block;width:100%;height:100%;
}
.preview-feature>figure img,
.preview-grid figure img,
.featured-query .wp-block-post-featured-image img,
.story-grid .wp-block-post-featured-image img{
 position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;
}

/* Article metadata: author/date on the left, linked tags on the right. */
.article-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px 24px;width:100%}
.article-meta-details{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 18px;min-width:0}
.article-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 12px;margin-left:auto;flex:0 1 auto;max-width:100%;min-width:0;text-align:right}
.article-tags a{color:var(--wine);font-size:12px;line-height:1.5;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere;max-width:100%}
.article-tags a:hover{text-decoration-thickness:2px}
@media(max-width:600px){
 .article-meta{gap:10px 16px}
 .article-meta-details{gap:6px 14px}
 .article-tags{flex-basis:100%;gap:6px 12px}
}

/* Header refinements, v1.2.4. */
.tagline{display:block;font-size:14px;font-weight:700;line-height:1.4;letter-spacing:.075em;max-width:230px;flex-shrink:0}
.masthead p{justify-self:end;margin-left:auto;text-align:right}
.header-nav ul.menu{flex-wrap:nowrap;gap:16px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.header-nav ul.menu>li{flex:0 0 auto}
.header-nav ul.menu>li>a{white-space:nowrap}
@media(max-width:600px){
 .header-top{flex-wrap:wrap;gap:12px}
 .identity{gap:14px;min-width:0}
 .tagline{display:block;font-size:12px;letter-spacing:.045em;max-width:190px}
 .header-search{flex-basis:100%;max-width:none}
 .header-search .search-form label{flex:1}
 .masthead p{text-align:right;justify-self:end}
 .header-nav ul.menu{gap:16px}
}
