/* ==========================================================================
   LutraWare — site styles
   Palette and effects lifted verbatim from the original design; the inline
   style attributes it shipped with are now classes.
   ========================================================================== */

:root {
  --accent:  #ff2bd6;
  --accent2: #00e5ff;
  --bg:      #08080c;
  --bg2:     #0e0e17;
  --line:    #1c1c2b;
  --txt:     #c4c4d6;
  --bright:  #f2f2f8;
  --dim:     #5d5d78;
  --ok:      #39ff14;

  --shell-max: 980px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Column flex so the footer sits directly under the content and the page is
   exactly 100vh when the content fits — the shell used to carry its own
   min-height:100vh, which pushed the footer a full footer-height off screen
   and forced a scrollbar on every page. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--txt);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-x: hidden;
}

a { color: inherit; }

[hidden] { display: none !important; }

::selection { background: var(--accent); color: #08080c; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a10; }
::-webkit-scrollbar-thumb { background: #26263a; border: 2px solid #0a0a10; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes blink   { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
@keyframes lwPulse {
  0%,100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(57,255,20,.5) }
  50%     { opacity: .55; box-shadow: 0 0 0 6px rgba(57,255,20,0) }
}
@keyframes scanEye { 0%,100% { transform: translateY(-4.5px) } 50% { transform: translateY(4.5px) } }
@keyframes flick   { 0%,100% { opacity: .06 } 50% { opacity: .11 } }
@keyframes glitchTop {
  0%,100% { clip-path: inset(0 0 0 0);       transform: translate(0) }
  20%     { clip-path: inset(0 0 62% 0);     transform: translate(-2px,-1px) }
  40%     { clip-path: inset(28% 0 40% 0);   transform: translate(2px,1px) }
  60%     { clip-path: inset(54% 0 8% 0);    transform: translate(-1px,1px) }
}

/* Idle glitch for the wordmark. The offset layers sit at opacity 0 and only
   flash during the burst, so at rest the wordmark stays clean — a constant
   tear on a persistent header element is unreadable. */
@keyframes lwBrandGlitch {
  0%, 89%, 100% { opacity: 0;   clip-path: inset(0 0 0 0);     transform: translate(0) }
  90%           { opacity: .85; clip-path: inset(0 0 62% 0);   transform: translate(-2px,-1px) }
  93%           { opacity: .85; clip-path: inset(28% 0 40% 0); transform: translate(2px,1px) }
  96%           { opacity: .85; clip-path: inset(54% 0 8% 0);  transform: translate(-1px,1px) }
  99%           { opacity: .85; clip-path: inset(72% 0 4% 0);  transform: translate(1px,-1px) }
}

/* --------------------------------------------------------------------------
   Fixed background effects
   -------------------------------------------------------------------------- */

.lw-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lw-matrix {
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .32;
}

.lw-scanlines {
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,.22) 3px, rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
}

.lw-vignette {
  z-index: 2;
  background: radial-gradient(
    ellipse at 50% 38%,
    rgba(8,8,12,0) 36%, rgba(6,6,10,.55) 78%, rgba(4,4,8,.92) 100%
  );
}

.lw-flicker {
  z-index: 2;
  background: var(--accent);
  opacity: .05;
  mix-blend-mode: screen;
  animation: flick 7s steps(3) infinite;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.lw-shell {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(16px, 3.1vh, 28px) 26px clamp(20px, 4vh, 44px);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.lw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(12px, 2.2vh, 20px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.lw-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.lw-brand-mark {
  position: relative;
  width: 66px;
  height: 66px;
  flex: none;
  filter: drop-shadow(0 0 11px rgba(255,43,214,.5));
}

.lw-brand-mark svg { overflow: visible; }

.lw-brand-text { line-height: 1; }

.lw-wordmark {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--bright);
}

.lw-wordmark .lw-g1,
.lw-wordmark .lw-g2 {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0; /* raised by the animation only, so `animation: none` = clean */
}

.lw-wordmark .lw-g1 { color: var(--accent);  animation: lwBrandGlitch 5.2s steps(2) infinite; }
.lw-wordmark .lw-g2 { color: var(--accent2); animation: lwBrandGlitch 6.7s steps(2) infinite reverse; }

.lw-wordmark .lw-g3 { position: relative; }

/* Hover keeps the original full-speed tear. */
.lw-glitch:hover .lw-g1 { opacity: .9; animation: glitchTop .4s steps(2) infinite;         color: var(--accent); }
.lw-glitch:hover .lw-g2 { opacity: .9; animation: glitchTop .4s steps(2) infinite reverse; color: var(--accent2); }

.lw-tagline {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 3px;
  color: var(--dim);
}

.lw-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lw-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lw-nav {
  padding: 8px 13px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--dim);
  border: 1px solid var(--line);
  background: transparent;
  transition: color .15s, border-color .15s, background .15s;
}

.lw-nav:hover { color: var(--bright); }

.lw-nav.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,43,214,.05);
}

/* Effect toggles (rain, animations).
   They live inside the top bar in the DOM, and on wide viewports get lifted
   out into the right-hand margin beside the 980px shell — see the media query
   below. Markup stays in one place; only the positioning changes. */
.lw-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

@media (min-width: 1240px) {
  .lw-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 40;
    flex-direction: column;
    align-items: stretch; /* both buttons take the width of the wider one */
    gap: 8px;
    margin-left: 0;
  }
}

.lw-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.lw-toggle:hover { color: var(--bright); border-color: var(--accent2); }

.lw-toggle.is-on {
  color: var(--accent2);
  border-color: var(--accent2);
  background: rgba(0,229,255,.05);
}

.lw-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  transition: background .15s, box-shadow .15s;
}

.lw-toggle.is-on .lw-toggle-dot {
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(0,229,255,.8);
}

.lw-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
}

.lw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: lwPulse 2.4s ease-in-out infinite;
}

.lw-status-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ok);
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.lw-prompt {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent2);
}

.lw-prompt-user { color: var(--dim); }
.lw-prompt-path { color: var(--accent); }

.lw-caret {
  display: inline-block;
  width: 9px;
  height: 15px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent2);
  animation: blink 1.1s steps(1) infinite;
}

.lw-caret--accent {
  width: 9px;
  height: 18px;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--accent);
}

.lw-caret--ok {
  width: 8px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--ok);
}

.lw-tag {
  padding: 3px 8px;
  font-size: 10.5px;
  color: var(--accent2);
  border: 1px solid var(--line);
}

.lw-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.lw-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

/* Fluid vertical rhythm: full spacing on tall viewports, compressing on short
   ones so the home page fits without a scrollbar. */
.lw-hero { padding: clamp(18px, 7vh, 64px) 0 clamp(14px, 2.9vh, 26px); }

.lw-hero .lw-prompt {
  letter-spacing: 2px;
  margin-bottom: clamp(10px, 2vh, 18px);
}

.lw-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  /* Also bounded by viewport height so a short-but-wide window shrinks the
     wordmark instead of pushing the page into a scrollbar. */
  font-size: clamp(40px, min(9vw, 11.5vh), 92px);
  line-height: .95;
  letter-spacing: -1px;
  color: var(--bright);
  text-shadow: 0 0 28px rgba(255,43,214,.35);
}

.lw-typed-line {
  margin-top: clamp(12px, 2.4vh, 22px);
  min-height: 26px;
  font-size: clamp(14px, 2.4vw, 18px);
  color: var(--txt);
}

.lw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 clamp(20px, 6.2vh, 56px);
  padding: 0;
  list-style: none;
}

.lw-chip {
  padding: clamp(6px, 1.4vh, 9px) 14px;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(14,14,23,.6);
  transition: border-color .18s, color .18s, box-shadow .18s;
}

.lw-chip:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  box-shadow: 0 0 14px rgba(0,229,255,.25);
}

.lw-chip-hash { color: var(--accent2); }

.lw-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 16px;
  align-items: baseline;
  margin-bottom: clamp(8px, 1.6vh, 14px);
}

.lw-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
}

.lw-rule {
  height: 1px;
  background: var(--line);
  align-self: center;
}

.lw-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 12px;
}

.lw-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(11px, 1.8vh, 16px) 16px;
  border: 1px solid var(--line);
  background: rgba(12,12,20,.7);
  text-decoration: none;
  color: var(--txt);
  transition: color .15s, background .15s, border-color .15s;
}

.lw-link:hover {
  color: var(--bright);
  border-color: var(--accent);
  background: rgba(255,43,214,.06);
}

.lw-link:hover .lw-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.lw-link-idx {
  width: 18px;
  flex: none;
  font-size: 11px;
  color: var(--dim);
}

.lw-link-body {
  flex: 1;
  min-width: 0;
}

.lw-link-label {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent2);
}

/* No truncation — a long handle wraps onto a second line rather than being
   cut off with an ellipsis. `anywhere` lets URLs break mid-token if needed. */
.lw-link-value {
  display: block;
  font-size: 13.5px;
  color: var(--bright);
  overflow-wrap: anywhere;
}

.lw-arrow {
  flex: none;
  font-size: 15px;
  color: var(--dim);
  transition: transform .18s, color .18s;
}

.lw-note {
  margin-top: clamp(16px, 3.3vh, 30px);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--dim);
}

.lw-note-mark { color: var(--accent2); }
.lw-note-val  { color: var(--txt); }
.lw-note-key  { color: var(--accent); }

/* --------------------------------------------------------------------------
   Blog index
   -------------------------------------------------------------------------- */

.lw-view { padding-top: 42px; }

.lw-view > .lw-prompt { margin-bottom: 26px; }

.lw-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lw-post {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(12,12,20,.7);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

.lw-post:hover {
  border-color: var(--accent);
  background: rgba(255,43,214,.04);
}

.lw-post:hover .lw-ptitle { color: var(--bright); }
.lw-post:hover .lw-read   { opacity: 1; color: var(--accent); }

.lw-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.lw-ptitle {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--txt);
  transition: color .15s;
}

.lw-pdate {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

.lw-pexcerpt {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}

.lw-post-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.lw-read {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  opacity: .6;
  transition: opacity .18s, color .18s;
}

/* Empty blog index — shown when posts.js has no entries. */

.lw-empty { max-width: 560px; }

.lw-empty-total {
  margin: 0;
  font-size: 12.5px;
  color: var(--dim);
}

.lw-empty-card {
  margin-top: 16px;
  padding: 26px 22px;
  border: 1px dashed var(--line);
  background: rgba(12,12,20,.5);
}

.lw-empty-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--txt);
}

.lw-empty-body {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--dim);
}

.lw-empty-mark { color: var(--accent2); }

/* --------------------------------------------------------------------------
   Post
   -------------------------------------------------------------------------- */

.lw-article {
  padding-top: 42px;
  max-width: 720px;
}

.lw-back {
  display: inline-block;
  margin-bottom: 30px;
  text-decoration: none;
  cursor: pointer;
}

.lw-back-hint { color: var(--dim); }

.lw-ptags { margin-bottom: 14px; gap: 8px; }

.lw-atitle {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
  color: var(--bright);
}

.lw-ameta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--dim);
}

/* Rendered markdown */
.lw-prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--txt);
}

.lw-prose > :first-child { margin-top: 0; }

.lw-prose p { margin: 0 0 20px; }

.lw-prose h2 {
  margin: 34px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--bright);
}

.lw-prose h3 {
  margin: 26px 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent2);
}

.lw-prose ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.lw-prose li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
}

.lw-prose li::before {
  content: '»';
  position: absolute;
  left: 0;
  color: var(--accent2);
}

.lw-prose pre {
  margin: 0 0 20px;
  padding: 15px 16px;
  background: #06060b;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ok);
  overflow-x: auto;
}

.lw-prose pre code {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.lw-prose code {
  padding: 1px 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .9em;
  color: var(--ok);
  background: #06060b;
  border: 1px solid var(--line);
}

.lw-prose strong { color: var(--bright); }

.lw-prose a { color: var(--accent2); }

.lw-prose blockquote {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--dim);
}

.lw-prose-error { color: var(--accent); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

/* Mostly still, with a short burst of tearing every few seconds — a constant
   glitch is unreadable and gets annoying fast. */
@keyframes lw404Glitch {
  0%, 86%, 100% { clip-path: inset(0 0 0 0);     transform: translate(0) }
  88%           { clip-path: inset(0 0 62% 0);   transform: translate(-4px,-2px) }
  91%           { clip-path: inset(28% 0 40% 0); transform: translate(4px,2px) }
  94%           { clip-path: inset(54% 0 8% 0);  transform: translate(-3px,1px) }
  97%           { clip-path: inset(72% 0 4% 0);  transform: translate(2px,-1px) }
}

.lw-404 {
  padding: clamp(20px, 7vh, 72px) 0 clamp(20px, 5vh, 48px);
  max-width: 660px;
}

.lw-404-err {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
}

.lw-404-code {
  position: relative;
  display: inline-block;
  margin: clamp(14px, 3vh, 26px) 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(76px, min(20vw, 24vh), 190px);
  line-height: .88;
  letter-spacing: -3px;
  color: var(--bright);
  text-shadow: 0 0 38px rgba(255,43,214,.42);
}

.lw-404-code .lw-g1,
.lw-404-code .lw-g2 {
  position: absolute;
  left: 0;
  top: 0;
  opacity: .85;
}

.lw-404-code .lw-g1 { color: var(--accent);  animation: lw404Glitch 3.4s steps(2) infinite; }
.lw-404-code .lw-g2 { color: var(--accent2); animation: lw404Glitch 3.4s steps(2) infinite reverse; }
.lw-404-code .lw-g3 { position: relative; }

.lw-404-title {
  margin: clamp(8px, 1.8vh, 16px) 0 0;
  font-size: clamp(13px, 2.4vw, 19px);
  letter-spacing: 5px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255,43,214,.55);
}

.lw-404-body {
  margin: clamp(16px, 3vh, 26px) 0 0;
  font-size: 12.5px;
  line-height: 2;
  color: var(--dim);
}

.lw-404-mark { color: var(--accent2); }
.lw-404-path { color: var(--txt); overflow-wrap: anywhere; }

.lw-404-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 4vh, 34px);
}

.lw-404-btn {
  padding: 11px 18px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(12,12,20,.7);
  transition: color .15s, border-color .15s, background .15s;
}

.lw-404-btn:hover {
  color: var(--bright);
  border-color: var(--accent2);
  background: rgba(0,229,255,.06);
}

.lw-404-btn--primary {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,43,214,.06);
}

.lw-404-btn--primary:hover {
  color: var(--bright);
  border-color: var(--accent);
  background: rgba(255,43,214,.14);
}

/* --------------------------------------------------------------------------
   Konami overlay
   -------------------------------------------------------------------------- */

.lw-secret {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4,4,8,.92);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  cursor: pointer;
}

.lw-secret-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 46px);
  flex-wrap: wrap;
}

.lw-ascii {
  margin: 0;
  font-family: 'JetBrains Mono', 'DejaVu Sans Mono', 'Cascadia Mono', 'Segoe UI Symbol', monospace;
  font-size: clamp(10px, 2.2vw, 17px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ok);
  text-shadow: 0 0 12px rgba(57,255,20,.65);
}

.lw-secret-text {
  text-align: left;
  font-size: clamp(11px, 1.5vw, 15px);
  line-height: 1.85;
}

.lw-secret-brand { color: var(--accent); letter-spacing: 5px; }
.lw-secret-hr    { color: var(--line);   letter-spacing: 1px; }
.lw-secret-ok    { color: var(--ok); }
.lw-secret-hash  { color: var(--accent2); }

.lw-secret-title {
  margin-top: 26px;
  font-size: clamp(14px, 3vw, 22px);
  letter-spacing: 3px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255,43,214,.6);
}

.lw-secret-hint {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.lw-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* width:100% matters — as a column flex item, max-width + auto margins would
     otherwise shrink-wrap the footer and bunch the two spans together. */
  flex: none;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--dim);
}

.lw-footer-accent2 { color: var(--accent2); }
.lw-footer-accent  { color: var(--accent); }

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.lw-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bg2);
  color: var(--bright);
  border: 1px solid var(--accent);
  font-size: 12px;
}

.lw-skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* Animations are user-controlled via the ANIM toggle, not by
   `prefers-reduced-motion`. Obeying the OS setting silently blanked the page
   down to plain dark text for anyone with Windows animation effects off, with
   no way to get the design back — the switch is the fix, not the media query.
   Transitions are deliberately left alone: they are hover feedback, not
   ambient motion. */
.lw-no-anim *,
.lw-no-anim *::before,
.lw-no-anim *::after {
  animation: none !important;
}

/* Without their animation the offset glitch layers would sit stacked on top
   of the wordmark, so keep them fully transparent — including on hover. */
.lw-no-anim .lw-wordmark .lw-g1,
.lw-no-anim .lw-wordmark .lw-g2,
.lw-no-anim .lw-glitch:hover .lw-g1,
.lw-no-anim .lw-glitch:hover .lw-g2 {
  opacity: 0;
}
