/*
Theme Name: Loser Soup SEO Engine
Theme URI: https://losersoup.com/
Author: Jeff Robertson and ChatGPT
Description: A fast, story-driven WordPress theme for Loser Soup. Built for failure stories, comeback lessons, SEO hubs, internal links, FAQs, and article schema.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loser-soup
*/

:root {
  --ls-bg: #fff7ec;
  --ls-paper: #fffdf7;
  --ls-ink: #17120f;
  --ls-muted: #665d55;
  --ls-line: #eadcc9;
  --ls-accent: #ef6c22;
  --ls-accent-dark: #b84713;
  --ls-green: #1b6b50;
  --ls-radius: 22px;
  --ls-shadow: 0 18px 45px rgba(24, 18, 12, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ls-ink);
  background: var(--ls-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--ls-accent-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ls-accent); }
img { max-width: 100%; height: auto; display: block; }

.ls-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.ls-skip-link { position: absolute; left: -999px; top: 12px; background: #fff; padding: 10px 14px; z-index: 99; }
.ls-skip-link:focus { left: 12px; }

.ls-site-header {
  background: rgba(255, 247, 236, 0.94);
  border-bottom: 1px solid var(--ls-line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.ls-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.ls-brand { display: flex; align-items: center; gap: 12px; color: var(--ls-ink); text-decoration: none; font-weight: 900; letter-spacing: -0.04em; font-size: clamp(24px, 3vw, 34px); }
.ls-brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ls-accent); color: white; display: grid; place-items: center; font-size: 23px; box-shadow: 0 8px 22px rgba(239,108,34,0.35); }
.ls-nav ul { display: flex; align-items: center; gap: 18px; padding: 0; margin: 0; list-style: none; }
.ls-nav a { color: var(--ls-ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.ls-nav a:hover { color: var(--ls-accent-dark); }

.ls-hero { padding: clamp(58px, 8vw, 108px) 0 48px; }
.ls-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 42px; align-items: center; }
.ls-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--ls-line); border-radius: 999px; background: var(--ls-paper); color: var(--ls-accent-dark); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; }
.ls-hero h1 { margin: 18px 0 18px; font-size: clamp(42px, 7vw, 82px); line-height: 0.95; letter-spacing: -0.075em; }
.ls-lede { font-size: clamp(20px, 2.4vw, 26px); color: var(--ls-muted); max-width: 760px; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ls-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; font-weight: 900; text-decoration: none; border: 2px solid var(--ls-ink); color: var(--ls-ink); background: white; box-shadow: 5px 5px 0 var(--ls-ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ls-button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ls-ink); color: var(--ls-ink); }
.ls-button-primary { background: var(--ls-accent); color: white; }
.ls-button-primary:hover { color: white; }

.ls-card { background: var(--ls-paper); border: 1px solid var(--ls-line); border-radius: var(--ls-radius); box-shadow: var(--ls-shadow); overflow: hidden; }
.ls-card-pad { padding: 26px; }
.ls-hero-card { transform: rotate(1deg); }
.ls-hero-card h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.04em; }
.ls-hero-list { margin: 18px 0 0; padding: 0; list-style: none; }
.ls-hero-list li { padding: 12px 0; border-top: 1px solid var(--ls-line); font-weight: 700; }

.ls-section { padding: 48px 0; }
.ls-section-alt { background: #fffdf7; border-top: 1px solid var(--ls-line); border-bottom: 1px solid var(--ls-line); }
.ls-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ls-section h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.06em; }
.ls-section-desc { color: var(--ls-muted); max-width: 680px; margin: 12px 0 0; }
.ls-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ls-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ls-topic-card, .ls-post-card { display: flex; flex-direction: column; min-height: 100%; color: var(--ls-ink); text-decoration: none; }
.ls-topic-card h3, .ls-post-card h3 { margin: 0 0 8px; line-height: 1.1; letter-spacing: -0.04em; font-size: 25px; }
.ls-topic-card p, .ls-post-card p { margin: 0; color: var(--ls-muted); }
.ls-tag { display: inline-flex; width: max-content; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; background: #ffe2cd; color: var(--ls-accent-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.ls-meta { color: var(--ls-muted); font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.ls-post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f5e3cf; }

.ls-feature { background: var(--ls-ink); color: white; border-radius: 32px; padding: clamp(28px, 5vw, 58px); box-shadow: var(--ls-shadow); }
.ls-feature h2 { color: white; }
.ls-feature p { color: #f2dcc8; }
.ls-feature .ls-button { border-color: white; box-shadow: 5px 5px 0 white; }

.ls-article { padding: 42px 0 70px; }
.ls-article-grid { display: grid; grid-template-columns: minmax(0, 740px) 300px; gap: 42px; align-items: start; }
.ls-article h1 { font-size: clamp(38px, 6vw, 68px); line-height: 0.96; letter-spacing: -0.07em; margin: 18px 0; }
.ls-content { background: var(--ls-paper); border: 1px solid var(--ls-line); border-radius: var(--ls-radius); padding: clamp(22px, 4vw, 42px); box-shadow: var(--ls-shadow); }
.ls-content h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.05em; margin-top: 1.35em; }
.ls-content h3 { font-size: 26px; line-height: 1.1; letter-spacing: -0.035em; margin-top: 1.25em; }
.ls-content p { margin: 0 0 1.1em; }
.ls-content ul, .ls-content ol { padding-left: 24px; }
.ls-content li { margin-bottom: 0.55em; }
.ls-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 5px solid var(--ls-accent); background: #fff1e0; border-radius: 12px; font-size: 22px; font-weight: 800; }
.ls-breadcrumbs { font-size: 14px; color: var(--ls-muted); font-weight: 700; }
.ls-sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.ls-sidebar h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.04em; }
.ls-sidebar ul { margin: 0; padding-left: 18px; }
.ls-sidebar li { margin-bottom: 8px; }
.ls-lesson-box { background: #fff1e0; border: 1px solid #f2c6a5; border-radius: var(--ls-radius); padding: 22px; margin: 26px 0; }
.ls-lesson-box strong { display: block; color: var(--ls-accent-dark); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; margin-bottom: 8px; }

.ls-archive-header { padding: 52px 0 22px; }
.ls-archive-header h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.07em; }
.ls-pagination { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.ls-pagination .page-numbers { background: white; border: 1px solid var(--ls-line); border-radius: 999px; padding: 8px 13px; text-decoration: none; font-weight: 800; }
.ls-pagination .current { background: var(--ls-ink); color: white; }

.ls-faq details { background: white; border: 1px solid var(--ls-line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.ls-faq summary { cursor: pointer; font-weight: 900; font-size: 19px; }
.ls-faq p { color: var(--ls-muted); margin: 12px 0 0; }

.ls-site-footer { background: var(--ls-ink); color: white; padding: 38px 0; margin-top: 52px; }
.ls-site-footer a { color: #ffd8ba; }
.ls-footer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.ls-footer-title { margin: 0 0 8px; font-size: 28px; font-weight: 900; letter-spacing: -0.04em; }
.ls-footer-text { margin: 0; color: #e6d1bf; }

.alignwide { max-width: 1120px; margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .ls-header-inner { align-items: flex-start; flex-direction: column; }
  .ls-nav ul { flex-wrap: wrap; }
  .ls-hero-grid, .ls-grid-3, .ls-grid-2, .ls-article-grid, .ls-footer-grid { grid-template-columns: 1fr; }
  .ls-sidebar { position: static; }
  .ls-section-head { display: block; }
}
