/* Shared home-page components for our public sites (hellowoongs.com, woongskorean.com).
   Loaded after site.css (tokens + base). Edit here, not per site, so the sites stay identical. */
/* light theme: warm beige page #efe7d8, cards #faf9f5 (sites can override these tokens, e.g. woongskorean.com) */
:root{--hi:#e8e6dc;--shadow:rgba(0,0,0,.45)}
:root[data-theme=light]{--bg:#efe7d8;--fg:#141413;--mid:#6f6d66;--line:#e0ddd3;--card:#faf9f5;--hi:#141413;--shadow:rgba(20,20,19,.14)}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--bg:#efe7d8;--fg:#141413;--mid:#6f6d66;--line:#e0ddd3;--card:#faf9f5;--hi:#141413;--shadow:rgba(20,20,19,.14)}}
body{transition:background .2s,color .2s}
.foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.theme{display:inline-flex;gap:4px;margin-left:auto}
.theme button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;background:none;color:var(--mid);cursor:pointer;opacity:.6}
.theme button:hover{opacity:1;color:var(--fg)}
.theme button[aria-pressed=true]{opacity:1;color:var(--acc)}
.theme svg{width:18px;height:18px}
main{max-width:1120px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
.top .brand{font-size:20px;font-weight:700;letter-spacing:.02em;color:var(--brand-blue)}
.yt{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 22px 0 16px;font-size:16px;font-weight:700;line-height:1;color:var(--on-acc,#fff);background:var(--acc);border-radius:999px;text-decoration:none;white-space:nowrap}
.yt svg{width:28px;height:20px;display:block;flex:none}
.yt:hover{color:var(--on-acc,#fff);filter:brightness(1.08)}
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 28px}
.cats button{font:inherit;text-align:left;cursor:pointer;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 20px;color:var(--mid);display:flex;flex-direction:column;gap:4px}
.cats button b{color:var(--fg);font-size:21px;letter-spacing:.01em} .cats button span{font-size:15px}
.cats button:hover{border-color:var(--mid)}
.cats button[aria-selected=true]{background:var(--acc);border-color:var(--acc);color:rgba(255,255,255,.85)}
.cats button[aria-selected=true] b{color:#fff}
.empty{color:var(--mid);border:1px dashed var(--line);border-radius:14px;padding:40px;text-align:center}
@media (max-width:640px){.cats{grid-template-columns:1fr}}
.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:24px;margin-bottom:48px}
.kicker{color:var(--acc);font-weight:700;letter-spacing:.04em;font-size:13px;margin:0 0 12px}
.hero h1{font-size:clamp(34px,5.4vw,56px);line-height:1.2;margin:0 0 16px;letter-spacing:-.01em;color:var(--brand-blue)}
:root{--brand-blue:#fff}  /* dark mode: white; light mode: the illustration blue #29377B */
:root[data-theme=light]{--brand-blue:#29377B}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--brand-blue:#29377B}}
.hero .sub{font-size:17px;margin:0}
.hero .art{position:relative;width:100%;max-width:360px;justify-self:center}
.art img{position:absolute;display:block;height:auto}
.art .cloud{z-index:0} .art .fly{z-index:1;animation:float 5s ease-in-out infinite alternate}
.art .cloud{animation:drift 19s linear infinite}
.art .cloud:nth-of-type(3){animation-duration:26s;animation-delay:-10s}
.art .cloud:nth-of-type(4){animation-duration:23s;animation-delay:-4s}
@keyframes float{from{transform:translateY(6px)}to{transform:translateY(-8px)}}
@keyframes drift{0%{transform:translateX(90px);opacity:0}12%{opacity:1}85%{opacity:1}100%{transform:translateX(-110px);opacity:0}}
@media (prefers-reduced-motion:reduce){.art img{animation:none!important}}
.series+.series{margin-top:44px}
.grid-head{display:flex;align-items:baseline;gap:10px;margin:0 0 14px}
.grid-head h2{margin:0}
.vgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.vcard{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.vcard .cover{position:relative;display:block;aspect-ratio:16/9;background:#000}
.vcard .cover img{width:100%;height:100%;object-fit:cover;display:block}  /* released: full colour */
.vcard.soon .cover img{filter:grayscale(1) contrast(1.05);opacity:.8}  /* not yet released: neutral monotone, even on hover */
.vcard.soon.dark .cover{background:var(--card)} .vcard.soon.dark .cover img{opacity:.7}  /* dark covers (BUSINESS/EXAM) read heavy in monotone: soften them */
.vcard{transition:transform .2s,border-color .2s,box-shadow .2s}
.vcard .cover img{transition:transform .35s}
.vcard:not(.soon):hover{transform:translateY(-4px);border-color:var(--hi);box-shadow:0 12px 32px var(--shadow),0 0 0 1px var(--hi)}  /* released card lifts, bright outline */
.vcard:not(.soon):hover .cover img{transform:scale(1.03)}
.vcard .b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.chip{align-self:flex-start;font-style:normal;font-size:11px;font-weight:700;border-radius:999px;padding:2px 9px;margin:0 0 4px;border:1px solid var(--line);color:var(--mid)}
.chip.live{background:var(--acc);border-color:var(--acc);color:var(--bg)}
.vcard b{font-size:15px;font-weight:600;line-height:1.4}
.vcard .info{color:var(--mid);font-size:13px}
.links{display:flex;gap:12px;margin-top:auto;padding-top:8px;font-size:13px;font-weight:600}
.links a{color:var(--acc);text-decoration:none} .links a:hover{text-decoration:underline}
.acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
.mb{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 16px;font-size:14px;font-weight:700;line-height:1;text-decoration:none;border-radius:999px;background:var(--acc);color:var(--on-acc,#fff);border:1px solid var(--acc)}
.mb.ghost{background:transparent;color:var(--fg);border-color:var(--hi)}
/* buttons keep their own text colour on hover (site.css turns every a:hover orange, which hid the text); white on orange, --on-acc lets a site change it */
.mb:hover,.mb:focus-visible{color:var(--on-acc,#fff);filter:brightness(1.08)} .mb.ghost:hover,.mb.ghost:focus-visible{background:var(--fg);color:var(--bg);filter:none}
@media (hover:hover){.vcard .acts{max-height:0;padding-top:0;opacity:0;overflow:hidden;transition:max-height .25s,opacity .2s,padding .25s}
  .vcard:not(.soon):hover .acts{max-height:60px;padding-top:10px;opacity:1}}
.badge{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--fg);border:1px solid var(--line);background:var(--card);border-radius:999px;padding:5px 12px 5px 10px;margin:0 0 18px}
.badge i{width:7px;height:7px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 3px rgba(217,119,87,.25)}
footer{margin-top:40px;border-top:1px solid var(--line);padding-top:20px}
.soon-note{margin-top:32px;color:var(--mid);font-size:14px;border-top:1px solid var(--line);padding-top:20px}
.soon-note b{color:var(--fg)}
@media (max-width:860px){.vgrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.hero{grid-template-columns:1fr}.hero .art{max-width:220px;order:-1}.vgrid{grid-template-columns:1fr}}
