:root {
  color-scheme: light;
  --lagoon-deep: #0b4e59;
  --reef-water: #65d3cc;
  --coral-sand: #f6f0e4;
  --sunset-coral: #ee8667;
  --island-night: #102e34;
  --white: #ffffff;
  font-family: Manrope, "Avenir Next", Avenir, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--lagoon-deep);
}

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  color: var(--island-night);
  background:
    radial-gradient(circle at 17% 15%, rgb(101 211 204 / 42%), transparent 29rem),
    linear-gradient(154deg, #0b4e59 0%, #0d6972 50%, #58bbb8 100%);
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--island-night);
  font-size: 0.8rem;
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.lagoon {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lagoon::before,
.lagoon::after,
.lagoon span {
  content: "";
  position: absolute;
  border: 1px solid rgb(255 255 255 / 21%);
  border-radius: 50%;
  transform: scaleY(0.34) rotate(-7deg);
}

.lagoon::before {
  width: 48rem;
  height: 48rem;
  left: -22rem;
  bottom: -19rem;
}

.lagoon::after {
  width: 35rem;
  height: 35rem;
  right: -18rem;
  top: -12rem;
}

.lagoon span:nth-child(1) {
  width: 21rem;
  height: 21rem;
  left: -8rem;
  bottom: -6rem;
}

.lagoon span:nth-child(2) {
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -4rem;
}

.lagoon span:nth-child(3) {
  width: 46rem;
  height: 46rem;
  right: -18rem;
  bottom: -28rem;
}

.access-card {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  padding: clamp(1.5rem, 7vw, 3.25rem);
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 1.75rem;
  background: rgb(246 240 228 / 96%);
  box-shadow: 0 1.75rem 5rem rgb(16 46 52 / 32%);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--lagoon-deep);
}

.wordmark__mark {
  position: relative;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(11 78 89 / 24%);
  border-radius: 50%;
  overflow: hidden;
}

.wordmark__mark i {
  position: absolute;
  width: 2.1rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-color: currentColor transparent transparent transparent;
  border-radius: 50%;
}

.wordmark__mark i:nth-child(1) {
  top: 0.78rem;
}

.wordmark__mark i:nth-child(2) {
  top: 1.18rem;
  width: 1.7rem;
}

.wordmark__mark i:nth-child(3) {
  top: 1.58rem;
  width: 1.25rem;
}

.wordmark__text {
  display: grid;
  line-height: 1;
}

.wordmark__text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.wordmark__text small {
  margin-top: 0.28rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 3rem 0 0.9rem;
  color: var(--lagoon-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 10vw, 3.55rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
}

.intro {
  max-width: 34rem;
  margin: 1.3rem 0 0;
  color: rgb(16 46 52 / 78%);
  font-size: 0.98rem;
  line-height: 1.65;
}

.status {
  min-height: 1.5rem;
  margin-top: 1.1rem;
  color: #9b3029;
  font-size: 0.88rem;
  font-weight: 700;
}

.status:empty {
  margin-top: 0.2rem;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.55rem;
  color: var(--island-night);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid rgb(11 78 89 / 24%);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  color: var(--island-night);
  background: rgb(255 255 255 / 72%);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus-visible {
  border-color: var(--lagoon-deep);
  background: var(--white);
  box-shadow: 0 0 0 4px rgb(101 211 204 / 36%);
  outline: none;
}

button {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.9rem 1.15rem;
  color: var(--island-night);
  background: var(--sunset-coral);
  box-shadow: 0 0.6rem 1.5rem rgb(238 134 103 / 24%);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

button:hover {
  background: #f0957b;
  box-shadow: 0 0.8rem 1.7rem rgb(238 134 103 / 34%);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 3px solid var(--lagoon-deep);
  outline-offset: 3px;
}

.note {
  margin: 1.45rem 0 0;
  color: rgb(16 46 52 / 60%);
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (min-width: 44rem) {
  body {
    padding: 2rem;
  }

  .access-card {
    width: min(100%, 59rem);
    min-height: 36rem;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.92fr);
    column-gap: clamp(3rem, 7vw, 6rem);
    align-content: center;
  }

  .wordmark,
  .eyebrow,
  h1,
  .intro,
  .note {
    grid-column: 1;
  }

  .eyebrow {
    margin-top: 3.2rem;
  }

  .status,
  form {
    grid-column: 2;
  }

  .status {
    align-self: end;
    margin: 7rem 0 0;
  }

  form {
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
