/* K3's Pocket Dimension — where you're not supposed to be */

@import url('fonts.css');

:root {
  /* The greens — forest floor, aged paper, moss on stone */
  --deep-green: #0b1a0b;
  --soft-green: #1a2e1a;
  --muted-green: #2d4a2d;
  
  /* The golds — lamplight, dust motes, old book edges */
  --gold: #c9a227;
  --soft-gold: #e8d5a3;
  --pale-gold: #f5ecd7;
  --gold-glow: rgba(201, 162, 39, 0.15);
  
  /* For the sparkles */
  --sparkle: #d4af37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  min-height: 100dvh;
  background: var(--deep-green);
  background-image: 
    radial-gradient(ellipse at 50% 0%, var(--soft-green) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(201, 162, 39, 0.03) 0%, transparent 40%);
  color: #fff;
/*  font-family: 'Crimson Pro', Georgia, serif;*/
  font-family: "VictorMono", monospace, sans-serif;
  line-height: 1.7;
  display: flex;
  justify-content: center;
  align-items: center;
/*  padding: 0 2rem 2rem;*/
  padding-bottom: 1rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(not-found.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: auto 25dvh;
  pointer-events: none;
  z-index: 0;
}

/* Sparkle container for the gentle gold particles */
.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sparkle);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-float 4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--gold), 0 0 12px rgba(201, 162, 39, 0.3);
}

@keyframes sparkle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-120vh) scale(0.3);
  }
}

/* Main content */
.pocket {
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* The arrival — 404 and title */
.arrival {
  text-align: center;
  margin-bottom: 3rem;
}

.error-code {
  font-family: monospace;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted-green);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pale-gold);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
/*  text-shadow: 0 0 30px var(--gold-glow);*/
  text-shadow: rgba(0, 0, 0, 1) 0px 2px 10px;
}

.whisper {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.9;
  font-weight: 500;
  text-shadow: rgba(0, 0, 0, 0.75) 0px 2px 10px;
}

.whisper em {
  font-style: normal;
}

/* Welcome text */
.welcome {
  text-align: center;
  padding: 0 1rem;
  height: 20dvh;

  text-shadow: rgba(0, 0, 0, 0.75) 0px 2px 10px;
}

.welcome p {
  margin-top: 1rem;
}

.welcome p:last-child {
  margin-bottom: 0;
}

/* The doorways */
.doorways {
  margin-bottom: 3rem;
}

.doorways-label {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.doors {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.door {
  display: block;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(45, 74, 45, 0.3) 0%, rgba(26, 46, 26, 0.5) 100%);
  border: 1px solid var(--muted-green);
  border-radius: 4px;
  text-decoration: none;
  color: var(--soft-gold);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: rgba(0, 0, 0, .75) 0px 5px 20px;
}

.door::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.door:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 
    0 0 20px rgba(201, 162, 39, 0.1),
    inset 0 0 30px rgba(201, 162, 39, 0.05);
}

.door:hover::before {
  opacity: 1;
}

.door h3 {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pale-gold);
  position: relative;
  z-index: 1;
}

.door:hover h3 {
  color: var(--gold);
}

.door-url {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: #fff;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.door-desc {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2em;
  letter-spacing: 0.05em;
  font-style: italic;
  font-weight: 300;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: 'Crimson Pro', Georgia, serif;
}

.door-desc em {
  font-style: normal;
}

.door-desc .carr {
  font-size: 0.7em;
  opacity: 0.3;
}

.door-meta {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

/* Locked door */
.door-locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.door-locked:hover {
  transform: none;
  border-color: var(--muted-green);
  box-shadow: none;
}

.door-locked:hover::before {
  opacity: 0;
}

.door-locked:hover .door-name {
  color: var(--pale-gold);
}

/* Farewell */
.farewell {
  text-align: center;
  padding-top: 1rem;
}

.tiny-note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1rem;
/*  font-style: italic;*/
}

footer .wew {
  margin-bottom: 3rem;
}

footer a {
  color: var(--gold);
  text-decoration: underline;
  opacity: 1;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--pale-gold);
}

.farewell .disclaimer {
}

.sparkle-text {
  color: var(--gold);
  font-style: normal;
  animation: twinkle 2s ease-in-out infinite;
}

.sparkle-text:last-child {
  animation-delay: 1s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 500px) {
  html {
    font-size: 16px;
  }
  
  body {
    padding: 0 1rem 2rem;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  .door {
    padding: 1rem 1.25rem;
  }
}

/* Selection color */
::selection {
  background: var(--gold);
  color: var(--deep-green);
}
