/* ═══════════════════════════════════════════════════════════════════
   HEITONGBYMEOW — SHARED SITE CHROME (System A, canonical)
   ═══════════════════════════════════════════════════════════════════
   One source of truth for the editorial design system: tokens, reset,
   nav (with a *working* mobile menu), footer, and the shared CTA
   buttons. Pages keep their page-specific styles inline; everything
   that used to be copy-pasted across index/about/faq/shop/404 lives
   here now.

   Typography is unified with the arcade + iOS app: self-hosted
   Cormorant Garamond (display serif, italic accents) + Inter (UI/body
   sans) from /play/_shared/fonts/fonts.css — link that file BEFORE
   this one. No Google Fonts: first-party only, works offline.

   Load order on every System-A page:
     <link rel="stylesheet" href="/play/_shared/fonts/fonts.css">
     <link rel="stylesheet" href="/css/site.css">
     <script src="/js/site.js" defer></script>
   ═══════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ────────────────────────────────────────── */
:root {
    --rose: #D4A5A5;
    --rose-dark: #B57B7B;
    --rose-soft: #EAD2D2;
    --rose-tint: #F5E6E6;
    --cream: #FAF6F0;
    --cream-deep: #F1E8DB;
    --paper: #FDFAF5;
    --ink: #2A2620;
    --ink-soft: #5A4F44;
    --muted: #948A7E;
    --rule: #E5DBCC;
    --gold: #B89556;
    --tortie: #C97D4F;

    /* character canon eye colors — Hei mint, Tong gold, Meow yellow */
    --hei: #7CD3A0;
    --tong: #C9A84C;
    --meow: #FFD278;

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --container: 1240px;
    --measure: 580px;
}

/* ─── RESET / BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
/* Cormorant runs visually smaller than most serifs at equal px — headings
   get a slightly larger scale and 600 weight (the self-hosted face's top
   weight; 700 maps onto it too). */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; letter-spacing: -.008em; color: var(--ink); }
em, .italic { font-style: italic; font-family: var(--font-serif); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.75rem; }

/* ─── NAV ───────────────────────────────────────────── */
.nav { background: var(--cream); border-bottom: 1px solid var(--rule); position: relative; }
.nav__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1.5rem 0 1.25rem;
    gap: 2rem;
}
.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 600;
    color: var(--ink);
}
.nav__logo span { font-style: normal; color: var(--rose-dark); }
.nav__links { display: flex; align-items: baseline; gap: 2rem; font-size: .95rem; }
.nav__links a { color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s; }
.nav__links a:hover { border-bottom-color: var(--rose-dark); color: var(--ink); }
.nav__links a.active { color: var(--ink); border-bottom-color: var(--rose-soft); }
.nav__play { display: inline-flex; align-items: baseline; gap: .35rem; }
.nav__play-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--hei);
    box-shadow: 0 0 8px rgba(124, 211, 160, .65);
    transform: translateY(-1px);
    animation: navPlayPulse 2.4s ease-in-out infinite;
}
@keyframes navPlayPulse {
    0%, 100% { opacity: 1; transform: translateY(-1px) scale(1); }
    50% { opacity: .55; transform: translateY(-1px) scale(.82); }
}
.nav__lang {
    display: flex; align-items: baseline; gap: .85rem;
    font-size: .8rem; font-weight: 500; letter-spacing: .06em; color: var(--muted);
}
.nav__lang button { color: var(--muted); padding: 0; }
.nav__lang .active { color: var(--ink); font-weight: 600; }
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    /* 44px minimum touch target */
    min-width: 44px; min-height: 44px;
    align-items: center;
    margin: -10px -10px -10px 0;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s; }

@media (max-width: 880px) {
    .nav__inner { flex-wrap: wrap; align-items: center; padding: 1.1rem 0 1rem; }
    .nav__links, .nav__lang { display: none; }
    .nav__toggle { display: flex; }
    /* the working mobile menu — toggled by js/site.js via .nav--open */
    .nav--open .nav__links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
        width: 100%;
        order: 3;
        padding: 1rem 0 .5rem;
        border-top: 1px solid var(--rule);
        margin-top: .9rem;
        font-size: 1.05rem;
    }
    .nav--open .nav__links a { display: block; padding: .55rem 0; width: 100%; }
    .nav--open .nav__lang {
        display: flex;
        width: 100%;
        order: 4;
        padding: .75rem 0 .35rem;
    }
    .nav--open .nav__lang button { padding: .35rem .5rem; }
    .nav--open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ─── SHARED CTAS ───────────────────────────────────── */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ink);
    color: var(--cream);
    padding: 1rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s, transform .15s;
    border-radius: 2px;
}
.cta-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.cta-secondary {
    display: inline-flex;
    justify-content: space-between;
    color: var(--ink-soft);
    padding: .35rem 0;
    font-size: .9rem;
    border-bottom: 1px dotted var(--rule);
    transition: color .15s, border-color .15s;
}
.cta-secondary:hover { color: var(--ink); border-bottom-color: var(--rose-dark); }

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding: 4.5rem 0 2rem;
    color: var(--ink-soft);
    font-size: .9rem;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.15fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer__brand {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .65rem;
}
.footer__brand span { font-style: normal; color: var(--rose-dark); }
.footer__tagline { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.55; max-width: 280px; }
.footer__social { display: flex; gap: .85rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; }
.footer__social a { color: var(--ink-soft); border-bottom: 1px solid var(--rose-dark); padding-bottom: 2px; }
.footer__social a:hover { color: var(--rose-dark); }
.footer__col h4 {
    font-family: var(--font-sans);
    font-size: .76rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--muted); margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__col a { color: var(--ink); transition: color .15s; }
.footer__col a:hover { color: var(--rose-dark); }
.footer__bottom {
    border-top: 1px solid var(--rule);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: .82rem; color: var(--muted);
}
.footer__bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 880px) {
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
    .footer__inner { grid-template-columns: 1fr; }
}

/* ─── REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav__play-dot { animation: none; }
    .nav__toggle span { transition: none; }
    .cta-primary, .cta-primary:hover { transform: none; }
}
