{"id":44,"date":"2026-10-09T13:49:21","date_gmt":"2026-10-09T13:49:21","guid":{"rendered":"https:\/\/the307.com\/?page_id=44"},"modified":"2026-10-09T13:49:21","modified_gmt":"2026-10-09T13:49:21","slug":"ask-the307","status":"publish","type":"page","link":"https:\/\/the307.com\/?page_id=44","title":{"rendered":"Ask The307 \u2014 Search Wyoming Articles"},"content":{"rendered":"\n<style>\n.t307ask{--navy:#203e59;--paper:#f5f1e9;--gold:#b49655;--rust:#9b4538;max-width:1050px;margin:36px auto 70px;padding:0 18px;font-family:system-ui,-apple-system,sans-serif;color:#263944}\n.t307ask *{box-sizing:border-box}.t307ask h1,.t307ask h2,.t307ask h3{font-family:Georgia,serif;color:var(--navy);line-height:1.15}\n.t307ask h1{font-size:clamp(2.4rem,5.8vw,4.8rem);margin:12px 0 18px}\n.t307ask .kicker{font-size:.75rem;letter-spacing:.22em;font-weight:800;text-transform:uppercase;color:var(--rust)}\n.t307ask .lead{font-size:1.12rem;line-height:1.65;max-width:720px}\n.t307ask .panel{background:var(--paper);border:1px solid #e3ddce;border-radius:16px;padding:clamp(20px,4vw,42px);margin:28px 0}\n.t307ask form{display:flex;gap:10px;flex-wrap:wrap}\n.t307ask label{font-weight:700;display:block;margin-bottom:12px}\n.t307ask input{flex:1;min-width:205px;width:100%;padding:15px;border-radius:8px;border:1px solid #b2afa6;color:#263944;font-size:1.05rem;background:white}\n.t307ask button{padding:15px 24px;background:var(--navy);color:white;border:0;border-radius:8px;font-size:1rem;font-weight:800;cursor:pointer}\n.t307ask button:hover{background:var(--rust)}.t307ask button:disabled{opacity:.55;cursor:wait}\n.t307ask .suggest{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}\n.t307ask .suggest button{background:transparent;color:var(--navy);border:1px solid #b1b0a6;padding:8px 13px;font-weight:600;font-size:.88rem}\n.t307ask .tip{font-size:.89rem;line-height:1.5;color:#5f6b6e}\n.t307ask .hit{border:1px solid #d6d2c7;border-radius:13px;padding:20px 24px;margin:15px 0;background:white}\n.t307ask .hit h3{font-size:1.42rem;margin:8px 0}.t307ask .hit a{color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold)}\n.t307ask .hit p{line-height:1.6;margin:7px 0 14px}.t307ask .hit small{color:#687475}\n.t307ask #t307-results[aria-busy=true]{opacity:.65}.t307ask .back{font-size:.9rem}\n.t307ask .disclaimer{border-left:4px solid var(--gold);padding:12px 16px;background:#f7f3ea;margin:30px 0;line-height:1.55}\n<\/style>\n<section class=\"t307ask\" aria-labelledby=\"the307-ask-heading\">\n<a class=\"back\" href=\"\/?page_id=43\">\u2190 All Wyoming stories and guides<\/a>\n<p class=\"kicker\">Ask The307 \u00b7 Source-backed Search Pilot<\/p>\n<h1 id=\"the307-ask-heading\">Good questions.<br>Wyoming answers.<\/h1>\n<p class=\"lead\">Ask about Wyoming history, road-trip planning, public access, or other topics covered by our published guides. Every result points to the article it came from.<\/p>\n<div class=\"panel\">\n<form id=\"t307-ask-form\" role=\"search\"><label for=\"t307-ask-query\" style=\"width:100%\">What would you like to learn?<\/label><input type=\"search\" maxlength=\"180\" id=\"t307-ask-query\" placeholder=\"e.g. How can I research Wyoming town history?\" required autocomplete=\"off\"><button id=\"t307-ask-button\" type=\"submit\">Find sources \u2192<\/button><\/form>\n<div class=\"suggest\" aria-label=\"Try a question\"><button type=\"button\" data-question=\"Wyoming road conditions\">Road conditions<\/button><button type=\"button\" data-question=\"Wyoming historical newspapers\">Historic newspapers<\/button><button type=\"button\" data-question=\"night sky stargazing\">Stargazing<\/button><button type=\"button\" data-question=\"local businesses stories\">Local stories<\/button><\/div>\n<p class=\"tip\">This search pilot retrieves publicly published The307 WordPress articles; it does not use a generative AI model, live travel data, or verified private business records yet.<\/p>\n<\/div>\n<div id=\"t307-results\" role=\"status\" aria-live=\"polite\"><\/div>\n<div class=\"disclaimer\"><strong>Know before you go.<\/strong> Our articles provide ideas and background\u2014not live roads, hours, booking availability, park access, or safety determinations. Confirm time-sensitive details with the responsible agency or business.<\/div>\n<\/section>\n<script>\n(function(){\nconst root=document.querySelector('.t307ask'), form=root?.querySelector('#t307-ask-form'),input=root?.querySelector('#t307-ask-query'),results=root?.querySelector('#t307-results'),submit=root?.querySelector('#t307-ask-button');\nif(!form||!results)return;\nconst stop=new Set('who what when where why how can could would should do does did i my me we us you your there is are a an the and but of for in on to with about at from near into this that get find tell show guide guides wyoming the307'.split(' '));\nconst strip=html=>{const d=document.createElement('div');d.innerHTML=html||'';return(d.textContent||'').replace(\/\\s+\/g,' ').trim()};\nconst tokens=s=>[...new Set(s.toLowerCase().replace(\/[^a-z0-9\\s]\/g,' ').split(\/\\s+\/).filter(w=>w.length>=3&&!stop.has(w)))].slice(0,5);\nconst render=(kind,text)=>{results.replaceChildren();const p=document.createElement('p');p.textContent=text;p.style.padding='20px 0';results.appendChild(p);};\nconst endpoint=new URL('\/index.php',location.origin);\nasync function load(term,signal){const u=new URL(endpoint);u.searchParams.set('rest_route','\/wp\/v2\/posts');u.searchParams.set('search',term);u.searchParams.set('per_page','25');u.searchParams.set('_fields','id,date,link,title,excerpt,content,status');const r=await fetch(u,{signal});if(!r.ok)throw Error('WordPress returned HTTP '+r.status);return r.json();}\nlet controller=null;\nasync function ask(q){\nconst query=q.trim().slice(0,180);if(!query)return;\ncontroller?.abort();controller=new AbortController();\nsubmit.disabled=true;results.setAttribute('aria-busy','true');render('loading','Searching published articles...');\ntry{\nconst words=tokens(query);\nif(!words.length){render('empty','Try a more specific topic such as road conditions, newspapers, or stargazing.');return;}\nconst searchTerms=[words.join(' '),...words.slice(0,3)];\nconst batches=await Promise.all(searchTerms.map(t=>load(t,controller.signal)));\nconst byId=new Map();for(const a of batches.flat())if(a.status==='publish'&&a.id!==1)byId.set(a.id,a);\nconst scored=[...byId.values()].map(a=>{\nconst t=strip(a.title?.rendered), e=strip(a.excerpt?.rendered),body=strip(a.content?.rendered);\nconst title=t.toLowerCase(),blurb=(e+' '+body).toLowerCase();\nconst score=words.reduce((s,w)=>s+(title.includes(w)?5:0)+(blurb.includes(w)?1:0),0);\nconst paragraphs=(a.content?.rendered||'').split(\/<\\\/p>\/i).map(strip).filter(s=>s.length>60);\nconst best=paragraphs.sort((u,v)=>words.filter(w=>u.toLowerCase().includes(w)).length-words.filter(w=>v.toLowerCase().includes(w)).length).at(-1)||e||body.slice(0,240);\nreturn{a,title:t,score,best};\n}).filter(v=>v.score>0).sort((a,b)=>b.score-a.score).slice(0,5);\nresults.replaceChildren();\nconst h=document.createElement('h2');h.textContent=scored.length?'From the published The307 library':'No matching published articles yet';results.append(h);\nif(!scored.length){const p=document.createElement('p');p.textContent='Try fewer or different keywords. The307 is adding verified articles regularly; this search currently covers published content only.';results.append(p);}\nfor(const hit of scored){const card=document.createElement('article');card.className='hit';const small=document.createElement('small');small.textContent='SOURCE: PUBLISHED THE307 ARTICLE';\nconst h3=document.createElement('h3'),a=document.createElement('a');a.textContent=hit.title;a.href=hit.a.link;h3.append(a);\nconst p=document.createElement('p');p.textContent=hit.best.slice(0,510)+(hit.best.length>510?'\u2026':'');\nconst link=document.createElement('a');link.textContent='Read the full source \u2192';link.href=hit.a.link;\ncard.append(small,h3,p,link);results.append(card);}\nconst cap=document.createElement('p');cap.className='tip';cap.textContent='Results are ranked using article text and the words in your question. They are not AI-generated answers, and only already-published WordPress posts are considered.';results.append(cap);\n}catch(e){if(e.name!=='AbortError')render('error','Search could not load published articles: '+e.message+'. Try again later.');}\nfinally{submit.disabled=false;results.setAttribute('aria-busy','false');}\n}\nform.addEventListener('submit',e=>{e.preventDefault();ask(input.value);});\nroot.querySelectorAll('[data-question]').forEach(b=>b.addEventListener('click',()=>{input.value=b.dataset.question;ask(input.value);}));\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Ask questions and discover relevant published Wyoming articles, with linked sources. Search-backed pilot, not yet generative AI.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-44","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/the307.com\/index.php?rest_route=\/wp\/v2\/pages\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the307.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/the307.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/the307.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/the307.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":0,"href":"https:\/\/the307.com\/index.php?rest_route=\/wp\/v2\/pages\/44\/revisions"}],"wp:attachment":[{"href":"https:\/\/the307.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}