body {
  margin: 0;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #d8c0ff;
  background: #06000a;
  position: relative;
}

/* textura de fundo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("bg.png") repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* vinheta + CRT leve */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,.25) 0px,
      rgba(0,0,0,.25) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,.02) 0%,
      rgba(0,0,0,.75) 100%
    );
}

/* container geral */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
  position: relative;
  z-index: 2;
}

/* header */
header {
  background: #140018;
  padding: 16px;
  margin-bottom: 22px;

  border-top: 1px solid #e0c8ff;
  border-left: 1px solid #c19be6;
  border-bottom: 3px solid #2a1035;
  border-right: 3px solid #2a1035;
}

header h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 3px rgba(176,122,204,.35);
}

header p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #bfa3e8;
  text-shadow: 0 0 2px rgba(176,122,204,.25);
}

/* layout */
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
}

/* cards */
.card {
  background: #120015;
  padding: 15px;
  margin-bottom: 18px;
  position: relative;

  border-top: 1px solid #e0c8ff;
  border-left: 1px solid #c19be6;
  border-bottom: 3px solid #2a1035;
  border-right: 3px solid #2a1035;
}

.card h2 {
  margin: 0 0 10px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  border-bottom: 1px solid #2a1035;
  padding-bottom: 5px;
  text-shadow: 0 0 2px rgba(176,122,204,.3);
}

/* links */
a {
  color: #cfa8ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* sidebar */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 7px;
  padding-left: 12px;
}

/* programs */
.program-item a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

/* about */
.about {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}

.pfp {
  width: 120px;
  height: 120px;
  background: #06000a;

  border-top: 1px solid #e0c8ff;
  border-left: 1px solid #c19be6;
  border-bottom: 3px solid #2a1035;
  border-right: 3px solid #2a1035;
}

.pfp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* projects */
.project-link {
  display: block;
  padding: 12px;
  border: 1px solid #2a1035;
  background: rgba(255,255,255,.02);
}

.project-title {
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 2px rgba(176,122,204,.3);
}

.project-desc {
  font-size: 13px;
  color: #bfa3e8;
}

/* journal */
.entry {
  padding: 8px 10px;
  margin-bottom: 12px;
  border-left: 3px solid #9a6fb8;
  background: rgba(255,255,255,.03);
}

.entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.entry .date,
.entry .hour {
  font-size: 12px;
  color: #fff;
  text-shadow: 0 0 2px rgba(176,122,204,.3);
}

.entry p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #d0b8ff;
}

/* mobile */
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pfp {
    margin: 0 auto;
  }
}
