/*
Theme Name: Aleh Hayarok
Description: A calm botanical Hebrew magazine with an open editorial layout.
Version: 2.0.0
Text Domain: aleh-hayarok
*/
/* Locally hosted Hebrew fonts keep the magazine typography stable and private. */
@font-face{font-family:"Frank Ruhl Libre";src:url("assets/fonts/frankruhllibre.ttf") format("truetype");font-style:normal;font-weight:300 900;font-display:swap}
@font-face{font-family:Heebo;src:url("assets/fonts/heebo.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
/* Calm, high-contrast tokens are shared by the homepage, archives and reading pages. */
:root{--ink:#163e30;--muted:#53665b;--cream:#f7f7ef;--line:#cbd2c3;--green:#214a37;--sage:#e9ece1;--display:"Frank Ruhl Libre",Georgia,serif;--body:Heebo,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:120px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.7}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button,a,input{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:5px}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:var(--display);line-height:1.18}
.shell{width:min(1344px,calc(100% - 96px));margin-inline:auto}
.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip-link:focus{position:fixed;z-index:10000;background:var(--cream);padding:12px;inset:12px auto auto 12px}
.dashicons{font-size:20px;width:20px;height:20px;flex-shrink:0}
/* One compact masthead places the brand, category links and search on a single line. */
.site-header{background:var(--cream);border-bottom:1px solid #e7e9df;position:relative;z-index:20}
.masthead{display:flex;align-items:center;gap:26px;min-height:104px;padding-block:18px}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;font-family:var(--display);font-size:34px;font-weight:700;letter-spacing:-.8px;line-height:1.05}
.brand small{display:block;font-family:var(--body);font-size:12px;font-weight:400;letter-spacing:0;margin-top:7px}
.brand-mark{width:46px;height:46px;object-fit:contain}
.nav-row{display:flex;flex:1;gap:17px;align-items:center;justify-content:center;min-width:0}
.nav-row a{padding-block:9px;white-space:nowrap;font-size:12px;font-weight:600;border-bottom:2px solid transparent;min-height:44px;display:flex;align-items:center}
.nav-row a:hover,.nav-row [aria-current=page]{border-bottom-color:var(--green)}
.site-search{display:flex;background:var(--sage);border:1px solid transparent;border-radius:30px;overflow:hidden;width:265px;flex-shrink:0}
.site-search:focus-within{border-color:var(--green)}
.site-search input{width:100%;min-width:0;padding:10px 15px;border:0;background:transparent;font-size:13px}
.site-search input::placeholder{color:var(--muted);opacity:1}
.site-search button{border:0;background:transparent;padding:10px 14px;cursor:pointer;min-width:44px;min-height:44px;display:grid;place-items:center}
.site-search button:hover{background:#dce3d4}
/* The cover mirrors the chosen split spread, with real artwork occupying the left side. */
main{min-height:55vh;padding-bottom:64px}
.editorial-hero{display:grid;grid-template-columns:40% 60%;height:510px;border-bottom:1px solid var(--line);max-width:1800px;margin-inline:auto}
.hero-copy{padding:68px 48px 55px 24px;align-self:center}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:12px;font-weight:500;margin-bottom:24px}
.eyebrow::before{content:"";width:32px;border-top:1px solid var(--green)}
/* Strong modern Hebrew headings match the selected mock's weight and clean letterforms. */
.hero-copy h1{font-family:var(--body);font-size:clamp(46px,5.5vw,82px);font-weight:800;letter-spacing:-2.2px;line-height:1.04;margin-bottom:26px}
.hero-copy p{font-size:18px;line-height:1.8;margin-bottom:28px;color:#3c5b4b}
.hero-art{height:100%;min-height:0;overflow:hidden}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.editorial-link,.read-link{display:inline-flex;align-items:center;gap:17px;min-height:44px;font-size:15px;font-weight:500;border-bottom:1px solid var(--green);padding-bottom:3px}
.editorial-link:hover,.read-link:hover{color:#58714c;border-bottom-color:#58714c}
/* Open article columns rely on imagery, typography and whitespace instead of cards. */
.home-content{padding-top:16px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}
.section-title h2{display:flex;align-items:center;gap:20px;font-family:var(--body);font-size:34px;margin:0;font-weight:700}
.section-title h2::before{content:"";width:38px;border-top:1px solid var(--muted)}
.section-title>span{font-size:12px;color:var(--muted)}
.lead-grid,.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.story-card{min-width:0;display:flex;flex-direction:column}
.story-image{display:block;width:100%;min-width:0;aspect-ratio:1.95;overflow:hidden;background:var(--sage)}
.story-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.story-card:hover .story-image img{transform:scale(1.025)}
.story-copy{min-width:0;padding-top:8px;display:flex;flex:1;flex-direction:column;align-items:flex-start}
.tag{font-size:12px;font-weight:400;margin-bottom:9px;color:#395947}
.tag:hover{text-decoration:underline;text-underline-offset:4px}
.story-copy h3{font-family:var(--body);font-size:23px;font-weight:700;line-height:1.28;margin-bottom:10px}
.story-copy h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.story-copy p{font-size:14px;line-height:1.8;color:var(--muted);margin-bottom:12px}
.read-link{font-size:13px;margin-top:auto}
.strain-section{margin-top:56px;padding-top:28px;border-top:1px solid var(--line)}
.topic-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-bottom:28px}
.topic-strip a{display:flex;align-items:center;gap:12px;background:var(--sage);padding:14px 18px}
.topic-strip a:hover{background:#dfe6d7}
.topic-strip strong{font-family:var(--display);font-size:23px;font-weight:600}
.topic-strip span:not(.dashicons){font-size:12px;margin-inline-start:auto;color:var(--muted)}
/* Article text stays comfortably narrow, with the same quiet editorial styling. */
.archive-heading{padding-top:48px;margin-bottom:30px}
.archive-heading h1{font-size:48px;margin-bottom:16px}
.archive-heading p{color:var(--muted);max-width:760px}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:60px;margin-top:44px}
.article-body{min-width:0}
.article-heading{padding-bottom:26px;max-width:820px;margin-inline:auto}
.article-heading h1{font-size:clamp(34px,3.9vw,56px);line-height:1.2;margin:18px 0}
.back-link,.byline{font-size:13px;color:var(--muted)}
.back-link:hover{text-decoration:underline}
.article-cover{margin:0 0 28px}
.article-cover img{width:100%;max-height:500px;object-fit:cover}
.article-text{max-width:760px;margin-inline:auto;font-size:18px;line-height:1.9;overflow-wrap:anywhere}
.article-text h2{font-size:32px;margin-top:36px}
.article-text h3{font-size:27px;margin-top:28px}
.article-text p,.article-text ul,.article-text ol{margin-bottom:22px}
.article-text a{text-decoration:underline;text-underline-offset:4px;color:var(--green)}
.article-text table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:15px;margin-block:24px}
.article-text td,.article-text th{padding:12px;border:1px solid var(--line);min-width:120px;text-align:right}
.article-text th{background:var(--sage)}
.article-text details{background:var(--sage);padding:15px 18px;margin-block:15px}
.article-text summary{cursor:pointer;font-weight:600}
.article-text .aleh-inline-cover{margin:0 0 28px}
.article-text .aleh-inline-cover img{width:100%;height:auto}
.article-sidebar{align-self:start;border-top:1px solid var(--line);padding-top:20px}
.article-sidebar h2{font-size:28px}
.mini-story{display:flex;gap:14px;padding-block:18px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}
.mini-story img{width:80px;height:80px;object-fit:cover;flex-shrink:0}
.mini-story:hover span{text-decoration:underline}
.pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:40px}
.pagination>*{padding:8px 15px;border:1px solid var(--line);min-width:44px;text-align:center}
.pagination .current{background:var(--green);color:var(--cream)}
.empty-state{padding:32px;background:var(--sage);margin-block:24px}
.empty-state h2,.empty-state h3{font-size:30px}
.empty-state p{color:var(--muted);max-width:680px}
.button{display:inline-block;background:var(--green);color:var(--cream);padding:10px 20px}
/* A restrained footer preserves the publication's existing information links. */
.site-footer{border-top:1px solid var(--line);padding:30px 0;background:var(--sage)}
.footer-layout{display:flex;justify-content:space-between;align-items:center;gap:30px}
.footer-brand{font-family:var(--display);font-size:30px;font-weight:700}
.site-footer p{font-size:12px;margin:7px 0 0;color:var(--muted)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:22px;font-size:12px}
.site-footer nav a{padding-block:10px}
.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
/* Tablets keep navigation discoverable and let the cover breathe on narrower screens. */
@media(max-width:1250px){
 .masthead{flex-wrap:wrap;gap:14px 24px;padding-block:18px 0}
 .brand{margin-inline-end:auto}.site-search{order:2;width:300px}.nav-row{order:3;flex-basis:100%;justify-content:flex-start;gap:24px;overflow-x:auto;scrollbar-width:thin;padding-bottom:7px}
 .nav-row a{font-size:13px}.hero-copy{padding:44px 32px 40px 20px}.hero-copy h1{font-size:64px}.hero-copy p{font-size:16px}.desktop-break{display:none}
 .editorial-hero{grid-template-columns:44% 56%;height:auto;min-height:480px}.hero-art{min-height:480px}.shell{width:calc(100% - 64px)}
}
@media(max-width:900px){
 .editorial-hero{grid-template-columns:48% 52%;min-height:440px}.hero-art{min-height:440px}.hero-copy{padding:36px 26px 36px 16px}.hero-copy h1{font-size:51px;letter-spacing:-1px}
 .hero-copy p{font-size:15px}.eyebrow{margin-bottom:18px}.section-title h2{font-size:31px}.lead-grid,.article-grid{gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}
 /* Flexible zero-minimum tracks prevent the landscape image from overlapping tablet text. */
 .lead-grid .story-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.lead-grid .story-card:first-child .story-image{height:100%;min-height:220px;aspect-ratio:auto}.lead-grid .story-card:first-child .story-copy{padding-top:0}
 .article-layout{grid-template-columns:1fr;gap:34px}.article-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}.article-sidebar h2{grid-column:1/-1}.topic-strip{gap:14px}.topic-strip a{flex-wrap:wrap}.topic-strip span:not(.dashicons){display:none}
}
/* Mobile preserves RTL order, real search, touch targets and a full-width cover image. */
@media(max-width:600px){
 html{scroll-padding-top:24px}.shell{width:calc(100% - 36px)}.masthead{padding-top:18px;gap:16px}.brand{font-size:31px;margin-inline:auto}.brand-mark{width:41px;height:41px}.brand small{font-size:11px}
 .site-search{width:100%;order:2}.nav-row{order:3;gap:23px}.nav-row a{font-size:13px}
 .editorial-hero{display:flex;flex-direction:column;min-height:0}.hero-copy{padding:34px 24px 32px}.hero-copy h1{font-size:clamp(38px,13.8vw,54px);line-height:1.08;letter-spacing:-1.2px;margin-bottom:20px}.hero-copy p{font-size:15px;margin-bottom:16px}.hero-copy .eyebrow{font-size:11px;margin-bottom:20px}
 .hero-art{min-height:0;height:260px}.hero-art img{object-position:center}.home-content{padding-top:25px}.section-title{gap:12px;margin-bottom:20px}.section-title h2{font-size:31px;gap:12px}.section-title h2::before{width:23px}.section-title>span{font-size:10px;max-width:105px}
 .lead-grid,.article-grid{grid-template-columns:1fr;gap:30px}.lead-grid .story-card:first-child{display:flex;grid-column:auto;gap:0}.lead-grid .story-card:first-child .story-image{min-height:0;height:auto;aspect-ratio:1.95}.lead-grid .story-card:first-child .story-copy{padding-top:13px}
 .story-copy h3{font-size:27px}.story-copy p{font-size:15px}.read-link{font-size:14px}.tag{font-size:12px}.strain-section{margin-top:38px;padding-top:24px}.topic-strip{gap:8px}.topic-strip a{padding:12px 10px;justify-content:space-between;gap:6px}.topic-strip strong{font-size:20px}.topic-strip .dashicons{font-size:16px;width:16px}
 .article-layout{margin-top:28px}.article-heading h1{font-size:37px}.article-text{font-size:17px}.article-text h2{font-size:29px}.article-sidebar{grid-template-columns:1fr}.archive-heading{padding-top:32px}.archive-heading h1{font-size:37px}.empty-state{padding:24px}.footer-layout{display:block}.site-footer nav{gap:20px;margin-top:16px}main{padding-bottom:42px}
}
/* On narrow phones the section title takes priority over its supporting tagline. */
@media(max-width:380px){.section-title>span{display:none}}
/* A calm floating contact link stays clear of mobile safe areas and footer links. */
.telegram-float{position:fixed;left:max(20px,env(safe-area-inset-left));bottom:calc(20px + env(safe-area-inset-bottom));z-index:100;display:inline-flex;align-items:center;gap:10px;min-height:52px;max-width:calc(100vw - 40px);padding:12px 20px;background:var(--green);color:var(--cream);border:1px solid var(--cream);border-radius:32px;font-size:14px;font-weight:500;box-shadow:0 4px 16px #163e3024;transition:background-color .2s}
.telegram-float:hover{background:#163e30}
.telegram-float:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.site-footer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
@media(max-width:600px){.telegram-float{left:max(14px,env(safe-area-inset-left));bottom:calc(14px + env(safe-area-inset-bottom));padding:11px 17px;min-height:48px;font-size:13px}}
@media print{.telegram-float{display:none}}
/* Respect reduced-motion preferences without changing the visual layout. */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
