@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=VT323&display=swap');

/* ##########################################################################
   GLOBAL STYLES
   ########################################################################## */

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */

:root {
  --bg-dark: #0a090f;
  --bg-card: #13111b;
  --bg-card-alt: #181424;
  --border-card: #2c253d;

  --accent-pink: #da4167;
  --accent-pink-soft: #f472b6;
  --accent-purple: #8b5cf6;
  --accent-teal: #38bdf8;
  --accent-mint: #52b788;

  --tape-pink: rgba(218, 65, 103, 0.52);
  --tape-purple: rgba(139, 92, 246, 0.45);
  --tape-cyan: rgba(56, 189, 248, 0.42);
  --tape-green: rgba(82, 183, 136, 0.42);
  --tape-yellow: rgba(222, 216, 203, 0.45);

  --text-main: #e2dfec;
  --text-muted: #9c94aa;
  --text-dim: #675f78;

  --font-typewriter: 'Special Elite', 'Courier Prime', Courier, monospace;
  --font-mono: 'Courier Prime', monospace;
  --font-pixel: 'VT323', monospace;

  --site-max: 1060px;
  --nav-w: 150px;
  --sidebar-w: 280px;
}

@media (min-width: 1100px) {
  :root {
    --site-max: 1160px;
    --sidebar-w: 335px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}

/* ==========================================================================
   CUSTOM THEMED SCROLLBAR
   ========================================================================== */

@supports not selector(::-webkit-scrollbar) {
  html,
  * {
    scrollbar-width: thin;
    scrollbar-color: #da4167 #0e0c15;
  }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: #0e0c15;
  border-left: 1px dashed #2c253d;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: #da4167;
  background: linear-gradient(180deg, #da4167 0%, #8b5cf6 100%);
  border: 2px solid #0e0c15;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 4px rgba(0, 0, 0, 0.6);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: #f472b6;
  background: linear-gradient(180deg, #f472b6 0%, #38bdf8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 10px rgba(218, 65, 103, 0.6);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
::-webkit-scrollbar-corner {
  background: #0a090f;
}

/* ==========================================================================
   BODY & CRT OVERLAY
   ========================================================================== */

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(218, 65, 103, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, auto, 20px 20px, 20px 20px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 30px 16px;
  position: relative;
  overflow-x: hidden;
}

.crt-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 999;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, text-shadow 0.15s ease;
}

a:visited {
  color: var(--accent-teal);
}

a:hover,
a:focus {
  color: var(--accent-pink-soft);
  text-decoration-style: solid;
}

a:active {
  color: var(--accent-pink);
}

p a {
  color: var(--accent-teal);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-teal);
  padding: 0 2px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, text-shadow 0.15s ease;
}

p a:visited {
  color: var(--accent-teal);
}

p a:hover,
p a:focus {
  color: #ffffff;
  border-bottom: 1px solid var(--accent-pink);
  background-color: rgba(218, 65, 103, 0.22);
  text-shadow: 0 0 6px rgba(218, 65, 103, 0.5);
}

a b,
a strong {
  color: inherit;
}

/* ==========================================================================
   LAYOUTS
   ========================================================================== */

.site-container {
  max-width: var(--site-max);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.main-layout {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr var(--sidebar-w);
  gap: 24px;
  align-items: start;
}

.main-layout.no-sidebar {
  grid-template-columns: var(--nav-w) 1fr;
}

@media (max-width: 900px) {
  .main-layout,
  .main-layout.no-sidebar {
    grid-template-columns: 1fr;
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.site-title {
  font-family: var(--font-typewriter);
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--accent-pink);
  text-shadow: 2px 2px 0px rgba(139, 92, 246, 0.4);
  margin-bottom: 4px;
}

.site-subtitle {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-heading {
  font-family: var(--font-typewriter);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.footer-quote {
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-credits {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: relative;
  background-color: var(--bg-card);
  border: 2px dashed var(--border-card);
  padding: 24px 28px 20px;
  box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.7);
  transform: rotate(-0.5deg);
}

.header-inner > div {
  max-width: 100%;
  min-width: 0;
}

.site-header img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 20px;
  width: 100%;
}

.nav-link {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: #110f18;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  position: relative;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.nav-link:nth-child(even) {
  transform: rotate(1.2deg);
}

.nav-link:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.nav-link:hover {
  background: #201a2f;
  color: var(--accent-teal);
  border-color: var(--accent-teal);
  transform: translateY(-2px) rotate(0deg);
}

.nav-link.active {
  background: #22121d;
  color: var(--accent-pink);
  border: 1px solid var(--accent-pink);
  box-shadow: 2px 2px 0 rgba(218, 65, 103, 0.3);
}

@media (max-width: 900px) {
  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
  }

  .nav-link {
    display: inline-block;
    padding: 6px 14px;
  }
}

/* ==========================================================================
   CARDS & PAPER COLOURS
   ========================================================================== */

.main-card,
.minor-card {
  position: relative;
  background-color: var(--bg-card);
  padding: 24px;
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.6);
}

.main-card {
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--paper-accent, var(--border-card));
}

.main-card p {
  margin-bottom: 14px;
  color: var(--text-main);
}

.main-card p:last-child {
  margin-bottom: 0;
}

.minor-card {
  border: none;
}

.tilted-left {
  transform: rotate(-0.8deg);
}

.tilted-right {
  transform: rotate(0.8deg);
}

.paper-purple {
  --paper-accent: var(--accent-purple);
  background-color: var(--bg-card-alt);
}

.paper-pink {
  --paper-accent: var(--accent-pink);
  background-color: #17111b;
}

.paper-cyan {
  --paper-accent: var(--accent-teal);
  background-color: #0f131a;
}

.paper-green {
  --paper-accent: var(--accent-mint);
  background-color: #0e1411;
}

/* ==========================================================================
   WASHI TAPES
   ========================================================================== */

.tape {
  position: absolute;
  height: 22px;
  width: 85px;
  z-index: 10;
  backdrop-filter: blur(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.tape.cyan {
  background: var(--tape-cyan);
  border-top: 1px dashed rgba(56, 189, 248, 0.8);
  border-bottom: 1px dashed rgba(56, 189, 248, 0.8);
}

.tape.pink {
  background: var(--tape-pink);
  border-top: 1px dashed rgba(218, 65, 103, 0.85);
  border-bottom: 1px dashed rgba(218, 65, 103, 0.85);
}

.tape.green,
.tape.lime {
  background: var(--tape-green);
  border-top: 1px dashed rgba(82, 183, 136, 0.8);
  border-bottom: 1px dashed rgba(82, 183, 136, 0.8);
}

.tape.yellow {
  background: var(--tape-yellow);
  border-top: 1px dashed rgba(222, 216, 203, 0.8);
  border-bottom: 1px dashed rgba(222, 216, 203, 0.8);
}

.tape.purple {
  background: var(--tape-purple);
  border-top: 1px dashed rgba(139, 92, 246, 0.8);
  border-bottom: 1px dashed rgba(139, 92, 246, 0.8);
}

.tape-top-left {
  top: -10px;
  left: 20px;
  transform: rotate(-4deg);
}

.tape-top-right {
  top: -10px;
  right: 20px;
  transform: rotate(3deg);
}

.tape-top-center {
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.tape-bottom-left {
  bottom: -10px;
  left: 20px;
  transform: rotate(3deg);
}

.tape-bottom-right {
  bottom: -10px;
  right: 20px;
  transform: rotate(-4deg);
}

.tape-bottom-center {
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
}

.tape-left-center {
  top: 50%;
  left: -42px;
  transform: translateY(-50%) rotate(-88deg);
}

.tape-right-center {
  top: 50%;
  right: -42px;
  transform: translateY(-50%) rotate(92deg);
}

.tape-left-top {
  top: 40px;
  left: -42px;
  transform: rotate(-86deg);
}

.tape-left-bottom {
  bottom: 40px;
  left: -42px;
  transform: rotate(-91deg);
}

.tape-right-top {
  top: 40px;
  right: -42px;
  transform: rotate(93deg);
}

.tape-right-bottom {
  bottom: 40px;
  right: -42px;
  transform: rotate(88deg);
}

.tape-top-left-corner {
  top: -8px;
  left: -20px;
  transform: rotate(-35deg);
  width: 70px;
}

.tape-top-right-corner {
  top: -8px;
  right: -20px;
  transform: rotate(35deg);
  width: 70px;
}

.tape-bottom-left-corner {
  bottom: -8px;
  left: -20px;
  transform: rotate(35deg);
  width: 70px;
}

.tape-bottom-right-corner {
  bottom: -8px;
  right: -20px;
  transform: rotate(-35deg);
  width: 70px;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-card);
  padding: 16px 24px;
  text-align: center;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.6);
  transform: rotate(0.4deg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ##########################################################################
   INDEX PAGE STYLES
   ########################################################################## */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-intro {
  font-size: 1.05rem;
  font-family: var(--font-typewriter);
}

.about-list {
  columns: 2 200px;
  column-gap: 32px;
  list-style: none;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-family: var(--font-typewriter);
}

.about-list li {
  position: relative;
  padding: 0 0 6px 1.5em;
  break-inside: avoid;
}

.about-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--accent-pink);
}

.about-more {
  margin-bottom: 14px;
}

.about-toggle {
  padding: 8px 14px;
  background: #110f18;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.about-toggle:hover,
.about-toggle:focus-visible {
  background: #201a2f;
  color: var(--accent-teal);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
  outline: none;
}

.about-toggle:active {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: translateY(0);
}

.ichomancer-preview {
  background: #07060b;
  border: 1px solid rgba(218, 65, 103, 0.4);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--accent-pink-soft);
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.ichomancer-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
  color: var(--accent-teal);
}

.ichomancer-icon img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}

.ichomancer-caption {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.friends-description {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.friends-badges-grid + .friends-description {
  padding-top: 18px;
}

.friends-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.friend-badge {
  width: 88px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: transform 0.15s ease;
}

.friend-badge img {
  width: 100%;
  height: 100%;
  max-width: 88px;
  max-height: 31px;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.friend-badge:nth-child(4n + 2) {
  transform: rotate(2deg);
}

.friend-badge:nth-child(4n + 3) {
  transform: rotate(-2deg);
}

.friend-badge:nth-child(4n) {
  transform: rotate(1deg);
}

.friend-badge:hover {
  transform: rotate(0deg);
}

.favourite-sites-description {
  margin-bottom: 14px;
}

.favourite-sites-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.favourite-sites-list li {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  padding-bottom: 6px;
  font-size: 0.95rem;
  font-family: var(--font-typewriter);
}

.favourite-sites-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.favourite-sites-list a {
  color: var(--accent-teal);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-teal);
  display: inline-block;
  padding: 0 2px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, text-shadow 0.15s ease;
}

.favourite-sites-list a:visited {
  color: var(--accent-teal);
}

.favourite-sites-list a:hover,
.favourite-sites-list a:focus {
  color: #ffffff;
  border-bottom: 1px solid var(--accent-pink);
  background-color: rgba(218, 65, 103, 0.22);
  text-shadow: 0 0 6px rgba(218, 65, 103, 0.5);
}

.link-me-code {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  resize: none;
  background: #08070d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}


.regarding-hotlinking {
  padding-top: 12px;
}

.site-updates-frame,
.latest-post-frame {
  background: #08070d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.site-updates-iframe,
.latest-post-iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
  background: transparent;
}

.latest-post-iframe {
  height: 380px;
}

.left-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 20px;
}

.left-rail .site-nav {
  position: static;
}

@media (max-width: 900px) {
  .left-rail {
    position: static;
    align-items: center;
  }

  .left-rail .shrine {
    width: 100%;
    max-width: 190px;
  }
}

.shrine {
  padding: 18px 8px 12px;
  text-align: center;
}

.shrine-title {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  letter-spacing: 1px;
  line-height: 1;
  color: #f2cc60;
  text-shadow: 0 0 6px rgba(242, 204, 96, 0.45);
  margin-bottom: 10px;
}

.shrine-alcove {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 22px 4px 8px;
  background: linear-gradient(180deg, #07060b 0%, #17111b 100%);
  border: 3px double #f2cc60;
  border-radius: 56px 56px 3px 3px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(242, 204, 96, 0.22),
    2px 3px 0 rgba(0, 0, 0, 0.5);
}

.shrine-relic {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.shrine-relic::before {
  content: "";
  position: absolute;
  inset: -22px -14px;
  background: radial-gradient(ellipse at center, rgba(244, 114, 182, 0.45) 0%, rgba(242, 204, 96, 0.2) 40%, transparent 70%);
  animation: shrine-glow 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.shrine-relic a {
  position: relative;
  display: block;
  line-height: 0;
  border: none;
  background: none;
}

.shrine-relic img {
  display: block;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.shrine-relic a:hover img,
.shrine-relic a:focus-visible img {
  transform: translateY(-2px) scale(1.04);
}

@keyframes shrine-glow {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.wax {
  display: block;
  width: 7px;
  height: 18px;
  background: linear-gradient(90deg, #ded8cb 0%, #f5f3fa 50%, #b9b2a3 100%);
  border-top: 1px solid #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.flame {
  display: block;
  width: 6px;
  height: 10px;
  margin-bottom: 1px;
  background: radial-gradient(ellipse at 50% 70%, #fff6c8 0%, #f2cc60 45%, #f4a259 100%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  box-shadow: 0 0 8px 2px rgba(244, 162, 89, 0.55);
  transform-origin: 50% 100%;
  animation: flame-flicker 1.3s ease-in-out infinite alternate;
}

.candle + .shrine-relic + .candle .flame {
  animation-delay: -0.65s;
}

@keyframes flame-flicker {
  0%   { transform: scale(1, 1) rotate(-3deg); }
  40%  { transform: scale(0.88, 1.15) rotate(2deg); }
  100% { transform: scale(1.05, 0.93) rotate(-1deg); }
}

.shrine-placard {
  margin: 10px 4px 0;
  padding-top: 8px;
  border-top: 1px dotted rgba(255, 255, 255, 0.15);
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .shrine-relic::before,
  .flame {
    animation: none;
  }
}