/* SilverVein Style System – clonethecrave.neocities.org */

/* ---------------------------------------------- */
/* Root variables and base palette */
/* ---------------------------------------------- */
:root {
  --sv-primary: #8ea6b4;
  --sv-paper: #101214;
  --sv-ink: #f2f4f5;
  --sv-muted: #ccd1d6;
  --sv-edge: rgba(255,255,255,0.12);
  --sv-shadow: rgba(0,0,0,0.2);
  --sv-radius: 6px;
  --sv-container: 1240px;
  --sv-space: 2.5rem;
  --sv-motion-fast: 150ms;
  --sv-motion-med: 260ms;
  --sv-motion-slow: 420ms;
  --sv-easing: cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------- */
/* Global Reset + Base */
/* ---------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: linear-gradient(145deg, #111214 0%, #1c1e20 100%);
  color: var(--sv-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* Justify all paragraphs site-wide */
article p,
section p,
main p,
p {
  text-align: justify !important;
  text-justify: inter-word !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
}

/* ---------------------------------------------- */
/* Layout */
/* ---------------------------------------------- */
.sv-container {
  max-width: var(--sv-container);
  margin: 0 auto;
  padding: var(--sv-space);
}

header.sv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--sv-edge);
  padding: 1.2rem var(--sv-space);
}

.sv-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--sv-ink);
  letter-spacing: 1px;
}

.sv-logo img {
  height: 42px;
  margin-right: 10px;
}

/* ---------------------------------------------- */
/* Navigation */
/* ---------------------------------------------- */
.sv-nav {
  display: flex;
  gap: 1.2rem;
}

.sv-nav a {
  color: var(--sv-ink);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--sv-radius);
  position: relative;
  transition: background var(--sv-motion-fast) var(--sv-easing);
}

/* Link underline-grow motion */
.sv-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sv-primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--sv-motion-med) var(--sv-easing);
}
.sv-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------------------------------------------- */
/* Hero Image */
/* ---------------------------------------------- */
.sv-hero {
  position: relative;
  border-radius: var(--sv-radius);
  overflow: hidden;
  margin-top: var(--sv-space);
  margin-bottom: var(--sv-space);
  box-shadow: 0 8px 20px var(--sv-shadow);
}

.sv-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--sv-radius);
}

/* ---------------------------------------------- */
/* Section Styling */
/* ---------------------------------------------- */
section.sv-section {
  position: relative;
  margin-bottom: var(--sv-space);
  padding-bottom: var(--sv-space);
  border-bottom: 1px solid var(--sv-edge);
}
section.sv-section::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--sv-primary), transparent);
  transition: width var(--sv-motion-slow) var(--sv-easing);
}
section.sv-section.is-seen::before {
  width: 100%;
}

/* ---------------------------------------------- */
/* Card Hover Lift (used for callouts) */
/* ---------------------------------------------- */
.sv-card {
  border: 1px solid var(--sv-edge);
  border-radius: var(--sv-radius);
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
  transition: transform var(--sv-motion-fast) var(--sv-easing),
              box-shadow var(--sv-motion-fast) var(--sv-easing),
              border-color var(--sv-motion-fast) var(--sv-easing);
}
.sv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--sv-shadow);
  border-color: rgba(255,255,255,0.3);
}

/* ---------------------------------------------- */
/* Footer */
/* ---------------------------------------------- */
footer.sv-footer {
  border-top: 1px solid var(--sv-edge);
  text-align: center;
  padding: 1.2rem var(--sv-space);
  color: var(--sv-muted);
}

/* ---------------------------------------------- */
/* Back to Top Button – Updated for SilverVein */
/* ---------------------------------------------- */
.sv-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--sv-primary);
  color: #111;
  font: 700 18px/46px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none !important;
  transition: opacity var(--sv-motion-fast) var(--sv-easing),
              transform var(--sv-motion-fast) var(--sv-easing),
              background var(--sv-motion-fast) var(--sv-easing);
  z-index: 9999 !important;
  overflow: hidden; /* ripple effect container */
}
.sv-to-top:hover {
  background: #fff;
}
.sv-to-top.sv-show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Ripple effect styling (used by delight.js) */
.sv-to-top .ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: .35;
  transform: translate(-50%, -50%) scale(0);
  background: #fff;
  animation: sv-ripple .6s ease-out forwards;
}
@keyframes sv-ripple {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-to-top {
    transition: none;
  }
}

/* ---------------------------------------------- */
/* Reading Progress Bar */
/* ---------------------------------------------- */
.sv-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sv-primary), transparent);
  z-index: 9998;
  transition: width var(--sv-motion-fast) linear;
}

/* ---------------------------------------------- */
/* Ultra-subtle moving wash */
/* ---------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(120% 60% at 80% 20%, rgba(255,255,255,.06), transparent 60%),
              linear-gradient(120deg, rgba(0,0,0,.02), rgba(255,255,255,.02));
  animation: sv-wash 24s ease-in-out infinite alternate;
  opacity: .35;
}
@keyframes sv-wash {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-2%,0) scale(1.02); }
}

/* SilverVein Back-to-Top style refinement */
.sv-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: radial-gradient(circle at 30% 30%, var(--sv-primary), #aab5bc);
  box-shadow:
    0 0 10px rgba(255,255,255,0.2),
    inset 0 0 6px rgba(255,255,255,0.15);
  color: #111;
  font: 700 22px/52px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none !important;
  transition: opacity var(--sv-motion-fast) var(--sv-easing),
              transform var(--sv-motion-fast) var(--sv-easing),
              background var(--sv-motion-fast) var(--sv-easing),
              box-shadow var(--sv-motion-fast) var(--sv-easing);
  z-index: 9999 !important;
  overflow: hidden;
}
.sv-to-top:hover {
  background: radial-gradient(circle at 70% 70%, #ffffff, var(--sv-primary));
  box-shadow:
    0 0 15px rgba(255,255,255,0.3),
    inset 0 0 6px rgba(255,255,255,0.25);
}

.sv-footer span {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 0.8rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25), inset 0 1px rgba(255,255,255,0.05);
  font-weight: 600;
  color: var(--sv-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}



