@property --background {
  syntax: '<color>';
  initial-value: rgb(7 19 26);
  inherits: false;
}

@property --green {
  syntax: '<color>';
  initial-value: rgb(120 132 115);
  inherits: false;
}

@property --cyan {
  syntax: '<color>';
  initial-value: rgb(20 192 249);
  inherits: false;
}

@property --blue {
  syntax: '<color>';
  initial-value: rgb(10 142 199);
  inherits: false;
}

@property --navy {
  syntax: '<color>';
  initial-value: rgb(0 92 149);
  inherits: false;
}

@property --gray {
  syntax: '<color>';
  initial-value: rgb(214 219 212);
  inherits: false;
}

@property --success-bg {
  syntax: '<color>';
  initial-value: rgb(234 239 232);
  inherits: false;
}

@property --success-fg {
  syntax: '<color>';
  initial-value: rgb(12 113 147);
  inherits: false;
}

@property --error-bg {
  syntax: '<color>';
  initial-value: rgb(255 239 239);
  inherits: false;
}

@property --error-fg {
  syntax: '<color>';
  initial-value: rgb(178 69 69);
  inherits: false;
}

:root {
  --theme-gradient: linear-gradient(90deg, var(--cyan) 0%, var(--navy) 100%);
  --theme-pattern: url('/cp-hero-bg-pattern.svg');
  --font-header:
    'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-body:
    'Oxygen', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --focus-box: 0 0 0 2px var(--blue);
}

body {
  background-color: var(--gray);
  color: var(--background);
  font-family: var(--font-body);
}

*,
::before,
::after {
  transition-duration: 0.15s;
  transition-property: none;
  transition-timing-function: ease-out;
  box-sizing: border-box;
  --base-shadow: 0 0 #0000;
  --focus-shadow: 0 0 #0000;
  box-shadow: var(--base-shadow);

  &:focus-visible {
    outline-width: 0;
    box-shadow: var(--base-shadow), var(--focus-shadow);
  }
}

::selection {
  background-color: rgba(from var(--green) r g b / 0.5);
}

.w-content {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 48rem;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-header);
}

a[href],
button,
input,
select,
textarea,
details,
[tabindex]:not([tabindex='-1']),
[contenteditable]:not([contenteditable='false']) {
  --focus-shadow: 0 0 0 2px var(--blue);
  transition-property: box-shadow;
}

a,
a[href] {
  transition-property: box-shadow, color;
  border-radius: 0.25rem;
  color: hsl(from var(--blue) h s 30%);

  &:hover {
    color: var(--blue);
  }
}
