/* Kuch Bhi Opinion — "Desi Newsroom" design (T11). Dark theme, Anton + Inter + Caveat + Playfair Display. */

:root {
  --bg: #08080a; --ink: #F8F6F0; --muted: #9a9aa2; --line: rgba(255, 255, 255, .08);
  --orange: #FF4A12; --orange2: #ff8a3d; --pink: #ff2d87; --paper: #f3ecdc;
  --body: #e6e4de;                      /* article text */
  --link: #ff8a3d;                      /* text links */
  --focus: #ff8a3d;                     /* keyboard focus ring */
  --edge: rgba(255, 255, 255, .22);     /* dashed / double rules */
  --ctl: #8b8b92;                       /* outline of small controls (switch, menu button) */
  --nav-bg: rgba(20, 20, 24, .6);
  --panel-bg: rgba(20, 20, 24, .97);
  --word-dim: #6b6b73;                  /* scroll words before they light up */
  color-scheme: dark;
}
/* Day mode: switched by the toggle (data-theme is set before first paint) */
:root[data-theme="light"] {
  --bg: #faf6ee; --ink: #17171a; --muted: #5f5f66; --line: rgba(0, 0, 0, .1); --paper: #fffdf7;
  --body: #2a2a2f; --link: #b83a0a; --focus: #b83a0a; --edge: rgba(0, 0, 0, .3); --ctl: #8a8678;
  --nav-bg: rgba(255, 255, 255, .7); --panel-bg: rgba(255, 255, 255, .98); --word-dim: #8a8678;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--orange); color: #111; padding: 8px 14px; font-weight: 700; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

/* subtle dotted texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Floating pill menu ---------- */

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(880px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--orange);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.nav .brand img { height: 26px; width: auto; }
.nav ul { display: flex; gap: 4px; font-size: 14px; color: #cfcfd4; }
.nav ul a { display: block; padding: 7px 14px; border-radius: 999px; transition: background .25s, color .25s; }
.nav ul a:hover { color: var(--ink); }
.nav ul a.active { background: var(--orange); color: #111; font-weight: 600; box-shadow: 0 0 18px rgba(255, 74, 18, .45); }
.nav .right { display: flex; align-items: center; gap: 8px; }
.nav .cta { background: #fff; color: #111; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 0 30px rgba(255, 255, 255, .25); white-space: nowrap; }
.nav .cta:focus-visible, .nav .theme:focus-visible { outline-color: var(--orange); }

/* Day / Night switch */
.theme { width: 56px; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--ctl); background: rgba(255, 255, 255, .06); color: inherit; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; font-size: 13px; line-height: 1; }
.theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .3s; }
:root[data-theme="light"] .theme::after { transform: translateX(26px); }
.no-js .theme { display: none; }

/* logo: one transparent picture for each theme */
.nav .brand .logo-day { display: none; }
:root[data-theme="light"] .nav .brand .logo-night { display: none; }
:root[data-theme="light"] .nav .brand .logo-day { display: block; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--ctl); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin-left: -9px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .no-js .nav-toggle { display: none; }
  .site-nav {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 12px 22px;
    background: var(--panel-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  }
  .site-nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; font-size: 17px; }
  .nav ul a { padding: 11px 14px; }
  .nav { gap: 8px; }
  .nav .brand { margin-right: auto; }
}

/* ---------- Breaking ticker ---------- */

.ticker { margin-top: 84px; background: var(--orange); color: #111; overflow: hidden; white-space: nowrap; border-block: 2px solid #111; transform: rotate(-1.2deg) scale(1.03); }
.ticker .track { display: inline-flex; gap: 48px; padding: 10px 0; animation: tick 32s linear infinite; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .4px; }
.ticker b { background: #111; color: var(--orange); padding: 2px 8px; border-radius: 4px; margin-right: 10px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */

.hero { min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 80px 0 40px; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 28px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { font-family: Inter, system-ui, sans-serif; font-weight: 500; letter-spacing: -.045em; line-height: .95; font-size: clamp(56px, 11vw, 150px); }
.hero h1 .row { display: block; }
.toggle {
  display: inline-block; vertical-align: middle; width: 1.35em; height: .62em; border-radius: 999px; border: .07em solid var(--orange2); position: relative; margin: 0 .02em .12em;
  background: linear-gradient(90deg, rgba(255, 74, 18, .15), rgba(255, 138, 61, .35)); box-shadow: 0 0 40px rgba(255, 74, 18, .45), inset 0 0 18px rgba(255, 138, 61, .4);
}
.toggle::after {
  content: ""; position: absolute; top: 50%; left: .06em; width: .42em; height: .42em; border-radius: 50%; background: #fff; transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(255, 255, 255, .8); animation: knob 3.2s ease-in-out infinite;
}
@keyframes knob { 0%, 40% { left: .06em; } 50%, 90% { left: calc(100% - .48em); } }
.hero p.sub { max-width: 560px; margin: 26px auto 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }
.hero .btns { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; transition: transform .2s, box-shadow .2s, background .2s; min-height: 44px; cursor: pointer; }
.btn-o { background: var(--orange); color: #111; border: 0; box-shadow: 0 0 0 rgba(255, 74, 18, 0); }
.btn-o:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255, 74, 18, .45); }
.btn-g { border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--ink); }
.btn-g:hover { background: rgba(255, 255, 255, .06); }
.btn[hidden] { display: none; }

.note { position: absolute; font-family: Caveat, cursive; color: #d8d8dd; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; }
.note svg { position: absolute; stroke: #bdbdc4; fill: none; stroke-width: 1.5; }
.note.n1 { right: 6%; top: 30%; transform: rotate(6deg); }
.note.n1 svg { left: -70px; top: 30px; width: 80px; height: 80px; }
.note.n2 { left: 5%; bottom: 16%; transform: rotate(-7deg); }
.note.n2 svg { left: 120px; top: -40px; width: 90px; height: 60px; }
.tile {
  position: absolute; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .15);
  animation: float 6s ease-in-out infinite; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile.t1 { left: 12%; top: 24%; box-shadow: 0 0 60px 10px rgba(255, 45, 135, .45); background-color: rgba(255, 45, 135, .35); }
.tile.t2 { right: 13%; bottom: 22%; box-shadow: 0 0 60px 10px rgba(255, 74, 18, .5); background-color: rgba(255, 74, 18, .35); animation-delay: -2s; }
.tile.t3 { left: 22%; bottom: 12%; width: 48px; height: 48px; font-size: 22px; border-radius: 14px; box-shadow: 0 0 40px 6px rgba(255, 200, 60, .35); background-color: rgba(255, 200, 60, .25); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 720px) { .note { display: none; } .tile.t1 { left: 4%; top: 14%; } .tile.t2 { right: 4%; bottom: 10%; } .tile.t3 { display: none; } }

/* ---------- Scroll-assembled words ---------- */

.words { padding: 120px 0; text-align: center; }
.words .line { font-size: clamp(34px, 6.5vw, 92px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; color: var(--word-dim); }
.words .w { display: inline-block; margin: 0 .14em; transition: transform .1s linear, color .3s; will-change: transform; }
.words .w.hot { color: var(--ink); }
.words em { font-style: italic; font-family: "Playfair Display", serif; font-weight: 800; color: var(--orange); }

/* ---------- Section heads ---------- */

.shead { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.tag { display: inline-block; background: var(--orange); color: #111; font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; transform: rotate(-2deg); }
.shead h2, .shead .h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: clamp(40px, 6vw, 72px); letter-spacing: .5px; line-height: 1; margin-top: 12px; text-transform: uppercase; }
.shead > a { color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.shead > a:hover { color: var(--ink); }
section.block, article.block { padding: 90px 0; }
.block.page-top { padding-top: 72px; }

/* ---------- Meme Corner (sliding rows) ---------- */

.memes { overflow: hidden; }
.mrow { display: flex; gap: 22px; width: max-content; animation: slide 60s linear infinite; padding: 16px 0; }
.mrow.rev { animation-direction: reverse; animation-duration: 70s; }
.memes:hover .mrow, .memes:focus-within .mrow { animation-play-state: paused; }
.mcard { display: block; width: 230px; flex: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transform: rotate(var(--r)); transition: transform .35s, box-shadow .35s; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.mcard img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.mcard:hover, .mcard:focus-visible { transform: rotate(0) scale(1.06); box-shadow: 0 30px 60px rgba(255, 74, 18, .25); }
@keyframes slide { to { transform: translateX(-50%); } }

/* full gallery (/memes/) */
.meme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.meme { display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #16161a; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transition: transform .3s, box-shadow .3s; }
.meme img { width: 100%; height: 100%; object-fit: cover; }
.meme:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(255, 74, 18, .22); }
.more-wrap { margin: 28px 0 0; text-align: center; }
.more-wrap[hidden] { display: none; }
@media (min-width: 768px) { .meme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .meme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- KBO Kids News ---------- */

.shorts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.shorts p { color: var(--muted); line-height: 1.7; margin: 18px 0 26px; max-width: 460px; }
.phone { justify-self: center; width: 280px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px; background: #16161a; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 80px rgba(255, 74, 18, .25), 0 40px 80px rgba(0, 0, 0, .6); position: relative; transform: rotate(4deg); }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative; background: linear-gradient(180deg, #2b1206, #0b0b0d); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 40%; }
.play { position: absolute; inset: auto 0 26px 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 40px var(--orange); transition: transform .2s; }
.play:hover { transform: scale(1.08); }
.play:focus-visible { outline-color: #fff; }
.play::after { content: ""; border-left: 20px solid #111; border-block: 12px solid transparent; margin-left: 5px; }
.live { position: absolute; top: 22px; left: 18px; background: #e01b1b; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: 1px; }
@media (max-width: 820px) { .shorts { grid-template-columns: 1fr; text-align: center; } .shorts p { margin-inline: auto; } .shorts .shead { justify-content: center; } }

/* pop-up for the Short */
.short-dialog { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 56px 16px; border: 0; background: rgba(8, 8, 10, .94); color: var(--ink); }
.short-dialog[open] { display: flex; align-items: center; justify-content: center; }
.short-dialog::backdrop { background: rgba(8, 8, 10, .8); }
.short-frame { position: relative; width: min(100%, 340px, calc((100dvh - 120px) * 9 / 16)); aspect-ratio: 9 / 16; background: #16161a; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.short-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Newspaper clippings (blog cards) ---------- */

.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 30px; }
.clip {
  background: var(--paper); color: #151515; border-radius: 4px; padding: 18px 18px 22px; transform: rotate(var(--r)); transition: transform .3s; height: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .55); position: relative;
  clip-path: polygon(0 1%, 4% 0, 9% 1.2%, 15% .2%, 22% 1%, 30% 0, 38% 1.1%, 46% .3%, 55% 1.2%, 63% .1%, 71% 1%, 80% .2%, 88% 1.1%, 95% 0, 100% 1%, 100% 99%, 94% 100%, 86% 98.9%, 78% 99.8%, 70% 98.8%, 62% 99.9%, 53% 98.9%, 45% 99.7%, 36% 98.8%, 27% 99.9%, 18% 99%, 10% 99.8%, 4% 98.9%, 0 99.6%);
}
.clip:hover, .clip:focus-within { transform: rotate(0) translateY(-6px); }
.clip .masthead, .a-mast { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; border-bottom: 3px double #151515; padding-bottom: 8px; margin-bottom: 14px; font-weight: 700; }
.clip .cover, .cover { height: 200px; border-radius: 2px; overflow: hidden; position: relative; background: #222; display: flex; justify-content: center; }
.clip .cover .bg, .cover .bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.6); }
.clip .cover img, .cover img { position: relative; height: 100%; width: auto; margin: auto; }
.clip h3 { font-family: "Playfair Display", serif; font-weight: 900; font-size: 26px; line-height: 1.1; margin: 16px 0 8px; }
.clip h3 a::after { content: ""; position: absolute; inset: 0; }
.clip h3 a:focus-visible { outline: 3px solid #151515; outline-offset: 2px; }
.clip p { font-size: 14.5px; line-height: 1.55; color: #3a3a3a; }
.clip .by { margin-top: 12px; font-size: 12px; color: #666; font-weight: 600; }
.pin { position: absolute; top: -6px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); transform: translateX(-50%); }

.write-note { max-width: 640px; margin: 56px auto 0; padding: 22px; border: 1px dashed var(--edge); border-radius: 22px; text-align: center; }
.write-title { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.write-note p { color: var(--muted); overflow-wrap: anywhere; }
.write-note a, .fbar a, .article-body a, .author-posts a, .back a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article page ---------- */

.article-inner { max-width: 760px; }
.a-mast { border-color: var(--edge); color: var(--muted); }
.article-title { font-family: "Playfair Display", serif; font-weight: 900; font-size: clamp(32px, 6vw, 56px); line-height: 1.08; margin: 8px 0 12px; }
.article .by { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.article .by a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article-summary { color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 24px; }
.cover-lg { height: clamp(240px, 42vw, 420px); border-radius: 12px; margin-bottom: 28px; }
.article-body { font-size: 17px; line-height: 1.75; color: var(--body); overflow-wrap: break-word; }
.article-body > * + * { margin-top: 1em; }
.article-body h2, .article-body h3 { font-family: "Playfair Display", serif; font-weight: 800; line-height: 1.2; margin-top: 1.6em; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4em; list-style: revert; }
.article-body img { border-radius: 12px; margin-inline: auto; }
.article-body blockquote { padding-left: 16px; border-left: 3px solid var(--orange); color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-list li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-label { font-weight: 700; margin-right: 4px; }
.back { margin-top: 24px; }

/* ---------- Authors ---------- */

.author-bio, .author-posts, .tag-list li, .write-note p, .share { line-height: 1.5; }
.author-list { display: grid; gap: 16px; max-width: 720px; }
.author-card { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); scroll-margin-top: 100px; }
.author-card:target { border-color: var(--orange); }
.author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.author-name { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 28px; letter-spacing: .5px; text-transform: uppercase; }
.author-bio { color: var(--muted); margin: 4px 0 12px; }
.author-posts { padding-left: 20px; list-style: disc; }

/* ---------- Follow tiles ---------- */

.follow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ftile { display: block; height: 100%; border-radius: 22px; padding: 26px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.ftile::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; filter: blur(50px); opacity: .45; right: -50px; top: -50px; background: var(--c); }
.ftile:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .25); }
.ftile .ic { display: block; width: 30px; height: 30px; position: relative; }
.ftile .ic-x { color: var(--ink); }
.ftile b { display: block; font-size: 20px; margin-top: 40px; position: relative; }
.ftile span { color: var(--muted); font-size: 14px; position: relative; overflow-wrap: break-word; }
@media (max-width: 820px) { .follow { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */

.site-footer { padding: 60px 0 30px; border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.giant { font-family: Anton, Impact, sans-serif; font-size: clamp(60px, 15vw, 220px); line-height: .9; letter-spacing: 1px; color: transparent; -webkit-text-stroke: 2px var(--orange); white-space: nowrap; text-align: center; }
.giant span { color: var(--orange); -webkit-text-stroke: 0; }
.fbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 30px; }
.fbar a { overflow-wrap: anywhere; }

/* ---------- Lightbox ---------- */

.lightbox, .short-dialog { --ink: #F8F6F0; --muted: #9a9aa2; --line: rgba(255, 255, 255, .08); --ctl: #8b8b92; --focus: #ff8a3d; }
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 56px 16px; border: 0; background: rgba(8, 8, 10, .96); color: var(--ink); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 8, 10, .8); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; touch-action: pan-y; }
.lightbox-img { max-width: min(100%, 560px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.lightbox-caption { margin-top: 12px; color: var(--muted); font-size: .9375rem; text-align: center; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--ctl); border-radius: 50%; background: #16161a; color: var(--ink); cursor: pointer; }
.lb-btn:hover { border-color: var(--orange); color: var(--orange); }
.icon { width: 20px; height: 20px; flex: none; }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { bottom: 16px; }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }
@media (min-width: 768px) {
  .lb-prev, .lb-next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-close { top: 20px; right: 24px; }
}

/* ---------- Day mode details (preview v2, extended to all pages) ---------- */

:root[data-theme="light"] body::before { background-image: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px); }
:root[data-theme="light"] .nav { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
:root[data-theme="light"] .nav ul { color: #3a3a40; }
:root[data-theme="light"] .nav .cta { background: #17171a; color: #fff; box-shadow: none; }
:root[data-theme="light"] .theme { background: rgba(0, 0, 0, .04); }
:root[data-theme="light"] .btn-g { border-color: rgba(0, 0, 0, .2); }
:root[data-theme="light"] .btn-g:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme="light"] .tile { border-color: rgba(0, 0, 0, .08); }
:root[data-theme="light"] .note { color: #3a3a40; }
:root[data-theme="light"] .note svg { stroke: #55555c; }
:root[data-theme="light"] .mcard { box-shadow: 0 18px 34px rgba(0, 0, 0, .18); }
:root[data-theme="light"] .meme { box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
:root[data-theme="light"] .phone { background: #1b1b1f; }
:root[data-theme="light"] .clip { box-shadow: 0 18px 40px rgba(0, 0, 0, .18); border: 1px solid #e6dcc6; }
:root[data-theme="light"] .ftile,
:root[data-theme="light"] .author-card { background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
:root[data-theme="light"] .ftile:hover { border-color: rgba(0, 0, 0, .25); }
:root[data-theme="light"] .tag-list li { background: #fff; }
:root[data-theme="light"] .kicker { background: rgba(255, 255, 255, .5); }

/* ---------- Reduced motion: everything still ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .memes { overflow-x: auto; }
  .mrow [data-dup] { display: none; }
}
