:root {
    --fj-bg: #25231f;
    --fj-panel: #35312a;
    --fj-panel-hover: #454037;
    --fj-text: #f3efe5;
    --fj-soft: #cbc4b6;
    --fj-muted: #979184;
    --fj-line: #44453d;
    --fj-coral: #dd7950;
    --fj-sage: #aab783;
    --fj-width: 1040px;
}

* { box-sizing: border-box; }
html { background: var(--fj-bg); }
body.fj-body { background: var(--fj-bg); color: var(--fj-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; }
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
#codex-browser-sidebar-comments-root { display: none !important; }
a { color: inherit; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.fj-container { margin: 0 auto; max-width: var(--fj-width); padding-left: 20px; padding-right: 20px; width: 100%; }
.fj-main { min-height: 54vh; }

/* Header */
.fj-header { background: #2a2924; border-bottom: 1px solid var(--fj-line); position: relative; z-index: 20; }
.fj-header-inner { align-items: center; display: flex; gap: 24px; margin: 0 auto; max-width: 1220px; min-height: 66px; padding: 0 24px; }
.fj-brand { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.fj-logo { color: var(--fj-text); font-size: 21px; font-weight: 720; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.fj-logo b { color: var(--fj-coral); }
.fj-navigation { align-items: center; display: flex; flex: 1 1 auto; gap: 2px; min-width: 0; overflow: hidden; }
.fj-navigation a { color: #d6d0c4; flex: 0 0 auto; font-size: 14px; padding: 24px 9px; text-decoration: none; }
.fj-navigation a:hover { color: var(--fj-coral); }
.fj-search { align-items: center; background: #2b2c26; border: 1px solid #4a4b42; border-radius: 4px; display: flex; flex: 0 0 190px; height: 38px; padding: 0 8px 0 11px; }
.fj-search:focus-within { border-color: var(--fj-coral); }
.fj-search input { background: transparent; border: 0; color: var(--fj-text); font: inherit; font-size: 13px; min-width: 0; outline: 0; width: 100%; }
.fj-search input::placeholder { color: var(--fj-muted); }
.fj-search button { background: transparent; border: 0; color: var(--fj-soft); cursor: pointer; font-size: 23px; height: 28px; line-height: 1; padding: 0; width: 28px; }
.fj-search button:hover { color: var(--fj-coral); }
.fj-menu-toggle { display: none; }

/* Heading and discovery */
.fj-intro { background: #3a352f; border-bottom: 1px solid var(--fj-line); padding: 41px 0 35px; }
.fj-eyebrow { color: var(--fj-sage); font-size: 11px; font-weight: 700; letter-spacing: .13em; margin: 0 0 11px; text-transform: uppercase; }
.fj-intro h1, .fj-page-heading h1, .fj-article h1, .fj-not-found h1 { color: var(--fj-text); font-size: 37px; font-weight: 680; letter-spacing: 0; line-height: 1.25; margin: 0; }
.fj-intro h1 { text-align: center; }
.fj-intro p:not(.fj-eyebrow) { color: var(--fj-soft); font-size: 15px; line-height: 1.75; margin: 11px auto 0; max-width: 760px; text-align: center; }
.fj-topic-nav { border-bottom: 1px solid var(--fj-line); padding: 23px 0; }
.fj-topic-nav > div:first-child { align-items: baseline; display: flex; gap: 12px; }
.fj-topic-nav strong { color: var(--fj-text); font-size: 17px; font-weight: 650; }
.fj-topic-nav span { color: var(--fj-muted); font-size: 13px; }
.fj-topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.fj-topic-links a { border: 1px solid #505148; border-radius: 3px; color: #d5cfc3; font-size: 13px; padding: 7px 12px; text-decoration: none; }
.fj-topic-links a:hover, .fj-topic-links a[aria-current="page"] { background: #36372f; border-color: var(--fj-coral); color: var(--fj-text); }

/* Feed */
.fj-feed { padding: 11px 0 45px; }
.fj-card { margin: 0; padding: 9px 0; }
.fj-card-link { background: var(--fj-panel); border: 1px solid #46473e; border-radius: 5px; display: block; height: 245px; overflow: hidden; position: relative; text-decoration: none; }
.fj-card-link > img { filter: brightness(.78) saturate(.9); height: 100%; inset: 0; object-fit: cover; position: absolute; transition: filter .22s ease, transform .32s ease; width: 100%; }
.fj-card-link > img[src*="card-placeholder"] { filter: none; }
.fj-card-link:hover > img { filter: brightness(.9) saturate(1); transform: scale(1.025); }
.fj-card-link:hover > img[src*="card-placeholder"] { filter: brightness(1.04); }
.fj-card-overlay { align-items: flex-end; background: rgba(18, 18, 16, .08); bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; left: 0; padding: 27px 29px; position: absolute; right: 0; top: 0; }
.fj-card-category { display: none; }
.fj-card h2 { color: #fff; font-size: 21px; font-weight: 650; line-height: 1.42; margin: 5px 0 0; max-width: 800px; text-align: left; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); width: 100%; }
.fj-card-overlay > p { color: #e3ded3; display: -webkit-box; font-size: 13px; line-height: 1.55; margin: 7px 0 0; max-width: 730px; overflow: hidden; text-align: left; text-shadow: 0 1px 9px rgba(0, 0, 0, .75); width: 100%; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.fj-card-meta { color: #d2cbbe; display: flex; font-size: 12px; gap: 7px; margin-top: 9px; width: 100%; }
.fj-empty { border: 1px solid var(--fj-line); color: var(--fj-soft); margin: 20px 0; padding: 24px; }

/* Archive and search */
.fj-archive { padding-top: 35px; }
.fj-page-heading { border-bottom: 1px solid var(--fj-line); padding-bottom: 22px; }
.fj-page-heading h1 { font-size: 31px; }
.fj-page-heading > p:not(.fj-eyebrow) { color: var(--fj-soft); font-size: 15px; line-height: 1.8; margin: 10px 0 0; max-width: 780px; }
.fj-archive .fj-topic-nav { margin-bottom: 8px; }
.fj-pagination { margin: 31px 0 4px; }
.fj-pagination ul { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.fj-pagination a, .fj-pagination span { align-items: center; border: 1px solid #53544b; border-radius: 3px; color: var(--fj-text); display: inline-flex; font-size: 13px; justify-content: center; min-height: 38px; min-width: 38px; padding: 0 12px; text-decoration: none; }
.fj-pagination .current, .fj-pagination a:hover { background: var(--fj-coral); border-color: var(--fj-coral); color: #fff; }

/* Article */
.fj-article { max-width: 790px; padding-bottom: 55px; padding-top: 48px; }
.fj-article-header { border-bottom: 1px solid var(--fj-line); padding-bottom: 18px; }
.fj-article h1 { font-size: 35px; }
.fj-article-header .fj-eyebrow, .fj-article-header .fj-eyebrow a { color: var(--fj-coral); font-size: 12px; letter-spacing: 0; text-decoration: none; text-transform: none; }
.fj-article-meta { color: var(--fj-muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 7px; margin-top: 15px; }
.fj-content { color: #e2ddd2; font-size: 17px; line-height: 2.02; padding-top: 26px; }
.fj-content > * { max-width: 100%; }
.fj-content p { margin: 0 0 1.45em; overflow-wrap: anywhere; }
.fj-content h2, .fj-content h3 { border-left: 3px solid var(--fj-coral); color: var(--fj-text); font-size: 23px; font-weight: 650; line-height: 1.4; margin: 2.15em 0 .9em; padding-left: 12px; }
.fj-content h3 { font-size: 20px; }
.fj-content a { color: var(--fj-sage); }
.fj-content img { border-radius: 3px; display: block; height: auto; margin: 1.55em auto; max-width: 100%; }
.fj-content iframe, .fj-content video, .fj-content embed, .fj-content object { max-width: 100%; }
.fj-content .dplayer { margin: 1.5em 0; max-width: 100%; width: 100%; }
.fj-content blockquote { border-left: 2px solid var(--fj-sage); color: var(--fj-soft); margin: 1.7em 0; padding: 0 0 0 17px; }
.fj-content table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; }
.fj-content td, .fj-content th { border: 1px solid var(--fj-line); padding: 8px; }
.fj-article-footer { border-top: 1px solid var(--fj-line); margin-top: 34px; padding-top: 20px; }
.fj-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fj-tags a { border: 1px solid #505148; border-radius: 3px; color: var(--fj-soft); font-size: 13px; padding: 5px 9px; text-decoration: none; }
.fj-post-nav { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; margin-top: 25px; }
.fj-post-nav span { min-width: 0; }
.fj-post-nav span:last-child { text-align: right; }
.fj-post-nav a { color: var(--fj-soft); font-size: 14px; line-height: 1.6; text-decoration: none; }
.fj-post-nav a:hover { color: var(--fj-coral); }

/* Comments */
.fj-article .comments-area { border-top: 1px solid var(--fj-line); margin-top: 36px; padding-top: 25px; }
.fj-article .comments-title, .fj-article .comment-reply-title { color: var(--fj-text); font-size: 19px; }
.fj-article .comment-list { list-style: none; margin: 0; padding: 0; }
.fj-article .comment-body { border-bottom: 1px solid #393a34; padding: 16px 0; }
.fj-article .comment-metadata, .fj-article .comment-metadata a, .fj-article .reply a { color: var(--fj-muted); font-size: 12px; }
.fj-article .comment-content { color: var(--fj-soft); font-size: 14px; line-height: 1.8; }
.fj-article input, .fj-article textarea { background: #252621; border: 1px solid #505148; border-radius: 3px; color: var(--fj-text); font: inherit; max-width: 100%; padding: 10px; width: 100%; }
.fj-article textarea { min-height: 130px; }
.fj-article .submit { background: var(--fj-coral); border: 0; color: #fff; cursor: pointer; font-size: 14px; padding: 10px 17px; width: auto; }

/* Footer */
.fj-footer { background: #2a2924; border-top: 1px solid var(--fj-line); padding: 37px 0 20px; }
.fj-footer-inner { display: flex; gap: 70px; justify-content: space-between; margin: 0 auto; max-width: var(--fj-width); padding: 0 20px; }
.fj-footer-inner > div { max-width: 380px; }
.fj-footer p { color: var(--fj-muted); font-size: 13px; line-height: 1.75; margin: 12px 0 0; }
.fj-footer nav { display: flex; flex-wrap: wrap; gap: 11px 20px; justify-content: flex-end; max-width: 430px; }
.fj-footer nav a { color: #d2ccbf; font-size: 13px; text-decoration: none; }
.fj-footer nav a:hover { color: var(--fj-coral); }
.fj-copyright { border-top: 1px solid #393a34; margin: 29px 20px 0 !important; padding-top: 17px; text-align: center; }
.fj-not-found { min-height: 420px; padding-bottom: 80px; padding-top: 75px; }
.fj-not-found p { color: var(--fj-soft); }
.fj-not-found > a { background: var(--fj-coral); color: #fff; display: inline-block; font-size: 14px; margin-top: 12px; padding: 10px 15px; text-decoration: none; }

@media (max-width: 920px) {
    .fj-header-inner { gap: 15px; padding: 0 16px; }
    .fj-navigation a { padding-left: 7px; padding-right: 7px; }
    .fj-search { flex-basis: 166px; width: 166px; }
}

@media (max-width: 767px) {
    .fj-header-inner { flex-wrap: wrap; min-height: 58px; padding: 0 15px; position: relative; }
    .fj-brand { height: 58px; align-items: center; }
    .fj-logo { font-size: 19px; }
    .fj-menu-toggle { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; flex: 0 0 34px; flex-direction: column; gap: 4px; height: 34px; justify-content: center; margin-left: auto; padding: 0; width: 34px; }
    .fj-menu-toggle span { background: #ded8cc; display: block; height: 2px; width: 20px; }
    .fj-navigation { background: #252620; border-bottom: 1px solid var(--fj-line); display: none; flex: 0 0 calc(100% + 30px); flex-wrap: wrap; margin: 0 -15px; max-height: 60vh; overflow-y: auto; order: 3; padding: 8px 15px 14px; }
    .fj-navigation.is-open { display: flex; }
    .fj-navigation a { border-bottom: 1px solid #393a34; flex: 0 0 50%; font-size: 14px; padding: 13px 6px; }
    .fj-search { flex: 0 0 100%; height: 38px; margin: -4px 0 12px; order: 2; width: 100%; }
    .fj-intro { padding: 27px 0 24px; }
    .fj-intro h1, .fj-page-heading h1, .fj-not-found h1 { font-size: 27px; }
    .fj-intro p:not(.fj-eyebrow) { font-size: 13px; line-height: 1.65; }
    .fj-container { padding-left: 15px; padding-right: 15px; }
    .fj-topic-nav { padding: 19px 0; }
    .fj-topic-nav > div:first-child { display: block; }
    .fj-topic-nav span { display: block; margin-top: 4px; }
    .fj-topic-links { gap: 7px; }
    .fj-topic-links a { font-size: 12px; padding: 7px 10px; }
    .fj-feed { padding-bottom: 32px; }
    .fj-card { padding: 8px 0; }
    .fj-card-link { height: 205px; }
    .fj-card-overlay { padding: 17px 16px; }
    .fj-card h2 { font-size: 17px; }
    .fj-card-overlay > p { display: none; }
    .fj-archive { padding-top: 25px; }
    .fj-page-heading { padding-bottom: 17px; }
    .fj-page-heading > p:not(.fj-eyebrow) { font-size: 14px; }
    .fj-article { padding-bottom: 40px; padding-top: 29px; }
    .fj-article h1 { font-size: 25px; }
    .fj-content { font-size: 16px; line-height: 1.92; padding-top: 22px; }
    .fj-content h2 { font-size: 21px; }
    .fj-post-nav { grid-template-columns: 1fr; }
    .fj-post-nav span:last-child { text-align: left; }
    .fj-footer { padding-top: 28px; }
    .fj-footer-inner { display: block; padding: 0 15px; }
    .fj-footer nav { justify-content: flex-start; margin-top: 23px; }
    .fj-copyright { margin-left: 15px !important; margin-right: 15px !important; }
}
