/*
Theme Name: Loldle Answers
Description: Clean SEO theme for daily Loldle answers
Version: 2.0
*/
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
:root{
--white:#fff;--surface:#F9F8F5;--border:#ECEAE4;--border2:#DDD9D0;
--text:#1C1C1C;--soft:#3D3B37;--muted:#7A7570;
--gold:#8C6D1F;--gold-l:#FBF7ED;--gold-b:#DEC98A;
--link:#2563EB;--max:820px;--wide:1080px;
}
body{font-family:'Inter',-apple-system,sans-serif;font-size:16px;color:var(--text);background:var(--white);line-height:1.7}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:'Lora',Georgia,serif;font-weight:600;line-height:1.3;color:var(--text)}
h1{font-size:32px;margin-bottom:12px}
h2{font-size:21px;margin:32px 0 12px}
h3{font-size:17px;margin:22px 0 8px}
p{margin-bottom:16px}
ul,ol{padding-left:22px;margin-bottom:16px}
li{margin-bottom:6px}
strong{font-weight:600}
.wrap{max-width:var(--wide);margin:0 auto;padding:0 24px}
.narrow{max-width:var(--max);margin:0 auto}

/* HEADER */
#site-header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:200}
.header-inner{max-width:var(--wide);margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:56px}
.site-branding a{font-family:'Lora',Georgia,serif;font-size:18px;font-weight:600;color:var(--text);text-decoration:none}
.site-branding a:hover{color:var(--gold)}
#primary-nav{display:flex;gap:2px}
#primary-nav a{font-size:14px;font-weight:500;color:var(--muted);padding:6px 12px;border-radius:5px;text-decoration:none;transition:color .15s,background .15s}
#primary-nav a:hover{color:var(--text);background:var(--surface);text-decoration:none}
#primary-nav a.current-menu-item,#primary-nav a.current_page_item{color:var(--gold)}
.nav-toggle{display:none;background:none;border:1px solid var(--border);padding:6px 10px;border-radius:5px;cursor:pointer;font-size:18px;color:var(--text)}

/* HERO */
.page-hero{background:var(--surface);border-bottom:1px solid var(--border);padding:44px 24px 38px}
.hero-eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--gold);margin-bottom:12px}
.hero-title{font-family:'Lora',Georgia,serif;font-size:clamp(24px,4vw,34px);font-weight:600;line-height:1.2;margin-bottom:12px}
.hero-desc{font-size:15px;color:var(--muted);max-width:520px;line-height:1.7;margin-bottom:0}
.hero-meta{display:flex;flex-wrap:wrap;gap:18px;margin-top:20px}
.hero-meta-item{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.live-dot{width:7px;height:7px;border-radius:50%;background:#22C55E;animation:blink 2s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

/* MAIN */
.site-main{padding:40px 24px 64px}
.content-area{max-width:var(--max);margin:0 auto}

/* SPOILER */
.spoiler-notice{background:var(--gold-l);border:1px solid var(--gold-b);border-radius:6px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;flex-wrap:wrap}
.spoiler-notice p{font-size:13px;color:#7A5A10;margin:0}
.btn-reveal{background:white;border:1px solid var(--gold-b);color:var(--gold);font-size:12px;font-weight:600;font-family:inherit;padding:5px 14px;border-radius:4px;cursor:pointer;white-space:nowrap}
.btn-reveal:hover{background:var(--gold-l)}

/* SECTION LABEL */
.section-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);margin-bottom:14px;padding-bottom:9px;border-bottom:1px solid var(--border)}

/* ANSWER CARDS */
.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:36px}
.answer-card{background:var(--white);border:1px solid var(--border);border-left:3px solid var(--gold-b);border-radius:4px;padding:20px;position:relative;min-height:110px}
.card-mode{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:8px}
.card-champion{font-family:'Lora',Georgia,serif;font-size:22px;font-weight:600;color:var(--text);margin-bottom:5px;line-height:1.2}
.card-hint{font-size:13px;color:var(--muted)}
.spoiler-cover{position:absolute;inset:0;background:var(--surface);border-radius:3px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s;border-left:3px solid var(--border2)}
.spoiler-cover:hover{background:#F0EDE6}
.spoiler-cover span{font-size:11px;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.1em}
.spoiler-cover.revealed{display:none}

/* DIVIDER */
.wp-divider{border:none;border-top:1px solid var(--border);margin:32px 0}

/* CONTENT */
.content-section{margin-bottom:32px}
.content-section p,.content-section li{font-size:15px;color:var(--soft);line-height:1.8}
.modes-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}
.mode-card{border:1px solid var(--border);border-radius:6px;padding:18px;background:var(--surface)}
.mode-card .mode-icon{font-size:20px;margin-bottom:8px}
.mode-card .mode-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:4px}
.mode-card .mode-desc{font-size:13px;color:var(--muted);line-height:1.65}
.tips-list{list-style:none;padding:0;margin:0}
.tips-list li{padding:12px 16px;border-left:3px solid var(--gold-b);background:var(--gold-l);margin-bottom:8px;border-radius:0 5px 5px 0;font-size:14px;color:#5C4510;line-height:1.65}

/* TABLES */
.archive-table{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:24px}
.archive-table th{text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:9px 12px;border-bottom:2px solid var(--border2)}
.archive-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.archive-table tr:hover td{background:var(--surface)}
.archive-table td a{color:var(--text);font-weight:500;text-decoration:none}
.archive-table td a:hover{color:var(--gold)}
.champ-tag{display:inline-block;background:var(--gold-l);border:1px solid var(--gold-b);color:var(--gold);font-size:12px;font-weight:600;padding:2px 10px;border-radius:3px}
.answer-summary-table{width:100%;border-collapse:collapse;font-size:14px;margin:16px 0 28px}
.answer-summary-table th{background:var(--surface);font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700;padding:8px 12px;text-align:left;border:1px solid var(--border)}
.answer-summary-table td{padding:10px 12px;border:1px solid var(--border)}
.answer-summary-table tr:nth-child(even) td{background:var(--surface)}
.answer-summary-table .champ-col{font-weight:600;color:var(--text)}

/* POST */
.post-header{margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--border)}
.post-eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:var(--gold);margin-bottom:10px}
.post-title{font-family:'Lora',Georgia,serif;font-size:27px;font-weight:600;line-height:1.25;margin-bottom:12px}
.post-meta{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:16px}
.entry-content{font-size:15px;line-height:1.8;color:var(--soft)}
.entry-content h2{font-size:20px;margin:32px 0 12px}
.entry-content p{margin-bottom:16px}
.post-navigation{display:flex;justify-content:space-between;gap:12px;padding-top:24px;border-top:1px solid var(--border);margin-top:36px}
.nav-previous a,.nav-next a{font-size:14px;color:var(--muted);font-weight:500;text-decoration:none}
.nav-previous a:hover,.nav-next a:hover{color:var(--text)}

/* STATIC PAGES */
.page-content{font-size:15px;line-height:1.8;color:var(--soft)}
.page-content h2{font-size:20px;margin:32px 0 12px}
.page-content p{margin-bottom:16px}
.page-content ul{margin-bottom:16px}

/* FAQ */
.faq-item{border-bottom:1px solid var(--border)}
.faq-question{width:100%;background:none;border:none;text-align:left;padding:16px 0;font-size:15px;font-weight:500;color:var(--text);font-family:inherit;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px}
.faq-question:hover{color:var(--gold)}
.faq-arrow{color:var(--muted);font-size:11px;transition:transform .2s;flex-shrink:0}
.faq-question[aria-expanded="true"] .faq-arrow{transform:rotate(180deg)}
.faq-answer{font-size:14px;color:var(--muted);line-height:1.75;padding-bottom:16px;display:none}
.faq-answer.open{display:block}

/* BREADCRUMB */
.breadcrumb-wrap{border-bottom:1px solid var(--border);background:var(--surface)}
.breadcrumb{max-width:var(--wide);margin:0 auto;padding:8px 24px;font-size:13px;color:var(--muted)}
.breadcrumb a{color:var(--muted);text-decoration:none}
.breadcrumb a:hover{color:var(--gold)}
.breadcrumb .sep{margin:0 6px}

/* PAGINATION */
.pagination{display:flex;gap:4px;justify-content:center;margin-top:28px}
.pagination .page-numbers{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:5px;font-size:13px;color:var(--muted);font-weight:500;text-decoration:none}
.pagination .page-numbers:hover{background:var(--surface);color:var(--text);text-decoration:none}
.pagination .page-numbers.current{background:var(--gold);color:white;border-color:var(--gold)}

/* 404 */
.notfound-wrap{text-align:center;padding:20px 0 40px}
.notfound-btn{display:inline-block;background:var(--gold);color:white;font-size:14px;font-weight:600;padding:10px 22px;border-radius:5px;text-decoration:none;margin:4px}
.notfound-btn.outline{background:var(--white);color:var(--gold);border:1px solid var(--gold-b)}
.notfound-btn:hover{text-decoration:none;opacity:.9}

/* FOOTER */
#site-footer{background:var(--surface);border-top:1px solid var(--border);padding:32px 24px}
.footer-inner{max-width:var(--wide);margin:0 auto}
.footer-top{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.footer-brand{font-family:'Lora',Georgia,serif;font-size:15px;font-weight:600;color:var(--text);margin-bottom:3px}
.footer-tagline{font-size:13px;color:var(--muted)}
.footer-nav{display:flex;flex-wrap:wrap;gap:2px}
.footer-nav a{font-size:13px;color:var(--muted);padding:4px 10px;border-radius:4px;text-decoration:none}
.footer-nav a:hover{color:var(--text)}
.footer-bottom{border-top:1px solid var(--border);padding-top:16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.footer-copy,.footer-disc{font-size:12px;color:var(--muted)}

/* RESPONSIVE */
@media(max-width:640px){
  .answer-grid{grid-template-columns:1fr}
  .modes-grid{grid-template-columns:1fr}
  .hero-title{font-size:24px}
  .footer-top,.footer-bottom{flex-direction:column}
  .post-navigation{flex-direction:column}
  #site-sidebar{display:none}
}
@media(max-width:480px){
  #primary-nav{display:none}
  #primary-nav.open{display:flex;flex-direction:column;position:absolute;top:56px;left:0;right:0;background:white;border-bottom:1px solid var(--border);padding:10px 24px;z-index:300}
  .nav-toggle{display:block}
}

/* QUOTE BOX */
.quote-box{background:var(--gold-l);border:1px solid var(--gold-b);border-left:4px solid var(--gold);border-radius:6px;padding:20px 22px;margin-bottom:24px}
.quote-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--gold);margin-bottom:10px}
.loldle-quote{font-family:'Lora',Georgia,serif;font-size:17px;font-style:italic;color:var(--text);line-height:1.7;margin-bottom:10px;padding:0}
.quote-hint{font-size:13px;color:var(--muted);margin:0}

/* COVER MODE LABEL */
.spoiler-cover{flex-direction:column;gap:6px}
.cover-mode{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
