@import url("https://fonts.googleapis.com/css2?family=Droid+Sans:wght@400;700&display=swap");

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

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

body {
  color: #171717;
  background: #fff url("/images/background-stripe.jpg");
  font-family: "Droid Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.button {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 16px;
  text-align: center;
  background: #fff;
  border: 2px solid #000;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  background: #e6c42f;
}

/* Header */

.header {
  position: relative;
}

.logo {
  position: absolute;
  left: 40px;
  top: 48px;
}

.lighthouse {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 763px;
  height: 683px;
  object-fit: contain;
}

.intro {
  position: absolute;
  left: 40px;
  top: 200px;
  width: 300px;
  color: #374151;
  line-height: 1.25;
}

.intro p {
  margin: 1.25em 0;
}

.intro strong {
  color: #111827;
  font-weight: 600;
}

.intro .button {
  color: #111827;
  font-weight: 500;
}

.sea {
  position: relative;
  height: 700px;
  overflow-x: clip;
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
  will-change: transform;
}

.wave {
  position: absolute;
  left: -96px;
  width: calc(100% + 96px);
  height: 48px;
  background: url("/images/background-wave.png") repeat-x;
  will-change: transform;
}

.wave-back {
  bottom: 20px;
  animation: wave 8s linear infinite;
}

.wave-front {
  bottom: 0;
  animation: wave 5s linear infinite;
}

.boat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  width: 479px;
  height: 330px;
  max-height: 50vh;
  margin: 0 auto;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
  will-change: transform;
}

/* Crew */

.crew {
  width: 100%;
  margin-top: -16px;
  padding-top: 16px;
  background: url("/images/background-water.png");
}

.crew-title {
  max-width: 768px;
  margin: 48px auto;
  text-align: right;
}

.crew-title img {
  display: inline-block;
  margin-right: 16px;
}

.fishes {
  position: absolute;
  top: 700px;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.fish {
  position: absolute;
  left: 0;
  transform: translateX(-100px);
  will-change: transform;
}

.crew-list {
  max-width: 768px;
  margin: 0 auto;
  padding: 16px;
}

.crew-column {
  display: flex;
  flex-direction: column;
}

.boatie {
  margin-bottom: 16px;
  padding: 8px;
}

.boatie-card {
  position: relative;
  overflow: hidden;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 20px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.boatie-unavailable {
  position: absolute;
  right: -64px;
  top: -12px;
  padding: 40px 48px 0;
  background: #e6c42f;
  border: 1px solid #000;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transform: rotate(45deg);
}

.boatie h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.boatie-bio {
  margin-bottom: 8px;
}

.boatie-bio a {
  text-decoration: underline;
}

.boatie h4 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.boatie-skills {
  margin-bottom: 16px;
}

.boatie-contact {
  display: flex;
  width: 100%;
}

.boatie-details {
  flex-grow: 1;
  padding-right: 12px;
}

.boatie-details a {
  display: block;
  color: #3b82f6;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.boatie-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 12px;
  border-left: 1px solid #000;
}

.plant {
  margin-left: 256px;
}

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  text-align: center;
}

.not-found img {
  margin-bottom: 32px;
}

.not-found h1 {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
}

.not-found p {
  margin-bottom: 32px;
  font-size: 20px;
  line-height: 28px;
}

.not-found a {
  padding: 8px 16px;
  color: #fff;
  font-weight: 700;
  background: #3b82f6;
  border-radius: 4px;
}

.not-found a:hover {
  background: #2563eb;
}

@media (min-width: 768px) {
  .intro {
    left: auto;
    right: 150px;
    top: 300px;
  }

  .crew-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .lighthouse {
    display: block;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sea,
  .boat,
  .wave {
    animation: none;
  }

  .fishes {
    display: none;
  }
}
