/* Relay Electric: fictional design study shown in an iframe on /work/relay-electric. */
@font-face {
  font-family: apt;
  src: url("/assets/relay/barlow-regular.woff2") format("woff2");
}
@font-face {
  font-family: apt;
  src: url("/assets/relay/barlow-bold.woff2") format("woff2");
  font-weight: 700;
}
@font-face {
  font-family: disp;
  src: url("/assets/relay/barlow-semi-condensed-bold.woff2") format("woff2");
  font-weight: 700;
}
* {
  box-sizing: border-box;
}
body {
  --blue: #153fce;
  --ink: #102236;
  --fog: #f3f6fa;
  --rule: #c7d1df;
  color: var(--ink);
  font:
    18px/1.4 apt,
    Arial,
    sans-serif;
  margin: 0;
  background: white;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #eeb239;
  outline-offset: 3px;
}
header {
  height: 89px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 700 31px/0.8 disp;
  letter-spacing: -2px;
  text-decoration: none;
  color: var(--ink);
}
.brand small {
  font: 700 9.5px/1 apt;
  letter-spacing: 0.27em;
  display: block;
  margin: 5px 0 0 2px;
}
.mark {
  height: 40px;
  width: 37px;
  position: relative;
  display: block;
  background: var(--blue);
  clip-path: polygon(11% 0, 82% 0, 57% 44%, 100% 44%, 11% 100%, 34% 58%, 0 58%, 30% 14%, 4% 14%);
}
header .area {
  font: bold 15px apt;
  margin-left: auto;
  margin-right: 35px;
}
.go {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 13px 20px;
  font: bold 16px apt;
  display: inline-flex;
  gap: 21px;
  justify-content: space-between;
  align-items: center;
}
.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: min(47vw, 600px);
  background: var(--fog);
}
.text {
  padding: clamp(35px, 4.5vw, 75px) 4.1vw 40px 5vw;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}
.eyebrow {
  font: bold 12px apt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 23px;
}
.hero h1 {
  font: 700 clamp(53px, 6.8vw, 115px)/0.89 disp;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero h1 span {
  color: var(--blue);
}
.lead {
  font-size: clamp(18px, 1.55vw, 23px);
  max-width: 400px;
  margin: 25px 0 23px;
  color: #344353;
}
.art {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 44%;
}
.art figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  background: var(--blue);
  font: bold 12px apt;
  padding: 9px 15px;
  letter-spacing: 0.055em;
}
.art {
  margin: 0;
}
.jobs {
  padding: 30px 5vw 25px;
}
.jobs h2 {
  font: 700 27px/1 disp;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
.jobgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.jobgrid button,
.choices button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  color: var(--ink);
  border: 0;
  background: white;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: 16px 12px;
  font: bold 18px apt;
}
.jobgrid button + button {
  border-left: 1px solid var(--rule);
}
.arr {
  color: var(--blue);
}
.planner {
  max-width: 750px;
  margin: 0 auto;
  padding: 42px 26px;
}
.back {
  background: transparent;
  border: 0;
  color: var(--blue);
  font: bold 16px apt;
  padding: 10px 0;
  margin-bottom: 32px;
}
.planner h2 {
  font: 700 clamp(36px, 5vw, 60px)/0.96 disp;
  letter-spacing: -0.035em;
  margin: 12px 0;
}
.planner p {
  color: #425160;
}
.planner .eyebrow {
  margin-bottom: 2px;
  color: var(--blue);
}
.choices {
  border-top: 1px solid var(--rule);
  margin-top: 22px;
}
.choices button {
  width: 100%;
  padding: 17px 5px;
  font-size: 20px;
}
.preview {
  display: inline-block;
  background: var(--fog);
  padding: 9px 14px;
  margin-top: 26px;
  font-size: 13px;
  color: #344353;
}
.prep {
  list-style: none;
  padding: 0;
  margin: 25px 0 20px;
}
.prep li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--rule);
}
.prep li:before {
  content: "•";
  color: var(--blue);
  font-weight: bold;
  position: absolute;
  left: 2px;
}
.again {
  border: 1px solid var(--blue);
  background: white;
  color: var(--blue);
  padding: 12px 16px;
  font-weight: bold;
}
.note {
  font-size: 13px;
  color: #5b6876;
}
button:hover {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
@media (max-width: 660px) {
  header {
    height: 63px;
    padding-inline: 19px;
  }
  .brand {
    font-size: 25px;
    gap: 7px;
  }
  .brand small {
    font-size: 8px;
    margin-top: 4px;
  }
  .mark {
    width: 27px;
    height: 32px;
  }
  header .area {
    display: none;
  }
  .go {
    font-size: 14px;
    padding: 10px 13px;
    gap: 12px;
  }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .text {
    padding: 25px 20px 20px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 13px;
  }
  .hero h1 {
    font-size: clamp(49px, 14vw, 75px);
  }
  .lead {
    font-size: 16px;
    line-height: 1.28;
    margin: 12px 0 15px;
    max-width: 330px;
  }
  .art {
    height: clamp(165px, 47vw, 245px);
  }
  .art img {
    object-position: 50% 8%;
  }
  .art figcaption {
    font-size: 10px;
    padding: 5px 9px;
  }
  .jobs {
    padding: 19px 19px 0;
  }
  .jobs h2 {
    font-size: 22px;
    margin: 0 0 10px;
  }
  .jobgrid {
    grid-template-columns: 1fr 1fr;
  }
  .jobgrid button {
    padding: 10px 7px;
    font-size: 14px;
  }
  .jobgrid button:nth-child(odd) {
    border-left: 0;
  }
  .planner {
    padding: 15px 20px;
  }
  .back {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .planner h2 {
    font-size: 43px;
  }
  .planner p {
    font-size: 16px;
  }
  .choices button {
    padding: 17px 4px;
    font-size: 18px;
  }
  .prep li {
    font-size: 17px;
  }
  .preview {
    font-size: 12px;
    margin-top: 20px;
  }
}
