@font-face {
  font-family: "iA Writer Duo";
  src: url("fonts/ia-writer-duo-latin-400-normal.woff2") format("woff2"),
       url("fonts/ia-writer-duo-latin-400-normal.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


* {
  box-sizing: border-box;
  font-family: "iA Writer Duo", serif;
}



body {
  margin: 0;
  background-color: black;
  color: #333;
  
}

header {
  background-color: black;
  color: white;
  padding: 2rem;
  padding-top: 0px;
  text-align: left;
}

main {
  display: block;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: black;
}

.card {
  padding-inline: 2rem;
  width: 100%;
  text-align: left;
}

.hover-title{
    font-size: 35px;
}


.blink-dot {
  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.cursor {
  animation: blink 1s steps(1) infinite;
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  background-color: #f3dbb1;
}



/* Page vibe like your screenshot */
body {
  margin: 0;
  background: #000;
  color: #fff;
  padding: 48px 56px;
  padding-left: 0px;
  padding-top: 0px;
  /* If you later self-host iA Writer Duo, put it first here */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.projects {
  max-width: 1000px;
  cursor: pointer;
}

.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  position: relative;
  border-radius: 12px;
  padding-inline: 2rem;
  margin: 14px 0;
  cursor: pointer;
  outline: none;

  /* closed state */
  background: transparent;

  /* smooth open/close */
  transition: background-color 240ms ease, padding 240ms ease, transform 240ms ease;
}

/* the “opening background behind it” */
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #f1aed9;
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  z-index: -1;
  transition: transform 260ms ease, opacity 260ms ease;
}

.project:active {
  transform: scale(0.99);
}


.project-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.project-title {
  display: inline-block;
  font-size: 25px; /* like your screenshot */
  letter-spacing: 0.5px;
  transition: font-size 250ms ease, color 220ms ease;
  white-space: normal;   /* allow wrapping */
  word-break: break-word;
  
  max-width: 100%;

  white-space: normal;
 

  line-height: 1.15;

  padding-left: 1.4em;     /* space for the number */
  text-indent: -1.4em; 
}





.project-panel {
  /* closed */
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.project-desc {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.desc-text {
  white-space: pre-wrap;
}

.desc-cursor {
  display: inline-block;
  margin-left: 2px;
  opacity: 0; /* off until open */
}

/* OPEN STATE (hover or keyboard focus) */
.project.is-open {
  padding: 18px 22px;
  transform: translateY(-1px);
}

.project.is-open::before {
  transform: scaleY(1);
  opacity: 1;
}

.project.is-open .project-title {
  font-size: 35px; /* grows on hover */
  color: #000;     /* letters become black */
}

.project.is-open .project-panel {
  max-height: 220px; /* enough space for 1–3 lines; raise if needed */
}

.project.is-open .project-desc {
  color: #000;
}

/* cursor blink only when open */
.project.is-open .desc-cursor {
  opacity: 1;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Nice keyboard focus ring */
.project:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.6);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project,
  .project::before,
  .project-title,
  .project-panel {
    transition: none;
  }
  .project.is-open .desc-cursor {
    animation: none;
  }
}


/* Intro overlay */
.intro {
  position: fixed;
  inset: 0;
  background: hotpink;           /* pink background */
  display: grid;
  place-items: center;           /* center the gif */
  z-index: 9999;                 /* above everything */
  opacity: 1;
  visibility: visible;
  transition: opacity 450ms ease, visibility 0ms linear 450ms;
}

.intro-gif {
  width: min(320px, 60vw);       /* responsive size */
  height: auto;
   opacity: 0;
  transform: scale(0.98);
  animation: introPop 500ms ease forwards;
}

@keyframes introPop {
  to { opacity: 1; transform: scale(1); }
}
/* When intro ends */
.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Optional: prevent scrolling while intro is showing */
body.intro-lock {
  overflow: hidden;
}


.site-logo {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 100;          /* above content, below intro */
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  height: 42px;          /* logo size */
  width: auto;
  display: block;
  filter: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Subtle interaction */
.site-logo:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Keep it clickable even with intro */
.intro {
  z-index: 9999;
}

@media (max-width: 1199px) {
  /* Completely disable hover/open visuals */
  .project::before {
    display: none;
  }

  .project-panel {
    display: none !important;
  }

  .project.is-open {
    padding: 14px 18px;
    transform: none;
  }

  .project.is-open .project-title {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
  }
}




