/*
Theme Name: Jasmine Yong
Theme URI: https://jasmineyong.com
Author: Kelly
Description: Custom theme for Jasmine Yong (香米) — bio/link hub + Group Buy system + Telegram links. Bilingual (Chinese primary, English secondary), mobile-first, earth-tone "old money" design.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: jasmine-yong
*/

:root{
  --white: #FFFFFF;
  --tan: #B49379;
  --brown: #664B3C;
  --rust: #975B35;
  --black-brown: #2B1D19;
  --hero-bg: #45281F;
  --cream: #EDDEC5;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ background:var(--black-brown); }

body{
  font-family:'Manrope','Noto Sans SC',sans-serif;
  color:var(--black-brown);
  background:var(--white);
  max-width:560px;
  margin:0 auto;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
button{ font:inherit; cursor:pointer; background:none; border:none; }

.site-header{ display:none; } /* no visible top nav, per design direction */

section{ padding:34px 26px; position:relative; }
.tg-section{ padding:0 26px 26px; }

.eyebrow{
  font-size:11px; letter-spacing:3px; color:var(--rust); font-weight:500;
  text-transform:uppercase; margin-bottom:14px; display:inline-block;
}

/* ---------- HERO ---------- */
.hero{ padding-top:44px; background:var(--hero-bg); }
.hero .eyebrow{ color:var(--cream); }
.hero h1{
  font-family:'Cormorant Garamond', serif; font-weight:500;
  font-size:44px; line-height:1.05; color:var(--tan);
}
.hero h1 .cn{
  display:block; font-family:'Noto Serif SC', serif; font-size:22px;
  font-weight:400; letter-spacing:6px; color:var(--tan); margin-top:6px;
}
.hero .bio{
  margin-top:12px; font-size:13.5px; line-height:1.9; color:var(--cream);
  font-family:'Manrope','Noto Sans SC'; font-weight:300; max-width:280px;
}

.socials{ display:flex; gap:7px; }
.socials.center{ justify-content:flex-start; margin-top:20px; flex-wrap:wrap; }
.soc{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--brown);
  display:flex; align-items:center; justify-content:center; color:var(--brown);
}
.soc svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.hero .soc{ border-color:rgba(237,222,197,.5); color:var(--cream); }
footer .soc{ border-color:rgba(180,147,121,.5); color:var(--tan); }

/* ---------- GROUP BUY ---------- */
.gb-row{ display:flex; gap:14px; margin-top:6px; flex-wrap:wrap; }
.gb-card{
  flex:1 1 calc(50% - 7px); min-width:140px; background:rgba(180,147,121,.1);
  border-radius:3px; overflow:hidden;
  border:1px solid var(--brown); border-top:3px solid var(--rust);
}
.gb-img{
  height:110px; background:rgba(43,29,25,.14) center/cover no-repeat;
  border-bottom:1px dashed var(--brown);
  position:relative;
}
.gb-img.placeholder::after{
  content:'IMG'; position:absolute; inset:0; display:flex;
  align-items:center; justify-content:center;
  font-size:10px; letter-spacing:2px; color:var(--black-brown);
}
.gb-body{ padding:14px 14px 16px; }
.badge{
  font-size:9.5px; letter-spacing:1px; padding:3px 8px; border-radius:20px;
  display:inline-block; margin-bottom:8px; font-weight:500;
}
.badge.open{ background:rgba(151,91,53,.22); color:var(--rust); }
.badge.soon{ background:rgba(102,75,60,.15); color:var(--brown); }
.badge.closed{ background:rgba(43,29,25,.1); color:var(--brown); }
.gb-title{ font-size:13px; font-weight:500; font-family:'Manrope','Noto Sans SC'; color:var(--black-brown); }
.gb-date{ font-size:10.5px; color:var(--brown); margin-top:4px; }
.gb-btn{
  margin-top:10px; font-size:11px; letter-spacing:.5px; color:var(--brown);
  border-bottom:1px solid var(--brown); display:inline-block; padding-bottom:2px;
}
.gb-btn.primary{
  background:var(--brown); color:var(--cream); border:none;
  padding:8px 16px; border-radius:2px; font-weight:500; letter-spacing:1px;
}
.gb-card.closed{ opacity:.75; }
.gb-empty{ font-size:12.5px; color:var(--brown); padding:12px 0; }

/* ---------- TELEGRAM ---------- */
.tg-card{
  display:flex; align-items:center; gap:12px; background:rgba(180,147,121,.1);
  border-radius:40px; padding:9px 16px; margin-top:12px;
  border:1px solid var(--brown);
}
.tg-avatar{
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  background:rgba(43,29,25,.14) center/cover no-repeat; border:1px dashed var(--brown);
}
.tg-text{ flex:1; font-size:12.5px; font-family:'Manrope','Noto Sans SC'; color:var(--black-brown); }
.tg-chev{ color:var(--rust); font-size:16px; }

/* ---------- FOOTER ---------- */
footer.site-footer{
  background:var(--black-brown); color:var(--tan); padding:28px 26px 34px; text-align:center;
}
footer.site-footer .socials{ justify-content:center; margin:0 auto; width:fit-content; }
footer.site-footer .copy{ margin-top:16px; font-size:10px; letter-spacing:1px; color:rgba(180,147,121,.6); }

/* ---------- POSTER LIGHTBOX ---------- */
.gb-img-tap{ cursor:pointer; }
.jy-lightbox{
  position:fixed; inset:0; background:rgba(43,29,25,.9);
  z-index:999; padding:24px;
  display:none; /* only [hidden] should control visibility */
}
.jy-lightbox:not([hidden]){
  display:flex; align-items:center; justify-content:center;
}
.jy-lightbox img{ max-width:100%; max-height:100%; border-radius:2px; }
.jy-lightbox-close{
  position:absolute; top:20px; right:20px; width:36px; height:36px;
  border-radius:50%; background:rgba(255,255,255,.15); color:var(--tan);
  font-size:22px; line-height:1; border:none; cursor:pointer;
}

/* ---------------------------------------------------------
 * Containers — no-ops on mobile (body is already capped at
 * 560px below), they only take effect once the desktop
 * media query below lifts that cap.
 * ------------------------------------------------------- */
.container{ max-width:640px; margin:0 auto; }
.container-wide{ max-width:1020px; margin:0 auto; }

/* ---------------------------------------------------------
 * Desktop
 * ------------------------------------------------------- */
@media (min-width: 900px){

  body{ max-width:none; }

  section{ padding:80px 40px; }
  .tg-section{ padding:0 40px 80px; }

  /* Hero */
  .hero{ padding:110px 40px 90px; }
  .hero .eyebrow{ font-size:12px; letter-spacing:4px; }
  .hero h1{ font-size:72px; }
  .hero h1 .cn{ font-size:26px; letter-spacing:8px; margin-top:10px; }
  .hero .bio{ font-size:16px; max-width:460px; margin-top:20px; }
  .hero .socials.center{ margin-top:34px; }
  .hero .soc{ width:42px; height:42px; }
  .hero .soc svg{ width:18px; height:18px; }

  /* Group buy: a real grid instead of the 2-up mobile wrap,
     with taller, more editorial product photography. */
  .gb-section .eyebrow{ font-size:12px; }
  .gb-row{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:28px;
  }
  .gb-card{ flex:none; }
  .gb-img{ height:220px; }
  .gb-body{ padding:20px 20px 24px; }
  .gb-title{ font-size:15px; }
  .gb-btn.primary{ padding:10px 22px; }

  /* Telegram */
  .tg-card{ padding:14px 22px; border-radius:60px; }
  .tg-text{ font-size:13.5px; }

  /* Footer */
  footer.site-footer{ padding:44px 40px 54px; }
  footer.site-footer .soc{ width:40px; height:40px; }
}

@media (min-width: 1280px){
  .hero h1{ font-size:84px; }
  .gb-row{ grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); }
}
