/*
Theme Name: Style Muse
Version: 1.0.0
Description: High-fashion editorial blog inspired by Vogue & The Blonde Salad. Full-bleed hero imagery, masonry card grid, bold sans-serif headlines, color-coded categories, trendy and image-first.
License: GPL v2 or later
Text Domain: style-muse
*/

/* ===== Variables ===== */
:root {
    --bg: #FAF7F2;
    --bg-alt: #F1EBE3;
    --text: #1A1A1A;
    --text-muted: #7A7368;
    --accent: #A3322B;
    --accent-hover: #7A251F;
    --border: #E8E1D8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Jost', 'Helvetica Neue', sans-serif;
    --font-ui: 'Jost', 'Helvetica Neue', sans-serif;
    --max-width: 1400px;
    --content-width: 760px;
}


/* ===== Brand logo size (P3 s2: ComfyUI logo 250px, mobile 160px) ===== */
.sm-logo .custom-logo, .sm-logo img{width:250px !important;height:auto !important;max-width:250px !important}
.sm-footer__logo img, .sm-footer__logo .custom-logo{width:250px !important;height:auto !important;max-width:250px !important}
.sm-logo{display:inline-block;width:auto !important}
.sm-logo a{display:inline-block !important;width:auto !important}
@media (max-width:600px){
  .sm-logo .custom-logo, .sm-logo img, .sm-footer__logo img{width:160px !important;max-width:160px !important}
}


/* ===== Background system (P3 s8: 杂志网格感 newsletter 背景,半透明暖白遮罩保证可读) ===== */
.sm-newsletter{background:linear-gradient(rgba(250,247,242,.90),rgba(250,247,242,.92)),url('https://dailyeditstudio.com/wp-content/uploads/2026/08/bg_Fashion_20260809_62205_00001_.webp') center/cover no-repeat}
.sm-newsletter__inner{max-width:560px;margin:0 auto}

/* ===== Reset ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{font-family:var(--font-body);font-size:1.0625rem;line-height:1.7;color:var(--text);background:var(--bg);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer}

/* ===== Header ===== */
.sm-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.sm-header__inner{max-width:var(--max-width);margin:0 auto;padding:0 32px;height:64px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.sm-logo{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;letter-spacing:2px;text-transform:uppercase}
.sm-logo:hover{color:var(--accent)}
.sm-nav{display:flex;gap:4px;align-items:center}
.sm-nav a{font-family:var(--font-ui);font-size:.68rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--text-muted);padding:8px 14px;transition:all .2s}
.sm-nav a:hover{color:var(--accent)}
.sm-nav__search{font-size:1rem;color:var(--text);padding:8px 10px}

/* ===== Hero ===== */
.sm-hero{position:relative;height:78vh;min-height:520px;overflow:hidden;color:#fff}
.sm-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform 1.2s cubic-bezier(.25,.46,.45,.94)}
.sm-hero:hover .sm-hero__bg{transform:scale(1.03)}
.sm-hero__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,.2) 55%,transparent)}
.sm-hero__content{position:absolute;bottom:0;left:0;right:0;padding:64px 48px 56px;max-width:var(--max-width);margin:0 auto}
.sm-hero__cat{display:inline-block;font-family:var(--font-ui);font-size:.7rem;font-weight:600;letter-spacing:2.5px;text-transform:uppercase;background:var(--accent);padding:6px 16px;border-radius:2px;margin-bottom:18px}
.sm-hero__title{font-family:var(--font-heading);font-size:3.4rem;font-weight:700;line-height:1.08;letter-spacing:-1px;margin-bottom:16px;max-width:800px}
.sm-hero__excerpt{font-size:1.1rem;color:rgba(255,255,255,.85);max-width:600px;line-height:1.6}

/* ===== Category Pill Bar ===== */
.sm-cats{max-width:var(--max-width);margin:0 auto;padding:28px 32px 0;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.sm-cat-pill{font-family:var(--font-ui);font-size:.7rem;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;padding:8px 20px;border:1px solid var(--border);border-radius:24px;color:var(--text-muted);transition:all .25s}
.sm-cat-pill:hover{color:var(--accent);border-color:var(--accent)}

/* ===== Masonry Grid ===== */
.sm-feed{max-width:var(--max-width);margin:0 auto;padding:40px 32px 32px}
.sm-feed__title{font-family:var(--font-ui);font-size:.72rem;font-weight:600;letter-spacing:2.5px;text-transform:uppercase;color:var(--text-muted);text-align:center;margin-bottom:32px}
.sm-feed__title span{display:inline-block;padding-bottom:10px;border-bottom:2px solid var(--text)}
.sm-masonry{columns:3;column-gap:20px}
.sm-card{break-inside:avoid;margin-bottom:20px;position:relative;overflow:hidden;border-radius:4px;background:var(--bg-alt)}
.sm-card__img{width:100%;transition:transform .6s cubic-bezier(.25,.46,.45,.94)}
.sm-card:hover .sm-card__img{transform:scale(1.05)}
.sm-card__body{padding:18px 18px 22px}
.sm-card__cat{font-family:var(--font-ui);font-size:.62rem;font-weight:600;letter-spacing:1.8px;text-transform:uppercase;color:var(--accent);margin-bottom:8px;display:inline-block}
.sm-card__title{font-family:var(--font-heading);font-size:1.25rem;font-weight:700;line-height:1.3;margin-bottom:8px;transition:color .2s}
.sm-card__title:hover{color:var(--accent)}
.sm-card__meta{font-family:var(--font-ui);font-size:.7rem;color:var(--text-muted);letter-spacing:.5px}

/* ===== Load More ===== */
.sm-loadmore-wrap{text-align:center;padding:48px 0 64px}
.sm-loadmore{font-family:var(--font-ui);font-size:.72rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;background:var(--text);color:#fff;border:none;padding:16px 56px;transition:opacity .2s}
.sm-loadmore:hover{opacity:.85}


/* ===== Author strip (P3 s3: E-E-A-T 作者条) ===== */
.sm-author{padding:64px 24px;background:var(--bg);border-top:1px solid var(--border)}
.sm-author__inner{max-width:760px;margin:0 auto;display:flex;gap:32px;align-items:center}
.sm-author__avatar{width:120px;height:120px;border-radius:50%;object-fit:cover;flex-shrink:0}
.sm-author__name{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;margin-bottom:8px}
.sm-author__bio{color:var(--text-muted);font-size:.95rem;line-height:1.7;margin-bottom:12px}
.sm-author__link{font-family:var(--font-ui);font-size:.75rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent)}
.sm-author__link:hover{color:var(--accent-hover)}
@media (max-width:600px){.sm-author__inner{flex-direction:column;text-align:center;gap:20px}}

/* ===== Newsletter ===== */
.sm-newsletter{background:var(--bg-alt);padding:72px 24px;text-align:center}
.sm-newsletter__inner{max-width:560px;margin:0 auto}
.sm-newsletter__title{font-family:var(--font-heading);font-size:2rem;font-weight:700;margin-bottom:12px}
.sm-newsletter__desc{color:var(--text-muted);font-size:.95rem;margin-bottom:28px}
.sm-newsletter__form{display:flex;gap:8px}
.sm-newsletter__input{flex:1;padding:15px 20px;border:1px solid var(--border);background:var(--bg);font-size:.95rem}
.sm-newsletter__input:focus{outline:none;border-color:var(--text)}
.sm-newsletter__btn{padding:15px 32px;background:var(--accent);color:#fff;border:none;font-family:var(--font-ui);font-size:.75rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;transition:background .2s}
.sm-newsletter__btn:hover{background:var(--accent-hover)}

/* ===== Instagram Strip ===== */
.sm-instagram{padding:56px 24px 64px;max-width:var(--max-width);margin:0 auto}
.sm-instagram__title{font-family:var(--font-ui);font-size:.72rem;font-weight:600;letter-spacing:2.5px;text-transform:uppercase;color:var(--text-muted);text-align:center;margin-bottom:24px}
.sm-instagram__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.sm-instagram__item{aspect-ratio:1;background:var(--bg-alt);position:relative;overflow:hidden}
.sm-instagram__item span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.4rem;color:#aaa}

/* ===== Footer ===== */
.sm-footer{background:var(--text);color:rgba(255,255,255,.8);padding:48px 24px}
.sm-footer__inner{max-width:var(--max-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.sm-footer__logo{font-family:var(--font-heading);font-size:1.3rem;font-weight:700;color:#fff;letter-spacing:2px}
.sm-footer__links{display:flex;gap:24px;flex-wrap:wrap}
.sm-footer__links a{font-family:var(--font-ui);font-size:.68rem;letter-spacing:1.2px;text-transform:uppercase;color:rgba(255,255,255,.6);transition:color .2s}
.sm-footer__links a:hover{color:#fff}

/* ===== Single Article ===== */
.sm-article{max-width:var(--content-width);margin:0 auto;padding:56px 24px 80px}
.sm-article__cat{font-family:var(--font-ui);font-size:.7rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--accent);display:inline-block;margin-bottom:16px}
.sm-article__title{font-family:var(--font-heading);font-size:2.8rem;font-weight:700;line-height:1.12;letter-spacing:-1px;margin-bottom:20px}
.sm-article__meta{font-family:var(--font-ui);font-size:.78rem;color:var(--text-muted);letter-spacing:.5px;text-transform:uppercase}
.sm-article__featured{margin:40px 0;border-radius:4px;overflow:hidden}
.sm-article__featured img{width:100%}
.sm-article__body{font-size:1.12rem;line-height:1.9}
.sm-article__body p{margin-bottom:1.8em}
.sm-article__body h2{font-family:var(--font-heading);font-size:1.7rem;font-weight:700;margin:2.4em 0 .8em}
.sm-article__body h3{font-family:var(--font-heading);font-size:1.3rem;margin:2em 0 .6em}
.sm-article__body img{margin:2.5em auto}
.sm-article__body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.sm-article__body blockquote{margin:2.5em 0;padding:24px 32px;border-left:3px solid var(--accent);background:var(--bg-alt);font-family:var(--font-heading);font-size:1.3rem;font-style:italic;line-height:1.6}
.sm-article__tags{margin-top:48px;padding-top:24px;border-top:1px solid var(--border)}
.sm-article__tags a{display:inline-block;font-family:var(--font-ui);font-size:.7rem;letter-spacing:.5px;color:var(--text-muted);padding:5px 16px;border:1px solid var(--border);border-radius:20px;margin:0 8px 8px 0;transition:all .2s}
.sm-article__tags a:hover{color:var(--accent);border-color:var(--accent)}

/* ===== Comments ===== */
.sm-comments{margin-top:64px;padding-top:32px;border-top:1px solid var(--border)}
.sm-comments__title{font-family:var(--font-heading);font-size:1.3rem;font-weight:700;margin-bottom:24px}
.sm-comments .comment-list{list-style:none;margin:0 0 40px}
.sm-comments .comment{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.sm-comments .comment-body{font-size:.95rem}
.sm-comments .comment-author{font-weight:600}
.sm-comments .comment-meta{font-size:.75rem;color:var(--text-muted);margin:4px 0 10px}
.sm-comments .comment-form label{display:block;font-size:.78rem;color:var(--text-muted);margin-bottom:6px}
.sm-comments .comment-form input[type="text"],.sm-comments .comment-form input[type="email"],.sm-comments .comment-form input[type="url"],.sm-comments .comment-form textarea{width:100%;padding:12px 14px;border:1px solid var(--border);font-size:.95rem;margin-bottom:16px}
.sm-comments .comment-form input:focus,.sm-comments .comment-form textarea:focus{outline:none;border-color:var(--text)}
.sm-comments .submit{padding:12px 32px;background:var(--accent);color:#fff;border:none;font-size:.8rem;letter-spacing:1px;text-transform:uppercase;cursor:pointer}


/* ===== Motion tokens (P4 s1: bold-magazine 利落戏剧) ===== */
:root {
  --motion-dur-slow: 400ms;
  --motion-dur-med: 300ms;
  --motion-dur-fast: 200ms;
  --motion-ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-rise: 12px;
}

/* ===== Scroll reveal (P4 s5: JS 加 .is-visible; 只动 transform/opacity) ===== */
.js-reveal { opacity: 0; transform: translateY(var(--motion-rise)); transition: opacity var(--motion-dur-slow) var(--motion-ease-overshoot), transform var(--motion-dur-slow) var(--motion-ease-overshoot); will-change: opacity, transform; }
.js-reveal.is-visible { opacity: 1; transform: none; }

/* ===== Micro interactions (P4 s4: 卡片 6px 上浮 + 阴影 / 按钮 1.03 / 链接下划线 / 导航高亮) ===== */
.sm-card { transition: transform var(--motion-dur-med) var(--motion-ease-overshoot), box-shadow var(--motion-dur-med) ease; }
.sm-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26,26,26,.14); }
.sm-newsletter__btn, .sm-loadmore { transition: transform var(--motion-dur-fast) ease, box-shadow var(--motion-dur-fast) ease, background-color var(--motion-dur-fast) ease; }
.sm-newsletter__btn:hover, .sm-loadmore:hover { transform: scale(1.03); box-shadow: 0 6px 18px rgba(163,50,43,.28); }
.sm-nav a { position: relative; }
.sm-nav a::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.sm-nav a:hover::after, .sm-nav a.current-menu-item::after { transform: scaleX(1); }
.sm-card__title a, .sm-article__body a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
.sm-card__title a:hover { background-size: 100% 1.5px; }
.sm-cat-pill { transition: transform var(--motion-dur-fast) ease, color var(--motion-dur-fast) ease, border-color var(--motion-dur-fast) ease; }
.sm-cat-pill:hover { transform: translateY(-2px); }

/* ===== "The Daily Edit" 盖章弹入签名 (P4 s8 / P3 s7 定义) ===== */
.js-reveal-stamp { opacity: 0; }
.js-reveal-stamp.is-visible { opacity: 1; animation: de-stamp-in var(--motion-dur-slow) var(--motion-ease-overshoot) both; }
@keyframes de-stamp-in { from { opacity: 0; transform: scale(0.8) rotate(-3deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }

/* ===== 首屏之下 content-visibility (P4 s6) ===== */
.sm-feed, .sm-author, .sm-newsletter, .sm-instagram { content-visibility: auto; contain-intrinsic-size: 400px; }

/* ===== prefers-reduced-motion 降级 (P4 s6) ===== */
@media (prefers-reduced-motion: reduce) {
  .js-reveal, .js-reveal-stamp { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Print (P4 s7: 隐藏导航/页脚/CTA, 正文可读) ===== */
@media print {
  .sm-header, .sm-nav, .sm-footer, .sm-newsletter, .sm-instagram, .sm-author, .sm-hero, .sm-back-to-top, .comment-form, .sm-cats { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .sm-article__body { font-size: 11pt !important; line-height: 1.6 !important; }
  .sm-article__title { font-size: 18pt !important; }
  a { color: #000 !important; text-decoration: underline !important; }
}


/* ===== Footer extras (P4 s9: 博主推荐 + 社交) ===== */
.sm-footer__extras{max-width:var(--max-width);margin:0 auto 32px;display:flex;gap:48px;justify-content:space-between;flex-wrap:wrap;padding:0 24px}
.sm-footer__extras-title{font-family:var(--font-ui);font-size:.72rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.5);margin-bottom:16px}
.sm-footer__recent-list{list-style:none;padding:0;margin:0}
.sm-footer__recent-list li{margin-bottom:10px}
.sm-footer__recent-list a{font-size:.85rem;color:rgba(255,255,255,.75);transition:color .2s}
.sm-footer__recent-list a:hover{color:#fff}
.sm-footer__recent-empty{font-size:.8rem;color:rgba(255,255,255,.45)}
.sm-footer__social{display:flex;flex-direction:column;gap:10px}
.sm-footer__social a{font-size:.85rem;font-weight:600;color:rgba(255,255,255,.75);transition:color .2s}
.sm-footer__social a:hover{color:var(--accent)}
@media (max-width:600px){.sm-footer__extras{flex-direction:column;gap:32px}}


/* ===== Author archive (P4 s2: 作者简介) ===== */
.sm-author-archive{max-width:760px;margin:0 auto 32px;padding:0 24px;display:flex;gap:24px;align-items:center}
.sm-author-archive__avatar img{width:120px;height:120px;border-radius:50%;object-fit:cover}
.sm-author-archive__bio{color:var(--text-muted);font-size:.95rem;line-height:1.7;margin:0}
@media (max-width:600px){.sm-author-archive{flex-direction:column;text-align:center}}

/* ===== Back to Top ===== */
.sm-back-to-top{position:fixed;bottom:30px;right:30px;width:44px;height:44px;background:var(--accent);color:#fff;border:none;border-radius:50%;font-size:1.2rem;opacity:0;visibility:hidden;transform:translateY(10px);transition:all .3s;z-index:999}
.sm-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}

/* ===== Responsive ===== */
@media (max-width:1024px){.sm-masonry{columns:2}}
@media (max-width:768px){
    .sm-masonry{columns:1}
    .sm-hero{height:65vh}
    .sm-hero__title{font-size:2.2rem}
    .sm-header__inner{padding:0 16px}
    .sm-nav a{padding:8px 8px;font-size:.62rem}
    .sm-newsletter__form{flex-direction:column}
    .sm-instagram__grid{grid-template-columns:repeat(3,1fr)}
    .sm-article__title{font-size:2rem}
}
