/* Ninja Refinery — blog template (requires tokens.css) */

.container, .mt-container { width: min(var(--maxw), 100%); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.brand span b { color: var(--accent); font-weight: 800; }
.main-navigation { flex: 1; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .15s, color .15s;
}
.main-navigation a:hover { background: var(--accent-soft); color: var(--link); }
.main-navigation a[aria-current="page"] { background: var(--accent-soft); color: var(--link); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .header-inner { gap: 8px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 8px 20px 16px; display: none;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { padding: 12px 14px; border-radius: var(--radius-s); font-size: 16px; }
}

/* ---------- Layout ---------- */
.site-content { padding: 36px 0 64px; }
.site-content > .container, .site-content > .mt-container {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start;
}
#primary { min-width: 0; }
#secondary { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) {
  .site-content > .container, .site-content > .mt-container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #secondary { position: static; }
}

/* ---------- Sidebar widgets ---------- */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget-title { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0; }
.widget li a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--border); }
.widget li:first-child a { border-top: 0; }
.widget li a:hover { color: var(--accent); }
.widget p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.widget input[type="search"], .search-form input[type="search"] {
  width: 100%; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
.widget input[type="search"]:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Archive / listing ---------- */
.page-header { margin: 0 0 28px; }
.page-title { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.page-title::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 4px; background: var(--accent); margin-top: 14px; }

.editorial_block_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; margin-bottom: 32px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-s); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.post-card .post-image { display: block; overflow: hidden; background: var(--surface-2); }
.post-card .post-image a { display: block; }
.post-card .post-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-image img { transform: scale(1.04); }
.post-card .post-content-wrapper { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.post-categories { display: flex; flex-wrap: wrap; gap: 6px; }
.post-categories a, .cat-links a {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--link); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.post-categories a:hover, .cat-links a:hover { background: var(--accent); color: var(--accent-ink); }
.post-card .entry-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.post-card .entry-title a { color: var(--text); text-decoration: none; }
.post-card .entry-title a:hover { color: var(--accent); }
.post-card .entry-meta { font-size: 13px; margin: 0; }
.post-card .entry-excerpt { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* featured first card on the home page */
@media (min-width: 760px) {
  .home-content .editorial_block_grid > .post-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .home-content .editorial_block_grid > .post-card:first-child .post-image { flex: 1.25; }
  .home-content .editorial_block_grid > .post-card:first-child .post-image a,
  .home-content .editorial_block_grid > .post-card:first-child .post-image img { height: 100%; }
  .home-content .editorial_block_grid > .post-card:first-child .post-image img { aspect-ratio: auto; min-height: 260px; }
  .home-content .editorial_block_grid > .post-card:first-child .post-content-wrapper { flex: 1; justify-content: center; padding: 28px; }
  .home-content .editorial_block_grid > .post-card:first-child .entry-title { font-size: 28px; line-height: 1.2; }
}

/* ---------- Entry meta (byline + date) ---------- */
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 14px; }
.entry-meta .byline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.entry-meta .byline a { color: inherit; text-decoration: none; }
.entry-meta .byline a:hover { color: var(--accent); }
.entry-meta .byline img { width: 26px; height: 26px; border-radius: 50%; display: block; background: var(--surface-2); }
.entry-meta .sep { opacity: .5; }
.post-card .entry-meta .byline img { width: 22px; height: 22px; }

/* ---------- Single post ---------- */
.single-post-image figure { margin: 0 0 28px; }
.single-post-image img { display: block; width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
article.post > .entry-header, article.page > .entry-header { margin: 0 0 24px; }
.entry-header .cat-links { margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.entry-header .entry-title { margin: 0 0 16px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.entry-header .entry-meta { margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

.entry-content { font-size: 18px; line-height: 1.78; max-width: var(--measure); overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2 { margin: 1.9em 0 .6em; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.entry-content h3 { margin: 1.6em 0 .5em; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.entry-content h4 { margin: 1.4em 0 .4em; font-size: 18px; font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); font-weight: 700; }
.entry-content img { display: block; border-radius: var(--radius); margin: 1.4em 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.entry-content a:not(.btn) { font-weight: 500; }
.entry-content blockquote {
  margin: 1.8em 0; padding: 18px 24px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.04em;
}
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.entry-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--surface-2); font-weight: 700; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--surface-2); border-radius: var(--radius-s); font-size: 14.5px; }
.entry-content code { font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
  .entry-content { font-size: 17px; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; max-width: 100%; }
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.6em 0; border-radius: var(--radius); background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; }

.entry-footer { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.tags-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-links a { display: inline-block; padding: 5px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.tags-links a::before { content: "#"; color: var(--accent); margin-right: 1px; }
.tags-links a:hover { border-color: var(--accent); color: var(--accent); }
article.post .author-box-pro { max-width: var(--measure); }

/* ---------- Pagination ---------- */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.pagination a, .pagination span, .nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none;
}
.pagination a:hover, .nav-links a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current, .nav-links .current, .pagination [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Static pages, search, 404, comments ---------- */
article.page .entry-content { max-width: var(--measure); }
.search-page { min-height: 40vh; }
#pagefind-search { --pagefind-ui-primary: var(--accent); --pagefind-ui-text: var(--text); --pagefind-ui-background: var(--surface); --pagefind-ui-border: var(--border); --pagefind-ui-tag: var(--surface-2); --pagefind-ui-font: var(--font); }
.error-404 { text-align: center; padding: 40px 0; }
.error-404 .error-num, .error-num { font-size: clamp(88px, 18vw, 160px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 12px 0; color: var(--accent); }
.comments-area { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); max-width: var(--measure); }
.comments-title { font-size: 22px; margin: 0 0 18px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { margin-bottom: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comment-author { font-weight: 700; }
.comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.comments-closed { font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; }
.footer-widgets { padding: 56px 0 36px; }
.footer-widgets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; }
.site-footer .widget { background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }
.site-footer .widget-title { color: #fff; margin-bottom: 14px; font-size: 13px; }
.site-footer .widget p { color: var(--footer-text); }
.site-footer .widget li a { color: var(--footer-text); border: 0; padding: 5px 0; font-size: 14.5px; font-weight: 500; }
.site-footer .widget li a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 10px; text-decoration: none; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-info { border-top: 1px solid rgba(255, 255, 255, .09); padding: 20px 0; font-size: 13.5px; }
.site-info a { color: #fff; text-decoration: none; }

#mt-scrollup {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; font-size: 14px;
}
#mt-scrollup.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =====================================================================
   Design v2 — dark-first, bolder. Overrides the base rules above.
   ===================================================================== */
body {
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(255, 122, 47, .13), transparent 62%),
    radial-gradient(800px 460px at -6% 12%, rgba(139, 92, 246, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(232, 89, 12, .10), transparent 62%),
    radial-gradient(800px 460px at -6% 12%, rgba(139, 92, 246, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* header stays dark in both themes */
.site-header {
  --text: #eef0f5; --muted: #a3abbb; --surface: #141821; --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09); --accent-soft: rgba(255, 122, 47, .16); --link: #ffa066;
  background: rgba(11, 13, 18, .84); color: var(--text); border-bottom: 0;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ff7a2f 25%, #ff4d6d 55%, #8b5cf6 80%, transparent);
  opacity: .9;
}
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.main-navigation a { color: #d7dbe6; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }

/* ---------- Home hero ---------- */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(255, 122, 47, .35), transparent 65%),
    radial-gradient(640px 360px at 5% 100%, rgba(139, 92, 246, .30), transparent 65%),
    linear-gradient(160deg, #1a1e2e, #0b0d12);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.home-hero-inner { position: relative; padding-top: 72px; padding-bottom: 64px; text-align: center; }
.hero-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd0b3;
}
.home-hero h1 {
  margin: 0 auto 18px; max-width: 16em; font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; color: #fff;
}
.home-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-lead { margin: 0 auto 34px; max-width: 36em; font-size: clamp(16px, 2vw, 19px); color: #c9cfdc; line-height: 1.7; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.hero-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s, background .2s, border-color .2s;
}
.hero-tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .11); border-color: rgba(255, 138, 61, .6); color: #fff; }
.hero-tile-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.hero-tile-name { font-weight: 800; font-size: 17px; }
.hero-tile-count { font-size: 13px; color: #aab2c2; }
@media (max-width: 560px) {
  .home-hero-inner { padding-top: 48px; padding-bottom: 44px; }
  .hero-tiles { gap: 8px; }
  .hero-tile { padding: 14px 6px; }
  .hero-tile-icon { font-size: 22px; }
  .hero-tile-name { font-size: 14px; }
}
.home-hero + .site-content { padding-top: 44px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; font-weight: 800; }
.section-head h2::before { content: ""; display: inline-block; width: 8px; height: 26px; margin-right: 12px; border-radius: 4px; vertical-align: -4px; background: var(--grad); }
.section-head a { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* ---------- Cards ---------- */
.post-card { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; position: relative; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(255, 122, 47, .55); box-shadow: 0 22px 44px -16px rgba(255, 122, 47, .35); }
.post-card .post-image { position: relative; }
.post-card .post-image::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none; background: linear-gradient(to top, rgba(8, 10, 15, .55), transparent); }
.post-card .post-content-wrapper { padding: 20px 22px 24px; }
.post-card .entry-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.post-categories a, .cat-links a { background: var(--grad); color: #fff; padding: 4px 11px; font-size: 11px; }
.post-categories a:hover, .cat-links a:hover { background: var(--grad); color: #fff; filter: brightness(1.12); }
.home-content .editorial_block_grid > .post-card:first-child {
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); border-color: rgba(255, 122, 47, .35);
}
.post-card .entry-meta .sep { display: none; }
.post-card .entry-meta { gap: 4px 14px; }

/* sidebar / widgets */
.widget { border-radius: 20px; background: var(--surface); }
.widget-title { color: var(--text); display: flex; align-items: center; gap: 10px; }
.widget-title::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--grad); }
.site-footer .widget-title::before { display: none; }

/* ---------- Single post ---------- */
.single-post-image img { border-radius: 24px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.entry-header .entry-title { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -.04em; }
.entry-content blockquote { background: var(--accent-soft); border-left-color: var(--accent); }
.entry-content h2 { position: relative; padding-left: 18px; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 4px; background: var(--grad); }
#read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.author-box-pro { border-radius: 24px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.author-media-col img { border-color: transparent; background: var(--grad); padding: 3px; }

/* page title on archives */
.page-title::after { background: var(--grad); width: 72px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 24px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #ff7a2f 25%, #ff4d6d 55%, #8b5cf6 80%, transparent); }

/* =====================================================================
   Design v3 — display type, brand mark, archive banner, post backdrop.
   ===================================================================== */
body { overflow-x: clip; }
h1, h2, h3, .brand, .entry-title, .page-title, .section-head h2, .home-hero h1,
.author-text-col h3, .hero-tile-name, .footer-brand { font-family: var(--font-display); }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); letter-spacing: -.02em; }
.home-hero h1 { letter-spacing: -.035em; }
.entry-header .entry-title { letter-spacing: -.03em; }
.post-card .entry-title { letter-spacing: -.015em; }

/* brand mark: the logo is black, give it a light disc + glow so it reads on the dark header */
.brand img, .footer-brand img {
  background: #fff; padding: 2px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 122, 47, .7), 0 6px 16px -4px rgba(255, 122, 47, .55);
}

/* calmer category pills: tinted by default, gradient on hover */
.post-categories a, .cat-links a { background: var(--accent-soft); color: var(--link); border: 1px solid rgba(255, 122, 47, .28); }
.post-categories a:hover, .cat-links a:hover { background: var(--grad); color: #fff; border-color: transparent; filter: none; }

/* hero tiles with drawn icons */
.hero-tile-icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 15px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 77, 109, .7);
}
.hero-tile:nth-child(2) .hero-tile-icon { background: linear-gradient(120deg, #c47a3d, #ff7a2f); }
.hero-tile:nth-child(3) .hero-tile-icon { background: linear-gradient(120deg, #8b5cf6, #ff4d6d); box-shadow: 0 10px 24px -8px rgba(139, 92, 246, .7); }
.hero-tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .hero-tile-icon { width: 40px; height: 40px; border-radius: 12px; } .hero-tile-icon svg { width: 21px; height: 21px; } }

/* archive banner (category / tag pages) */
.page-header {
  position: relative; overflow: hidden; padding: 34px 32px 30px; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(520px 230px at 100% 0%, rgba(255, 122, 47, .24), transparent 70%),
    radial-gradient(440px 230px at 0% 100%, rgba(139, 92, 246, .20), transparent 70%),
    var(--surface);
}
.page-header::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: linear-gradient(rgba(127, 127, 127, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 127, 127, .08) 1px, transparent 1px);
  background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.page-header .page-title { position: relative; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.04em; text-transform: capitalize; }
.page-header .page-title::after { display: none; }
.page-eyebrow { display: block; margin-bottom: 10px; font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
@media (max-width: 560px) { .page-header { padding: 26px 20px 22px; } }

/* post backdrop: blurred cover image glowing behind the article header */
body.is-single::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 760px; z-index: -1; pointer-events: none;
  background: var(--post-bg) center / cover no-repeat;
  filter: blur(80px) saturate(1.5); opacity: .32;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
}
:root[data-theme="light"] body.is-single::before { opacity: .2; }
.is-single .single-post-image img { outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; }
.is-single .entry-header .entry-meta { border-bottom-color: var(--border); }

/* featured card on home reads like a cover story */
.home-content .editorial_block_grid > .post-card:first-child .entry-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; }
.entry-meta .byline img { background: #fff; padding: 1px; box-shadow: 0 0 0 1.5px rgba(255, 122, 47, .6); }

iframe { color-scheme: light; }


/* ===== Concept A — ARCADE (final skin, loaded last): neon HUD, cut corners, lime + cyan on near-black ===== */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06050c; --surface: #0f0d1c; --surface-2: #17142b; --text: #f2f0ff; --muted: #9d98c0; --border: #2a2550;
  --accent: #c6ff1a; --accent-strong: #dcff6b; --accent-ink: #0a0a0a; --accent-soft: rgba(198, 255, 26, .10); --link: #c6ff1a;
  --cyan: #00e5ff; --mag: #ff2e88;
  --grad: linear-gradient(90deg, #c6ff1a, #00e5ff);
  --font-display: 'Chakra Petch', var(--font); --mono: 'JetBrains Mono', ui-monospace, monospace;
  --cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
body {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
    radial-gradient(900px 500px at 100% -10%, rgba(255, 46, 136, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0, 229, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
:root[data-theme="light"] body { background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), radial-gradient(900px 500px at 100% -10%, rgba(255,46,136,.16), transparent 60%), var(--bg); }
.theme-toggle { display: none; }
h1, h2, h3, .entry-title, .page-title, .section-head h2 { text-transform: uppercase; letter-spacing: .01em; }

/* header */
.site-header { background: rgba(6, 5, 12, .9); --text: #f2f0ff; }
.site-header::after { background: var(--grad); opacity: 1; height: 2px; box-shadow: 0 0 18px #c6ff1a; }
.brand span, .logo { text-transform: uppercase; letter-spacing: .04em; }
.brand span b { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.main-navigation a { font-family: var(--mono); font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; border-radius: 0; color: #cfcbe8; }
.main-navigation a::before { content: "["; color: transparent; margin-right: 4px; transition: color .15s; }
.main-navigation a::after { content: "]"; color: transparent; margin-left: 4px; transition: color .15s; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { background: none; color: var(--accent); }
.main-navigation a:hover::before, .main-navigation a:hover::after, .main-navigation a[aria-current="page"]::before, .main-navigation a[aria-current="page"]::after { color: var(--accent); }
.brand img, .footer-brand img, .entry-meta .byline img { box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(198, 255, 26, .6); }

/* section titles */
.section-head h2::before { content: "//"; width: auto; height: auto; background: none; color: var(--accent); margin-right: 10px; font-family: var(--mono); }
.section-head a { font-family: var(--mono); text-transform: uppercase; font-size: 12.5px; letter-spacing: .06em; color: var(--cyan); }

/* cards: cut corners + neon frame */
.post-card {
  border: 0; border-radius: 0; clip-path: var(--cut); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, #3a3470, #1a1733) border-box;
  border: 1px solid transparent; transition: transform .2s, filter .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: none; filter: drop-shadow(0 0 14px rgba(198, 255, 26, .35)); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.post-card .post-image::after { background: linear-gradient(to top, rgba(6, 5, 12, .85), transparent 70%); }
.post-categories a, .cat-links a {
  border-radius: 0; background: var(--accent); color: #0a0a0a; border: 0; font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 6px) 100%, 0 100%);
}
.post-categories a + a, .cat-links a + a { background: var(--cyan); }
.post-categories a:hover, .cat-links a:hover { background: var(--mag); color: #fff; }
.post-card .entry-title { font-size: 21px; line-height: 1.15; }
.entry-meta, .entry-meta time { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.home-content .editorial_block_grid > .post-card:first-child { background: linear-gradient(var(--surface-2), var(--surface)) padding-box, var(--grad) border-box; }
.home-content .editorial_block_grid > .post-card:first-child .entry-title { font-size: clamp(26px, 3vw, 36px); }

/* widgets & archive */
.widget { border-radius: 0; clip-path: var(--cut); background: var(--surface); border: 1px solid var(--border); }
.widget-title { font-family: var(--mono); color: var(--accent); }
.widget-title::before { content: ">"; width: auto; height: auto; background: none; }
.site-footer .widget-title { color: var(--accent); }
.page-header { border-radius: 0; clip-path: var(--cut); background: radial-gradient(500px 220px at 100% 0%, rgba(255, 46, 136, .3), transparent 70%), radial-gradient(440px 220px at 0% 100%, rgba(0, 229, 255, .22), transparent 70%), var(--surface); }
.page-eyebrow { font-family: var(--mono); color: var(--cyan); }
.page-eyebrow::before { content: "> "; }
.pagination a, .pagination span, .nav-links a, .nav-links span { border-radius: 0; font-family: var(--mono); }

/* article */
.single-post-image img { border-radius: 6px; clip-path: none; border: 1px solid var(--border); }
.entry-header .entry-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; text-shadow: 0 0 30px rgba(198, 255, 26, .18); }
.entry-content h2::before { background: var(--grad); box-shadow: 0 0 10px #c6ff1a; }
.entry-content a:not(.btn) { color: var(--cyan); }
.entry-content blockquote { border-radius: 0; border-left: 3px solid var(--mag); background: rgba(255, 46, 136, .08); font-family: var(--mono); font-size: 16px; }
.tags-links a { border-radius: 0; font-family: var(--mono); background: transparent; border-color: var(--border); }
.tags-links a::before { content: "#"; color: var(--cyan); }
#read-progress { background: var(--grad); box-shadow: 0 0 12px #c6ff1a; }
.author-box-pro { border-radius: 0; clip-path: var(--cut); background: var(--surface-2); border: 1px solid var(--border); }
.author-label { font-family: var(--mono); color: var(--accent); }
.author-media-col img { background: var(--grad); }
.author-email-btn { border-radius: 0; font-family: var(--mono); }

/* footer */
.site-footer { background: #040309; }
.site-footer::before { background: var(--grad); box-shadow: 0 0 18px #c6ff1a; }
#mt-scrollup { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 100% 100%, 0 100%, 0 50%); background: var(--accent); color: #000; }

/* ----- casino ----- */
.hero { background: radial-gradient(800px 360px at 85% -5%, rgba(255, 46, 136, .35), transparent 65%), radial-gradient(700px 360px at 5% 105%, rgba(0, 229, 255, .25), transparent 65%), #08070f; }
.hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 22px rgba(198, 255, 26, .3)); }
.update-badge { border-radius: 0; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.update-badge svg { fill: var(--accent); }
.content-block h2::before { background: var(--grad); box-shadow: 0 0 10px #c6ff1a; }
.content-block h1 { border-image: var(--grad) 1; }
.content-block a { color: var(--cyan); }
.content-block table { border-radius: 0; border-color: var(--border); }
.content-block table thead tr, .content-block table tbody tr:first-child { background: #000 !important; }
.content-block table thead tr th, .content-block table tbody tr:first-child td, .content-block table tbody tr:first-child td p, .content-block table tbody tr:first-child td strong { color: var(--accent) !important; font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.content-block table tbody tr:not(:first-child):hover { background: rgba(198, 255, 26, .06); }
.pros-box, .cons-box { border-radius: 0; clip-path: var(--cut); }
.pros-box::before { background: #c6ff1a; box-shadow: 0 0 12px #c6ff1a; }
.cons-box::before { background: var(--mag); box-shadow: 0 0 12px var(--mag); }
.pros-box h3 { color: #c6ff1a; } .cons-box h3 { color: var(--mag); }
.faq-item { border-radius: 0; clip-path: var(--cut); }
.faq-question i { color: var(--accent); }
.content-block ol li::marker, .content-block ul li::marker { color: var(--accent); }
.lang-btn { border-radius: 0; clip-path: var(--cut); }
.lang-dropdown { border-radius: 0; }
.responsible-text { color: var(--accent); font-family: var(--font-display); text-transform: uppercase; }
.cookie-micro-banner { border-radius: 0; font-family: var(--mono); }
.cookie-btn { border-radius: 0; background: var(--accent); color: #000; }

/* category links come with ', ' separators in the markup; hide the text nodes, the gap spaces the pills */
.cat-links, .post-categories { font-size: 0; }

/* load more */
.load-more-wrap { display: flex; justify-content: center; margin: 12px 0 0; }
.load-more {
  font-family: var(--mono, var(--font)); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 34px; border: 0; cursor: pointer; background: var(--accent); color: #0a0a0a;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background .15s, filter .15s, transform .15s;
}
.load-more:hover { background: var(--cyan, var(--accent)); filter: drop-shadow(0 0 12px rgba(0, 229, 255, .5)); transform: translateY(-2px); }
.load-more:disabled { opacity: .6; cursor: wait; transform: none; }

/* article header rhythm: uppercase display type needs more leading and air around it */
.entry-header .cat-links { margin-bottom: 20px; gap: 8px; }
.entry-header .entry-title { line-height: 1.12; letter-spacing: .005em; margin: 0 0 22px; }
.entry-header .entry-meta { padding-bottom: 22px; gap: 6px 14px; }
.post-card .entry-title { line-height: 1.22; }
.post-card .post-content-wrapper { gap: 12px; }
.page-header .page-title { line-height: 1.08; }

/* search page */
.search-big { margin: 0 0 14px; }
.search-big input[type="search"] {
  width: 100%; padding: 18px 20px; font: inherit; font-size: 18px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.search-big input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.search-status { margin: 0 0 22px; color: var(--muted); font-family: var(--mono, var(--font)); font-size: 13px; letter-spacing: .03em; }
