/* Warp Films job advert – styled after the PDF handout */

:root {
  --warp-blue: #0f0e9f;
  --netflix-red: #e50914;
  --ink: #000;
  --muted: #444;
  --measure: 46rem;
  --font: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Calibri, "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
}

/* Banner: solid blue with the translucent zigzag laid over it */
.banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(9rem, 26vw, 16rem);
  background:
    url("banner-zigzag.png") center / cover no-repeat,
    var(--warp-blue);
}

.banner__logo { display: block; line-height: 0; }

.banner__logo img {
  width: clamp(9rem, 30vw, 18rem);
  height: auto;
}

/* The Netflix N overhangs the bottom edge of the banner, as on the PDF */
.banner__netflix {
  position: absolute;
  right: 6%;
  bottom: 0;
  transform: translateY(35%);
  width: clamp(3rem, 11vw, 6.5rem);
  height: auto;
}

.job {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem 2rem;
}

.job__title,
.job h2 {
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.job__title {
  margin: 0 0 2.25rem;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.35;
  padding-right: 4rem; /* clear the Netflix N on narrow screens */
}

.job__title .x { text-transform: none; }

.job h2 {
  margin: 2rem 0 0.4rem;
  font-size: 1.1rem;
}

.job p { margin: 0 0 0.6rem; }

.job ul {
  margin: 0;
  padding-left: 1.1rem;
}

.job li { margin-bottom: 0.35rem; }

.timeline {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1.25rem;
  margin: 0 0 0.75rem;
}

.timeline dt { color: var(--muted); }
.timeline dd { margin: 0; }

@media (max-width: 34rem) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline dd { margin-bottom: 0.5rem; }
}

.hours { text-decoration: underline; }

.job a { color: var(--warp-blue); }

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--warp-blue);
  color: #fff !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.button:hover,
.button:focus-visible { background: #000; }

.statement {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--warp-blue);
  font-weight: bold;
}

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  font-size: 0.95rem;
}

.foot a { color: var(--muted); }

@media print {
  .button, .foot { display: none; }
}

sup { line-height: 0; }

.job strong,
.statement { font-weight: 600; }

/* Jobs index */
.job-list {
  list-style: none;
  padding: 0 !important;
}

.job-list li {
  border-top: 1px solid #ddd;
}

.job-list li:last-child { border-bottom: 1px solid #ddd; }

.job-list a {
  display: block;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.job-list a:hover,
.job-list a:focus-visible { text-decoration: underline; }
