/*
Theme Name: Wordle Journal
Theme URI: https://example.com/wordle
Description: A Wordle-style word game theme with a playable daily puzzle homepage, a journal (blog) index, and single article templates. Converted from static HTML design.
Author: Wordle
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wordle
Tags: blog, games, custom-menu, featured-images
*/

/* Wordle-inspired visual system: paper, ink, and letter tiles. */
:root{--paper:#fafbf8;--ink:#202722;--muted:#667069;--green:#608b55;--yellow:#bea44d;--gray:#7d837e;--line:#dde3d8}
body{font-family:"Segoe UI",Arial,sans-serif;background:var(--paper);-webkit-font-smoothing:antialiased}
header{height:88px;max-width:1216px;padding:0 48px;border-bottom:2px solid var(--ink)}
.brand{font-family:Georgia,serif;font-weight:900;font-size:34px;letter-spacing:-2px;gap:12px}.logo{transform:none;grid-template-columns:repeat(2,10px);gap:3px}.logo i{height:10px;border-radius:1px}.logo i:nth-child(3){background:var(--gray);opacity:1}
nav{gap:25px}nav a{font-size:12px;font-weight:600;color:#626b61;position:relative;padding:13px 0}nav a.active:after{content:"";position:absolute;bottom:3px;left:0;right:0;height:3px;background:var(--green)}.navbtn{border-radius:5px;background:#fff;height:33px;width:33px;font-weight:600;font-size:17px}.navbtn:hover{background:#edf2e8;border-color:var(--green)}
.layout{padding:62px 48px 48px;gap:64px;grid-template-columns:1fr 1fr;background-image:linear-gradient(#608b5506 1px,transparent 1px),linear-gradient(90deg,#608b5506 1px,transparent 1px);background-size:32px 32px;background-clip:padding-box}
.hero{position:relative}.eyebrow{font-size:10px!important;letter-spacing:1.8px;font-weight:750}.hero>.eyebrow{display:inline-flex;border:1px solid #dce5d5;background:#f0f5ea;padding:8px 11px;border-radius:4px;letter-spacing:1.2px}.dot{border-radius:1px}
h1{font-size:clamp(43px,4.6vw,65px);line-height:1.08;letter-spacing:-3.2px;margin:25px 0 22px;font-weight:850}h1 span{color:var(--green)}h1 span:after{height:5px;background:var(--yellow);bottom:-7px;transform:none;z-index:0;width:62px;right:auto}.intro{font-size:14px;line-height:1.85;max-width:375px;margin-top:30px}.littletiles{gap:6px;margin:28px 0 13px}.littletiles span{width:43px;height:43px;border-radius:2px;font-size:23px;box-shadow:0 3px 0 #23351e10}.caption{font-size:9px;letter-spacing:1px}.daily-note{border-top:1px solid var(--line);padding-top:19px;margin-top:28px;line-height:1.6;gap:11px;font-size:11px}.sun{border-radius:4px;background:#f0eacf;width:34px;height:34px}.daily-note strong{font-size:12px}
.game{background:#fff;border-radius:10px;border:1px solid #d8dfd2;box-shadow:0 10px 0 -5px #edf0e7,0 20px 42px -18px #29422530;padding:25px 23px 18px;min-width:0}.game:before{content:"";position:absolute;top:-1px;left:22px;width:30px;height:4px;background:var(--green);box-shadow:34px 0 var(--yellow),68px 0 var(--gray)}.gamehead{border-bottom:1px solid var(--line);padding-bottom:17px}.gamehead h2{font-size:18px;font-weight:750;letter-spacing:-.4px}.game-sub{font-size:10px;line-height:1.7}.badge{border:1px solid #dce6d4;background:#f0f5eb;color:#46683c;font-size:9px;border-radius:3px;font-weight:700;letter-spacing:1px;padding:6px 8px}
.board{grid-template-columns:repeat(5,minmax(0,50px));gap:6px;width:100%;max-width:274px;margin-top:22px}.tile{height:auto;aspect-ratio:1;border:2px solid #d9dfd5;border-radius:2px;font-size:27px;font-weight:800;background:#fff}.tile.filled{border-color:#87957e}.key{border-radius:3px;background:#e6e9e2;color:#30372e;font-size:12px;font-weight:750;height:41px;box-shadow:0 2px 0 #d2d8cc;transition:background .15s,transform .15s}.key:active{transform:translateY(2px);box-shadow:none}.key.correct,.key.present,.key.absent{box-shadow:0 2px 0 #0002}.key.wide{font-size:9px}.status{height:auto;min-height:40px;line-height:1.5;font-size:11px;padding:6px 0}.gamefoot{border-top:1px solid #edf0e9;padding-top:13px;margin-top:17px;font-size:10px}.textbtn{font-weight:650}
.guide{grid-template-columns:1.1fr 1fr 1fr 1fr;padding:28px 0 35px;border-bottom:1px solid var(--line);gap:23px}.guide h2{font-size:20px;letter-spacing:-.5px;margin-top:8px}.guide p{line-height:1.7}.rule{gap:11px}.rule strong{font-size:11px;line-height:1.5}.example{width:40px;height:42px;border-radius:2px;font-size:22px;box-shadow:0 3px 0 #00000008}
.page-section{padding:64px 0}.section-heading{margin-bottom:30px}.section-heading h2,.editorial h2,.faq-wrap h2{font-size:34px;letter-spacing:-1.25px;font-weight:750;line-height:1.17;margin:13px 0 16px}.section-heading p,.editorial p,.faq-wrap p{font-size:13px;line-height:1.9}.section-link{font-weight:650;color:#4e753f;border-bottom:1px solid #b6c7aa;padding-bottom:5px}
.soft-band{background:#f0f3eb;border-color:#e1e6da}.steps{gap:20px;margin-top:26px}.steps article{background:#fff;border:1px solid #dfe5d8;border-radius:7px;padding:25px 23px 20px;position:relative;display:flex;flex-direction:column}.steps article:before{content:"";position:absolute;top:-1px;left:22px;height:3px;width:27px;background:var(--gray)}.steps article:nth-child(2):before{background:var(--yellow)}.steps article:nth-child(3):before{background:var(--green)}.step-no{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:700}.steps h3{font-size:18px;margin:17px 0 0}.steps p{font-size:12px;line-height:1.85;margin-bottom:22px}.word-example{margin-top:auto;margin-bottom:0;padding-top:8px;gap:5px}.word-example span{width:35px;height:36px;border-radius:2px;font-weight:750}
.editorial{gap:80px}.editorial>div:first-child{padding-right:10px}.editorial h2{font-size:39px;line-height:1.15}.tip{padding:22px 0}.tip h3{font-size:15px;line-height:1.5}.tip p{font-size:12px}.starter-words button{border-radius:3px;box-shadow:0 3px 0 #e5e9dd;padding:12px 13px;background:white;transition:background .15s,transform .15s}.starter-words button:hover{background:#ecf2e5;transform:translateY(-2px)}.callout{background:#f5f0dd;padding:12px 18px;border-left-width:4px;border-radius:0 4px 4px 0}.callout p{font-size:12px}.callout strong{color:#6b5b24}
.faq-wrap{gap:75px}.faq-wrap>div:first-child{position:relative;padding-top:4px}.faq-wrap>div:last-child{border-top:1px solid #d2dac9}.faq-wrap .section-link{display:inline-block;margin-top:12px}summary{font-size:13px;padding:20px 35px 20px 0;line-height:1.6}summary:after{width:22px;height:22px;display:grid;place-items:center;top:18px;background:#e4ebdb;border-radius:3px;font-size:17px}details p{font-size:12px!important;padding:0 0 5px}details[open] summary{color:#4c733d}
.games-grid{gap:18px}.game-card{border-radius:7px;background:#fff;padding:15px;box-shadow:0 3px 0 #edf0e6;overflow:hidden}.game-card:hover{border-color:#9aaf88;box-shadow:0 8px 22px #20321b10}.game-art{height:145px;border-radius:4px;background-color:#e9f0e1;background-image:linear-gradient(#fff5 1px,transparent 1px),linear-gradient(90deg,#fff5 1px,transparent 1px);background-size:22px 22px;position:relative}.game-art.gold{background-color:#f1ead2}.game-art.pink{background-color:#e9e7df}.game-art.blue{background-color:#e3ebe5}.mini-grid{grid-template-columns:repeat(5,19px);gap:4px;transform:rotate(-7deg);filter:drop-shadow(0 4px 0 #0000000b)}.mini-grid b{height:19px;border-radius:1px;background:var(--green);position:relative}.mini-grid b:nth-child(3n){background:var(--yellow)}.mini-grid b:nth-child(4n){background:#fff}.mini-grid b:nth-child(-n+5):after{content:"W";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:750}.mini-grid b:nth-child(2):after{content:"O"}.mini-grid b:nth-child(3):after{content:"R"}.mini-grid b:nth-child(4):after{content:"D";color:var(--green)}.mini-grid b:nth-child(5):after{content:"S"}.game-card h3{margin:20px 4px 8px;font-size:18px}.game-card p{margin:0 4px 20px;font-size:12px;min-height:44px}.card-meta{border-top:1px solid #edf0e8;padding:13px 4px 0;font-weight:650;font-size:10px}.card-meta span:first-child{border:none;padding:0;letter-spacing:.7px;font-size:8px;color:var(--muted)}.waffle-art b{background:var(--green);border-radius:1px}.game-art .number-art{font-family:"Courier New",monospace;font-weight:800;color:#527547;font-size:43px;background:#fff9;padding:8px;border:2px solid #c3d1ba;border-radius:3px}
.closing{border-radius:7px;background:#2f462b;position:relative;overflow:hidden;margin-top:0;padding:35px 38px}.closing:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:28px 28px;pointer-events:none}.closing>*{position:relative}.closing h2{font-size:27px;font-weight:700}.closing p{color:#cfdbca}.closing a{background:#f2e7b6;color:#35462a;font-weight:750;border-radius:4px;box-shadow:0 3px 0 #15281155}.closing a:hover{background:#fff3c4}footer{border-top:2px solid var(--ink);color:#687164;font-size:11px;padding:23px 0}.footer-disclaimer{font-size:10px;max-width:1120px;color:#788172;line-height:1.8;margin-top:0}dialog{background:#fff;border-radius:8px;border-top:4px solid var(--green)}.primary{border-radius:4px;font-weight:650}.stats strong{color:var(--green)}
@media(min-width:1400px){.layout{padding-top:72px;padding-bottom:58px}}
@media(max-width:1150px){header{margin:0 30px;padding:0}.layout{gap:38px;padding:48px 30px}.guide{gap:18px}.guide h2{font-size:18px}.rule{gap:8px}.example{width:33px;height:36px}.editorial,.faq-wrap{gap:40px}.game-art{height:120px}.steps article{padding:22px 17px}.mini-grid{grid-template-columns:repeat(5,16px)}.mini-grid b{height:16px}}
@media(min-width:701px) and (max-width:850px){nav{gap:15px}nav a{font-size:10px}.layout{gap:25px;grid-template-columns:1fr 1fr}h1{font-size:43px}.guide{grid-template-columns:1fr 1fr}.steps{gap:12px}.steps h3{font-size:16px}.steps article{padding:20px 13px}.games-grid{gap:10px}.game-card{padding:11px}.game-card h3{font-size:15px}.game-card p{min-height:65px}.game-sub{font-size:9px}.badge{font-size:8px;padding:5px}.game{padding:24px 15px 18px}}
@media(max-width:700px){header{height:70px;margin:0 20px;padding:0}.brand{font-size:30px}nav{gap:9px}.navbtn{height:31px;width:31px}.layout{padding:30px 20px 35px;grid-template-columns:minmax(0,1fr);gap:30px;background-size:27px 27px}.hero>.eyebrow{font-size:8px!important;padding:7px 9px;letter-spacing:.8px}h1{font-size:clamp(35px,9vw,51px);letter-spacing:-2px;margin:20px 0 0;line-height:1.12}h1 span:after{left:50%;transform:translateX(-50%);width:45px;height:3px;bottom:-9px}.intro{font-size:12px;max-width:340px;line-height:1.85;margin:25px auto 0}.hero .littletiles{display:flex;justify-content:center;margin:20px 0 0;gap:4px}.littletiles span{width:29px;height:30px;font-size:16px}.caption,.daily-note{display:none}.game{padding:23px 14px 17px;border-radius:7px;max-width:420px}.gamehead h2{font-size:16px}.game-sub{max-width:180px;font-size:9px}.badge{font-size:8px;letter-spacing:.6px}.board{grid-template-columns:repeat(5,minmax(0,48px));max-width:264px;gap:6px}.tile{font-size:25px}.key{height:42px;font-size:11px}.key.wide{font-size:8px}.keyrow{gap:4px}.status{font-size:10px;min-height:39px}.gamefoot{font-size:9px}.textbtn{font-size:9px}.guide{grid-template-columns:1fr;margin:0 24px;padding:28px 0;gap:20px}.guide>div:first-child .eyebrow{justify-content:center}.guide h2{font-size:23px}.rule{max-width:310px;gap:14px}.rule strong{font-size:12px}.rule p{font-size:11px}.example{width:38px;height:40px}.page-section{padding:40px 0;margin:0 24px}.eyebrow{font-size:9px!important;letter-spacing:1px;justify-content:flex-start}.section-heading h2,.editorial h2,.faq-wrap h2{font-size:28px;letter-spacing:-1px}.section-heading p,.editorial p,.faq-wrap p{font-size:12px}.section-heading{gap:13px;margin-bottom:25px}.steps{grid-template-columns:1fr;gap:15px}.steps article{padding:24px}.steps h3{font-size:19px;margin:14px 0 0}.steps p{font-size:12px;margin-bottom:17px}.word-example span{width:35px;height:36px}.editorial,.faq-wrap{grid-template-columns:1fr;gap:30px}.editorial>div:first-child{padding:0}.editorial h2{font-size:32px}.tip h3{font-size:14px}.tip{padding:20px 0}.starter-words{gap:6px}.starter-words button{font-size:10px;padding:11px}.faq-wrap h2 br{display:none}.faq-wrap h2 br:after{content:" "}.faq-wrap .section-link{font-size:11px}summary{font-size:12px;padding-top:18px;padding-bottom:18px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-card{padding:11px;min-width:0}.game-art{height:105px;margin-bottom:15px}.mini-grid{grid-template-columns:repeat(5,13px);gap:3px}.mini-grid b{height:13px}.mini-grid b:nth-child(-n+5):after{font-size:9px}.game-card h3{font-size:15px;margin:15px 0 8px}.game-card p{font-size:11px;min-height:62px;margin:0 0 15px}.card-meta{font-size:9px;gap:5px;padding:12px 0 0;flex-wrap:wrap}.card-meta span:first-child{font-size:7px}.game-art .number-art{font-size:28px}.closing{margin:0 24px 35px;padding:26px;align-items:flex-start;gap:20px}.closing h2{font-size:25px;line-height:1.2}.closing p{font-size:12px;line-height:1.8}.closing a{font-size:11px;padding:12px 15px}footer{margin:0 24px;gap:16px;font-size:10px}.footer-links{gap:17px}.footer-disclaimer{margin:0 24px 22px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ===== WordPress integration additions ===== */
nav a.current-menu-item,nav .current_page_item > a,nav .current-menu-parent > a{color:var(--green);font-weight:700}
.pagination a{border:1px solid var(--line);background:#fff;min-width:34px;height:34px;color:var(--ink);border-radius:3px;font-size:11px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.pagination a.current{background:var(--green);color:#fff;border-color:var(--green)}
.pagination .dots{border:0;background:none;min-width:auto}
.filter-tabs a{background:#fffefa;border:1px solid #d9dfd2;padding:9px 12px;border-radius:5px;font-size:11px;letter-spacing:2px;color:var(--muted);text-decoration:none;font-weight:700}
.filter-tabs a:hover{color:var(--green)}
.filter-tabs a.active{color:var(--green);border-color:var(--green);background:#edf3eb}
.post-art img,.article-hero img{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block}
.brand a{color:inherit;text-decoration:none}

/* Journal teaser on the front page: 4-up version of the "A minute to learn" grid */
.steps.cols-4{grid-template-columns:repeat(4,1fr);gap:32px}
.steps.cols-4 h3 a{color:inherit;text-decoration:none}
.steps.cols-4 h3 a:hover{color:var(--green)}
@media(max-width:1150px){.steps.cols-4{grid-template-columns:repeat(2,1fr);gap:28px}}
@media(max-width:700px){.steps.cols-4{grid-template-columns:1fr;gap:26px}}
.steps.cols-4 .card-meta{margin-top:16px}
.steps.cols-4 .card-meta a{color:inherit;text-decoration:none;white-space:nowrap}
.steps.cols-4 .card-meta a:hover{color:var(--ink);text-decoration:underline}
