/* SpykeSpace canonical color foundation. */
:root {
  --spyke-nav-label-size:14px;
  --spyke-bg:#f4f7fc;--spyke-header:#eaf0fa;--spyke-bubble:#dceafe;--spyke-ink:#152943;--spyke-muted:#526782;--spyke-line:rgba(40,80,135,.16);--spyke-accent:#235eb4;
}
html[data-scheme="dark"],
body[data-scheme="dark"],
html[data-theme="dark"] {
  --spyke-bg:#101827;--spyke-header:#17243a;--spyke-bubble:#223e65;--spyke-ink:#edf4ff;--spyke-muted:#b4c4dc;--spyke-line:rgba(200,220,255,.15);--spyke-accent:#9dc4ff;
}
@media (prefers-color-scheme: dark) {
  html:not([data-scheme]):not([data-theme]):not(:has(body[data-scheme])) {
    --spyke-bg:#101827;--spyke-header:#17243a;--spyke-bubble:#223e65;--spyke-ink:#edf4ff;--spyke-muted:#b4c4dc;--spyke-line:rgba(200,220,255,.15);--spyke-accent:#9dc4ff;
  }
}

/* Shared SpykeSpace header, identity, and navigation. */

.spyke-chat__header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:clamp(12px,2vw,32px);padding:12px clamp(14px,3vw,48px);border-bottom:1px solid var(--spyke-line);background:var(--spyke-header)}
.spyke-chat__identity{display:flex;flex-direction:column;flex:none;color:var(--spyke-ink);text-decoration:none;line-height:1.25}
.spyke-chat__identity strong{font-size:1.13rem}
.spyke-chat__identity span{font-size:.78rem;color:var(--spyke-muted);margin-top:3px}
.spyke-chat__nav{display:flex;gap:clamp(10px,2vw,25px);align-items:center;margin-left:auto;flex-wrap:wrap}
.spyke-chat__nav a{color:var(--spyke-ink);text-decoration:none;font-size:.9rem}
.spyke-chat__nav a[aria-current]{color:var(--spyke-accent);font-weight:700}
.spyke-chat__nav a:hover{text-decoration:underline}
.spyke-chat__theme{flex:none;border:1px solid var(--spyke-line);background:transparent;color:var(--spyke-ink);border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:1.2rem}

@media(max-width:650px){
  .spyke-chat__header{padding:10px 12px;gap:10px}
  .spyke-chat__identity strong{font-size:1rem}
  .spyke-chat__nav{gap:10px}
  .spyke-chat__nav a{font-size:.78rem}
}
@media(max-width:390px){
  .spyke-chat__header{flex-wrap:wrap}
  .spyke-chat__nav{order:3;width:100%;justify-content:space-around}
  .spyke-chat__theme{margin-left:auto}
}

/* SpykeSpace iridescence experiment 01: identity */
.spyke-chat__identity strong {
  color: var(--spyke-ink);
  background-image: linear-gradient(
    110deg,
    var(--spyke-ink) 0%,
    #568fd7 28%,
    #a48ce5 43%,
    #e9a5cf 52%,
    #83d6c9 62%,
    var(--spyke-ink) 85%
  );
  background-size: 240% 100%;
  background-position: 100% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 900ms ease;
}

.spyke-chat__identity:hover strong,
.spyke-chat__identity:focus-visible strong {
  background-position: 0% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .spyke-chat__identity strong {
    transition: none;
  }
}

/* SpykeSpace wordmark — prominent identity */
.spyke-chat__identity {
  flex-shrink: 0;
  line-height: 1;
}

.spyke-chat__identity strong {
  display: block;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.spyke-chat__header {
  min-height: 88px;
}

@media (max-width: 650px) {
  .spyke-chat__identity strong {
    font-size: clamp(28px, 6vw, 36px);
  }

  .spyke-chat__header {
    min-height: 76px;
  }
}

/* SpykeSpace floating icon navigation */
.spyke-floating-nav {
  position: relative;
  z-index: 100;
  margin-left: auto;
  color: var(--spyke-ink);
}

.spyke-floating-nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--spyke-line);
  border-radius: 14px;
  background: var(--spyke-header);
  color: inherit;
  cursor: pointer;
  transition: opacity .22s ease, transform .22s ease;
}

.spyke-floating-nav__toggle:hover {
  opacity: .75;
}

.spyke-floating-nav.is-hidden .spyke-floating-nav__toggle {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.spyke-floating-nav__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--spyke-line);
  border-radius: 18px;
  background: var(--spyke-header);
  box-shadow: 0 12px 36px rgba(0,0,0,.16);
  z-index: 101;
}

.spyke-floating-nav__panel[hidden] {
  display: none;
}

.spyke-floating-nav__panel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  min-height: 70px;
  padding: 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.spyke-floating-nav__panel a:hover,
.spyke-floating-nav__panel a:focus-visible {
  background: rgba(128,128,128,.12);
  transform: translateY(-2px);
}

.spyke-floating-nav__panel svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spyke-floating-nav__label {
  font-size: var(--spyke-nav-label-size);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .spyke-floating-nav__toggle,
  .spyke-floating-nav__panel a {
    transition: none;
  }
}

/* Desktop navigation: persistent icons, no visible labels */
@media (min-width: 1024px) {
  .spyke-floating-nav__toggle {
    display: none;
  }

  .spyke-floating-nav__panel {
    position: static;
    display: flex;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .spyke-floating-nav__panel a {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .spyke-floating-nav__label {
    display: none;
  }
}

/* Editorial headings for wide media collections. */
.spyke-site--media .spyke-gallery__page-heading,
.spyke-site--media .spyke-media__page-heading {
    width: min(100% - 40px, 680px);
    margin: 0 auto 52px;
    padding-top: clamp(48px, 8vw, 110px);
}

.spyke-site--media .spyke-gallery__page-heading h1,
.spyke-site--media .spyke-media__page-heading h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 600;
}

.spyke-site--media:has(.spyke-gallery__page-heading) .spyke-gallery__body,
.spyke-site--media:has(.spyke-media__page-heading) .spyke-media__body {
    padding-top: 0;
}

@media (max-width: 600px) {
    .spyke-site--media .spyke-gallery__page-heading,
    .spyke-site--media .spyke-media__page-heading {
        width: calc(100% - 36px);
        padding-top: 52px;
    }
}
