body {
  margin: 0;
  padding: 2rem;
  background-color: #0e0e0e; /* Slightly darker */
  background-image: radial-gradient(#1a1a1a 1px, transparent 0), radial-gradient(#1a1a1a 1px, transparent 0);
  background-size: 4px 4px;
  background-attachment: fixed;
  color: #f5f2ec;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.75;
  font-size: 1.05rem;
}


.container {
  max-width: 800px;
  margin: auto;
  background-color: #0e0e0e;
  background-image: radial-gradient(#1a1a1a 1px, transparent 0),
                    radial-gradient(#1a1a1a 1px, transparent 0);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  padding: 2rem;
  border: 1px solid #2e5939;
  box-shadow: 0 0 20px rgba(46, 89, 57, 0.1);
}

h1 {
  font-size: 2rem;
  color: #d17b2e;
  border-bottom: 1px solid #2e5939;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

h2, h3 {
  color: #d17b2e;
  margin-top: 2rem;
}

p, li {
  max-width: 70ch;
  margin-bottom: 1rem;
}

.intro {
  font-style: italic;
  color: #a1c488;
  margin-bottom: 1.5rem;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav li {
  margin-bottom: 1.5rem;
  border-left: 2px solid #2e5939;
  padding-left: 1rem;
  transition: border 0.2s ease;
}

a {
  color: #d17b2e;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: bold;
}

a:hover {
  color: #f7b97c;
  text-shadow: 0 0 5px #f7b97c;
  border-bottom: 1px dashed #f7b97c;
}

.note {
  display: block;
  font-size: 0.85rem;
  color: #88b17c;
  font-style: italic;
  margin-top: 0.2rem;
  margin-left: 1rem;
}

img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

pre {
  background-color: #222;
  color: #cfcfcf;
  padding: 1rem;
  border: 1px solid #333;
  border-left: 4px solid #2e5939;
  overflow-x: auto;
  white-space: pre-wrap;
  margin-bottom: 2rem;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.prompt {
  color: #ffaa33;
  white-space: nowrap;
}

input, textarea {
  background: #111;
  border: none;
  border-bottom: 1px solid #ffaa33;
  padding: 0.25rem;
  font-family: 'Share Tech Mono', monospace;
  color: #ffaa33;
  flex-grow: 1;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom: 1px solid #3c6e47;
  background: #111;
}
.flash {
  color: #ff4444;
  animation: blink 0.7s steps(2, start) infinite;
}

.bar {
  font-family: 'Share Tech Mono', monospace;
  color: #ffaa33;
  margin-top: 1rem;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}
::placeholder {
  color: #ffaa33;
  opacity: 0.7;
  font-style: italic;
}

textarea {
  resize: none;
  overflow: hidden;
  min-height: 2rem;
}

/* Optional blinking cursor */
input:focus::placeholder,
textarea:focus::placeholder {
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  50% {
    opacity: 0;
  }
}
.glitch-title {
  color: #ffaa33;
  animation: glitchTitle 3.5s infinite;
  text-align: center;
  letter-spacing: 1px;
}

@keyframes glitchTitle {
  0% { opacity: 1; transform: none; }
  5% { opacity: 0.95; transform: skew(-0.5deg, 0.5deg); }
  10% { opacity: 0.98; transform: none; }
  15% { opacity: 0.96; transform: skew(0.3deg, -0.3deg); }
  20% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

.terminal-header {
  color: #ffaa33;
  font-size: 1.8rem;
  opacity: 0.85;
  text-shadow: 0 0 1px rgba(255, 170, 51, 0.3);
}

.status-line {
  color: #88b17c;
}


.orange-label {
  color: #ffaa33;
}

.status-line {
  color: #88b17c;
}
.terminal-input {
  font-family: 'Share Tech Mono', monospace;
  background-color: #111;
  border: 1px solid #2e5939;
  color: #ffaa33;
  padding: 0.5rem;
  width: 100%;
  font-size: 1rem;
}
input:focus::placeholder {
  animation: blinkCursor 1s step-end infinite;
}
@keyframes blinkCursor {
  50% {
    opacity: 0;
  }
}

@keyframes screenGlitch {
  0%, 100% { opacity: 1; }
  20%, 60% { opacity: 0.8; transform: scale(1.01) skewX(-0.5deg); }
  40% { opacity: 0.6; transform: scale(1.02) skewX(0.5deg); }
  80% { opacity: 0.4; transform: scale(1.03) skewX(-1deg); }
}

body.glitch {
  animation: screenGlitch 0.5s steps(2, start) infinite;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.gear-card {
  text-decoration: none;
  color: inherit;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #2e5939;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.gear-card:hover {
  transform: scale(1.02);
}

.gear-card img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #ffaa33;
}

.gear-text h3 {
  font-size: 1rem;
  color: #ffaa33;
  margin: 0;
}

.gear-text p {
  color: #88b17c;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
}


.header-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.return-btn {
  position: fixed;
  top: 1.2rem;
  left: calc(50% + 320px); /* Adjust based on poem width */
  color: #d96f32;
  font-size: 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.return-btn:hover {
  opacity: 1;
  cursor: pointer;
}

.terminal-input {
  width: 100%;
  margin-top: 1.5rem;
}

.terminal-input {
  width: 100%;
  padding: 0.6rem;
  font-family: 'Share Tech Mono', monospace;
  background-color: #0e0e0e;
  border: 1px solid #444;
  color: #ffaa33;
}



.papercut-terminal {
  width: 100%;
  max-width: 340px;
  padding: 1.25rem;
  background-color: #0e0e0e;
  background-image: radial-gradient(#1a1a1a 1px, transparent 0),
                    radial-gradient(#1a1a1a 1px, transparent 0);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  border: 1.2px solid #2e5939;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 6px #000;
  margin: 2rem auto 0 auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
}


/* Supporting classes from inline styles */
.papercut-title {
  color: #ffaa33;
  text-align: center;
  margin: 0;
  font-size: 1.1rem;
}

.papercut-quote {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.papercut-quote {
  color: #888;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

.project-link {
  display: inline-block;
  margin: 0 auto;
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px dashed #ffaa33;
  color: #ffaa33;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.exit-button {
  margin-top: 1rem;
  font-family: 'Share Tech Mono', monospace;
  background-color: transparent;
  color: #ffaa33;
  border: 1px solid #ffaa33;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exit-button:hover {
  background-color: #ffaa33;
  color: #0a0a0a;
  box-shadow: 0 0 10px #ffaa33;
}
