@charset "UTF-8";

/* AstraDx — one stylesheet for the whole site.
   Sizing values are the original site's, with min/max guards so they don't
   break down on very wide or very narrow screens. */

body {
  background-color: #222;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #222;
  margin: 0;
  display: flex;
  flex-flow: column;
}

/* The home page fills the screen exactly: bar, middle, bar. The middle
   scrolls inside itself, so the footer never leaves the viewport. */
section {
  display: flex;
  flex-flow: column;
  height: 100vh;
  background-color: #fff;
}

/* The careers page has real content, so it scrolls normally instead. */
section.scroll { height: auto; min-height: 100vh; }

/* --- dark bar at the top --------------------------------------------- */

header {
  background-color: #222;
  line-height: 40px;
  padding-bottom: 5px;
  padding-left: 35px;
  font-size: clamp(13px, calc(48px - 2vw), 20px);
  box-shadow: 0 3px 2px #333;
  flex: none;
}
header a {
  color: #999;
  font-weight: 300;
  text-decoration: none;
  margin-right: 30px;
}
header a:hover { color: #fff; }

/* --- middle ---------------------------------------------------------- */

main {
  flex: 2;
  overflow: auto;
  background: #fff;
  font-weight: 100;
  padding-left: 13%;
  padding-right: 13%;
  padding-top: max(40px, calc(150px - 6vw));
  background-image: linear-gradient(to bottom, transparent, #eee);
}

/* --- home page ------------------------------------------------------- */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

#logo {
  display: block;
  margin: auto;
  width: 420px;
  max-width: 75%;
  object-fit: scale-down;
  user-select: none;
  -webkit-user-drag: none;
  animation: fade-in 1s both;
}

#title {
  font-size: clamp(34px, calc(54px + 0.7vw), 72px);
  letter-spacing: clamp(10px, calc(20px + 0.8vw), 34px);
  /* letter-spacing adds a gap after the last letter; pull it back to centre */
  text-indent: clamp(10px, calc(20px + 0.8vw), 34px);
  font-weight: 300;
  text-align: center;
  margin-top: max(24px, calc(70px - 2vw));
  margin-bottom: max(24px, calc(70px - 2vw));
  animation: fade-in 2s both;
}
#title .dx { color: #6B747B; }

#description {
  color: #6B747B;
  font-size: clamp(18px, calc(60px - 1.2vw), 44px);
  line-height: 140%;
  text-align: center;
  margin-top: 0;
  animation: fade-in 3s both;
}

/* --- careers page ---------------------------------------------------- */

.page {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 60px;
  animation: fade-in 1.2s both;
}
.page h1 {
  font-size: clamp(30px, calc(20px + 2vw), 46px);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: 0 0 25px;
}
.page h2 {
  font-size: clamp(19px, calc(14px + 0.8vw), 26px);
  font-weight: 400;
  color: #222;
  margin: 0 0 8px;
}
.page p {
  font-weight: 300;
  font-size: clamp(15px, calc(12px + 0.4vw), 18px);
  line-height: 1.65;
  color: #444;
  margin: 0 0 20px;
}
.page a { color: #6B747B; }
.page a:hover { color: #222; }

.job {
  border-top: 1px solid #ddd;
  padding: 26px 0;
}
.job p { margin-bottom: 10px; }
.job p.pdf { margin-bottom: 0; }
.job p.pdf a { text-decoration: none; border-bottom: 1px solid #ccc; }
.job p.pdf a:hover { border-bottom-color: #222; }

/* --- dark bar at the bottom ------------------------------------------ */

footer {
  background: #222;
  color: #666;
  font-weight: 300;
  font-size: clamp(13px, calc(48px - 2vw), 20px);
  line-height: 40px;
  padding-top: 5px;
  padding-bottom: 5px;
  width: 100%;
  text-align: center;
  box-shadow: 0 -3px 2px #333;
  flex: none;
}

/* Someone may prefer no motion; respect that. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
