/* ============================================
   ihaveacunningplan.net
   Terminal Green + GitHub Dark structure
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0a0e13;
  --bg-surface:   #0d1117;
  --green:        #86efac;
  --green-dim:    #1e3a2e;
  --green-muted:  #a3d4ae;
  --text-primary: #f0f6fc;
  --text-muted:   #b0c8d8;
  --text-faint:   #7aaa85;
  --rule-width:   3px;
  --font-mono:    'Courier New', Courier, monospace;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* --- Grid background --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* --- Left accent rule --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rule-width);
  background-color: var(--green);
  opacity: 0.8;
  z-index: 1;
}

/* --- Layout --- */
.site-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 3rem;
}

/* --- Header --- */
.site-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .prompt {
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.site-header .version {
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* --- Main content --- */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 4rem;
}

/* --- Hero --- */
.hero-command {
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-title .cursor {
  display: inline-block;
  width: 0.6ch;
  height: 0.1em;
  background-color: var(--green);
  margin-left: 0.15ch;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

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

.hero-sub {
  font-size: 0.85rem;
  color: var(--green-muted);
  margin-top: 1.5rem;
}

.hero-sub .comment {
  color: var(--text-muted);
}

/* --- Decorative lines (right side) --- */
.deco-lines {
  position: fixed;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  opacity: 0.08;
  z-index: 2;
  pointer-events: none;
}

.deco-lines span {
  height: 1px;
  background-color: var(--green);
  display: block;
}

/* --- Footer --- */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer .status {
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.site-footer .status::before {
  content: '● ';
  color: var(--green);
}

.site-footer .copy {
  font-size: 0.65rem;
  color: var(--text-faint);
}

/* --- Error page specifics --- */
.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.error-detail {
  font-size: 0.8rem;
  color: var(--green-muted);
  margin-bottom: 0.5rem;
}

.error-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 2rem;
}

.error-hint a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green-dim);
}

.error-hint a:hover {
  border-bottom-color: var(--green);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-wrap {
    padding: 0 1.5rem;
  }

  .deco-lines {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .cursor {
    animation: none;
    opacity: 1;
  }
}
