/* mebious-inspired: Jacob's Web2 Final */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #000;
  --green: #00ff00;
  --green-dim: #006600;
  --white: #ffffff;
  --red: #ff0000;
}

body{
  background: var(--bg);
  color: var(--green);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* a subtle "wired" look for text */
main, header, footer, nav{
  text-shadow:
    2px 0 0 #000, -2px 0 0 #000,
    0 2px 0 #000, 0 -2px 0 #000,
    1px 1px #000, -1px -1px 0 #000,
    1px -1px 0 #000, -1px 1px 0 #000;
}

/* layout container */
.container{
  width: min(1200px, 94vw);
  margin: 40px auto;
  border: 1px solid #00ff00;
  padding: 24px;
  box-shadow:
    0 0 20px rgba(0,255,0,0.2),
    inset 0 0 10px rgba(0,255,0,0.1);
}

/* header + nav */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--green-dim);
  margin-bottom: 16px;
}

.site-title{
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.nav{
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav a{
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--green-dim);
  padding: 4px 8px;
  background: #000;
}

.nav a:hover{
  border-color: var(--green);
}

.icon{
  display: inline-block;
  width: 1.1em;
  text-align: center;
  margin-right: 6px;
}

/* mobile menu button */
.menu-btn{
  display: none;
  border: 1px solid var(--green);
  background: #000;
  color: var(--green);
  padding: 4px 8px;
  font-size: 0.85rem;
}

.menu-btn:hover{ border-color: var(--white); color: var(--white); }

/* main headings */
h1{ font-size: 1.6rem; margin: 8px 0 12px; }
h2{ font-size: 1.2rem; margin: 18px 0 10px; }
p{ margin: 10px 0; }

/* blog list */
.blog-list{
  list-style: none;
  display: grid;
  gap: 12px;
}

.blog-card{
  border: 1px solid var(--green-dim);
  padding: 12px;
}

.blog-card a{
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dotted var(--green);
}

.blog-meta{
  margin-top: 8px;
  color: var(--white);
  opacity: 0.9;
  font-size: 0.8rem;
}

/* blog post content */
.blog-post{
  border: 1px solid var(--green-dim);
  padding: 14px;
}

.blog-post .post-meta{
  margin-top: 6px;
  color: var(--white);
  opacity: 0.9;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--green-dim);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

/* forms */
.field{ margin: 10px 0 12px; }
label{ display: block; margin-bottom: 6px; }

input, textarea{
  width: 100%;
  max-width: 520px;
  background: #000;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}

textarea{ min-height: 140px; resize: vertical; }

button{
  border: 1px solid var(--green);
  background: #000;
  color: var(--green);
  padding: 6px 10px;
  font-size: 0.9rem;
}

button:hover{ border-color: var(--white); color: var(--white); cursor: pointer; }

/* validation/error styling */
.error{
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 0.8rem;
}
.invalid{
  border-color: var(--red) !important;
}

/* footer */
.site-footer{
  margin-top: 18px;
  border-top: 1px solid var(--green-dim);
  padding-top: 12px;
  color: var(--white);
  opacity: 0.9;
  font-size: 0.8rem;
}

/* responsive nav */
@media (max-width: 620px){
  .menu-btn{ display: inline-block; }
  .nav{ display: none; flex-direction: column; align-items: flex-start; }
  .nav.open{ display: flex; }
  .nav a{ width: 100%; }
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,255,0,0.03) 0px,
      rgba(0,255,0,0.03) 1px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
}