/* Kelpie website: tokens, type, buttons and shared section pieces.
   The layout language follows the Nessie site (nessie.works): navy bars with
   a water edge, white sections, tight Geist headings and pill buttons.
   Kelpie's accent is the pink of the K in the Orbit icon. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Orbit icon colours. */
  --k-ink: #000c30;
  --k-deep: #0d1b4d;
  --k-globe: #152c6f;
  --k-pink: #f9439a;
  --k-mint: #42f4bc;
  --k-teal: #01c09b;
  --k-sun: #fac801;
  --k-sky: #14affa;
  --k-blue: #0054fa;

  /* Pink dark enough for white text and for text on white (5.1:1). */
  --k-rose: #d4126c;
  --k-rose-hover: #b20c59;
  --k-blush: #fff0f6;

  --k-text: #1d1c1d;
  --k-muted: #5c5a5e;
  --k-line: #e5e3e6;
  --k-max: 1140px;
  --k-radius: 14px;
  --k-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

::selection {
  background: rgba(249, 67, 154, 0.26);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--k-text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--k-rose);
}

button {
  font: inherit;
}

code,
pre,
kbd {
  font-family: var(--k-mono);
}

:focus-visible {
  outline: 3px solid var(--k-sky);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--k-ink);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.container {
  max-width: var(--k-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Type scale */
.h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.h2 {
  max-width: 900px;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-wrap: balance;
}

.h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.lede {
  max-width: 720px;
  margin-top: 20px;
  color: var(--k-muted);
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--k-rose);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.on-dark .kicker {
  color: var(--k-pink);
}

.on-dark .lede {
  color: rgba(255, 255, 255, 0.78);
}

.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--k-rose);
  border-radius: 999px;
  background: var(--k-rose);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  border-color: var(--k-rose-hover);
  background: var(--k-rose-hover);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--ghost {
  background: #fff;
  color: var(--k-rose);
}

.btn--ghost:hover {
  background: var(--k-blush);
  color: var(--k-rose-hover);
}

.btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--k-ink);
}

.btn--light:hover {
  border-color: var(--k-blush);
  background: var(--k-blush);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
}

/* Sections and inline links shared by the whole page. */
.section {
  padding: clamp(56px, 6.5vw, 92px) 0;
}

.section--blush {
  background: linear-gradient(#fff, var(--k-blush));
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .lede {
    font-size: 18px;
  }

  .container {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
