body {
  font-family: "Times New Roman", Times, serif;
  background: #fdfdfd;
  color: #222;
  display: flex;
  justify-content: flex-start;  
  align-items: flex-start;
  min-height: 100vh;
  padding: 10px 20px 20px 30px;
  line-height: 1.25;
  font-size: 16px;
}

.container {
  max-width: 460px;   /* narrow column on desktop */
  text-align: left;
  margin-top: 1vh;
}

a {
  text-decoration: none;
  color: #0044cc;
}

a:hover {
  text-decoration: underline;
}


/* Typewriter effect with cursor */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid black; /* cursor */
  line-height: 1em;
  height: 1em;
  width: 0;
  animation:
    typing 1s steps(6, end) forwards,
    blink 1s step-end 3 1s forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 6ch; } /* exactly 6 characters ("Hello.") */
}

@keyframes blink {
  50% { border-color: transparent; }
  100% { border-color: transparent; }
}

/* Clip list */
.clips {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.2em;
}

.clips li {
  margin: 0.25em 0;
  line-height: 1.25;
}


/* Social links */
.social {
  margin-top: 1em;
}

.social p {
  margin: 0.15em 0;
  line-height: 1.25;
}


/* Bottom image */
.image {
  margin-top: 1.2em;
  text-align: left; /* default desktop */
}

.image img {
  max-width: 380px;
  height: auto;
  border-radius: 0;
}

.caption {
  margin-top: 0.3em;
  font-size: 0.9em;
  font-style: italic;
  text-align: left; /* force left align always */
}

/* ----------------------- */
/* Mobile optimization */
/* ----------------------- */
@media (max-width: 768px) {
  body {
    padding: 15px;
    font-size: 17px;     /* slightly larger for readability */
    line-height: 1.3;
    justify-content: center;  /* center the column */
  }

  .container {
    max-width: 95%;      /* slightly wider on mobile */
    margin-top: 2vh;
    text-align: left;
  }

  .image {
    text-align: center;  /* center image only */
  }

  .image img {
    max-width: 100%;
  }

  .caption {
    text-align: left; /* keep caption aligned left under image */
  }
}
