<style>
  /* ============================================================
     GOD'S NEST — HOMEPAGE
     Two palettes: .day and .night — toggled by the button.
     The site defaults to NIGHT mode.
     
     TO ADD A HEADER IMAGE:
     Find the .site-header rule below and replace the
     background-image line with:
       background-image: url('your-image-filename.jpg');
       background-size: cover;
       background-position: center;
     Make sure you upload the image to Neocities too!
  ============================================================ */
  
  * { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── DAY PALETTE ── */
  body.day {
    --bg-outer:        #1a1008;
    --bg-glow1:        rgba(90,20,120,0.18);
    --bg-glow2:        rgba(20,80,100,0.15);
    --wrap-bg:         #f0e6c8;
    --wrap-glow1:      rgba(180,120,200,0.07);
    --wrap-glow2:      rgba(20,100,120,0.06);
    --wrap-border:     #8a6a30;
    --wrap-shadow:     rgba(90,20,120,0.3);
    --wrap-shadow2:    rgba(20,80,100,0.2);
    --header-bg:       #1e0f04;
    --header-bg2:      #2a1408;
    --header-border:   #8a6a30;
    --title-color:     #c8a050;
    --title-glow:      rgba(200,160,80,0.4);
    --title-glow2:     rgba(140,60,180,0.2);
    --subtitle-color:  #7a6040;
    --rune-color:      #8a6a30;
    --marquee-bg:      #2a1408;
    --marquee-border:  #5a3a10;
    --marquee-text:    #7a5a28;
    --sidebar-bg:      rgba(210,180,120,0.25);
    --sidebar-border:  #b09060;
    --nav-head-color:  #6a4a18;
    --nav-head-border: #b09060;
    --nav-text:        #3a2208;
    --nav-hover-bg:    rgba(180,120,60,0.2);
    --nav-hover-text:  #1a0a02;
    --nav-divider:     rgba(140,100,40,0.3);
    --nav-symbol:      #8a5a20;
    --widget-border:   #b09060;
    --widget-bg:       rgba(240,220,180,0.5);
    --widget-text:     #4a3010;
    --widget-title:    #6a4a18;
    --content-bg:      #f0e6c8;
    --box-border:      #b09060;
    --box-bg:          rgba(241, 226, 195, 0.466);
    --section-head:    #6a4a18;
    --section-head-dei:    #6a4a18;
    --body-text:       #2a1a08;
    --drop-cap:        #8a4010;
    --accent:          #5a2a80;
    --pixel-div:       #8a6a30;
    --tile-hover-bg:   rgba(180,130,60,0.25);
    --tile-hover-glow: rgba(140,80,180,0.1);
    --tile-label:      #5a3a10;
    --update-date:     #6a4a18;
    --update-text:     #3a2208;
    --update-divider:  rgba(140,100,40,0.4);
    --footer-bg:       #1e0f04;
    --footer-border:   #8a6a30;
    --footer-text:     #5a3a10;
    --footer-link:     #7a5a28;
    --toggle-bg:       #2a1408;
    --toggle-border:   #8a6a30;
    --toggle-text:     #c8a050;
    --scrollbar-thumb: #8a6a30;
    --scrollbar-track: rgba(210,180,120,0.3);
    --intro-text:      #2a1a08;
    --nav-bg:          rgba(210,180,120,0.25);
    --nav-border:      #b09060;
  }

  /* ── NIGHT PALETTE ── */
  body.night {
    --bg-outer:        #05030a;
    --bg-glow1:        rgba(80,10,120,0.35);
    --bg-glow2:        rgba(10,50,80,0.3);
    --wrap-bg:         #13101a;
    --wrap-glow1:      rgba(120,60,180,0.08);
    --wrap-glow2:      rgba(10,80,100,0.06);
    --wrap-border:     #4a3060;
    --wrap-shadow:     rgba(80,10,140,0.5);
    --wrap-shadow2:    rgba(10,60,100,0.3);
    --header-bg:       #0a0612;
    --header-bg2:      #0e0918;
    --header-border:   #4a3060;
    --title-color:     #c8a0e8;
    --title-glow:      rgba(180,120,240,0.5);
    --title-glow2:     rgba(80,140,200,0.25);
    --subtitle-color:  #6a5080;
    --rune-color:      #5a4070;
    --marquee-bg:      #0a0612;
    --marquee-border:  #3a2050;
    --marquee-text:    #6a4a90;
    --sidebar-bg:      rgba(40,20,60,0.4);
    --sidebar-border:  #3a2860;
    --nav-head-color:  #7a5a98;
    --nav-head-border: #3a2860;
    --nav-text:        #b090c8;
    --nav-hover-bg:    rgba(100,60,140,0.25);
    --nav-hover-text:  #d0b0e8;
    --nav-divider:     rgba(80,50,110,0.4);
    --nav-symbol:      #7a5090;
    --widget-border:   #3a2860;
    --widget-bg:       rgba(30,18,48,0.6);
    --widget-text:     #9070b0;
    --widget-title:    #7a5a98;
    --content-bg:      #13101a;
    --box-border:      #3a2860;
    --box-bg:          rgba(31, 7, 48, 0.452);
    --section-head:    #7a5a98;
    --section-head-dei:    #7a5a98;
    --body-text:       #c0a8d8;
    --drop-cap:        #a060d0;
    --accent:          #b080e0;
    --pixel-div:       #4a3060;
    --tile-hover-bg:   rgba(80,40,120,0.3);
    --tile-hover-glow: rgba(120,60,200,0.15);
    --tile-label:      #8a6aa8;
    --update-date:     #7a5a98;
    --update-text:     #a890c0;
    --update-divider:  rgba(80,50,110,0.4);
    --footer-bg:       #0a0612;
    --footer-border:   #4a3060;
    --footer-text:     #5a3a80;
    --footer-link:     #7a5a98;
    --toggle-bg:       #0a0612;
    --toggle-border:   #4a3060;
    --toggle-text:     #c8a0e8;
    --scrollbar-thumb: #5a3a80;
    --scrollbar-track: rgba(40,20,60,0.4);
    --intro-text:      #c0a8d8;
    --nav-bg:          rgba(40,20,60,0.4);
    --nav-border:      #3a2860;
  }

  /* ── BASE ── */
  body {
    background-color: var(--bg-outer);
    background-image:
      radial-gradient(ellipse at 20% 50%, var(--bg-glow1) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, var(--bg-glow2) 0%, transparent 55%);
    font-family: 'IM Fell English', Georgia, serif;
    min-height: 100vh;
    padding: 24px 16px;
    transition: background-color 0.4s;
  }

  /* ── SCROLLBAR STYLING (webkit) ── */
  .scrollbox::-webkit-scrollbar { width: 7px; }
  .scrollbox::-webkit-scrollbar-track { background: var(--scrollbar-track); }
  .scrollbox::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 0;
  }
  .scrollbox {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    overflow-y: auto;
    padding-right: 6px;
  }
  
  /* ── MAIN PAGE SCROLLBAR ── */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
  width: 7px;
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 0;
}

  /* ── WRAPPER ── */
  .site-wrap {
    max-width: 860px;
    margin: 0 auto;
    background-color: var(--wrap-bg);
    background-image:
      linear-gradient(160deg, var(--wrap-glow1) 0%, transparent 40%),
      linear-gradient(200deg, transparent 50%, var(--wrap-glow2) 100%);
    border: 3px double var(--wrap-border);
    box-shadow: 0 0 40px var(--wrap-shadow), 0 0 80px var(--wrap-shadow2);
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
  }

 /* ── TOGGLE BUTTON ── */
.toggle-wrap {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 10;
  display: inline-block;
  overflow: visible;
}

.mode-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  display: block;
  overflow: visible;
}

.mode-toggle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  /* ease-out on mouse-off so it gently returns to normal */
  transition: transform 0.4s ease-out,
              filter 0.4s ease-out,
              opacity 0.4s ease-out;
}

/* Hover: glow, grow, rotate — ease-in on mouse-on */
.toggle-wrap:hover .mode-toggle img {
  transform: scale(1.12) rotate(12deg);
  filter: brightness(1.3) drop-shadow(0 0 6px var(--title-glow));
  transition: transform 0.2s ease-in,
              filter 0.2s ease-in,
              opacity 0.2s ease-in;
}

/* Tooltip */
.toggle-wrap .toggle-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  color: var(--toggle-text);
  font-family: 'AlmendraSC', serif;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 8px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toggle-wrap:hover .toggle-tooltip {
  visibility: visible;
  opacity: 1;
}

  /* ── HEADER ──
     To add a background image, replace the background-image
     linear-gradient lines below with:
       background-image: url('your-image.jpg');
       background-size: cover;
       background-position: center;
  ── */
  .site-header {
    background-color: var(--header-bg);
    background-image: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg2) 100%);
    border-bottom: 3px double var(--header-border);
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: background-color 0.4s, border-color 0.4s;
  }

  .site-title {
    font-family: 'Silvus', serif;
    font-size: 50px;
    font-weight: 500;
    color: var(--title-color);
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--title-glow), 0 0 40px var(--title-glow2);
    margin-bottom: 4px;
    transition: color 0.4s, text-shadow 0.4s;
  }

  .site-subtitle {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: var(--subtitle-color);
    letter-spacing: 2px;
    transition: color 0.4s;
  }

  .divider-rune {
    text-align: center;
    color: var(--rune-color);
    font-size: 14px;
    letter-spacing: 8px;
    padding: 6px 0;
    opacity: 0.7;
    transition: color 0.4s;
  }

  /* ── MARQUEE ── */
  .marquee-strip {
    background: var(--marquee-bg);
    border-bottom: 1px solid var(--marquee-border);
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: background 0.4s, border-color 0.4s;
  }

  .marquee-inner {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 12px;
    letter-spacing: 2px;
    transition: color 0.4s;
  }

  body.night .marquee-inner { color: #9a78b8; }
  body.day   .marquee-inner { color: #9a7a38; }
  @keyframes marquee-scroll {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
  }

  /* ── LAYOUT ── */
  .main-layout {
    display: flex;
    position: relative;
    z-index: 1;
  }

  /* ── SIDEBAR ── */
  .nav-sidebar {
  width: 155px;
  min-width: 155px;
  border-right: 2px solid var(--nav-border);
  background-color: var(--nav-bg);
  transition: background-color 0.4s, border-color 0.4s;
  position: relative;
  background-size: auto;
  background-repeat: repeat;
}

body.night .nav-sidebar {
  background-image: url('/images/asemicbg.png');
}

body.day .nav-sidebar {
  background-image: url('/images/parchment.jpg');
}

/* make all nav content sit above the texture */
.nav-sidebar > * {
  position: relative;
  z-index: 1;
}





  .nav-header {
    font-family: 'Crusades', bold, serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--nav-head-color);
    padding: 10px 12px 4px;
    border-bottom: 1px solid var(--nav-head-border);
    text-transform: 
    transition: color 0.4s, border-color 0.4s;
  }

  .nav-item {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--nav-text);
    text-decoration: none;
    border-bottom: 1px solid var(--nav-divider);
    font-family: 'IM Fell English', Georgia, serif;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.3;
  }

  .nav-item:hover, .nav-item.active {
    background: var(--nav-hover-bg);
    color: var(--nav-hover-text);
  }
  .nav-item.active { font-style: italic; }

  .nav-symbol {
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }
  .nav-symbol img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.7;
    image-rendering: pixelated;
    vertical-align: middle;
  }

  .sidebar-widget {
    margin: 10px 8px;
    border: 1px solid var(--widget-border);
    background: var(--widget-bg);
    padding: 8px;
    font-size: 12px;
    color: var(--widget-text);
    text-align: center;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
  }

  .sidebar-widget .widget-title {
    font-family: 'Crusades', serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--widget-title);
    text-transform: 
    border-bottom: 1px solid var(--widget-border);
    padding-bottom: 4px;
    margin-bottom: 6px;
    transition: color 0.4s;
  }

  .sidebar-widget p {
    font-style: italic;
    line-height: 1.5;
  }

  /* ── CONTENT AREA ── */
.content {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
  background: var(--content-bg);
  transition: background 0.4s;
  position: relative;   /* ← REQUIRED for ::before to anchor */
  overflow: hidden;      /* ← keeps texture clipped to box */
}

/* Texture overlay on content area — switches with day/night */
.content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 0;
}

body.night .content::before {
  background-image: url('/images/asemicbg.png');
  opacity: 0.2;
}

body.day .content::before {
  background-image: url('/images/parchment.jpg');
  opacity: 0.4;   /* day texture might need slightly different opacity */
}

/* Push ALL direct children above the texture layer */
.content > * {
  position: relative;
  z-index: 1;
}

  /* ── BOXES ── */
  .welcome-box {
    border: 1px solid var(--box-border);
    background: var(--box-bg);
    padding: 16px 18px;
    margin-bottom: 18px;
    position: relative;
    transition: background 0.4s, border-color 0.4s;
  }

  .welcome-box::before {
    content: '❧';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--content-bg);
    padding: 0 6px;
    color: var(--rune-color);
    font-size: 16px;
    transition: background 0.4s, color 0.4s;
  }

  .section-head {
    font-family: 'AlmendraSC', serif;
    font-size: 16px;
    letter-spacing: 2.3px;
    color: var(--section-head);
    text-transform: uppercase;
    border-bottom: 1px solid var(--box-border);
    padding-bottom: 4px;
    margin-bottom: 10px;
    transition: color 0.4s, border-color 0.4s;
  }
  
  .section-head-dei {
    font-family: 'DeiGrat', serif;
    font-size: 16px;
    letter-spacing: 1.8px;
    color: var(--section-head-dei);
    border-bottom: 1px solid var(--box-border);
    padding-bottom: 4px;
    margin-bottom: 10px;
    transition: color 0.4s, border-color 0.4s;
  }
    .welcome-title {
    font-family: 'Apollyon', serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--section-head);
    display: block;
    border-bottom: 1px solid var(--box-border);
    padding-bottom: 4px;
    margin-bottom: 10px;
    transition: color 0.4s, border-color 0.4s;
  }

  .welcome-text-sparkle {
    position: relative;
    display: inline-block;
    padding: 4px 8px 4px 0;
  }

    .welcome-sparkle {
    position: absolute;
    pointer-events: none;
    font-size: 10px;
    line-height: 1;
    animation: sparkle-life 2.5s ease-in-out forwards;
  }

  @keyframes sparkle-life {
    0%   { opacity: 0; transform: scale(0.3); }
    25%  { opacity: 0.85; transform: scale(1.1); }
    50%  { opacity: 0.5; transform: scale(0.9); }
    75%  { opacity: 0.75; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3); }
  }

  /* ── WELCOME TEXT with scrollbox ── */
  .welcome-text-wrap {
    max-height: 160px;
  }

  .welcome-text {
    font-size: 13px;
    line-height: 1.8;
    color: var(--body-text);
    transition: color 0.4s;
  }

  .drop-cap {
    float: left;
    font-size: 45px;
    line-height: 0.85;
    font-family: 'Monarchia', serif;
    color: var(--drop-cap);
    margin-right: 4px;
    margin-top: 4px;
    transition: color 0.4s;
  }

  .welcome-text em {
    color: var(--accent);
    font-style: italic;
    transition: color 0.4s;
  }

  /* ── TWO-COLUMN LAYOUT ── */
  .two-col {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
  }

  .two-col > * {
    flex: 1;
    min-width: 0;
  }

  .info-box {
    border: 1px solid var(--box-border);
    background: var(--box-bg);
    padding: 12px 14px;
    transition: background 0.4s, border-color 0.4s;
  }

  /* ── UPDATE ENTRIES with scrollbox ── */
  .updates-scroll {
    max-height: 120px;
  }

  .update-entry {
    font-size: 12px;
    line-height: 1.6;
    color: var(--update-text);
    padding: 4px 0;
    border-bottom: 1px dotted var(--update-divider);
    transition: color 0.4s, border-color 0.4s;
  }

  .update-entry:last-child { border-bottom: none; }

  .update-date {
    font-family: 'AlmendraSC', serif;
    font-size: 10px;
    color: var(--update-date);
    letter-spacing: 1px;
    display: block;
    transition: color 0.4s;
  }

  /* ── NAV TILES ── */
  .nav-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
  }

  .nav-tile {
    border: 1px solid var(--box-border);
    background: var(--box-bg);
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: background 0.15s, box-shadow 0.15s, border-color 0.4s;
  }

  .nav-tile:hover {
    background: var(--tile-hover-bg);
    box-shadow: inset 0 0 8px var(--tile-hover-glow);
  }

  .tile-glyph {
    display: block;
    margin-bottom: 6px;
    line-height: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tile-glyph img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    opacity: 0.75;
    transition: opacity 0.15s;
    image-rendering: pixelated;
  }
  .nav-tile:hover .tile-glyph img { opacity: 1; }

  .tile-label {
    font-family: 'Crusades', serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--tile-label);
    text-transform: 
    display: block;
    transition: color 0.4s;
  }

  /* ── DIVIDERS ── */
  .pixel-divider {
  width: 100%;
  height: 20px; /* adjust to match your image's natural height */
  margin-bottom: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.7;
}

body.night .pixel-divider {
  background-image: url('/images/glowingdivider.gif');
}

body.day .pixel-divider {
  background-image: url('/images/angelbaby.png');
}



  /* ── FOOTER ── */
  .site-footer {
    background: var(--footer-bg);
    border-top: 3px double var(--footer-border);
    padding: 10px 20px;
    text-align: center;
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--footer-text);
    position: relative;
    z-index: 1;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
  }

  body.night .site-footer { color: #8a6aaa; }
  body.day   .site-footer { color: #7a5a28; }
  .footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.4s;
  }

  body.night .footer-links a { color: #b090d0; }
  body.day   .footer-links a { color: #8a6a28; }
  .footer-links a:hover {
    text-decoration: underline;
  }

  .visitor-count {
    font-family: 'AlmendraSC', serif;
    font-size: 9px;
    color: var(--widget-title);
    letter-spacing: 1px;
    margin-top: 6px;
    transition: color 0.4s;
  }
  

  
</style>