/*
Theme Name: Shylo Love
Theme URI: https://shylolove.com
Author: Shylo Love
Author URI: https://shylolove.com
Description: Bespoke theme for shylolove.com. A modern rebuild of the original Divina-based layout: fixed collapsible sidebar with script logo, social links, accordion menu and LoveFire Radio player; square tile post grid with post-format icons; white reading column for posts and pages. Built-in galleries, lightbox, flip cards and social icons replace the former plugin stack.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shylolove
Tags: custom-menu, featured-images, post-formats, one-column, custom-logo, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --sl-bg: #1a1a1a;
  --sl-bg-2: #232323;
  --sl-bg-3: #2d2d2d;
  --sl-ink: #1a1a1a;
  --sl-paper: #ffffff;
  --sl-paper-2: #f4f1f8;
  --sl-text: #ffffff;
  --sl-text-dim: rgba(255, 255, 255, 0.72);
  --sl-text-faint: rgba(255, 255, 255, 0.45);
  --sl-line: rgba(255, 255, 255, 0.14);
  --sl-accent: #cc99ff;        /* lavender: KILONOVA link, hover */
  --sl-accent-2: #d4145a;      /* magenta: Divina hover heritage */
  --sl-accent-3: #926aa8;      /* theme purple: meta theme-color */
  --sl-accent-4: #9f80d6;      /* flipbox button purple */
  --sl-gradient: linear-gradient(135deg, #cc99ff 0%, #9f80d6 45%, #d4145a 100%);
  --sl-font: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sl-script: "Niconne", "Raleway", cursive;
  --sl-sidebar-w: 320px;
  --sl-rail-w: 76px;
  --sl-tile-min: 260px;
  --sl-tile-gap: 3px;
  --sl-radius: 10px;
  --sl-ease: cubic-bezier(.2, .7, .2, 1);
  --sl-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--sl-bg);
  color: var(--sl-text);
  font-family: var(--sl-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--sl-ease), opacity .2s var(--sl-ease); }
a:hover { color: var(--sl-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--sl-font); font-weight: 600; line-height: 1.2; margin: 1.4em 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.25em; }
hr { border: 0; border-top: 1px solid currentColor; opacity: .18; margin: 2.2em 0; }
blockquote { border-left: 3px solid var(--sl-accent); margin-left: 0; padding-left: 1.2em; font-style: italic; opacity: .9; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
pre { background: var(--sl-bg-2); color: #fff; padding: 1em; overflow: auto; border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .5em .7em; border: 1px solid rgba(128, 128, 128, .3); text-align: left; vertical-align: top; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sl-accent); outline-offset: 3px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; color: var(--sl-ink); clip: auto; clip-path: none; display: block; font-size: 1em; height: auto; left: 8px; top: 8px; padding: 12px 20px; width: auto; z-index: 100000; border-radius: 6px; }
.skip-link { position: absolute; }

/* ==========================================================================
   3. Shell: sidebar + content
   ========================================================================== */
.site { min-height: 100vh; }
.site-content { min-width: 0; }

.sidebar {
  background: var(--sl-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 28px;
  gap: 18px;
  position: relative;
}
.site-branding { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-logo { display: block; width: min(300px, 88%); transition: width .35s var(--sl-ease), opacity .3s; }
.site-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.site-logo.is-text { font-family: var(--sl-script); font-size: 3.2rem; line-height: 1; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.site-title { font-size: 0; margin: 0; position: absolute; }
.site-tagline { font-size: .78rem; margin: 0; line-height: 1.5; color: #fff; letter-spacing: .01em; }
.site-tagline a { color: #fff; }
.site-tagline .aka { color: var(--sl-accent); font-weight: 700; }
.site-tagline a:hover { color: var(--sl-accent); }

/* Social icons */
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social-links a {
  --c: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--c);
  color: var(--c);
  transition: transform .2s var(--sl-ease), background .2s, color .2s, box-shadow .2s;
}
.social-links a:hover, .social-links a:focus-visible { background: var(--c); color: #1a1a1a; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.social-links svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.social-links .s-youtube { --c: #ff4b4b; }
.social-links .s-soundcloud { --c: #ff8a3d; }
.social-links .s-soundcloud-2 { --c: #ffb347; }
.social-links .s-deviantart { --c: #9be36b; }
.social-links .s-tumblr { --c: #5cd6a8; }
.social-links .s-x { --c: #7fd7f0; }
.social-links .s-facebook { --c: #6ea8ff; }
.social-links .s-instagram { --c: #c27dff; }
.social-links .s-linkedin { --c: #7f9cff; }
.social-links .s-spotify { --c: #4ade80; }
.social-links .s-behance { --c: #7fa6ff; }
.social-links .s-pinterest { --c: #ff6b8a; }
.social-links .s-bandcamp { --c: #62a2c5; }
.social-links .s-mixcloud { --c: #8dd3f5; }
.social-links .s-tiktok { --c: #ff6ea9; }
.social-links .s-email { --c: #f0d27a; }
.social-links .s-link { --c: #ddd; }

/* Menu */
.main-navigation { width: 100%; text-align: left; margin-top: 6px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > ul > li { border-top: 1px solid var(--sl-line); }
.main-navigation > ul > li:last-child { border-bottom: 1px solid var(--sl-line); }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block;
  padding: 10px 44px 10px 10px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 6px;
}
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--sl-accent); background: rgba(255, 255, 255, .04); }
.main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a, .main-navigation .current_page_item > a { color: var(--sl-accent); }
.main-navigation .sub-menu { display: none; padding: 0 0 8px 14px; }
.main-navigation .sub-menu a { font-size: .8rem; letter-spacing: .06em; text-transform: none; font-weight: 400; padding: 6px 10px; color: var(--sl-text-dim); }
.main-navigation .sub-menu a:hover { color: var(--sl-accent); }
.main-navigation li.is-open > .sub-menu { display: block; animation: sl-drop .25s var(--sl-ease); }
@keyframes sl-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown-toggle {
  position: absolute; right: 2px; top: 4px;
  width: 36px; height: 36px; border: 0; background: transparent; color: #fff; border-radius: 6px;
  display: grid; place-items: center;
}
.dropdown-toggle svg { width: 18px; height: 18px; transition: transform .25s var(--sl-ease); }
.dropdown-toggle:hover { color: var(--sl-accent); background: rgba(255, 255, 255, .05); }
li.is-open > .dropdown-toggle svg { transform: rotate(180deg); }

/* Search */
.sidebar-search { width: 100%; }
.search-form { display: flex; align-items: center; gap: 6px; background: var(--sl-bg-2); border: 1px solid var(--sl-line); border-radius: 999px; padding: 4px 6px 4px 14px; }
.search-form input[type="search"] { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: .9rem; padding: 6px 0; }
.search-form input::placeholder { color: var(--sl-text-faint); }
.search-form button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--sl-gradient); color: #fff; display: grid; place-items: center; }
.search-form svg { width: 15px; height: 15px; fill: currentColor; }

/* Radio widget */
.radio-widget { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; }
.radio-widget .radio-logo { width: 56px; height: 56px; border-radius: 50%; display: block; transition: transform .6s var(--sl-ease); }
.radio-widget.is-playing .radio-logo { animation: sl-spin 6s linear infinite; }
@keyframes sl-spin { to { transform: rotate(360deg); } }
.radio-widget .radio-title { font-size: .8rem; margin: 0; }
.radio-widget .radio-title a { color: #fff; font-style: italic; font-weight: 700; }
.radio-widget .radio-title a:hover { color: var(--sl-accent); }
.radio-player { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 260px; background: var(--sl-bg-2); border: 1px solid var(--sl-line); border-radius: 999px; padding: 5px 14px 5px 5px; }
.radio-player button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sl-gradient); color: #fff; display: grid; place-items: center; flex: none; }
.radio-player button svg { width: 16px; height: 16px; fill: currentColor; }
.radio-player .radio-status { font-size: .74rem; color: var(--sl-text-dim); flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-player input[type="range"] { width: 60px; accent-color: var(--sl-accent); }
.radio-widget audio { width: 100%; max-width: 260px; }

/* Sidebar extras (widgets area) */
.sidebar-widgets { width: 100%; text-align: left; font-size: .82rem; color: var(--sl-text-dim); }
.sidebar-widgets .widget { margin: 0 0 22px; }
.sidebar-widgets .widget_search, .sidebar-widgets .widget_block.widget_search { display: none; }
.sidebar-widgets .widget_block h2, .sidebar-widgets .wp-block-heading { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.sidebar-widgets .wp-block-latest-posts__post-date { display: block; font-size: .72rem; color: var(--sl-text-faint); }
.sidebar-widgets .widget-title { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.sidebar-widgets ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widgets li { padding: 6px 0; border-top: 1px solid var(--sl-line); }
.sidebar-widgets li:first-child { border-top: 0; }
.sidebar-widgets a { color: #fff; }
.sidebar-widgets .post-date { display: block; font-size: .72rem; color: var(--sl-text-faint); }
.sidebar-foot { margin-top: auto; width: 100%; font-size: .7rem; color: var(--sl-text-faint); padding-top: 10px; }
.sidebar-foot a { color: var(--sl-text-dim); }
.sidebar-foot .paypal img { width: 110px; border-radius: 8px; margin: 8px auto; display: block; background: #fff; padding: 6px; }

/* Toggle buttons */
.sb-toggle {
  border: 1px solid var(--sl-line); background: var(--sl-bg-2); color: #fff; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.sb-toggle:hover { border-color: var(--sl-accent); color: var(--sl-accent); }
.sb-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sb-collapse { display: none; }
.menu-toggle { display: none; }
.rail-only { display: none; }

/* ---- Desktop: fixed sidebar + collapsible rail ---- */
@media (min-width: 992px) {
  .site { display: grid; grid-template-columns: var(--sl-sidebar-w) minmax(0, 1fr); transition: grid-template-columns .35s var(--sl-ease); }
  .sidebar {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
    padding-top: 54px;
    border-right: 1px solid rgba(255, 255, 255, .06);
  }
  .sb-collapse {
    display: grid; place-items: center;
    position: absolute; top: 12px; right: 12px; z-index: 5;
    width: 34px; height: 34px; padding: 0; border-radius: 50%;
    background: var(--sl-bg-2); border: 1px solid var(--sl-line); color: #fff;
  }
  .sb-collapse:hover { color: var(--sl-accent); border-color: var(--sl-accent); }
  .sb-collapse svg { transition: transform .3s var(--sl-ease); }
  .rail-only { display: none; }

  /* collapsed rail */
  html.sb-collapsed .site { grid-template-columns: var(--sl-rail-w) minmax(0, 1fr); }
  html.sb-collapsed .sidebar { padding: 60px 8px 20px; gap: 10px; }
  html.sb-collapsed .sb-collapse { right: 50%; transform: translateX(50%); }
  html.sb-collapsed .sb-collapse svg { transform: rotate(180deg); }
  html.sb-collapsed .site-logo, html.sb-collapsed .site-tagline, html.sb-collapsed .main-navigation,
  html.sb-collapsed .sidebar-search, html.sb-collapsed .sidebar-widgets, html.sb-collapsed .sidebar-foot,
  html.sb-collapsed .radio-widget .radio-title, html.sb-collapsed .radio-player, html.sb-collapsed .radio-widget audio { display: none; }
  html.sb-collapsed .rail-only { display: block; }
  html.sb-collapsed .rail-logo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: block; margin: 0 auto; }
  html.sb-collapsed .rail-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  html.sb-collapsed .rail-logo.is-text { font-family: var(--sl-script); font-size: 1.6rem; line-height: 46px; text-align: center; color: #fff; }
  html.sb-collapsed .social-links { flex-direction: column; gap: 8px; }
  html.sb-collapsed .social-links a { width: 32px; height: 32px; }
  html.sb-collapsed .radio-widget { padding-top: 0; }
  html.sb-collapsed .radio-widget .radio-logo { width: 40px; height: 40px; }
  html.sb-collapsed .rail-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  html.sb-collapsed .rail-nav a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
  html.sb-collapsed .rail-nav a:hover { background: rgba(255, 255, 255, .06); color: var(--sl-accent); }
  html.sb-collapsed .rail-nav .current-menu-item a, html.sb-collapsed .rail-nav .current-menu-ancestor a { color: var(--sl-accent); }
}
@media (min-width: 1400px) { :root { --sl-sidebar-w: 340px; } }

/* ---- Tablet / mobile: stacked header, hamburger ---- */
@media (max-width: 991.98px) {
  .sidebar { padding: 26px 18px 18px; gap: 14px; }
  .site-logo { width: min(340px, 86%); }
  .sb-tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; animation: sl-drop .25s var(--sl-ease); }
  .sidebar-search { display: none; }
  .main-navigation.is-open + .sidebar-search, .sidebar-search.is-open { display: block; }
  .sidebar-widgets, .sidebar-foot { display: none; }
  .sidebar-widgets.is-open, .sidebar-foot.is-open { display: block; }
  .radio-widget { padding-top: 0; }
}

/* ==========================================================================
   4. Tile grid (home, archives, search)
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--sl-tile-min), 1fr)); gap: var(--sl-tile-gap); background: var(--sl-bg); }
@media (max-width: 599.98px) { .tiles { --sl-tile-min: 46vw; } }
.tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sl-bg-2); margin: 0; }
.tile-link { position: absolute; inset: 0; z-index: 2; }
.tile-media { position: absolute; inset: 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--sl-ease), filter .5s; }
.tile-media.is-placeholder { background: var(--sl-gradient); display: grid; place-items: center; }
.tile-media.is-placeholder span { font-family: var(--sl-script); font-size: 3rem; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.tile-cap {
  position: absolute; inset: 0; z-index: 1;
  padding: 1.1em 1.2em;
  display: flex; flex-direction: column; justify-content: flex-start; gap: .5em;
  background: linear-gradient(180deg, rgba(20, 10, 30, .92) 0%, rgba(20, 10, 30, .78) 60%, rgba(20, 10, 30, .35) 100%);
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--sl-ease), transform .35s var(--sl-ease);
}
.tile-title { font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.25; letter-spacing: .01em; }
.tile-excerpt { font-size: .82rem; line-height: 1.45; color: var(--sl-text-dim); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { margin-top: auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sl-accent); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-format { position: absolute; right: 14px; bottom: 12px; z-index: 1; width: 36px; height: 36px; color: rgba(255, 255, 255, .55); transition: transform .4s var(--sl-ease), color .3s; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.tile-format svg { width: 100%; height: 100%; fill: currentColor; }
.tile-sticky { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; background: var(--sl-gradient); padding: 4px 10px; border-radius: 999px; }
.tile-date { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 3px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .3s; }
.tile:hover .tile-media img, .tile:focus-within .tile-media img { transform: scale(1.06); }
.tile:hover .tile-cap, .tile:focus-within .tile-cap { opacity: 1; transform: none; }
.tile:hover .tile-format, .tile:focus-within .tile-format { transform: translateY(60px); }
@media (hover: none), (pointer: coarse) {
  /* touch: always show a compact title bar instead of hover reveal */
  .tile-cap { opacity: 1; transform: none; justify-content: flex-end; background: linear-gradient(0deg, rgba(20, 10, 30, .9) 0%, rgba(20, 10, 30, .55) 45%, transparent 75%); padding: .9em 1em; }
  .tile-excerpt, .tile-meta { display: none; }
  .tile-title { font-size: .95rem; }
  .tile-format { bottom: auto; top: 12px; width: 28px; height: 28px; }
  .tile:hover .tile-format { transform: none; }
}

/* Archive header strip */
.archive-header { padding: 34px 40px 18px; border-bottom: 1px solid var(--sl-line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.archive-header h1 { margin: 0; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; }
.archive-header .archive-description { margin: 0; color: var(--sl-text-dim); font-size: .92rem; flex-basis: 100%; }
.archive-header .archive-count { font-size: .75rem; color: var(--sl-text-faint); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 599.98px) { .archive-header { padding: 22px 18px 14px; } }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 32px 20px 40px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sl-line); color: #fff; font-size: .85rem; font-weight: 600; }
.pagination .page-numbers:hover { border-color: var(--sl-accent); color: var(--sl-accent); }
.pagination .page-numbers.current { background: var(--sl-gradient); border-color: transparent; }
.pagination .dots { border: 0; }
.post-navigation { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 0; font-size: .85rem; }
.post-navigation a { display: block; max-width: 48%; color: inherit; opacity: .8; }
.post-navigation a:hover { opacity: 1; color: var(--sl-accent-2); }
.post-navigation .nav-next { text-align: right; margin-left: auto; }
.post-navigation .nav-label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

/* ==========================================================================
   5. Reading column (single, page)
   ========================================================================== */
.reading { background: var(--sl-paper); color: var(--sl-ink); color-scheme: light; min-height: 100vh; overflow-x: hidden; }
.entry-content { overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .entry-content table { display: block; overflow-x: auto; } .entry-content iframe { max-width: 100% !important; } }
.reading a { color: var(--sl-accent-3); text-decoration: underline; text-decoration-color: rgba(146, 106, 168, .35); text-underline-offset: 2px; }
.reading a:hover { color: var(--sl-accent-2); }
.reading .entry-header { text-align: center; padding: 44px 24px 6px; max-width: 980px; margin: 0 auto; }
.reading .entry-title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; font-weight: 600; }
.reading .entry-meta { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #777; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.reading .entry-meta a { color: #777; text-decoration: none; }
.reading .entry-meta a:hover { color: var(--sl-accent-2); }
.reading .entry-meta .format-badge { display: inline-flex; align-items: center; gap: 5px; }
.reading .entry-meta .format-badge svg { width: 14px; height: 14px; fill: currentColor; }
.reading .post-thumbnail { display: block; max-width: 980px; margin: 24px auto 0; padding: 0 24px; }
.reading .post-thumbnail img { display: block; margin: 0 auto; border-radius: var(--sl-radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.entry-content, .page-content { max-width: 860px; margin: 0 auto; padding: 28px 24px 40px; font-size: 1.02rem; line-height: 1.7; }
.entry-content.is-wide { max-width: 1240px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--sl-ink); }
.entry-content iframe { border: 0; border-radius: 8px; display: block; margin: 0 auto 1.4em; }
.entry-content figure.wp-block-embed, .entry-content .sl-embed { margin: 0 0 1.4em; }
.entry-content .wp-caption, .entry-content figure { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: .8rem; color: #777; text-align: center; margin-top: .4em; }
.entry-content img.aligncenter, .entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; }
.entry-content img { border-radius: 6px; }
.entry-content table { font-size: .95rem; }
.entry-content td, .entry-content th { border-color: rgba(0, 0, 0, .12); }
.entry-content table[border="0"] td { border: 0; }
.entry-content .lyrics { white-space: pre-line; font-style: italic; }
.entry-footer { max-width: 860px; margin: 0 auto; padding: 0 24px 50px; text-align: center; font-size: .78rem; color: #888; }
.entry-footer a { color: #888; text-decoration: none; }
.entry-footer a:hover { color: var(--sl-accent-2); }
.entry-footer .tags-links a { display: inline-block; margin: 3px; padding: 3px 10px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 999px; }
.entry-footer .tags-links a:hover { border-color: var(--sl-accent-2); }
.reading .site-footer { background: var(--sl-bg); color: #fff; }

/* Native gallery block + classic [gallery] */
.entry-content .gallery, .entry-content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0 0 1.5em; }
.entry-content .gallery .gallery-item { margin: 0; }
.entry-content .gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.entry-content .gallery-caption { font-size: .75rem; color: #777; }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Page: dark variant (galleries / portfolio pages look better on dark) */
.reading.is-dark { background: var(--sl-bg); color: #fff; color-scheme: dark; }
.reading.is-dark a { color: var(--sl-accent); text-decoration-color: rgba(204, 153, 255, .35); }
.reading.is-dark a:hover { color: #fff; }
.reading.is-dark .entry-meta, .reading.is-dark .entry-meta a { color: var(--sl-text-faint); }
.reading.is-dark .entry-content h2, .reading.is-dark .entry-content h3 { color: #fff; }
.reading.is-dark .entry-content td, .reading.is-dark .entry-content th { border-color: var(--sl-line); }
.reading.is-dark figcaption, .reading.is-dark .wp-caption-text { color: var(--sl-text-faint); }

/* ==========================================================================
   6. Flip cards (replaces Cool Flipbox)
   ========================================================================== */
.sl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.5em 0 2em; list-style: none; padding: 0; }
.sl-cards.cols-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sl-card { position: relative; aspect-ratio: 1; perspective: 1200px; display: block; color: #fff !important; text-decoration: none !important; }
.sl-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--sl-ease); border-radius: var(--sl-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sl-card:hover .sl-card-inner, .sl-card:focus-visible .sl-card-inner { transform: rotateY(180deg); }
.sl-card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--sl-radius); overflow: hidden; background: #000 center/cover no-repeat; border: 3px solid #000; }
.sl-card-face.back { transform: rotateY(180deg); display: grid; place-items: center; }
.sl-card-face.back::before { content: ""; position: absolute; inset: 0; background: rgba(10, 5, 20, .45); }
.sl-card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); text-shadow: 0 1px 3px #000; }
.sl-card-btn { position: relative; z-index: 1; background: var(--sl-accent-4); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; letter-spacing: .14em; font-size: .76rem; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.sl-card-face.back .sl-card-label { background: none; text-align: center; font-size: .9rem; bottom: 50%; transform: translateY(44px); }
@media (hover: none) {
  .sl-card-inner { transition: none; }
  .sl-card:hover .sl-card-inner { transform: none; }
}

/* ==========================================================================
   7. Galleries (replaces Gmedia) + lightbox (replaces FooBox)
   ========================================================================== */
.sl-gallery { margin: 1.5em 0 2.5em; }
.sl-gallery-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.sl-gallery-head h3 { margin: 0 auto 0 0; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.sl-gallery-count { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.sl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sl-filters button { border: 1px solid rgba(128, 128, 128, .35); background: transparent; color: inherit; border-radius: 999px; padding: 5px 12px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; transition: all .2s; }
.sl-filters button:hover, .sl-filters button[aria-pressed="true"] { background: var(--sl-gradient); color: #fff; border-color: transparent; }
.sl-grid { columns: 4 220px; column-gap: 8px; }
.sl-grid.is-squares { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.sl-grid.is-squares .sl-item { aspect-ratio: 1; }
.sl-grid.is-squares .sl-item img { width: 100%; height: 100%; object-fit: cover; }
.sl-item { break-inside: avoid; margin: 0 0 8px; position: relative; border-radius: 8px; overflow: hidden; background: var(--sl-bg-2); display: block; }
.sl-item.is-hidden { display: none; }
.sl-item img { display: block; width: 100%; height: auto; transition: transform .6s var(--sl-ease), filter .3s; }
.sl-item:hover img { transform: scale(1.04); }
.sl-item .sl-item-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .74rem; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); opacity: 0; transition: opacity .3s; }
.sl-item:hover .sl-item-cap { opacity: 1; }
.sl-item.is-audio { padding: 14px; aspect-ratio: auto; }
.sl-item.is-audio audio { width: 100%; }
.sl-more { display: block; margin: 14px auto 0; }
.sl-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--sl-gradient); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; text-decoration: none !important; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.sl-btn.is-ghost { background: transparent; border: 1px solid currentColor; color: inherit !important; box-shadow: none; }

/* Lightbox */
.sl-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: #fff; }
.sl-lightbox::backdrop { background: rgba(8, 4, 14, .94); backdrop-filter: blur(6px); }
.sl-lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; }
.sl-lightbox-stage { display: grid; place-items: center; padding: 56px 64px 10px; min-height: 0; }
.sl-lightbox-stage img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 6px; box-shadow: var(--sl-shadow); animation: sl-fade .25s var(--sl-ease); }
.sl-lightbox-stage iframe, .sl-lightbox-stage video { width: min(1100px, 92vw); aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
@keyframes sl-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.sl-lightbox-cap { text-align: center; padding: 8px 70px 22px; font-size: .86rem; color: var(--sl-text-dim); min-height: 48px; }
.sl-lightbox-cap strong { color: #fff; display: block; }
.sl-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.sl-lightbox button:hover { background: var(--sl-accent-2); }
.sl-lightbox button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sl-lightbox .lb-close { top: 14px; right: 14px; }
.sl-lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sl-lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.sl-lightbox .lb-count { position: absolute; top: 24px; left: 20px; font-size: .74rem; letter-spacing: .14em; color: var(--sl-text-faint); }
@media (max-width: 599.98px) {
  .sl-lightbox-stage { padding: 56px 8px 6px; }
  .sl-lightbox button { width: 40px; height: 40px; }
  .sl-lightbox .lb-prev { left: 4px; } .sl-lightbox .lb-next { right: 4px; }
  .sl-lightbox-cap { padding: 6px 14px 16px; }
}

/* ==========================================================================
   8. Work / portfolio pages
   ========================================================================== */
.sl-work-intro { font-size: 1.1rem; max-width: 760px; }
.sl-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 1.5em 0 2.5em; }
.sl-featured a { display: block; border-radius: var(--sl-radius); overflow: hidden; background: var(--sl-bg-2); border: 1px solid var(--sl-line); text-decoration: none !important; color: inherit !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.sl-featured .shot { height: 300px; overflow: hidden; position: relative; }
.sl-featured .shot img { width: 100%; height: auto; display: block; transition: transform 6s linear; }
.sl-featured a:hover .shot img { transform: translateY(calc(-100% + 300px)); }
.sl-featured .shot::after { content: "scroll to preview · click to visit"; position: absolute; left: 10px; bottom: 10px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .7); padding: 4px 8px; border-radius: 999px; opacity: .8; }
.sl-featured .label { padding: 12px 14px; font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sl-featured .label small { color: var(--sl-text-faint); font-weight: 400; }
.sl-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 1.5em 0 2em; }
.sl-brand { background: var(--sl-bg-2); border: 1px solid var(--sl-line); border-radius: var(--sl-radius); padding: 22px 16px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sl-brand img { max-height: 90px; width: auto; max-width: 80%; }
.sl-brand h3 { margin: 0; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.sl-brand p { margin: 0; font-size: .82rem; color: var(--sl-text-dim); }
.sl-brand .social-links { margin-top: auto; }
.sl-brand .social-links a { width: 28px; height: 28px; }
.sl-brand .social-links svg { width: 13px; height: 13px; }
.sl-links-list { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sl-links-list a { display: block; padding: 14px 16px; border: 1px solid var(--sl-line); border-radius: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; text-decoration: none !important; text-align: center; transition: all .2s; }
.sl-links-list a:hover { border-color: var(--sl-accent); background: rgba(204, 153, 255, .08); }

/* wpautop leftovers inside grids must not become grid cells */
.sl-featured > br, .sl-brands > br, .sl-cards > br, .sl-links-list > br,
.sl-featured > p:empty, .sl-brands > p:empty, .sl-cards > p:empty { display: none; }

/* Embeds */
.sl-embed { border-radius: 8px; overflow: hidden; margin: 0 0 1.4em; background: #000; }
.sl-embed iframe { display: block; width: 100%; border: 0; margin: 0; }
.sl-embed.ratio-16x9 { aspect-ratio: 16 / 9; } .sl-embed.ratio-16x9 iframe { height: 100%; }
.sl-embed.is-sc-track iframe { height: 166px; }
.sl-embed.is-sc-visual iframe { height: 450px; }
.sl-embed.is-sc-set iframe { height: 650px; }
.sl-embed.is-spotify iframe { height: 352px; }
.sl-embed.is-mixcloud iframe { height: 180px; }
.sl-embed.is-bandcamp iframe { height: 470px; }
.release-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; }
.release-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(128, 128, 128, .35); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-decoration: none !important; }
.release-links a:hover { border-color: var(--sl-accent-2); color: var(--sl-accent-2); }
.release-links svg { width: 14px; height: 14px; fill: currentColor; }

/* ==========================================================================
   9. Comments, 404, search, footer
   ========================================================================== */
.comments-area { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; font-size: .95rem; }
.comments-area ol { list-style: none; padding: 0; }
.comment-body { padding: 14px 0; border-top: 1px solid rgba(128, 128, 128, .25); }
.comment-form label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(128, 128, 128, .4); border-radius: 8px; background: transparent; margin-bottom: 12px; }
.comment-form .submit { background: var(--sl-gradient); color: #fff; border: 0; padding: 10px 22px; border-radius: 999px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.error-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-404 .big { font-family: var(--sl-script); font-size: clamp(5rem, 20vw, 14rem); line-height: 1; background: var(--sl-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer { background: var(--sl-bg); color: var(--sl-text-faint); font-size: .74rem; text-align: center; padding: 26px 20px 30px; border-top: 1px solid rgba(255, 255, 255, .06); }
.site-footer a { color: var(--sl-text-dim); }
.site-footer a:hover { color: var(--sl-accent); }
.site-footer .footer-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; }
.site-footer .footer-script { font-family: var(--sl-script); font-size: 1.6rem; color: #fff; display: block; margin-bottom: 6px; }

/* Buttons/utility */
.is-center { text-align: center; }
.is-uppercase { text-transform: uppercase; letter-spacing: .14em; }
.sl-note { font-size: .85rem; padding: 12px 16px; border-left: 3px solid var(--sl-accent); background: rgba(146, 106, 168, .08); border-radius: 0 8px 8px 0; }

/* Print */
@media print {
  .sidebar, .site-footer, .pagination, .post-navigation, .sl-lightbox { display: none !important; }
  .site { display: block; }
  .reading { color: #000; }
}
