/*
Theme Name: Chin Chin
Description: Editorial magazine theme — food, fashion, design.
Version: 9.0
*/

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Libre Franklin', sans-serif;
    background: #fff; color: #111;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── HEADER ── */
.cc-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; transition: transform 0.35s ease;
}
.cc-header.hidden { transform: translateY(-100%); }
.cc-logo-bar { display: flex; justify-content: center; align-items: center; padding: 12px 20px 0; }
.cc-logo-link { display: block; width: 100%; }
.cc-logo-img { width: 100%; height: auto; display: block; }
.cc-logo-text {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 5.5vw, 76px);
    letter-spacing: clamp(6px, 1.5vw, 18px);
    color: #24072f; font-weight: 400; text-decoration: none;
}
.cc-scatter-nav {
    position: relative; height: 56px;
    max-width: 960px; margin: 2px auto 0; padding: 0 40px;
}
.cc-nav-word {
    font-size: clamp(9px, 1.2vw, 14px);
    letter-spacing: 3px; text-transform: uppercase;
    color: #24072f; opacity: 0.4; position: absolute;
    transition: opacity 0.3s;
}
.cc-nav-word:hover { opacity: 1; }
.cc-nav-word.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.cc-nav-aperitif   { left: 3%; top: 0; }
.cc-nav-digestif   { left: 25%; top: 28px; }
.cc-nav-provisions { left: 44%; top: 8px; }
.cc-nav-about      { left: 72%; top: 0; }
.cc-nav-surprise   { left: 58%; top: 32px; }

/* ── MAIN ── */
.cc-main { padding-top: 0; }

/* ── EDITORIAL GRID (12-col) ── */
.cc-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
}

/* ── GRADIENT OVERLAY ── */
.cc-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 45%, transparent 100%);
    pointer-events: none;
}

/* ── COLORS ── */
.cc-aperitif { background: #4e5801; }
.cc-digestif { background: #24072f; }

/* ── CATEGORY LABEL ── */
.cc-lbl {
    font-family: 'Instrument Serif', serif;
    font-style: italic; font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
    text-transform: lowercase;
}

/* ── CARD TITLE ── */
.cc-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #fff; line-height: 1.4;
}
.cc-title-xs {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px; font-weight: 500;
    color: #fff; line-height: 1.4; letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   FEATURED — image (8col) + text (4col)
   ══════════════════════════════════════ */
.cc-feat-img {
    grid-column: span 8; height: 520px;
    position: relative; overflow: hidden;
    outline: 0.5px solid rgba(255,255,255,0.3);
}
.cc-feat-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25,0.1,0.25,1);
}
.cc-feat-img:hover img { transform: scale(1.03); }

a.cc-feat-txt, div.cc-feat-txt, .cc-feat-txt {
    grid-column: span 4; height: 520px;
    padding: 40px 36px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    outline: 0.5px solid rgba(255,255,255,0.3);
    text-decoration: none; color: inherit;
}
.cc-feat-txt-top { text-align: right; }
.cc-feat-label {
    font-family: 'Instrument Serif', serif;
    font-style: italic; font-size: 12px;
    color: rgba(255,255,255,0.35); margin-bottom: 4px;
}
.cc-feat-cta {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,0.6); letter-spacing: 2px;
}
.cc-feat-txt h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 400; color: #fff; line-height: 1.2;
    margin-bottom: 14px;
}
.cc-feat-txt p {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 14px; color: rgba(255,255,255,0.45);
    line-height: 1.7;
}

/* ══════════════════════════════════════
   FULL BLEED CARD — 4col, tall
   ══════════════════════════════════════ */
.cc-bleed {
    grid-column: span 4; height: 680px;
    position: relative; overflow: hidden;
    outline: 0.5px solid rgba(255,255,255,0.3);
}
.cc-bleed img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25,0.1,0.25,1);
}
.cc-bleed:hover img { transform: scale(1.04); }
.cc-bleed-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 28px 28px 36px;
}

/* ══════════════════════════════════════
   SPLIT CARD — image + pullquote
   ══════════════════════════════════════ */
.cc-split {
    grid-column: span 4; height: 680px;
    display: flex; flex-direction: column;
    outline: 0.5px solid rgba(255,255,255,0.3);
}
.cc-split-img { flex: 1; position: relative; overflow: hidden; }
.cc-split-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25,0.1,0.25,1);
}
.cc-split:hover .cc-split-img img { transform: scale(1.04); }
.cc-split-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 20px 24px 28px;
}
.cc-split-quote {
    height: 180px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 24px 32px; text-align: center;
}
.cc-split-quote p {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 13px;
    line-height: 1.6; color: rgba(255,255,255,0.55);
    max-width: 280px;
}
.cc-split-cta {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,0.6); letter-spacing: 2px;
    margin-top: 10px; text-align: center;
}

/* Short split variant */
.cc-split.cc-short { height: 560px; }
.cc-split.cc-short .cc-split-quote { height: 150px; padding: 20px 28px; }
.cc-split.cc-short .cc-split-quote p { font-size: 13px; }

/* ══════════════════════════════════════
   PADDED CARD — image with border-radius
   ══════════════════════════════════════ */
.cc-padded {
    grid-column: span 4; height: 560px;
    padding: 28px 28px 40px;
    display: flex; flex-direction: column;
    outline: 0.5px solid rgba(255,255,255,0.3);
}
.cc-padded-img { flex: 1; overflow: hidden; border-radius: 5px; }
.cc-padded-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s ease;
}
.cc-padded:hover .cc-padded-img img { transform: scale(1.04); }
.cc-padded-bot { padding-top: 14px; }

/* ══════════════════════════════════════
   ASYMMETRIC — 7col + 5col
   ══════════════════════════════════════ */
.cc-asym-wide {
    grid-column: span 7; height: 480px;
    padding: 28px 28px 40px;
    display: flex; flex-direction: column;
    outline: 0.5px solid rgba(255,255,255,0.3);
}
.cc-asym-narrow {
    grid-column: span 5; height: 480px;
    padding: 28px 28px 40px;
    display: flex; flex-direction: column;
    outline: 0.5px solid rgba(255,255,255,0.3);
}
.cc-asym-wide .cc-padded-img,
.cc-asym-narrow .cc-padded-img { flex: 1; overflow: hidden; border-radius: 5px; }
.cc-asym-wide .cc-padded-img img,
.cc-asym-narrow .cc-padded-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s ease;
}
.cc-asym-wide:hover .cc-padded-img img,
.cc-asym-narrow:hover .cc-padded-img img { transform: scale(1.03); }

/* ══════════════════════════════════════
   FILTER
   ══════════════════════════════════════ */
.cc-hidden { display: none !important; }

/* ══════════════════════════════════════
   SUBSTACK
   ══════════════════════════════════════ */
.cc-substack { padding: 48px 28px; background: #fff; text-align: center; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.cc-footer {
    padding: 24px 40px; display: flex;
    justify-content: space-between; background: #fff;
}
.cc-footer span {
    font-size: 9px; color: rgba(0,0,0,0.2);
    letter-spacing: 1px; text-transform: uppercase;
    font-family: 'Libre Franklin', sans-serif;
}

/* ══════════════════════════════════════
   ARTICLE (single.php)
   ══════════════════════════════════════ */
.cc-article { padding-top: 40px; max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; padding-bottom: 60px; }
.cc-article-hero { width: 100%; max-height: 520px; object-fit: cover; border-radius: 6px; margin-bottom: 32px; display: block; margin-left: auto; margin-right: auto; }
.cc-article-label {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 12px; letter-spacing: 1.5px; margin-bottom: 12px;
    text-transform: lowercase;
}
.cc-article-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 4vw, 48px);
    color: #24072f; line-height: 1.15; margin-bottom: 32px;
}
.cc-article-body { font-family: 'Libre Franklin', sans-serif; font-size: 16px; line-height: 1.8; color: #333; }
.cc-article-body p { margin-bottom: 1.5em; }
.cc-article-body h2, .cc-article-body h3 {
    font-family: 'Instrument Serif', serif; color: #24072f;
    margin: 2em 0 0.75em; line-height: 1.3;
}
.cc-article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 2em auto; display: block; }
.cc-article-body blockquote {
    border-left: 2px solid #24072f; padding: 8px 0 8px 20px;
    margin: 2em 0; font-style: italic; color: #555;
}
.cc-article-body a { color: #24072f; text-decoration: underline; text-underline-offset: 3px; }
.cc-article-body .wp-block-image { margin: 2em 0; }
.cc-article-body .wp-block-image img { border-radius: 6px; margin: 0 auto; display: block; }

/* ══════════════════════════════════════
   PAGE (page.php)
   ══════════════════════════════════════ */
.cc-page { padding-top: 40px; max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; padding-bottom: 60px; }
.cc-page-body { font-family: 'Libre Franklin', sans-serif; font-size: 16px; line-height: 1.8; color: #333; }
.cc-page-body p { margin-bottom: 1.5em; }
.cc-page-body h2, .cc-page-body h3 {
    font-family: 'Instrument Serif', serif; color: #24072f;
    margin: 1.5em 0 0.75em; line-height: 1.3;
}
.cc-page-body a { color: #24072f; text-decoration: underline; text-underline-offset: 3px; }

/* ══════════════════════════════════════
   HAMBURGER + MOBILE NAV
   ══════════════════════════════════════ */
.cc-hamburger {
    display: none; position: relative;
    width: 32px; height: 24px; background: none; border: none;
    cursor: pointer; z-index: 200; padding: 0;
    flex-direction: column; justify-content: center; gap: 7px;
    margin: 0 20px 8px auto;
}
.cc-hamburger span {
    display: block; width: 100%; height: 1.5px;
    background: #24072f; transition: all 0.3s ease;
}
.cc-hamburger.open span:first-child {
    transform: translateY(4.25px) rotate(45deg);
}
.cc-hamburger.open span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
}

.cc-mobile-nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97); z-index: 150;
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none;
}
.cc-mobile-nav.open {
    opacity: 1; pointer-events: all;
}

.cc-mobile-scatter {
    position: relative; width: 100%; height: 100%;
}
.cc-mob-word {
    position: absolute;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
    color: #24072f; opacity: 0.5; text-decoration: none;
    transition: opacity 0.3s;
}
.cc-mob-word:hover, .cc-mob-word:active { opacity: 1; }

/* Scattered positions */
.cc-mob-1 { left: 12%; top: 28%; }
.cc-mob-2 { right: 15%; top: 38%; }
.cc-mob-3 { left: 20%; top: 52%; }
.cc-mob-4 { right: 22%; top: 62%; }
.cc-mob-5 { left: 30%; top: 75%; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .cc-grid { grid-template-columns: repeat(6, 1fr); }
    .cc-main { padding-top: 0; }
    .cc-article { padding-top: 40px; }
    .cc-page { padding-top: 40px; }
    .cc-feat-img { grid-column: span 6; height: 400px; }
    .cc-feat-txt { grid-column: span 6; height: auto; padding: 32px; }
    .cc-bleed { grid-column: span 3; height: 520px; }
    .cc-split { grid-column: span 6; height: 400px; flex-direction: row; }
    .cc-split-img { flex: 1; }
    .cc-split-quote { height: auto; flex: 0 0 220px; }
    .cc-split.cc-short { grid-column: span 3; height: 460px; flex-direction: column; }
    .cc-split.cc-short .cc-split-quote { height: 130px; flex: none; }
    .cc-padded { grid-column: span 3; height: 460px; }
    .cc-asym-wide { grid-column: span 3; height: 400px; }
    .cc-asym-narrow { grid-column: span 3; height: 400px; }
}
@media (max-width: 768px) {
    .cc-scatter-nav { display: none; }
    .cc-hamburger { display: flex; }
    .cc-mobile-nav { display: block; }
    .cc-header { position: sticky; }
    .cc-grid { grid-template-columns: repeat(2, 1fr); }
    .cc-main { padding-top: 0; }
    .cc-article { padding-top: 40px; }
    .cc-page { padding-top: 40px; }
    .cc-feat-img { grid-column: span 2; height: 300px; }
    .cc-feat-txt { grid-column: span 2; }
    .cc-bleed { grid-column: span 1; height: 420px; }
    .cc-split { grid-column: span 2; height: auto; flex-direction: column; }
    .cc-split-img { height: 320px; flex: none; }
    .cc-split-quote { height: auto; flex: none; padding: 20px 24px; }
    .cc-split.cc-short { grid-column: span 1; height: auto; }
    .cc-split.cc-short .cc-split-img { height: 240px; }
    .cc-split.cc-short .cc-split-quote { height: auto; padding: 16px 20px; }
    .cc-padded { grid-column: span 1; height: 380px; }
    .cc-asym-wide, .cc-asym-narrow { grid-column: span 2; height: 360px; }
}
@media (max-width: 480px) {
    .cc-nav-word { font-size: 9px !important; letter-spacing: 1.5px !important; }
    .cc-scatter-nav { height: 70px !important; min-height: 70px !important; padding: 0 16px !important; }
    .cc-logo-text { font-size: 28px !important; letter-spacing: 5px !important; }
}