:root{
  --accent1: #ff4da6;
  --accent2: #5ec0ff;
  --accent: var(--accent2);
  --radius: 12px;
  --space: 1rem;
  --max-width: 1280px;
  --fb-max-width: 1100px;
  --site-max-width: 1280px;
  --focus: rgba(94, 193, 255, 0.966);
  --shadow-strong: 0 12px 40px rgba(0,0,0,0.3);
  --shadow-soft: 0 4px 14px rgba(0,0,0,0.12), inset 0 0 8px rgba(255,77,166,0.04);
  --neon-glow: #ff4da6;
  --panel-bg: rgba(255,255,255,0.95);
  --panel-border: rgba(0,0,0,0.06);
  --caption-bg-start: rgba(255,255,255,0.03);
  --caption-bg-end: rgba(255,255,255,0.02);
  --caption-text-shadow-color: rgba(0,0,0,0.6);
  --vignette-start: rgba(255,77,166,0.06);
  --vignette-mid: rgba(94,192,255,0.04);
  --hero-glow-opacity: 0.28;
  --banner-transition: 600ms;
  --banner-interval: 4200ms;
  --banner-indicator-width: 48px;
  --banner-indicator-height: 8px;
  --banner-bg: transparent;

  --muted: #222222;
  --text-main: #0b0b0b;
  --text-on-accent: #051024;

  --bg: #f9f9fb;
  --scrollbar-bg: rgba(255,77,166,0.12);
  --scrollbar-thumb: #ff4da6;

  --view-btn-dark-bg: #ffcc00;
  --view-btn-dark-foreground: #000000;
  --view-btn-light-bg: #0077cc;
  --view-btn-light-foreground: #ffffff;

  --footer-glow: #ff4da6;
  --ui-fast: 120ms;
  --ui-medium: 240ms;
  --ui-slow: 420ms;
}

/* Accents */
html[data-accent="pink"]{
  --accent1: #ff4da6;
  --accent2: #00fff0;
  --accent: var(--accent2);
  --neon-glow: #ff4da6;
  --vignette-start: rgba(255,77,166,0.08);
  --vignette-mid: rgba(0,255,240,0.05);
}
html[data-accent="blue"]{
  --accent1: #3b82f6;
  --accent2: #22d3ee;
  --accent: var(--accent2);
  --neon-glow: #3b82f6;
  --vignette-start: rgba(59,130,246,0.06);
  --vignette-mid: rgba(34,211,238,0.04);
}
html[data-accent="mint"]{
  --accent1: #34d399;
  --accent2: #60a5fa;
  --accent: var(--accent2);
  --neon-glow: #34d399;
  --vignette-start: rgba(52,211,153,0.06);
  --vignette-mid: rgba(96,165,250,0.04);
}
html[data-accent="purple"]{
  --accent1: #a78bfa;
  --accent2: #60a5fa;
  --accent: var(--accent2);
  --neon-glow: #a78bfa;
  --vignette-start: rgba(167,139,250,0.06);
  --vignette-mid: rgba(96,165,250,0.04);
}
html[data-accent="sunset"]{
  --accent1: #ff7a59;
  --accent2: #ffd166;
  --accent: var(--accent2);
  --neon-glow: #ff7a59;
  --vignette-start: rgba(255,122,89,0.06);
  --vignette-mid: rgba(255,209,102,0.04);
}

/* Theme: dark overrides */
html[data-theme="dark"]{
  --bg: #0b1020;
  --panel-bg: rgba(8,12,24,0.88);
  --muted: rgba(255,255,255,0.92);
  --text-main: #ffffff;
  --border: rgba(255,255,255,0.06);
  --scrollbar-bg: rgba(94,192,255,0.06);
  --scrollbar-thumb: #5ec0ff;
  --neon-glow: #ff4da6;
  --vignette-overlay-pink: rgba(255,77,166,0.14);
  --vignette-overlay-blue: rgba(94,192,255,0.14);
  --text-on-accent: #051024;
  --view-btn-light-foreground: #ffffff;
}

/* box-sizing + scrollbar defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

/* base layout */
html{
  position: relative;
  height: 100%;
  background: var(--bg);
  z-index: 0;
}
body{
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background .2s ease, color .2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .nav-link, .site-title { animation: none !important; text-shadow: none !important; }
}

/* focus baseline */
:focus{ outline: 0; }
:focus-visible{
  outline: 4px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(94,193,255,0.24);
}
/* prefer color-mix if available for more accurate rings */
@supports (color-mix(in srgb, black 0%, transparent 0%)){
  :focus-visible{
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 100%, transparent);
  }
}

/* footer (consolidated) */
footer{
  grid-column: 1/-1;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space);
  margin-top: calc(var(--space) * 2);
  color: var(--text-main);
  font-size: .9rem;
  user-select: none;
  isolation: isolate;
  background: radial-gradient(
    circle at center,
    rgba(255, 77, 166, 0.12),
    rgba(255, 77, 166, 0) 70%
  );
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  backdrop-filter: blur(2px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0.1px;
  font-weight: 400;
}
footer::before{
  content: "";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center, rgba(255,255,255,.3) 1.2px, transparent 3px);
  pointer-events: none; z-index:-1; border-radius: var(--radius);
}

#latest-artwork-title {
  font-family: "Press Start 2P", monospace;
  font-weight: 900;
  font-size: 1rem;
  margin: 0 0 .8rem 0;
  color: var(--accent2);
}

/* border styles (reduced to be less heavy) */
.sidebar-left,
.sidebar-right,
.welcome-card,
.blog-post,
.latest-artwork,
#main{
  border: 1px solid var(--panel-border);
}

/* form control focus fallback */
.nav-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(94,193,255,0.16);
  transition: box-shadow var(--ui-fast) ease, border var(--ui-fast) ease;
}

/* skip link */
.skip-link, a.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
}
.skip-link:focus, a.skip:focus {
  left: var(--space);
  top: var(--space);
  background: var(--panel-bg);
  color: var(--text-main);
  padding: .5rem .75rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.skip-link:focus-visible, a.skip:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}

/* embed textarea */
#embed-code{
  font-family: monospace;
  background: #111;
  color: #0f0;
  padding: 8px;
  border: 1px solid #555;
  resize: vertical;
  width: 100%;
}

/* basic buttons */
button{
  background: #444;
  color: #fff;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color var(--ui-fast) ease, transform var(--ui-fast) ease, box-shadow var(--ui-fast) ease;
}
button:hover{ background: #666; }
button:active{ transform: translateY(1px); }

/* links */
a{
  color: var(--accent2);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--ui-fast) ease, text-shadow var(--ui-fast) ease;
}
a:focus, a:hover { text-decoration: underline; color: var(--accent1); }

/* Prevent icons inside links (socials, navs) from receiving the underline.
   Only underline the textual label inside the link. This targets common
   patterns used in the 'Follow Me' section where an <i> or .social-icon
   sits alongside text. */
.social-grid a, .sidebar-right ul li a, .sidenav a, .wrap .sidebar-right a {
  display: flex;
  align-items: center;
  gap: .6rem;
  /* ensure we start without an underline on these special links */
  text-decoration: none;
}

/* Remove text-decoration from the icon container so the underline only
   appears under the textual content. Use a child selector so other icons
   remain unaffected. */
.social-grid a .social-icon,
.sidebar-right ul li a i,
.sidenav a i {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Underline only the textual span inside social links on hover/focus. If
   markup doesn't include a specific span, fall back to underlining the
   whole link but keep icons visually unaffected. */
.social-grid a:hover,
.social-grid a:focus,
.sidebar-right ul li a:hover,
.sidebar-right ul li a:focus,
.sidenav a:hover,
.sidenav a:focus {
  /* prevent the global a:hover underline from applying to the whole anchor */
  text-decoration: none;
  color: var(--accent1);
}

/* Underline only the textual span inside social links on hover/focus */
.social-grid a:hover .social-info .social-name,
.social-grid a:focus .social-info .social-name {
  text-decoration: underline;
}

/* For simpler sidebar lists where text sits after the <i>, underline the
   sibling text node (usually a text node or <span>) */
.sidebar-right ul li a:hover i + *,
.sidebar-right ul li a:focus i + * {
  text-decoration: underline;
}

/* If social links use plain text after <i>, ensure only that text is underlined */
.sidebar-right ul li a:hover i + *,
.sidebar-right ul li a:focus i + * {
  text-decoration: underline;
}

/* typographic treatments */
.blog-post h2, .logo, .nav-link, .sidebar-left h2, .sidebar-right h2, .site-title, main h2 {
  font-family: "Press Start 2P", monospace;
}

/* images */
img{ max-width: 100%; height: auto; display: inline-block; border-radius: 8px; }

/* webkit scrollbars */
::-webkit-scrollbar{ width: 12px; height: 12px; }
::-webkit-scrollbar-track{ background: var(--scrollbar-bg); border-radius: var(--radius); }
::-webkit-scrollbar-thumb{
  background-color: var(--scrollbar-thumb);
  border-radius: var(--radius);
  border: 3px solid var(--scrollbar-bg);
  box-shadow: 0 0 8px var(--neon-glow);
}
::-webkit-scrollbar-thumb:hover{
  background-color: var(--accent2);
  box-shadow: 0 0 12px var(--accent2);
}

/* layout container */
.wrap{
  width: 100%;
  max-width: var(--site-max-width);
  padding: var(--space);
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: var(--space);
  align-items: start;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  transition: max-width var(--ui-medium) ease;
}

/* header */
header{
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space);
  padding: .75rem 0;
  border-bottom: 2px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-strong), inset 0 0 12px rgba(0,0,0,.06);
  z-index: 11;
}

/* bottom row and content pair */
.wrap .bottom-row{ grid-column: 1/-1; display: flex; gap: var(--space); margin-top: calc(var(--space) * .75); align-items: flex-start; width: 100%; flex-wrap: wrap; box-sizing: border-box; }

/* panels */
.sidebar-left, .sidebar-right, main{
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: auto;
  padding: 1.25rem 1.5rem;
  position: relative;
  max-height: 600px;
  scroll-padding: var(--space);
  box-sizing: border-box;
  border: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* headings */
.blog-post h2, .sidebar-left h2, .sidebar-right h2, main h2{
  font-family: "Press Start 2P", monospace;
  font-weight: 900;
  font-size: 1rem;
  margin: 0 0 .8rem 0;
  color: var(--accent2);
}

/* lists */
ul{ margin: 0; padding-left: 1.2rem; list-style: disc; }
ul li{ margin-bottom: .6rem; font-weight: 700; color: var(--muted); font-family: Inter, sans-serif; }

/* min-width fixes */
.bottom-row > *, .content-pair > *, .sidebar-left, .sidebar-right, main{ min-width: 0; }

/* brand */
.brand{ display: flex; align-items: center; gap: .75rem; user-select: none; }
.logo{
  width: 80px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display:flex; align-items:center; justify-content:center; color:var(--text-main);
  font-weight:900; font-size:1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  text-transform: uppercase;
  border: 5px groove #000;
}
.titles{ line-height:1.2; color:var(--text-main); }
.site-title{
  font-weight:900; font-size:1.2rem; animation: flicker 4s infinite alternate;
  text-shadow: 0 0 6px var(--neon-glow), 0 0 12px var(--neon-glow); color: var(--text-main);
}

/* small subtitle under the site title to keep typography consistent */
.site-sub{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--muted) 70%, transparent 30%);
  margin-top: 2px;
  opacity: 0.95;
}

/* nav */
nav{ display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; justify-content:center; }

/* nav list reset so items wrap and align consistently */
.nav-list{ margin:0; padding:0; list-style:none; display:flex; gap:.5rem; align-items:center; }

/* nav links */
.nav-link{
  padding: .5rem .9rem; /* slightly reduced for consistent wrapping */
  min-height: 40px;
  line-height: 1;
  border-radius: 10px;
  border: 2px solid var(--accent1);
  color: var(--accent1);
  text-decoration: none;
  font-weight: 700;
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  transition: all var(--ui-medium) ease;
  display: inline-flex; align-items:center; justify-content:center; gap: .4rem;
}
.nav-link:focus, .nav-link:hover{
  background: var(--accent1);
  color: var(--text-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,0,0,0.0); /* fallback */
}
@supports (color-mix(in srgb, var(--accent2) 80%, transparent 0%)) {
  .nav-link:focus, .nav-link:hover{
    box-shadow: 0 0 18px color-mix(in srgb, var(--neon-glow) 18%, transparent);
  }
}
.nav-link[aria-current="page"]{
  background: var(--accent2);
  color: var(--text-on-accent);
}
@supports (color-mix(in srgb, var(--accent2) 18%, transparent 0%)) {
  .nav-link[aria-current="page"]{ box-shadow: 0 0 18px color-mix(in srgb, var(--accent2) 18%, transparent); }
}

/* toggles (theme / accent) - consolidated */
.theme-toggle,
#accent-toggle,
.accent-toggle {
  padding: .6rem 1rem;
  min-height: 44px;
  border-radius: var(--radius);
  border: 2px solid var(--accent1);
  background: transparent;
  color: var(--accent1);
  font-family: "Press Start 2P", monospace;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background var(--ui-medium) ease, color var(--ui-medium) ease, transform var(--ui-medium) ease;
  cursor: pointer;
}
.theme-toggle:focus, .theme-toggle:hover,
#accent-toggle:focus, #accent-toggle:hover,
.accent-toggle:focus, .accent-toggle:hover {
  background: var(--accent1);
  color: var(--text-on-accent);
  transform: translateY(-2px);
}
.accent-toggle{
  border: 2px solid var(--accent1) !important;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.accent-toggle:hover { transform: translateY(-1px); }

/* Ensure accent toggle has the same focus-visible ring and box-shadow as other nav controls */
.accent-toggle:focus-visible,
#accent-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(94,193,255,0.16);
  transition: box-shadow var(--ui-fast) ease, border var(--ui-fast) ease;
}
@supports (color-mix(in srgb, var(--neon-glow) 18%, transparent)){
  .accent-toggle:focus-visible,
  #accent-toggle:focus-visible,
  .theme-toggle:focus-visible {
    box-shadow: 0 0 18px color-mix(in srgb, var(--neon-glow) 18%, transparent);
  }
}

/* Active / click border color parity across navigation controls
   Ensures the border that appears on click/focus matches the accent color
   and applies to nav links, theme toggle, and accent toggle. */
.nav-link:active,
.nav-link:focus,
.nav-link:focus-visible,
.theme-toggle:active,
.theme-toggle:focus,
.theme-toggle:focus-visible,
#accent-toggle:active,
#accent-toggle:focus,
#accent-toggle:focus-visible,
.accent-toggle:active,
.accent-toggle:focus,
.accent-toggle:focus-visible {
  border-color: var(--accent2) !important;
  border-width: 4px !important; /* thicker border when active/focused */
  border-style: solid !important;
}

/* stronger glow for supported browsers to match nav hover/focus visual language */
.nav-link:focus-visible,
.theme-toggle:focus-visible,
.accent-toggle:focus-visible,
#accent-toggle:focus-visible {
  /* ensure the ring/glow matches accent2 when focused */
  outline: none; /* avoid falling back to other outlines (e.g., yellow) */
}
@supports (color-mix(in srgb, var(--accent2) 18%, transparent)) {
  .nav-link:focus-visible,
  .theme-toggle:focus-visible,
  #accent-toggle:focus-visible,
  .accent-toggle:focus-visible {
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent2) 22%, transparent);
  }
}
@supports not (color-mix(in srgb, var(--accent2) 18%, transparent)) {
  .nav-link:focus-visible,
  .theme-toggle:focus-visible,
  #accent-toggle:focus-visible,
  .accent-toggle:focus-visible {
    box-shadow: 0 0 16px rgba(94,192,255,0.28);
  }
}

/* specifically remove any legacy yellow outline for the accent toggle */
.accent-toggle,
#accent-toggle {
  /* normalize border width so toggles don't visually jump when not focused */
  border-width: 2px !important;
}
.accent-toggle:focus,
#accent-toggle:focus {
  outline: none !important;
}

/* Make the current page state also show a bordered accent for consistency */
.nav-link[aria-current="page"]{
  border-color: var(--accent2);
}

/* previews */
#latest-artwork-preview, #latest-blog-preview, .blog-post, .latest-artwork, .latest-blog{
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

/* content pair */
.content-pair{ display:flex; gap: var(--space); align-items:flex-start; width:100%; box-sizing:border-box; }
.content-pair > .blog-post,
.content-pair > .latest-artwork { flex: 1 1 320px; min-width: 0; }

.blog-post img{ width:100%; height:auto; border-radius:8px; object-fit:cover; }
.blog-post a{ margin-top: auto; font-weight:900; font-size:1rem; color:var(--accent2); }

/* Ensure in-card thumbnails use artwork sizing, override generic blog-post img rule */
#latest-blog-preview .art-thumb,
#latest-blog-preview img.art-thumb {
  width: 180px !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block !important;
}

/* feature-banner (consolidated & corrected) */
.feature-banner{
  width: 100%;
  max-width: var(--fb-max-width);
  margin: 20px auto;
  position: relative;
  z-index: 6;
  isolation: isolate;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.feature-banner .fb-inner{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-image: linear-gradient(180deg, var(--accent1), var(--accent2));
  background-color: var(--accent1);
  box-shadow: 0 12px 40px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.12);
  border: 1px solid var(--panel-border);
  min-height: 160px;
}
.feature-banner .fb-track{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: clamp(200px, 28vw, 420px);
  background: none;
  overflow: hidden;
}
.feature-banner .fb-slide{
  position: absolute;
  inset: 0;
  object-fit: cover;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity var(--banner-transition) ease, transform calc(var(--banner-transition) + 200ms) ease;
  pointer-events: none;
  border-radius: inherit;
  backface-visibility: hidden;
  z-index: 0;
  display: block;
}
.feature-banner .fb-slide.is-active{ opacity: 1; transform: none; pointer-events: auto; z-index: 20; }
.feature-banner .fb-slide::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.28) 70%, rgba(0,0,0,.6) 100%);
  z-index: 10;
  border-radius: inherit;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.feature-banner::before{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(12px + 8px);
  pointer-events: none;
  background: linear-gradient(45deg, var(--accent1), var(--accent2), var(--accent1));
  background-size: 300% 300%;
  filter: blur(12px);
  opacity: .3;
  z-index: -1;
  animation: bannerGlow 4s ease-in-out infinite;
}
@keyframes bannerGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.feature-banner .fb-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background-image: linear-gradient(180deg, var(--accent1), var(--accent2));
  color: #fff;
  border: 0;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ui-fast) ease, transform var(--ui-fast) ease, box-shadow var(--ui-fast) ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), 0 0 18px rgba(0,0,0,0.04);
  cursor: pointer;
  padding: 0;
  line-height: 36px;
  -webkit-tap-highlight-color: transparent;
}
.feature-banner .fb-prev{ left:14px; }
.feature-banner .fb-next{ right:14px; }
.feature-banner .fb-btn:hover,
.feature-banner .fb-btn:active{ transform: translateY(-50%) scale(1.06); box-shadow: 0 8px 28px rgba(0,0,0,0.6); }
.feature-banner .fb-btn:focus{ outline: none; }
.feature-banner .fb-btn:focus-visible{
  /* prominent focus ring for keyboard users */
  box-shadow:
    0 8px 28px rgba(0,0,0,0.6),
    0 0 0 4px color-mix(in srgb, var(--focus) 72%, transparent);
  transform: translateY(-50%) scale(1.02);
}

/* indicators */
.feature-banner .fb-indicators{
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px;
  display:flex; gap:8px; align-items:center; z-index:35; padding:6px; border-radius:999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(0,0,0,.22);
  pointer-events:auto;
}
.feature-banner .fb-indicator{
  display:inline-flex; align-items:center; justify-content:center;
  width: var(--banner-indicator-width); height: var(--banner-indicator-height);
  min-width: var(--banner-indicator-width); padding:3px; border-radius:999px; border:none;
  background: rgba(255,255,255,0.08); cursor:pointer; position:relative; overflow:hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) inset;
  transition: all var(--ui-fast) ease;
}
.feature-banner .fb-indicator:hover{
  background: rgba(255,255,255,0.12);
  transform: scale(1.05);
}
.feature-banner .fb-indicator:focus{ outline: none; }
.feature-banner .fb-indicator:focus-visible{
  outline: none;
  /* stronger, thicker ring */
  /* colored fill + stronger glow so the small indicator is obvious when focused */
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  box-shadow: 0 8px 26px rgba(0,0,0,0.40), 0 0 0 4px color-mix(in srgb, var(--accent2) 80%, transparent);
  border-radius: 999px;
  transform: scale(1.08);
  z-index: 60;
}

/* Fallback for browsers that don't support color-mix */
@supports not (color-mix(in srgb, var(--focus) 72%, transparent)){
  .feature-banner .fb-btn:focus-visible,
  .feature-banner .fb-indicator:focus-visible{
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 0 8px var(--accent2);
  }
}
.feature-banner .fb-indicator .fb-progress{
  display:block; width:100%; height:100%; transform-origin: left center; transform: scaleX(0);
  transition: transform 0.1s linear !important; will-change: transform;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 8px var(--accent2);
}
.feature-banner .fb-indicator.is-active{
  background: linear-gradient(90deg, rgba(94,192,255,0.15), rgba(255,255,255,0.05));
  box-shadow: 0 0 12px rgba(94,192,255,0.3);
}

/* allow img inside slides */
.feature-banner .fb-slide img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  user-select: none;
  pointer-events: none;
  background-color: var(--banner-bg);
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

/* responsive tweaks */
@media (max-width:720px){
  .feature-banner{ height: 200px; }
  .feature-banner .fb-indicator{ width: calc(var(--banner-indicator-width) * 0.7); min-width: calc(var(--banner-indicator-width) * 0.7); height: calc(var(--banner-indicator-height) * 0.85); }
}
@media (max-width:480px){ .feature-banner{ height: 150px; } }

/* reduced motion for feature banner */
@media (prefers-reduced-motion: reduce){
  .feature-banner .fb-slide,
  .feature-banner .fb-indicator .fb-progress { transition: none !important; animation: none !important; }
}

/* chat widget */
#chat-container{
  position: fixed; right: 18px; bottom: 78px;
  width: 360px; max-width: calc(100% - 36px); height: 520px;
  background: rgba(0,0,0,.78); border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  overflow: hidden; z-index: 1200; display: none; transform-origin: bottom right; opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
#chat-container.open{ display:block; transform: translateY(0); opacity:1; }
#chat-container.collapsed{ display:none; opacity:0; transform: translateY(8px); }
#chat-container.open + #chat-toggle, #chat-container.open ~ #chat-toggle, body.chat-open #chat-toggle { display:none !important; visibility:hidden !important; pointer-events:none !important; }

#chat-toggle{
  position: fixed; right: 18px; bottom: 18px; z-index: 1300;
  border-radius: 999px; width:56px; height:56px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.85)); color:#fff; border:0;
  box-shadow: 0 8px 30px rgba(0,0,0,.5); cursor: pointer;
  transition: transform var(--ui-fast) ease, box-shadow var(--ui-fast) ease, opacity var(--ui-fast) ease;
}
#chat-toggle:hover{ transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.55); }
#chat-container .close-btn:focus, #chat-toggle:focus { outline: 3px solid rgba(94,192,255,.28); outline-offset: 3px; }

/* stronger focus-visible treatment for chat toggle */
#chat-toggle:focus-visible {
  outline: none;
  /* slightly less heavy but still prominent */
  box-shadow: 0 8px 26px rgba(0,0,0,0.40), 0 0 0 4px color-mix(in srgb, var(--accent2) 72%, transparent);
  transform: translateY(-0.5px) scale(1.02);
}
@supports not (color-mix(in srgb, var(--accent2) 72%, transparent)){
  #chat-toggle:focus-visible { box-shadow: 0 8px 26px rgba(0,0,0,0.42), 0 0 0 4px var(--accent2); }
}

/* latest-artwork layout - match blog preview styling */
#latest-artwork-preview,
.latest-artwork {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  overflow: visible;
}

/* flicker animation */
@keyframes flicker{
  0%,100%,19%,21%,23%,25%,54%,56% { opacity:1; text-shadow: 0 0 8px var(--neon-glow), 0 0 20px var(--neon-glow); }
  20%,22%,24%,55% { opacity:.65; text-shadow: none; }
}

/* decorative background (hidden in high-contrast) */
html::before{
  content: ""; position: fixed; inset:0; pointer-events:none;
  background: repeating-linear-gradient(rgba(0,0,0,0.02), rgba(0,0,0,0.02) 1.5px, transparent 3px), url(https://www.transparenttextures.com/patterns/stardust.png), radial-gradient(circle, rgba(255,255,255,.3) 1.2px, transparent 3px), radial-gradient(circle, rgba(255,255,255,.15) .7px, transparent 2.2px);
  background-repeat: repeat, repeat, repeat, repeat;
  background-size: auto, auto, 120px 120px, 60px 60px;
  animation: stardustMove1 90s linear infinite, stardustMove2 75s linear infinite, stardustMove3 60s linear infinite;
  will-change: background-position; z-index:0;
}
@keyframes stardustMove1{ 0%{ background-position:0 0; } 100%{ background-position:120px 80px; } }
@keyframes stardustMove2{ 0%{ background-position:0 0; } 100%{ background-position:-80px 60px; } }
@keyframes stardustMove3{ 0%{ background-position:0 0; } 100%{ background-position:150px -100px; } }

html::after{
  content: ""; position: fixed; inset:0; z-index:1; pointer-events:none;
  background: radial-gradient(circle at 30% 30%, rgba(255,77,166,0.12), transparent 60%), radial-gradient(circle at 70% 70%, rgba(94,192,255,0.08), transparent 60%);
  animation: bgPulse 10s ease-in-out infinite alternate; filter: blur(100px);
}
@keyframes bgPulse{ to { opacity: 1; } }

/* stacking contexts */
.wrap, footer, header, main { position: relative; z-index: 2; }

/* responsive */
@media (max-width:720px){
  .wrap{ display:block; padding: var(--space); max-width:100%; gap: calc(var(--space) * .6); }
  header{ flex-wrap:wrap; }
  .bottom-row{ display:block; margin-top:0; }
  .content-pair{ flex-direction: column; }
  .blog-post, .sidebar-left, .sidebar-right, main { max-height:none; height:auto; margin-bottom: var(--space); }
  .feature-banner{ height: 200px; }
}
/* Medium breakpoint: move to two-column layout so center content has more room */
@media (max-width:960px) and (min-width:721px) {
  .wrap{
    display: grid;
    grid-template-columns: 1fr 300px; /* main + right sidebar */
    gap: calc(var(--space) * 0.75);
    padding: calc(var(--space) * 0.85);
  }
  /* place sidebars and main into the two-column grid; avoid using `order` (flex-only) */
  .sidebar-left { grid-column: 1/2; }
  main { grid-column: 1/2; }
  .sidebar-right { grid-column: 2/3; }
  /* ensure the bottom-row spans both columns so lower content stays below the two-column layout */
  .wrap > .bottom-row { grid-column: 1 / -1; }
  .bottom-row{ margin-top: calc(var(--space) * .6); }
  /* reduce left sidebar padding so it doesn't squeeze center column */
  .sidebar-left, .sidebar-right { padding: 1rem; max-height: none; }
}

/* Small screens: stack everything vertically and ensure images/text fill width */
@media (max-width:720px){
  .wrap{ padding: calc(var(--space) * .6); }
  .wrap{ display:block; }
  .sidebar-left, .sidebar-right, main, .blog-post, .latest-artwork, .welcome-card { width: 100%; box-sizing: border-box; }
  .welcome-card { padding: 1rem; }
  .webring-showcase { flex-direction: column; gap: 1rem; }
  .preview-thumb, .art-thumb, .preview-card .preview-thumb, .art-card .art-thumb, #latest-blog-preview .art-thumb { width: 100%; aspect-ratio: 16 / 9; height: auto; overflow: hidden; }
  .preview-card, .art-card { flex-direction: column; }
  .titles, .site-title { text-align: center; }
  .brand { justify-content: center; }
}

/* Landscape mobile: limit artwork thumb height so images don't dominate the card */
@media (max-width:720px) and (orientation: landscape) {
  #latest-artwork-preview .art-thumb,
  #latest-artwork-preview .art-thumb img,
  #latest-blog-preview .art-thumb,
  #latest-blog-preview .art-thumb img {
    max-height: 160px !important;
    height: auto !important;
    object-fit: cover !important;
    width: 100% !important;
  }
}

/* Fixes for overlays and chat on short / landscape viewports so they don't get cropped */
@media (max-width:720px) and (orientation: landscape), (max-height:520px) {
  /* art overlay: allow the overlay to scroll and cap the inner container */
  #art-overlay { padding: 10px; align-items: flex-start; justify-content: flex-start; overflow: auto; }
  #art-overlay .overlay-inner { max-width: 92vw; width: min(760px, 92vw); max-height: 94vh; overflow: auto; }
  /* smooth native scrolling on iOS/Android for the overlay */
  #art-overlay, #art-overlay .overlay-inner { -webkit-overflow-scrolling: touch; }
  /* make the image smaller so metadata and controls remain visible */
  #art-overlay img { max-height: 60vh !important; width: auto; height: auto; }
  #art-overlay .controls { top: 6px; right: 6px; }
  #art-overlay .controls { z-index: 100001; }

  /* chat container: switch to a shorter, centered panel that fits low-height screens */
  #chat-container {
    right: 1rem; left: 1rem; bottom: 1rem; top: auto; width: auto; height: 56vh; max-height: 78vh; border-radius: 12px; transform-origin: bottom center;
  }
  /* ensure iframe/chat content fills and scrolls inside the chat container */
  #chat-container iframe, #chat-iframe, #chattable { height: calc(100% - 48px); max-height: calc(100% - 48px); }
  /* keep toggle accessible and not hidden beneath the chat */
  #chat-toggle { right: 1rem; bottom: calc(56vh + 1.25rem); }
}

/* Extra small phones: tighten gaps and font sizes for long text blocks to avoid wrap issues */
@media (max-width:480px){
  .wrap{ padding: calc(var(--space) * .5); }
  .nav-link{ padding: .45rem .6rem; font-size: .82rem; }
  .welcome-subtitle, .meta, .art-meta { font-size: .9rem; }
  .preview-body .excerpt, .art-body .art-desc { max-height: 6.5em; }
  .site-title{ font-size: 1.05rem; }
  .feature-banner .fb-track{ height: 170px; }
}
@media (max-width:480px){
  .site-title{ text-align:left; font-size: clamp(1rem, 5vw, 2rem); }
  .site-sub{ text-align:left; font-size: clamp(1.2rem, 4vw, 1.5rem); }
  header{ gap:.6rem; }
  nav{ justify-content:center; }
  .wrap{ padding: calc(var(--space) * .8); grid-template-columns: 1fr; }
  .sidebar-left, .sidebar-right, main{ grid-column:auto; width:100%; }
}

/* grid defaults */
.wrap .bottom-row, .wrap > .feature-banner, header { grid-column: 1/-1; }
.sidebar-left { grid-column: 1/2; }
main { grid-column: 2/3; }
.sidebar-right { grid-column: 3/4; }

.bottom-row, .wrap > * { max-width: none; width:100%; box-sizing: border-box; }
.sidebar-left, .sidebar-right, main { min-width: 0; box-sizing: border-box; }

/* accent divider */
.nav-divider{ width:100%; margin:1rem 0; border:0; height:2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* animated nav helpers */
.nav-animated{
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  display:inline-block; transform: translateZ(0); will-change: transform, box-shadow; text-decoration:none; border-radius:8px;
}
.nav-animated:focus{ outline: 3px solid rgba(255,204,0,.18); outline-offset:3px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
@media (max-width:820px){ .nav-animated{ transform:none !important; } }

/* CTA buttons */
.read-btn, .view-btn{
  background: var(--view-btn-dark-bg);
  color: var(--view-btn-dark-foreground);
  padding: 10px 14px; border-radius: 10px; font-weight:700; text-decoration:none; display:inline-block; border:0; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
@media (prefers-color-scheme: dark){
  .read-btn, .view-btn { background: var(--view-btn-light-bg); color: var(--view-btn-light-foreground); }
}
.read-btn:focus-visible, .view-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(94,193,255,0.18); }

/* meta contrast */
.meta, .art-meta { color: rgba(11,11,11,0.88); font-size: 0.95rem; }
@media (prefers-color-scheme: dark){ .meta, .art-meta { color: rgba(255,255,255,0.88); } }

/* links in paragraphs */
.blog-post a, p a { color: var(--accent2); font-weight:700; }
.blog-post a:hover, p a:hover { color: var(--accent1); }

/* high contrast */
@media (prefers-contrast: more){
  :root { --muted:#111111; --text-main:#000000; --panel-bg:#ffffff; --panel-border: rgba(0,0,0,0.12); }
  body, .site-title, h1, h2, h3, p, li { text-shadow: none !important; }
  :focus-visible { outline: 5px solid #ffd000; outline-offset: 3px; }
  html::before, html::after { display:none !important; }
  .nav-link[aria-current="page"], .nav-link:hover { box-shadow: 0 0 24px var(--accent2); }
}

/* small cosmetic helper — keep this last so it wins where needed */
.accent-toggle { border: 2px solid var(--accent1) !important; transition: background-color .3s, color .3s, transform .2s; }
.accent-toggle:hover { transform: translateY(-1px); }

/* consistent webkit fill for read buttons */
.read-btn { -webkit-text-fill-color: #ffffff; }

/* === Make Latest Artwork match Latest Blog visuals ===
   Paste after your preview/blog styles so it overrides earlier rules.
*/

/* Card box + entrance animation parity with preview-card */
.preview-card,
.art-card {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform .22s ease, box-shadow .22s ease, opacity .35s ease;
  transform: translateY(8px);
  opacity: 0;
  will-change: transform, opacity;
}

/* visible state (same as blog preview) */
.preview-card.in-view,
.art-card.in-view {
  transform: translateY(0);
  opacity: 1;
}

/* Thumbnail sizing to match blog preview */
.preview-thumb,
.art-thumb {
  width: 180px; /* desktop default */
  aspect-ratio: 16 / 9; /* enforce consistent shape */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  background: #111;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* On small screens stacked */
@media (max-width:720px) {
  .preview-card,
  .art-card {
    flex-direction: column;
  }
  .preview-thumb,
  .art-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
  }
}

/* Body area */
.preview-body,
.art-body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}

/* Title styling parity */
.preview-body h3,
.art-body h3,
.preview-card h3,
.art-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--accent2);
}

/* Meta + excerpt parity */
.preview-body .meta,
.art-body .art-meta,
.preview-card .meta,
.art-card .art-meta {
  color: color-mix(in srgb, var(--text-main) 88%, transparent);
  font-size: .95rem;
  margin-bottom: .4rem;
}

/* Description / excerpt */
.preview-body .excerpt,
.art-body .art-desc,
.preview-card .excerpt {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.45;
  margin-bottom: .4rem;
  max-height: 10.5em;
  overflow: hidden;
}

/* CTA parity: make view-btn look like read-btn */
.read-btn,
.view-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Hover lift for cards and thumbs (same feel as blog preview) */
.preview-card:hover,
.art-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.preview-card:hover .preview-thumb img,
.art-card:hover .art-thumb {
  transform: scale(1.04) translateZ(0);
}

/* Focus-visible consistency */
.preview-card .read-btn:focus-visible,
.art-card .view-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent);
}

/* Ensure the wrapper for latest artwork uses same padding/layout as blog preview */
#latest-artwork-preview,
.latest-artwork {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  overflow: visible;
}

/* Make smaller images inside artwork overlay/thumb list consistent */
#art-overlay-thumbs img {
  height: 56px;
  border-radius: 6px;
  cursor: pointer;
  opacity: .95;
  border: 2px solid transparent;
}
#art-overlay-thumbs img.active { border-color: var(--view-btn-dark-bg); opacity: 1; }

/* Note: previously the blog preview was forced visible which prevented the entrance
   animation (translateY + fade) from showing. We removed the !important override so
   the preview respects the .in-view class (added by JS) and now animates like artwork. */

/* Keep the nicer entrance effect when .in-view is added by JS (no change needed if your JS still toggles this class) */
.preview-card.in-view,
.art-card.in-view {
  transform: translateY(0);
  opacity: 1;
}

/* Latest Artwork Preview Animations - match blog preview */
#latest-artwork-preview .art-card{
  transition: transform .22s ease, box-shadow .22s ease, opacity .35s ease;
  transform: translateY(8px);
  opacity: 0;
}
#latest-artwork-preview .art-card.in-view{
  transform: translateY(0);
  opacity: 1;
}
#latest-artwork-preview .art-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
#latest-artwork-preview .art-thumb{
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  overflow: hidden;
  display: block;
  border-radius: 8px;
}
#latest-artwork-preview .art-thumb img,
#latest-artwork-preview .art-thumb.placeholder{
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#latest-artwork-preview .art-card:hover .art-thumb img{
  transform: scale(1.04) translateZ(0);
}
#latest-artwork-preview .view-btn,
#latest-artwork-preview .open-gallery {
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
#latest-artwork-preview .view-btn:hover,
#latest-artwork-preview .open-gallery:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
@media (max-width:720px){
  #latest-artwork-preview .art-card{ margin-left: auto !important; margin-right: auto !important; }
}

/* Focus styles for artwork buttons - match blog preview */
#latest-artwork-preview .view-btn:focus,
#latest-artwork-preview .view-btn:focus-visible,
#latest-artwork-preview a.view-btn:focus,
#latest-artwork-preview a.view-btn:focus-visible,
#latest-artwork-preview .open-gallery:focus,
#latest-artwork-preview .open-gallery:focus-visible,
#latest-artwork-preview a.open-gallery:focus,
#latest-artwork-preview a.open-gallery:focus-visible {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(255,204,0,0.12) !important;
  border-color: rgba(0,0,0,0.06) !important;
}
#latest-artwork-preview .view-btn,
#latest-artwork-preview a.view-btn,
#latest-artwork-preview .open-gallery,
#latest-artwork-preview a.open-gallery {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#latest-artwork-preview .view-btn:focus-visible,
#latest-artwork-preview a.view-btn:focus-visible,
#latest-artwork-preview .open-gallery:focus-visible,
#latest-artwork-preview a.open-gallery:focus-visible {
  outline: 3px solid #fbff00ff !important;
  box-shadow: 0 0 0 8px rgba(255,204,0,0.14) !important;
}

/* Enhanced Update Card Styling */
.update-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all var(--ui-medium) ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}
.update-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  opacity: 0.8;
}
.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 20px var(--accent);
  border-color: var(--accent2);
}
.update-badge {
  background: var(--accent2);
  color: var(--text-on-accent);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7rem;
}
.update-content h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent2);
  font-size: 1.1rem;
  font-weight: 700;
}
.update-content p {
  margin: 0 0 0.75rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.update-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.update-date {
  color: var(--muted);
  opacity: 0.8;
}
.update-status {
  background: var(--accent2);
  color: var(--text-on-accent);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Enhanced Welcome Card Styling */
.welcome-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all var(--ui-medium) ease;
}
.welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.welcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 30px var(--accent);
}
.welcome-header { margin-bottom: 1.5rem; text-align: center; }
.welcome-subtitle {
  color: var(--accent2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* Redesigned Webring Section */
.webring-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  border: 1px solid var(--accent);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.webring-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  opacity: 0.6;
}
.webring-header { text-align: center; margin-bottom: 1.5rem; }
.webring-header h3 {
  color: var(--accent2);
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}
.webring-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}
.webring-showcase {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.button-preview {
  flex: 0 0 auto;
  text-align: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.preview-label {
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.webring-link { display: inline-block; transition: transform var(--ui-medium) ease; }
.webring-link:hover { transform: scale(1.05); }

/* Embed & copy */
.embed-section { flex: 1; min-width: 0; }
.embed-header { margin-bottom: 1rem; }
.embed-header h4 {
  color: var(--accent2);
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}
.embed-subtitle { color: var(--muted); font-size: 0.8rem; opacity: 0.8; }
.code-container { position: relative; }
.code-container textarea {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--accent);
  color: var(--accent2);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  padding: 0.75rem;
  border-radius: 8px;
  resize: vertical;
  width: 100%;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}
.copy-btn {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: var(--text-on-accent);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ui-fast) ease;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.copy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* temporary inline success label used when copy completes */
.copy-success {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-weight: 700;
  color: var(--text-on-accent);
}

/* Simple toast notifications (used for copy feedback) */
.toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 14000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-wrap.top { top: 1rem; bottom: auto; }
.toast-wrap.bottom { bottom: 1rem; top: auto; }
.toast {
  pointer-events: auto;
  background: rgba(22,22,26,0.98);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease, opacity .18s ease;
}
.toast .icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 0.6rem; font-size: 0.9rem; }
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.success { background: linear-gradient(135deg, rgba(14,165,233,0.14), rgba(124,58,237,0.14)); border: 1px solid rgba(255,255,255,0.06); }
.toast.error { background: linear-gradient(135deg, rgba(255,90,90,0.12), rgba(0,0,0,0.6)); border: 1px solid rgba(255,90,90,0.08); }
.toast .close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 0 0.5rem;
  margin-left: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
}
.toast .close:hover { color: #fff; background: rgba(255,255,255,0.03); }

/* Enhanced Social Grid Styling */
.social-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--ui-medium) ease;
  position: relative;
  overflow: hidden;
}
.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}
.social-card:hover::before { left: 100%; }
.social-card:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 15px var(--accent); }
.social-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all var(--ui-medium) ease; }
.social-card.twitter .social-icon { background: linear-gradient(135deg, #1da1f2, #0d8bd9); color: white; }
.social-card.youtube .social-icon { background: linear-gradient(135deg, #ff0000, #cc0000); color: white; }
.social-card.reddit .social-icon { background: linear-gradient(135deg, #ff4500, #ff6b35); color: white; }
.social-card.neocities .social-icon { background: linear-gradient(135deg, var(--accent1), var(--accent2)); color: var(--text-on-accent); }
.social-card:hover .social-icon { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.social-info { display: flex; flex-direction: column; gap: 0.2rem; }
.social-name { font-weight: 700; color: var(--text-main); font-size: 0.9rem; }
.social-desc { font-size: 0.75rem; color: var(--muted); opacity: 0.8; }

/* Additional mobile improvements */
@media (max-width: 768px) {
  .feature-banner .fb-btn { width: 48px; height: 48px; font-size: 18px; }
  .feature-banner .fb-prev { left: 8px; }
  .feature-banner .fb-next { right: 8px; }
  .feature-banner .fb-indicators { bottom: 8px; gap: 6px; }
  .social-grid { gap: 0.5rem; }
  .social-card { padding: 0.5rem; }
  .welcome-card { padding: 1rem; }
  .button-showcase { gap: 1rem; }
  .webring-showcase { flex-direction: column; gap: 1.5rem; }
  .button-preview { padding: 1rem; }
  .webring-section { padding: 1rem; }
}

/* Enhanced Section Headers with Sync Indicators */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sync-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.8rem;
}
.sync-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent2);
  font-weight: 600;
  transition: all var(--ui-medium) ease;
  position: relative;
  overflow: hidden;
}
.sync-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: syncShimmer 2s ease-in-out infinite;
}
@keyframes syncShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}
.sync-status i { animation: syncSpin 1.5s linear infinite; color: var(--accent1); }
@keyframes syncSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.sync-status.synced i { animation: none; color: var(--accent2); }
.sync-status.synced::before { animation: none; }
.sync-timestamp {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.8;
  transition: all var(--ui-medium) ease;
}
.sync-label { font-weight: 500; color: var(--muted); }
.sync-time {
  font-weight: 600;
  color: var(--accent2);
  background: rgba(0,0,0,0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.sync-indicator:hover .sync-timestamp { opacity: 1; }
.sync-indicator:hover .sync-time { background: rgba(0,0,0,0.3); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Status states for sync indicators */
.sync-status.loading { border-color: var(--accent1); box-shadow: 0 0 12px var(--accent1); }
.sync-status.synced { border-color: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
.sync-status.error { border-color: #ff4444; color: #ff4444; box-shadow: 0 0 8px #ff4444; }
.sync-status.error i { animation: none; color: #ff4444; }

/* Mobile responsiveness for sync indicators */
@media (max-width: 768px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .sync-indicator { align-items: flex-start; width: 100%; }
  .sync-status { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .sync-timestamp { font-size: 0.7rem; }
}

/* final note: you may remove the large 5px border rule earlier if it is too heavy for your layout,
   or change it to a regular 1px border. It's left intentionally as you provided it. */

       /* indicators (dots) */
    .feature-banner .fb-indicators {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 12px;
      display: flex;
      gap: 8px;
      z-index: 35;
      align-items: center;
      justify-content: center;
      pointer-events: auto;
    }

    .feature-banner .fb-indicators button {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      border: 0;
      background: rgba(255, 255, 255, 0.24);
      padding: 0;
      cursor: pointer;
      transition: transform 160ms ease;
    }

    /* Ensure script-generated indicator <button> elements receive the same strong focus ring */
    .feature-banner .fb-indicators button:focus,
    .feature-banner .fb-indicators button:focus-visible {
      outline: none;
      background: linear-gradient(90deg, var(--accent2), var(--accent1));
      transform: scale(1.18);
      z-index: 60;
      box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 8px color-mix(in srgb, var(--accent2) 80%, transparent);
      border-radius: 999px;
      transition: transform 160ms ease, box-shadow 180ms ease;
    }
    @supports not (color-mix(in srgb, var(--accent2) 80%, transparent)){
      .feature-banner .fb-indicators button:focus,
      .feature-banner .fb-indicators button:focus-visible {
        box-shadow: 0 8px 26px rgba(0,0,0,0.45), 0 0 0 4px var(--accent2);
      }
    }

/* Mirror artwork-specific rules for Latest Blog so both previews look identical */
#latest-blog-preview .art-card{
  transition: transform .22s ease, box-shadow .22s ease, opacity .35s ease;
  transform: translateY(8px);
  opacity: 0;
}
#latest-blog-preview .art-card.in-view{
  transform: translateY(0);
  opacity: 1;
}
#latest-blog-preview .art-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
#latest-blog-preview .art-thumb{
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  overflow: hidden;
  display: block;
  border-radius: 8px;
}
#latest-blog-preview .art-thumb img,
#latest-blog-preview .art-thumb.placeholder{
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#latest-blog-preview .art-card:hover .art-thumb img{
  transform: scale(1.04) translateZ(0);
}
#latest-blog-preview .view-btn,
#latest-blog-preview .open-gallery{
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
#latest-blog-preview .view-btn:hover,
#latest-blog-preview .open-gallery:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
@media (max-width:720px){
  #latest-blog-preview .art-card{ margin-left: auto !important; margin-right: auto !important; }
}

/* focus parity */
#latest-blog-preview .view-btn:focus,
#latest-blog-preview .view-btn:focus-visible,
#latest-blog-preview a.view-btn:focus,
#latest-blog-preview a.view-btn:focus-visible,
#latest-blog-preview .open-gallery:focus,
#latest-blog-preview .open-gallery:focus-visible,
#latest-blog-preview a.open-gallery:focus,
#latest-blog-preview a.open-gallery:focus-visible {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px rgba(255,204,0,0.12) !important;
  border-color: rgba(0,0,0,0.06) !important;
}
#latest-blog-preview .view-btn,
#latest-blog-preview a.view-btn,
#latest-blog-preview .open-gallery,
#latest-blog-preview a.open-gallery {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#latest-blog-preview .view-btn:focus-visible,
#latest-blog-preview a.view-btn:focus-visible,
#latest-blog-preview .open-gallery:focus-visible,
#latest-blog-preview a.open-gallery:focus-visible {
  outline: 3px solid #fbff00ff !important;
  box-shadow: 0 0 0 8px rgba(255,204,0,0.14) !important;
}






nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Navigation list */
.nav-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Navigation links */
.nav-list .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent, #fff);
}



/* Control buttons container */
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

