/* Palette sampled from the Baltic Swim Co logo */
:root {
  --bg: #DAE3E0;
  --navy: #0A374C;
  --blue: #028AB0;
  --green: #4F8B6F;
  --text: #0A374C;
  --button-text: #ffffff;
  --focus: #028AB0;
  --line: rgba(10, 55, 76, 0.18);
  --space: clamp(1.25rem, 4vw, 2.5rem);
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space) var(--space) 1.5rem;
}

header {
  text-align: center;
}

.logo {
  margin: 0 auto;
  max-width: 24rem;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

main {
  flex: 1 0 auto;
  text-align: center;
}

.tagline {
  margin: 0.25rem 0 0;
  font-family: Montserrat, Inter, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--navy);
}

.wave {
  width: min(16rem, 70%);
  margin: 0.9rem auto 1.6rem;
}

.wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-blue {
  fill: var(--blue);
}

.wave-green {
  fill: var(--green);
}

.signup {
  margin: 0 auto;
  max-width: 24rem;
  text-align: left;
}

.signup h2 {
  margin: 0 0 0.4rem;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--navy);
}

form p {
  margin: 0 0 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--navy);
  font: inherit;
  appearance: none;
}

input:hover {
  border-color: var(--green);
}

input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--blue);
}

.actions {
  margin-top: 1.25rem;
}

button[type="submit"] {
  display: inline-block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--navy);
  color: var(--button-text);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #082c3d;
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy);
}

.note a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.note a:hover,
.note a:focus-visible {
  color: #08607c;
}

footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--navy);
}

@media (min-width: 640px) {
  .page {
    padding-top: clamp(1rem, 4vh, 2.25rem);
  }

  button[type="submit"] {
    width: auto;
    min-width: 14rem;
  }

  .actions {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
