@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #dde4e7;
  --ink: #0b2a3a;
  --ink-soft: #4e6b7a;
  --field: #fbfcfc;
  --signal: #ff5b1f;
  --signal-hover: #ff7340;

  --gutter: clamp(20px, 3.4vw, 56px);
  --horizon: 54svh;
  --rule: 2px;

  /* Wordmark advance width in em at the settings below, and the gap between
     the alphabetic baseline and the bottom of the line box (main.js re-measures both). */
  --wm-width: 5.575;
  --wm-descent: 0.17;
  --wm-size: min(calc(72vw / var(--wm-width)), calc(var(--horizon) * 0.42));

  color-scheme: light;
  background: var(--sky);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink-soft) var(--sky);
}

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

::selection {
  background: var(--ink);
  color: var(--sky);
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  font-variation-settings: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.corners {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: clamp(18px, 3.2vh, 32px) var(--gutter);
  font-size: 0.9375rem;
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}

.corners a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--ink-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.corners a:hover {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

/* Sits over the swell, so each item gets a patch of sky behind it. */
.corners-bottom {
  inset: auto 0 0;
  font-size: 0.8125rem;
}

.corners-bottom > * {
  margin-inline: -0.4em;
  padding: 0.2em 0.4em;
  background: var(--sky);
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--horizon) 1fr;
  min-height: 100svh;
  overflow-x: clip;
}

.sky {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

/* A faint city on the horizon, tallest behind the centre of the wordmark. */
.skyline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skyline .ridge {
  fill: #d8e0e3;
}

.skyline .far {
  fill: #d3dbdf;
}

.skyline .near {
  fill: #cbd5d9;
}
/* A tugboat crossing the horizon, behind the wordmark. */
.voyage {
  --ship: clamp(30px, 3vw, 52px);
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: var(--ship);
  pointer-events: none;
  animation: voyage 260s linear -20s infinite;
}

.tug {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 100%;
  animation: rock 7s ease-in-out infinite alternate;
}

.tug .body {
  fill: var(--ink);
}

.tug .cut {
  fill: var(--sky);
}

.tug .fender {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}

.tug.reflection {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation-name: rock-reflection;
}

@keyframes voyage {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100vw);
  }
}

@keyframes rock {
  from {
    transform: rotate(-1.5deg);
  }
  to {
    transform: rotate(1.5deg);
  }
}

@keyframes rock-reflection {
  from {
    transform: scaleY(-0.7) rotate(-1.5deg);
  }
  to {
    transform: scaleY(-0.7) rotate(1.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .voyage,
  .tug {
    animation: none;
  }

  .voyage {
    transform: translateX(4vw);
  }

  .tug.reflection {
    transform: scaleY(-0.7);
  }
}

.wordmark {
  position: relative;
  z-index: 1;
  margin: 0 0 calc(var(--wm-descent) * -1em);
  font-size: var(--wm-size);
  font-weight: 860;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  font-kerning: normal;
}

.baseline-probe {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}

.sea {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: end;
  row-gap: clamp(20px, 3vh, 36px);
  padding: clamp(14px, 2.2vh, 24px) var(--gutter) clamp(32px, 6vh, 72px);
  border-top: var(--rule) solid var(--ink);
  background: var(--sky);
}

.swell {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.registry {
  position: relative;
  justify-self: center;
  margin: 0;
  padding: 0.35em 0.5em 0.35em 0.82em;
  background: var(--sky);
  font-size: clamp(0.75rem, 0.55rem + 0.5vw, 1.0625rem);
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.pitch {
  position: relative;
  align-self: center;
  width: min(100%, 30em);
  margin-inline-end: -1.1em;
  padding: 1em 1.1em 1.1em;
  background: var(--sky);
  font-size: clamp(1rem, 0.5rem + 0.7vw, 1.3125rem);
}

.motto {
  margin: 0;
  font-size: 1.9em;
  font-weight: 860;
  font-stretch: 92%;
  line-height: 1.05;
  letter-spacing: -0.012em;
}

.about {
  margin: 0.55em 0 1.1em;
  font-weight: 450;
  line-height: 1.5;
  text-wrap: pretty;
}

.cta {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 650;
  line-height: 1.3;
}

.field-row {
  display: flex;
  gap: 0.625em;
}

.field {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.9em;
  padding: 0 0.95em;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--field);
  color: var(--ink);
  caret-color: var(--ink);
  font: inherit;
  font-size: 1em;
  font-weight: 450;
  letter-spacing: 0;
}

.field::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.field:focus-visible {
  outline-offset: 2px;
}

.field[aria-invalid="true"] {
  border-width: 2.5px;
  padding-inline: calc(0.95em - 1px);
}

.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--field) inset;
  caret-color: var(--ink);
  transition: background-color 9999s;
}

.field:autofill {
  background: var(--field);
  color: var(--ink);
}

.send {
  flex: 0 0 auto;
  min-width: 5.75em;
  height: 2.9em;
  padding: 0 1.6em;
  border: 0;
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
  font: inherit;
  font-size: 1em;
  font-weight: 650;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.send:hover {
  background: var(--signal-hover);
}

.send:active {
  transform: translateY(1px);
}

.send:disabled {
  cursor: progress;
  background: var(--signal);
  transform: none;
}

.form-msg {
  margin: 0.5em 0 0;
  font-size: 0.9em;
  font-weight: 560;
  line-height: 1.4;
}

.form-msg:empty {
  display: none;
}

.form-msg:focus {
  outline: none;
}

.form-msg[data-state="success"] {
  margin-top: 0;
  font-size: 1.15em;
}

.doc {
  width: min(100% - 2 * var(--gutter), 38em);
  margin-inline: auto;
  padding: calc(clamp(18px, 3.2vh, 32px) * 2 + 3rem) 0 4rem;
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.55;
}

.doc h1 {
  margin: 0;
  font-size: 2.4em;
  font-weight: 860;
  font-stretch: 92%;
  line-height: 1.05;
}

.doc h2 {
  margin: 2em 0 0.4em;
  font-size: 1.1em;
  font-weight: 650;
}

.doc p,
.doc ul {
  margin: 0 0 0.8em;
}

.doc a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  :root {
    --horizon: 40svh;
    --gutter: 20px;
    --wm-size: calc((100vw - 2 * var(--gutter)) / var(--wm-width));
  }

  .sea {
    align-content: start;
    justify-items: stretch;
    padding-top: 36px;
    padding-bottom: 88px;
  }

  .registry {
    letter-spacing: 0.22em;
    padding-inline-start: 0.72em;
  }

  .pitch {
    align-self: start;
    width: auto;
    margin-inline: -1em;
    padding: 1em;
    font-size: 1.0625rem;
  }

  .field-row {
    gap: 0.5em;
  }

  .send {
    min-width: 0;
    padding: 0 1.3em;
  }
}

@media (max-width: 330px) {
  .field-row {
    flex-direction: column;
  }
}
