/* ═══════════════════════════════════════════════════════════════
   zexy.css — ZEXY (z-xy.ca) brand layer.
   Design tokens are lifted verbatim from z-e.ca so the Tea Party
   app and every shared component read exactly like the home site.
   ZEXY layers an editorial magazine masthead on top: high-contrast
   serif display type, mono metadata, glass, no gimmicks.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --s1: #141210;
  --s2: #1c1a17;
  --s3: #252320;
  --ink: #ede8de;
  --ink2: rgba(237, 232, 222, 0.55);
  --ink3: rgba(237, 232, 222, 0.22);
  --pk: #a6a6a6;
  --pk-deep: #8a8a8a;
  --on-pk: #130f11;
  --border: rgba(237, 232, 222, 0.07);
  --border2: rgba(237, 232, 222, 0.12);
  --glass-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)), rgba(20, 18, 16, 0.82);
  --glass-blur: 18px;
  --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --font-display: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --zexy-shell: 1180px;
}

html.light-mode {
  --s1: #ffffff;
  --s2: #fbfaf9;
  --s3: #f0efee;
  --ink: #0c0b0a;
  --ink2: rgba(12, 11, 10, 0.8);
  --ink3: rgba(12, 11, 10, 0.45);
  --pk: #a6a6a6;
  --pk-deep: #8a8a8a;
  --on-pk: #130f11;
  --border: rgba(12, 11, 10, 0.08);
  --border2: rgba(12, 11, 10, 0.16);
  --glass-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44)), rgba(255, 255, 255, 0.58);
  --shadow-panel: 0 18px 50px rgba(28, 20, 24, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html {
  background-color: var(--s2);
}

/* Embedded in z-e.ca: the parent page's own background shows through. */
html.fd-embedded {
  background-image: none !important;
  background-color: transparent !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--pk);
  color: var(--on-pk);
}

button {
  font-family: inherit;
  cursor: var(--fd-cursor-action);
}

a {
  color: inherit;
}

/* ── Blog host (Tea Party) ─────────────────────────────────────────── */
#page-talk {
  height: 100vh;
  min-height: 480px;
  overflow: auto;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#page-talk > .talk-intro {
  display: none;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .zexy-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px), (max-width: 960px) and (max-height: 600px) and (orientation: landscape) and (pointer: coarse) {
  .zexy-hero-word {
    font-size: clamp(68px, 23vw, 130px);
  }

  .zexy-featured {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #page-talk {
    height: 100vh;
    min-height: 420px;
    width: 100%;
  }

  /* ── Ported z-e.ca mobile Tea Party rules ── */
  #page-talk .talk-home-icon svg {
    width: 18px;
    height: 18px;
  }

  #page-talk #talk-nav-profile {
    display: none;
  }

  #page-talk .tea-blog-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    margin-right: 6px;
  }

  #page-talk .tea-blog-btn svg {
    width: 16px;
    height: 16px;
  }

  #page-talk #mobile-blog-container.news-post-list .news-post-card {
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    padding: 14px 13px 13px 17px;
  }

  #page-talk #mobile-blog-container.news-post-list .news-post-open-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    justify-self: end;
  }
}

/* Dark mode: tint the fixed background photo instead of leaving it glaring white */
html:not(.light-mode) {

  background-color: #323232;
  background-blend-mode: multiply
}
