/* Curly quotes & apostrophes: Chinese fonts draw them full-width, which leaves a gap (you’ re). This tiny font covers only those characters. */
@font-face { font-family: 'CD Quotes'; font-style: normal; font-weight: 100 599; font-display: swap; src: url('fonts/cd-quotes-400.woff2') format('woff2'); unicode-range: U+2018-201F, U+2026, U+2032-2033; }
@font-face { font-family: 'CD Quotes'; font-style: normal; font-weight: 600 749; font-display: swap; src: url('fonts/cd-quotes-700.woff2') format('woff2'); unicode-range: U+2018-201F, U+2026, U+2032-2033; }
@font-face { font-family: 'CD Quotes'; font-style: normal; font-weight: 750 849; font-display: swap; src: url('fonts/cd-quotes-800.woff2') format('woff2'); unicode-range: U+2018-201F, U+2026, U+2032-2033; }
@font-face { font-family: 'CD Quotes'; font-style: normal; font-weight: 850 1000; font-display: swap; src: url('fonts/cd-quotes-900.woff2') format('woff2'); unicode-range: U+2018-201F, U+2026, U+2032-2033; }
/* comedydeem — share bar, Instagram image maker, /links page */

.cds-share {
  --cds-accent: #ff5a36; --cds-text: #f4ecdf; --cds-muted: #b7aa9b; --cds-line: rgba(244, 236, 223, .14); --cds-surface: #1b1612;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin: 2.5rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--cds-line);
  font-family: 'CD Quotes', 'Satoshi', 'Noto Sans HK', system-ui, sans-serif;
}
[data-theme="light"] .cds-share, .cds-share.is-light { --cds-text: #1f1813; --cds-muted: #6d6158; --cds-line: rgba(31, 24, 19, .14); --cds-surface: #fffaf2; }
.cdp-intro .cds-share { margin-top: 1.4rem; padding-top: 1rem; }
.cds-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cds-muted); }
.cds-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.cds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--cds-line); background: transparent; color: var(--cds-text);
  font: 700 .875rem/1 'Satoshi', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.cds-btn:hover { border-color: var(--cds-accent); color: var(--cds-accent); }
.cds-btn:focus-visible { outline: 2px solid var(--cds-accent); outline-offset: 2px; }
.cds-btn[hidden] { display: none; }
.cds-icon-only { width: 42px; padding: 0; }
.cds-ig { background: var(--cds-accent); border-color: var(--cds-accent); color: #140f0c; }
.cds-ig:hover { color: #140f0c; transform: translateY(-1px); background: #ff704f; }

.cds-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; z-index: 100001;
  background: #f4ecdf; color: #140f0c; font: 700 .875rem/1 'Satoshi', system-ui, sans-serif;
  padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.cds-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Instagram dialog */
.cds-dialog {
  width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid rgba(244,236,223,.14);
  border-radius: 20px; background: #1b1612; color: #f4ecdf; overflow: hidden;
  font-family: 'CD Quotes', 'Satoshi', 'Noto Sans HK', system-ui, sans-serif;
}
.cds-dialog::backdrop { background: rgba(10, 7, 5, .72); backdrop-filter: blur(3px); }
.cds-dlg-inner { display: grid; grid-template-rows: auto auto 1fr auto; max-height: calc(100dvh - 1.5rem); }
.cds-dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .5rem; }
.cds-dlg-head h2 { margin: 0; font: 800 1.25rem/1.1 'Cabinet Grotesk', 'Satoshi', sans-serif; letter-spacing: -.01em; color: #f4ecdf; }
.cds-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244,236,223,.14); background: transparent; color: #f4ecdf; font-size: 1.2rem; cursor: pointer; }
.cds-tabs { display: flex; gap: .4rem; padding: 0 1.1rem .75rem; }
.cds-tab { flex: 1; min-height: 40px; border-radius: 999px; border: 1px solid rgba(244,236,223,.14); background: transparent; color: #b7aa9b; font: 700 .875rem/1 'Satoshi', sans-serif; cursor: pointer; }
.cds-tab[aria-pressed="true"] { background: #f4ecdf; color: #140f0c; border-color: #f4ecdf; }
.cds-preview { display: grid; place-items: center; padding: .25rem 1.1rem; min-height: 0; overflow: hidden; background: #120e0b; }
.cds-preview canvas { display: block; max-width: 100%; max-height: min(56dvh, 520px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.45); margin: .75rem 0; }
.cds-dlg-foot { display: grid; gap: .6rem; padding: .9rem 1.1rem 1.1rem; }
.cds-dlg-actions { display: flex; gap: .5rem; }
.cds-dlg-actions .cds-btn { flex: 1; min-height: 46px; }
.cds-main { background: #ff5a36; border-color: #ff5a36; color: #140f0c; }
.cds-main:hover { background: #ff704f; color: #140f0c; }
.cds-dialog .cds-btn:not(.cds-main) { color: #f4ecdf; border-color: rgba(244,236,223,.28); background: rgba(244,236,223,.06); }
.cds-dialog .cds-btn:not(.cds-main):hover { border-color: #ff5a36; color: #f4ecdf; }
.cds-hint { margin: 0; font-size: .8rem; line-height: 1.45; color: #b7aa9b; }

/* /links page */
body.cdl-body { margin: 0; min-height: 100dvh; background: radial-gradient(120% 60% at 90% -10%, rgba(255,90,54,.28), transparent 60%), #120e0b; color: #f4ecdf; }
body.cdl-body main { padding: 0; margin: 0; }
.cdl { width: min(520px, 100%); margin: 0 auto; padding: 2.5rem 1.1rem 2rem; box-sizing: border-box; font-family: 'CD Quotes', 'Satoshi', 'Noto Sans HK', system-ui, sans-serif; }
.cdl *, .cdl *::before, .cdl *::after { box-sizing: border-box; }
.cdl a { color: inherit; text-decoration: none; }
.cdl-head { text-align: center; margin-bottom: 1.6rem; }
.cdl-brand { display: inline-flex; align-items: center; gap: .6rem; }
.cdl-logo { width: 52px; height: 52px; }
.cdl-word { font: 800 2rem/1 'Cabinet Grotesk', 'Satoshi', sans-serif; letter-spacing: -.02em; }
.cdl-word span { color: #ff5a36; }
.cdl-tag { margin: .6rem 0 0; color: #b7aa9b; font-size: .95rem; }
.cdl-main { display: grid; gap: .6rem; }
.cdl-btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0 1.2rem; border-radius: 16px; background: #1b1612; border: 1px solid rgba(244,236,223,.12); font-weight: 700; font-size: 1rem; transition: border-color .2s, transform .2s; }
.cdl-btn:hover { border-color: #ff5a36; transform: translateY(-1px); }
.cdl-btn span { color: #ff5a36; }
.cdl-btn-primary { background: #ff5a36; border-color: #ff5a36; color: #140f0c !important; }
.cdl-btn-primary span { color: #140f0c; }
.cdl-sec { margin-top: 2rem; }
.cdl-sec h2 { margin: 0 0 .7rem; font: 800 1.15rem/1 'Cabinet Grotesk', 'Satoshi', sans-serif; letter-spacing: -.01em; color: #f4ecdf; }
.cdl-card { display: flex; align-items: center; gap: .9rem; padding: .6rem; margin-bottom: .5rem; border-radius: 16px; background: #1b1612; border: 1px solid rgba(244,236,223,.1); transition: border-color .2s; }
.cdl-card:hover { border-color: #ff5a36; }
.cdl-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.cdl-card-text { display: grid; gap: .2rem; padding: .25rem .3rem; min-width: 0; }
.cdl-date { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffc247; }
.cdl-title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.cdl-meta { font-size: .82rem; color: #b7aa9b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdl-comics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem .5rem; }
.cdl-comic { display: grid; justify-items: center; gap: .4rem; text-align: center; font-size: .78rem; font-weight: 700; line-height: 1.2; }
.cdl-comic img, .cdl-initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(244,236,223,.12); }
.cdl-initials { display: grid; place-items: center; background: #2c231d; color: #ffc247; font: 800 1.2rem/1 'Cabinet Grotesk', sans-serif; }
.cdl-more { display: inline-block; margin-top: .9rem; font-size: .88rem; font-weight: 700; color: #ff5a36 !important; }
.cdl-socials { display: flex; justify-content: center; gap: .6rem; margin-top: 2.2rem; }
.cdl-socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244,236,223,.14); color: #f4ecdf; }
.cdl-socials a:hover { border-color: #ff5a36; color: #ff5a36; }
.cdl-foot { text-align: center; margin: 1.6rem 0 0; font-size: .8rem; color: #8a7d70; }
@media (prefers-reduced-motion: reduce) { .cds-btn, .cdl-btn, .cds-toast { transition: none; } }

/* Keep the share bar looking the same inside the listings/profile app */
.cd-app .cds-share .cds-btn, .entry-content .cds-share .cds-btn { font: 700 .875rem/1 'Satoshi', system-ui, sans-serif; color: var(--cds-text); text-decoration: none; }
.cd-app .cds-share .cds-btn.cds-ig, .entry-content .cds-share .cds-btn.cds-ig { color: #140f0c; }
.cd-app .cds-share .cds-btn:hover:not(.cds-ig), .entry-content .cds-share .cds-btn:hover:not(.cds-ig) { color: var(--cds-accent); }

/* Floating Share button (articles, phones) */
.cds-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 9990;
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: #ff5a36; color: #140f0c; font: 700 .9rem/1 'Satoshi', system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.4); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.cds-fab.show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 761px) { .cds-fab { display: none; } }
