/*
Theme Name: Hey Emji
Theme URI: https://heyemji.com
Author: Emji
Description: Custom theme for Hey Emji: Antukin Reviews, Tech Talks, Your Stoic Bro and Quiz Bojji.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: heyemji
*/

:root {
  --bg: #16142E;
  --card: #221F42;
  --chip: #2C2852;
  --line: #4A4670;
  --ink: #F5F3FF;
  --muted: #B9B6D3;
  --faint: #8C88AD;
  --lemon: #FFD23F;
  --coral: #FF7A66;
  --sky: #7CC6FF;
  --stone: #E3D5B8;
  --good: #5FD39A;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, sans-serif;
  --brush: 'Permanent Marker', 'Comic Sans MS', cursive;
  --orange: #FF6A2B;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lemon); }
a:hover { color: #FFE27A; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--lemon); color: var(--bg); padding: 10px 16px; border-radius: 999px; clip: auto; width: auto; height: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--lemon); color: var(--bg); }
.btn-primary:hover { background: #FFE27A; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-dark { background: var(--bg); color: var(--ink); }
.btn-dark:hover { color: var(--ink); background: #232048; }
.btn-outline-dark { background: transparent; color: var(--bg); border: 1.5px solid var(--bg); }
.btn-outline-dark:hover { color: var(--bg); background: rgba(22,20,46,.08); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(22,20,46,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(74,70,112,.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand:hover { color: var(--ink); }
.brand img { height: 48px; width: auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--lemon); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-block; padding: 10px 0; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--lemon); }
.main-nav .menu-cta > a { background: var(--lemon); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.main-nav .menu-cta > a:hover { color: var(--bg); background: #FFE27A; }
.nav-toggle { display: none; background: var(--chip); color: var(--ink); border: 0; border-radius: 12px; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 0; display: block; border-bottom: 1px solid rgba(74,70,112,.4); }
  .main-nav .menu-cta > a { text-align: center; margin-top: 12px; border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 0 0 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.eyebrow { color: var(--coral); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.lead { color: var(--muted); font-size: 20px; max-width: 580px; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 800; line-height: .98; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.follow-card { flex: 1 1 320px; min-width: 0; background: var(--card); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.follow-grid a { background: var(--chip); color: var(--ink); text-decoration: none; border-radius: 16px; padding: 16px; font-weight: 600; min-height: 64px; display: flex; flex-direction: column; justify-content: center; }
.follow-grid a span { font-weight: 400; color: var(--muted); font-size: 14px; }
.follow-grid a:hover { background: #352F63; color: var(--ink); }

/* Brand cards */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.brand-card { background: var(--card); color: var(--ink); text-decoration: none; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: transform .15s ease, background .15s ease; }
.brand-card:hover { background: #2A2650; color: var(--ink); transform: translateY(-3px); }
.brand-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.brand-card h3 { font-size: 26px; font-weight: 800; }
.brand-card p { color: var(--muted); }
.brand-card .go { margin-top: auto; font-weight: 600; }
.c-lemon { color: var(--lemon); } .bg-lemon { background: var(--lemon); }
.c-sky { color: var(--sky); } .bg-sky { background: var(--sky); }
.c-stone { color: var(--stone); } .bg-stone { background: var(--stone); }
.c-coral { color: var(--coral); } .bg-coral { background: var(--coral); }

/* Quiz banner */
.quiz-banner { background: var(--coral); color: var(--bg); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.quiz-banner .copy { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.quiz-banner .eyebrow { color: var(--bg); }
.quiz-banner h2 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; line-height: 1.02; }
.quiz-banner p { font-size: 18px; max-width: 520px; }
.quiz-banner .widget { flex: 1 1 340px; min-width: 0; }
@media (max-width: 600px) { .quiz-banner { padding: 28px 20px; } }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, background .15s ease; }
.post-card:hover { color: var(--ink); background: #2A2650; transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--chip); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { font-size: 22px; }
.post-card .meta-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pill-score { background: var(--lemon); color: var(--bg); }
.empty-state { background: var(--card); border-radius: 24px; padding: 40px; text-align: center; color: var(--muted); }

/* Newsletter */
.signup { background: var(--card); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; }
.signup .copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.signup h2 { font-size: clamp(32px, 4vw, 40px); font-weight: 800; }
.signup form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.signup fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.signup legend { margin-bottom: 10px; font-weight: 600; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); padding: 12px 16px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.check-pill input { accent-color: var(--lemon); width: 18px; height: 18px; }
.signup .row { display: flex; flex-wrap: wrap; gap: 10px; }
.input { flex: 1 1 240px; min-width: 0; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 14px 20px; font: inherit; min-height: 48px; }
.input::placeholder { color: var(--faint); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 16px; font-weight: 500; }
.notice-ok { background: #1E4A3A; color: #C9F5DE; }
.notice-bad { background: #4A2433; color: #FFD3CB; }
@media (max-width: 600px) { .signup { padding: 28px 20px; } }

/* Work with me */
.work { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.work .copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.work .actions { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--chip); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 64px 0 48px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 800; letter-spacing: -.02em; }
.page-hero .lead a { color: var(--lemon); }

/* ---------- Single review ---------- */
.review-hero { padding: 56px 0 32px; }
.review-hero .wrap { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.review-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.02em; }
.review-hero .byline { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 15px; }
.review-cover { max-width: 1040px; margin: 0 auto 40px; padding: 0 24px; }
.review-cover img { width: 100%; border-radius: 24px; max-height: 620px; object-fit: cover; }
.review-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 80px; display: flex; flex-direction: column; gap: 32px; }

.info-card { background: var(--card); border-radius: 24px; padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 24px; }
.info-card dt { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.info-card dd { margin: 2px 0 0; font-weight: 500; }

.yawn { background: var(--lemon); color: var(--bg); border-radius: 24px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.yawn .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.yawn .value { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.yawn .scale { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.yawn .scale span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(22,20,46,.1); }
.yawn .scale span.on { background: var(--bg); color: var(--lemon); }

.scores { background: var(--card); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.scores h2 { font-size: 22px; }
.score-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 56px; gap: 14px; align-items: center; }
.score-row .name { font-weight: 500; }
.score-bar { height: 10px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.score-bar span { display: block; height: 100%; background: var(--lemon); border-radius: 99px; }
.score-row .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.overall { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--chip); padding-top: 18px; }
.overall .big { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--lemon); line-height: 1; }
@media (max-width: 560px) { .score-row { grid-template-columns: 1fr 48px; } .score-bar { grid-column: 1 / -1; grid-row: 2; } }

.verdict { border-radius: 24px; padding: 28px; background: var(--chip); }
.verdict .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.verdict blockquote { margin: 10px 0 0; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.25; }

.buy-box { background: var(--sky); color: var(--bg); border-radius: 24px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.buy-box .name { font-family: var(--display); font-weight: 800; font-size: 24px; }
.buy-box .price { font-weight: 600; }
.buy-box small { display: block; opacity: .8; }

/* Prose */
.prose { font-size: 18px; line-height: 1.75; color: #E6E3F7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 24px; margin-top: 1.6em; color: var(--ink); }
.prose img, .prose figure img { border-radius: 18px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--coral); font-style: italic; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--lemon); }
.prose hr { border: 0; border-top: 1px solid var(--chip); margin: 2em 0; }
.prose .wp-block-image.aligncenter, .prose .aligncenter { margin-left: auto; margin-right: auto; }

.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.post-nav a { background: var(--card); border-radius: 20px; padding: 20px 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.post-nav a span { color: var(--muted); font-size: 14px; }
.post-nav a:hover { background: #2A2650; color: var(--ink); }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Comments */
.comments { background: var(--card); border-radius: 24px; padding: 28px; }
.comments h2 { font-size: 24px; margin-bottom: 16px; }
.comments ol { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.comments .comment-body { background: var(--chip); border-radius: 16px; padding: 16px 18px; }
.comments .comment-meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.comments .comment-meta a { color: var(--muted); text-decoration: none; }
.comments .avatar { display: none; }
.comments label { display: block; font-weight: 600; margin-bottom: 6px; }
.comments textarea, .comments input[type=text], .comments input[type=email], .comments input[type=url] { width: 100%; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; }
.comments p { margin-bottom: 14px; }
.comments .submit { background: var(--lemon); color: var(--bg); border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--lemon); color: var(--bg); }

/* Generic page */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 96px; }

/* ---------- Quiz Bojji widget ---------- */
.qb { background: var(--bg); color: var(--ink); border-radius: 28px; padding: 24px; max-width: 580px; margin: 0 auto; }
.quiz-banner .qb { margin: 0; }
.qb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.qb-brand { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--coral); }
.qb-bar { height: 6px; background: var(--chip); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.qb-bar span { display: block; height: 100%; background: var(--coral); transition: width .3s; }
.qb h2 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; font-weight: 700; font-family: var(--display); }
.qb-opts { display: flex; flex-direction: column; gap: 10px; }
.qb-opt { text-align: left; background: var(--chip); color: var(--ink); padding: 15px 16px; min-height: 48px; border: 2px solid transparent; border-radius: 14px; font: inherit; cursor: pointer; }
.qb-opt:hover:not(:disabled) { border-color: var(--muted); }
.qb-opt.right { background: #1E4A3A; border-color: var(--good); }
.qb-opt.wrong { background: #4A2433; border-color: var(--coral); }
.qb-opt:disabled { cursor: default; }
.qb-fact { margin-top: 14px; color: var(--muted); font-size: 15px; min-height: 22px; }
.qb-next { margin-top: 18px; width: 100%; }
.qb-done { text-align: center; }
.qb-score { font-family: var(--display); font-size: 72px; font-weight: 800; color: var(--lemon); line-height: 1; margin: 8px 0; }
.qb-grid { display: flex; gap: 6px; justify-content: center; margin: 12px 0 6px; }
.qb-grid span { width: 28px; height: 28px; border-radius: 8px; background: var(--coral); }
.qb-grid span.ok { background: var(--good); }
.qb-msg { font-weight: 700; font-size: 20px; margin: 10px 0 4px; }

/* ---------- Stoic Bro widget ---------- */
.sb { background: var(--card); color: var(--ink); border-radius: 28px; padding: 32px 28px; max-width: 680px; margin: 0 auto; }
.sb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.sb-brand { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--stone); }
.sb blockquote { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }
.sb-who { margin: 16px 0 0; color: var(--stone); font-weight: 600; }
.sb-who span { color: var(--muted); font-weight: 400; font-size: 14px; }
.sb-take { margin-top: 24px; background: var(--chip); border-radius: 18px; padding: 18px 20px; }
.sb-take b { display: block; color: var(--stone); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.sb-take p { font-size: 17px; line-height: 1.5; }
.sb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn-stone { background: var(--stone); color: var(--bg); }
.btn-stone:hover { background: #EDE3CE; color: var(--bg); }
.widget-note { color: var(--muted); font-size: 14px; min-height: 20px; margin-top: 10px; }

.archive-list { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin: 40px auto 0; }
.archive-list .item { background: var(--card); border-radius: 18px; padding: 18px 22px; }
.archive-list .item p { font-family: Georgia, serif; font-size: 19px; }
.archive-list .item span { color: var(--stone); font-size: 14px; }

/* Rankings table (Quiz Bojji page content) */
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--chip); }
.prose th { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* Stats (work with me) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border-radius: 22px; padding: 22px 24px; }
.stat .n { font-family: var(--display); font-size: 36px; font-weight: 800; color: var(--lemon); }
.stat .l { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* ---------- v1.1: one blog, avatar, quote of the day ---------- */
.hero-art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; position: relative; }
.hero-art::before { content: ""; position: absolute; width: min(400px, 82%); aspect-ratio: 1; border-radius: 50%; background: var(--lemon); top: 50%; left: 50%; transform: translate(-50%, -46%); }
.hero-art img { position: relative; width: min(380px, 100%); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.follow-strip { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
.follow-strip .follow-grid { flex: 1 1 520px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
img.brand-icon { object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; border: 1.5px solid transparent; }
.chips a:hover { border-color: var(--line); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.chips .dot { width: 10px; height: 10px; border-radius: 50%; }
.chips .n { color: var(--muted); font-weight: 500; font-size: 14px; }
.chips a[aria-current="page"] .n { color: var(--bg); opacity: .6; }
.quote-day { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.quote-day .copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.quote-day .quote-card { flex: 999 1 460px; min-width: 0; }
.quote-day .sb { max-width: none; margin: 0; }
@media (max-width: 760px) { .hero { padding-top: 32px; } .hero .wrap { gap: 24px; } .hero-art { order: -1; flex-basis: 100%; } .hero-art img { width: 200px; } .hero-art::before { width: 210px; } }


/* ---------- v1.2: logo-style type (wide caps + brush accent) ---------- */
h1, h2, h3, h4, .brand, .yawn .value, .overall .big, .verdict blockquote, .buy-box .name, .qb-brand, .qb h2, .qb-score, .sb-brand, .stat .n { font-variation-settings: "wdth" 125; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.015em; }
.hero h1, .page-hero h1, .section-title, .quiz-banner h2, .signup h2 { font-weight: 900; text-transform: uppercase; line-height: .98; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 6.2vw, 84px); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); }
.section-title { font-size: clamp(28px, 3.6vw, 40px); }
.review-hero h1 { font-weight: 900; text-wrap: balance; }
.brush { font-family: var(--brush); font-weight: 400; font-variation-settings: normal; text-transform: none; letter-spacing: 0; color: var(--orange); display: inline-block; transform: rotate(-2deg); transform-origin: left center; line-height: 1.1; }
.hero h1 .brush { display: block; font-size: .8em; margin-top: .14em; }
.eyebrow, .kicker, .pf-tag, .pill { font-variation-settings: "wdth" 110; }
.btn { font-variation-settings: "wdth" 110; font-weight: 700; }
.main-nav a { font-variation-settings: "wdth" 110; }

/* ---------- v1.3: footer with socials ---------- */
.site-footer .wrap.footer-top { padding-top: 40px; padding-bottom: 28px; align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand img { width: 66px; height: auto; display: block; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-brand .brush { font-size: 17px; transform: rotate(-2deg); }
.footer-find { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-variation-settings: "wdth" 110; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; }
.footer-social a:hover { border-color: var(--line); color: var(--ink); }
.footer-social a.footer-work { background: var(--lemon); color: var(--bg); }
.footer-social a.footer-work:hover { background: #FFE27A; color: var(--bg); border-color: transparent; }
.site-footer .wrap.footer-bottom { border-top: 1px solid var(--chip); padding-top: 18px; padding-bottom: 28px; font-size: 13px; }
.footer-bottom a { color: var(--muted); }

/* ---------- v1.4: motion (page wipe + scroll reveals + painted brush) ---------- */
html { background: var(--bg); }
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) { animation: he-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: he-wipe .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes he-out { to { opacity: 0; translate: 0 -14px; } }
@keyframes he-wipe {
  from { clip-path: polygon(-20% 0, -20% 0, -35% 100%, -35% 100%); }
  to { clip-path: polygon(-20% 0, 135% 0, 120% 100%, -35% 100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .brush, .page-hero h1 .brush { animation: he-paint .75s cubic-bezier(.6, 0, .2, 1) .2s both; }
  .hero-art img { animation: he-pop .7s cubic-bezier(.2, .9, .3, 1.2) .1s both; }
  .hero-art::before { animation: he-grow .6s cubic-bezier(.2, .9, .3, 1.15) both; }
  .lab-me, .pf-portrait { animation: he-pop .7s cubic-bezier(.2, .9, .3, 1.2) .1s both; }
}
@keyframes he-paint { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes he-pop { from { opacity: 0; translate: 0 24px; scale: .92; } }
@keyframes he-grow { from { scale: 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .brand-card, .post-card, .exp, .note, .pf-role, .pf-step, .pf-feature, .pf-grid .brand-card, .quiz-banner, .signup, .lab-rules, .quote-day .quote-card, .stat, .work {
      animation: he-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .section-title, .section-head .eyebrow, .pf-small-title {
      animation: he-slam linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .note:nth-child(odd) { --he-tilt: -2deg; }
    .note:nth-child(even) { --he-tilt: 2deg; }
    .note { animation-name: he-stick; }
  }
}
@keyframes he-rise { from { opacity: 0; translate: 0 44px; scale: .97; } }
@keyframes he-slam { from { opacity: 0; translate: 0 22px; letter-spacing: .06em; } }
@keyframes he-stick { from { opacity: 0; translate: 0 36px; rotate: var(--he-tilt, 0deg); scale: .95; } }

/* ---------- v1.5: Quiz Bojji latest Shorts ---------- */
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 16px; }
.short-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.short-card .thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--card); }
.short-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale .25s ease; }
.short-card:hover .thumb img { scale: 1.04; }
.short-card .play { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.short-card .t { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-card .d { color: var(--muted); font-size: 13px; }
.short-card:hover { color: var(--ink); }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) { .short-card { animation: he-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; } } }

/* ---------- v1.6: Stoic Shorts rail + Quiz Bojji motion ---------- */
.stoic-shorts { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.stoic-shorts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shorts-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(140px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shorts-rail .short-card { scroll-snap-align: start; }
.shorts-rail .short-card .t { font-size: 14px; }
@media (max-width: 760px) { .shorts-rail { grid-auto-columns: 42%; } }

.qb { position: relative; overflow: hidden; }
.qb.is-loading { min-height: 380px; }
.qb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 300px; text-align: center; }
.qb-cards { display: flex; gap: 12px; }
.qb-cards span { width: 56px; height: 76px; border-radius: 14px; background: var(--chip); color: var(--lemon); font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 30px; display: flex; align-items: center; justify-content: center; animation: qb-flip 1.1s cubic-bezier(.5, 0, .3, 1) infinite; animation-delay: calc(var(--i) * .14s); }
.qb-cards span:nth-child(2) { background: var(--coral); color: var(--bg); }
.qb-loading-t { color: var(--muted); font-weight: 600; }
.qb-bar-load { width: 60%; margin: 0; }
.qb-bar-load span { width: 40%; animation: qb-load 1s ease-in-out infinite; }
.qb-bar span { transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.qb-count { display: inline-block; font-variant-numeric: tabular-nums; }
.qb-count.tick { animation: qb-tick .35s ease both; }
.qb-opt { display: flex; align-items: center; gap: 12px; transition: background .2s, border-color .2s, opacity .25s, scale .15s; }
.qb-opt:active:not(:disabled) { scale: .98; }
.qb-key { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; transition: background .2s, color .2s; }
.qb-in h2 { animation: qb-slide .42s cubic-bezier(.2, .8, .2, 1) both; }
.qb-in .qb-opt { animation: qb-slide .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.08s + var(--i, 0) * .06s); }
.qb-out { animation: qb-leave .24s ease-in both; }
.qb-opt.right { animation: qb-pop .4s cubic-bezier(.2, .9, .3, 1.4); }
.qb-opt.wrong { animation: qb-shake .4s ease; }
.qb-opt.right .qb-key { background: var(--good); color: var(--bg); }
.qb-opt.wrong .qb-key { background: var(--coral); color: var(--bg); }
.qb-opt.dim { opacity: .45; }
.qb-fact { opacity: 0; translate: 0 6px; transition: opacity .3s ease, translate .3s ease; }
.qb-fact.show { opacity: 1; translate: 0 0; }
.qb-next.show { animation: qb-up .35s cubic-bezier(.2, .8, .2, 1) both; }
.qb-done.qb-in .qb-score { animation: qb-burst .55s cubic-bezier(.2, .9, .3, 1.3) both; }
.qb-done.qb-in .qb-grid span { animation: qb-sq .35s cubic-bezier(.2, .9, .3, 1.5) both; animation-delay: calc(.35s + var(--i) * .1s); }
.qb-done.qb-in .qb-msg { animation: qb-up .4s .85s both; }
.qb-done.qb-in .qb-late { animation: qb-up .4s 1s both; }
.qb-done.perfect .qb-score { text-shadow: 0 0 24px rgba(255, 210, 63, .45); }
@keyframes qb-flip { 0%, 100% { translate: 0 0; rotate: 0deg; } 40% { translate: 0 -14px; rotate: -8deg; } 60% { translate: 0 -14px; rotate: 8deg; } }
@keyframes qb-load { from { translate: -100% 0; } to { translate: 250% 0; } }
@keyframes qb-tick { from { translate: 0 8px; opacity: 0; } }
@keyframes qb-slide { from { opacity: 0; translate: 32px 0; } }
@keyframes qb-leave { to { opacity: 0; translate: -32px 0; } }
@keyframes qb-pop { 50% { scale: 1.03; } }
@keyframes qb-shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 4px 0; } }
@keyframes qb-up { from { opacity: 0; translate: 0 12px; } }
@keyframes qb-burst { from { opacity: 0; scale: .5; } }
@keyframes qb-sq { from { scale: 0; rotate: -30deg; } }
@media (prefers-reduced-motion: reduce) { .qb, .qb * { animation: none !important; transition: none !important; } }
.stoic-shorts .short-card .play { background: var(--stone); }

/* ---------- v1.7: contact pop-up + share preview ---------- */
.he-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; border: 0; border-radius: 28px; padding: 28px; background: var(--card); color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.he-dialog::backdrop { background: rgba(10, 9, 24, .72); backdrop-filter: blur(4px); }
.he-dialog[open] { animation: he-dlg .35s cubic-bezier(.2, .9, .3, 1.15) both; }
.he-dialog[open]::backdrop { animation: he-fade .25s ease both; }
@keyframes he-dlg { from { opacity: 0; translate: 0 24px; scale: .96; } }
@keyframes he-fade { from { opacity: 0; } }
.he-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.he-dialog h2 { font-size: 30px; font-weight: 900; text-transform: uppercase; line-height: 1; }
.he-dialog h2 .brush { font-size: .9em; }
.he-x { background: var(--chip); color: var(--ink); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
.he-x:hover { background: #352F63; }
.he-contact-form { display: flex; flex-direction: column; gap: 16px; }
.he-contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.he-contact-form .hp { position: absolute; left: -9999px; }
.he-contact-form .input { width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.he-contact-form .input:focus { border-color: var(--lemon); outline: none; }
.he-contact-form textarea.input { resize: vertical; min-height: 120px; }
.he-topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.he-topics .check-pill { flex-direction: row; font-weight: 600; }
.he-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.he-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.he-contact-alt { font-size: 14px; }
.he-contact-status { min-height: 20px; font-size: 14px; color: var(--muted); }
.he-contact-status.is-bad { color: var(--coral); }
.he-contact-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 8px; }
.he-contact-done[hidden] { display: none; }
.he-done-emoji { font-size: 56px; animation: he-dlg .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.he-share { width: min(480px, calc(100% - 32px)); }
.he-share img { width: 100%; height: auto; border-radius: 18px; margin: 12px 0; display: block; }
.he-share .he-contact-actions { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .he-dialog[open], .he-dialog[open]::backdrop, .he-done-emoji { animation: none; } }
.he-contact-form .input { flex: none; height: auto; min-height: 48px; }
