:root {
  --paper: #fefefe;
  --ink: #000000;
  --faded: #666666;
  --line: #d0d0d0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier Prime", "Courier New", monospace;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 12pt;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  position: relative;
}

/* Title page element */
.title-page {
  margin-bottom: 50px;
  animation: typeIn 0.8s ease 0.2s both;
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.writer-name {
  font-size: 16pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.logline {
  margin-bottom: 40px;
  line-height: 1.8;
}

.location-tag {
  margin-bottom: 0px;
  color: var(--faded);
  font-size: 11pt;
}

.location-tag a {
  color: var(--faded);
  text-decoration: none;
  transition: color 0.3s ease;
}

.location-tag a:hover {
  color: var(--ink);
}

/* Scene heading (slugline) style */
.scene-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 40px;
  margin-bottom: 20px;
  animation: typeIn 0.6s ease 0.4s both;
}

/* Action/description style */
.action {
  margin-bottom: 25px;
  animation: typeIn 0.6s ease 0.6s both;
}

.project {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.project:last-child {
  border-bottom: none;
}

.project-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.project-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: var(--faded);
}

.project-description {
  color: var(--faded);
  font-size: 11pt;
}

.parenthetical {
  color: var(--faded);
  font-size: 11pt;
}

/* Writing section */
.pilot {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.pilot:last-child {
  border-bottom: none;
}

.pilot-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.pilot-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pilot-title a:hover {
  color: var(--faded);
}

/* Contact as end credits */
.end-credits {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
  text-align: center;
  animation: typeIn 0.6s ease 0.8s both;
}

.end-credits a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.end-credits a:hover {
  color: var(--faded);
}

.separator {
  margin: 0 5px;
}

@media (max-width: 640px) {
  .page {
    padding: 40px 24px 60px;
  }

  .writer-name {
    font-size: 14pt;
  }

  body {
    font-size: 11pt;
  }
}
