/* ==========================================================================
   Moban 8-10-4 — Editorial Magazine Theme
   Teal (#2E7D74) + Copper (#B0672F), light teal paper (#F0F5F4)
   Serif display headings, 16px radius, soft shadows
   ========================================================================== */

:root {
    --teal: #2E7D74;
    --teal-deep: #1E5B54;
    --teal-ink: #143F3A;
    --copper: #B0672F;
    --copper-bright: #C97B3D;
    --paper: #F0F5F4;
    --paper-warm: #FAF7F2;
    --ink: #22302E;
    --ink-soft: #5A6B68;
    --line: #D8E4E1;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(30, 91, 84, 0.10);
    --shadow-lift: 0 22px 48px rgba(30, 91, 84, 0.18);
    --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
    --font-body: Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
    margin: 0;
    background: var(--paper);
    background-image: radial-gradient(rgba(46, 125, 116, 0.055) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--copper); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--teal-ink);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
}

p { margin: 0 0 1.1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

.site-content { min-height: 40vh; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn-copper {
    background: var(--copper);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(176, 103, 47, 0.35);
}
.btn-copper:hover {
    background: var(--copper-bright);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(176, 103, 47, 0.42);
}

.btn-outline {
    border-color: var(--teal);
    color: var(--teal);
    background: transparent;
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { display: block; text-align: center; }

/* ---------- Masthead / Shrinking Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 24px rgba(30, 91, 84, 0.08);
    transition: box-shadow 0.35s var(--ease);
}

.masthead { transition: all 0.4s var(--ease); }

.masthead-slogan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    transition: all 0.4s var(--ease);
}

.slogan-line {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--copper);
    font-size: 14px;
    letter-spacing: 0.04em;
    min-width: 0;
}

.slogan-main {
    margin: 0;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-deep);
    text-align: center;
    min-width: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
    transition: padding 0.4s var(--ease);
}

.site-logo { min-width: 0; flex-shrink: 0; }

.logo-img {
    max-height: 56px;
    width: auto;
    transition: max-height 0.4s var(--ease);
}

.main-nav { min-width: 0; }

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    color: var(--teal-ink);
    transition: all 0.25s var(--ease);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background: var(--teal);
    color: var(--white);
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login {
    border-color: var(--teal);
    color: var(--teal);
}
.btn-login:hover { background: var(--teal); color: var(--white); }

.btn-register {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(46, 125, 116, 0.3);
}
.btn-register:hover {
    background: var(--teal-deep);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--teal);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 40px;
    cursor: pointer;
    position: relative;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s var(--ease);
}
.nav-toggle-icon { top: 50%; margin-top: -1px; }
.nav-toggle-icon::before { top: -7px; left: 0; }
.nav-toggle-icon::after { top: 7px; left: 0; }

.header-bar-label {
    display: none;
    background: var(--teal);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.header-bar-label .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Shrunk state: big masthead collapses into a slim bar */
.site-header.is-shrunk .masthead-slogan {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
}
.site-header.is-shrunk .header-inner { padding: 8px 0; }
.site-header.is-shrunk .logo-img { max-height: 38px; }
.site-header.is-shrunk .header-bar-label { display: block; }
.site-header.is-shrunk { box-shadow: 0 10px 32px rgba(20, 63, 58, 0.16); }

/* ---------- Poster Banner ---------- */
.poster-banner { padding: 42px 0 10px; }

.poster-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    isolation: isolate;
}

.poster-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transform: scale(1.02);
    animation: posterZoom 14s var(--ease) infinite alternate;
}

@keyframes posterZoom {
    from { transform: scale(1.02) translateX(0); }
    to { transform: scale(1.1) translateX(-1.5%); }
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 14px;
    padding: 40px;
    background: linear-gradient(15deg, rgba(20, 63, 58, 0.92) 22%, rgba(20, 63, 58, 0.35) 60%, rgba(20, 63, 58, 0.05) 100%);
}

.poster-kicker {
    display: inline-block;
    background: var(--copper);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
}

.poster-headline {
    margin: 0;
    color: var(--white);
    font-size: clamp(28px, 4.2vw, 52px);
    max-width: 14ch;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.poster-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    max-width: 52ch;
}

/* ---------- Pull Quote ---------- */
.intro-section { padding: 46px 0 20px; }

.pull-quote {
    position: relative;
    margin: 0 auto;
    max-width: 760px;
    padding: 34px 46px 34px 86px;
    background: var(--white);
    border-left: 6px solid var(--copper);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.quote-mark {
    position: absolute;
    left: 24px;
    top: -14px;
    font-family: var(--font-display);
    font-size: 92px;
    line-height: 1;
    color: var(--copper);
    opacity: 0.85;
}

.quote-text {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(19px, 2.4vw, 26px);
    line-height: 1.5;
    color: var(--teal-ink);
}

.quote-cite {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    font-style: normal;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
}

/* ---------- Two Column Layout ---------- */
.two-col-layout {
    display: grid;
    grid-template-areas: "main side";
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    padding: 34px 0 60px;
}

.main-col { grid-area: main; min-width: 0; }
.sidebar-col { grid-area: side; min-width: 0; }

/* ---------- Section Titles (editorial rule) ---------- */
.section-title {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 12px;
    font-size: 28px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--copper) 0 90px, var(--line) 90px 100%);
    border-radius: 3px;
}
.section-title span { position: relative; z-index: 1; }
.section-title.page-title { font-size: 34px; }

/* ---------- Editor Picks: hover reveal cards ---------- */
.picks-section { margin-bottom: 48px; }

.picks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pick-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pick-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.pick-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.pick-card:hover .pick-img { transform: scale(1.07); }

.pick-veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 63, 58, 0.88), rgba(30, 91, 84, 0.9));
    color: var(--white);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.pick-card:hover .pick-veil,
.pick-card:focus-within .pick-veil {
    opacity: 1;
    transform: translateY(0);
}

.pick-excerpt {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    max-width: 30ch;
}

.pick-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    min-width: 0;
}

.pick-title {
    margin: 0;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pick-score {
    flex-shrink: 0;
    font-weight: 900;
    color: var(--copper);
    background: rgba(176, 103, 47, 0.12);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
}

/* ---------- Long Article List ---------- */
.articles-section { margin-bottom: 48px; }

.article-list { display: flex; flex-direction: column; gap: 20px; }

.article-list-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    min-width: 0;
}
.article-list-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.article-list-link {
    display: grid;
    grid-template-areas: "thumb body";
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
    color: inherit;
}

.article-list-thumb {
    grid-area: thumb;
    overflow: hidden;
    min-width: 0;
}
.article-list-thumb img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.article-list-item:hover .article-list-thumb img { transform: scale(1.06); }

.article-list-content {
    grid-area: body;
    padding: 20px 24px;
    min-width: 0;
}

.article-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 8px;
}

.article-list-title {
    margin: 0 0 8px;
    font-size: 21px;
    transition: color 0.25s var(--ease);
}
.article-list-item:hover .article-list-title { color: var(--teal); }

.article-list-excerpt {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 15px;
}

.article-readmore {
    font-weight: 700;
    font-size: 14px;
    color: var(--teal);
}
.article-list-item:hover .article-readmore { color: var(--copper); }

.no-posts {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    color: var(--ink-soft);
}

.btn-view-all { margin-top: 26px; }

/* ---------- Poster Strip ---------- */
.poster-strip-section { margin-bottom: 20px; }

.poster-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.poster-strip-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.poster-strip-item:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: var(--shadow-lift);
}
.poster-strip-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ---------- Sidebar ---------- */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px;
    margin-bottom: 24px;
}

.widget-title {
    margin-bottom: 16px;
    padding-bottom: 10px;
    font-size: 19px;
    border-bottom: 2px solid var(--line);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 46px;
    height: 2px;
    background: var(--copper);
}

.sidebar-search { display: flex; gap: 8px; }

.search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    background: var(--paper);
    outline: none;
    transition: border-color 0.25s var(--ease);
}
.search-input:focus { border-color: var(--teal); }

.search-btn {
    flex-shrink: 0;
    width: 44px;
    border: none;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    font-size: 15px;
    transition: background 0.25s var(--ease);
}
.search-btn:hover { background: var(--copper); }

/* Ranking list */
.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 12px;
    transition: background 0.25s var(--ease);
    min-width: 0;
}
.rank-item:hover { background: var(--paper); }

.rank-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

.rank-item.rank-top .rank-num {
    background: var(--copper);
    color: var(--white);
}

.rank-thumb {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.rank-info a {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-info a:hover { color: var(--teal); }

.rank-score {
    font-size: 12px;
    font-weight: 700;
    color: var(--copper);
}

.widget-desc {
    font-size: 14px;
    color: var(--ink-soft);
}

.sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-cat-list li + li { margin-top: 6px; }
.sidebar-cat-list a {
    display: block;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--paper);
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
    transition: all 0.25s var(--ease);
}
.sidebar-cat-list a:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateX(4px);
}

/* ---------- Archive Header ---------- */
.archive-header {
    margin: 36px 0 4px;
    padding: 30px 34px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border-left: 6px solid var(--teal);
}

.archive-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--copper);
}

.archive-title {
    margin: 6px 0 0;
    font-size: clamp(26px, 3.4vw, 40px);
}

.archive-desc { color: var(--ink-soft); margin-top: 10px; }

/* ---------- Single / Page ---------- */
.single-article,
.page-article { padding-top: 36px; }

.single-header { margin-bottom: 24px; }

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
    font-weight: 700;
}

.single-title {
    margin: 12px 0 18px;
    font-size: clamp(28px, 3.8vw, 44px);
}

.pull-quote-intro { padding-top: 24px; padding-bottom: 24px; }

.single-thumb {
    margin: 0 0 28px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.single-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 34px 38px;
    font-size: 17px;
}

.single-content h2 { font-size: 26px; margin-top: 1.4em; }
.single-content h3 { font-size: 21px; margin-top: 1.2em; }
.single-content blockquote {
    margin: 1.6em 0;
    padding: 18px 26px;
    border-left: 5px solid var(--copper);
    background: var(--paper);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--teal-ink);
}
.single-content img { border-radius: 12px; }
.single-content ul, .single-content ol { padding-left: 1.4em; }
.single-content a { text-decoration: underline; text-underline-offset: 3px; }

.page-links {
    margin-top: 24px;
    font-weight: 700;
    color: var(--teal);
}

.single-cta {
    margin-top: 30px;
    padding: 30px 34px;
    border-radius: var(--radius);
    background: linear-gradient(120deg, var(--teal-deep), var(--teal));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-soft);
}
.cta-text {
    margin: 0;
    font-family: var(--font-display);
    font-size: 19px;
}

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin: 30px 0 10px;
}
.post-nav-prev, .post-nav-next {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 16px 20px;
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
}
.post-nav-next { text-align: right; }

/* Pagination */
.pagination-nav { margin-top: 30px; text-align: center; }
.pagination-nav .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination-nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    font-size: 14px;
}
.pagination-nav .page-numbers.current {
    background: var(--teal);
    color: var(--white);
}
.pagination-nav .page-numbers:hover { background: var(--copper); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 30px;
    background: var(--teal-ink);
    color: rgba(240, 245, 244, 0.82);
    border-top: 6px solid var(--copper);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 50px 0 30px;
}

.footer-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(240, 245, 244, 0.18);
    font-size: 18px;
}
.footer-widget a { color: rgba(240, 245, 244, 0.82); }
.footer-widget a:hover { color: var(--copper-bright); }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 26px;
    padding: 22px 0;
    border-top: 1px solid rgba(240, 245, 244, 0.14);
    font-size: 14px;
}
.footer-nav a { color: rgba(240, 245, 244, 0.9); font-weight: 500; }
.footer-nav a:hover { color: var(--copper-bright); }

.footer-bottom {
    padding: 26px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(240, 245, 244, 0.14);
}

.disclaimer-text {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(240, 245, 244, 0.7);
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .poster-img { animation: none; }
    .scroll-reveal { opacity: 1; transform: none; transition: none; }
}
