:root {
  /* --r-blue: #2d3c4b;
  --r-blue-10: #e5e5e9;
  --r-blue-25: #bec1c7;
  --r-blue-60: #737986;
  --c-aqua: #52b7c1;
  --c-aqua-10: #f2f8fa;
  --c-aqua-25: #ddedf1;
  --c-aqua-60: #a7d5dc;
  --u-gold: #ffa600;
  --white: #fff; */

  --r-blue: #1e242a;
  --r-blue-10: #e0e0e4;
  --r-blue-25: #a4adc1;
  --r-blue-60: #515a6c;
  --c-aqua: #fff200;
  --c-aqua-10: #fafaf2;
  --c-aqua-25: #eef1dd;
  --c-aqua-60: #d7dca7;
  --u-gold: #ff9d00;
  --white: #fff;

  --success: #05ff76;
  --error: #e23500;

  --i-width: calc(8 / 28);
  --copy-font: 'IBM Plex Serif', sans-serif;
  --copy-size: 11pt;
  --link-color: var(--c-aqua);

  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

* {
  box-sizing: border-box;
}

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

html {
  color: var(--r-blue);
  font-family: 'Inter', sans-serif;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

.bg-c-aqua {
  --link-color: var(--white);
  background-color: var(--c-aqua);
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
  -webkit-box-decoration-break: clone;
  display: inline;
  box-decoration-break: clone;
  background-color: var(--headline-bg-col, var(--r-blue));
  padding: calc(var(--i-width) * 1.5ch);
  color: var(--headline-font-col, var(--white));
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -10;
}

h1 span.blueonwhite,
h2 span.blueonwhite,
h3 span.blueonwhite,
h4 span.blueonwhite,
h5 span.blueonwhite,
h6 span.blueonwhite {
  --headline-bg-col: var(--r-blue);
  --headline-font-col: var(--white);
}

h1 span > gold,
h2 span > gold,
h3 span > gold,
h4 span > gold,
h5 span > gold,
h6 span > gold {
  color: var(--u-gold);
}

h1 {
  max-width: 30ch;
  font-size: 2.3rem;
}

h2 {
  max-width: 30ch;
  font-size: 1.8rem;
}

h3 {
  max-width: 30ch;
  font-size: 1.5rem;
}

h4 {
  max-width: 30ch;
  font-size: 1.2rem;
}

.text-sans {
  --copy-font: 'Inter', sans-serif;
  --copy-size: 1rem;
}

.text-serif {
  --copy-font: 'IBM Plex Serif', sans-serif;
  --copy-size: 11pt;
}

p {
  text-wrap: balance;
  max-width: 60ch;
  font-weight: 'regular';
  font-size: var(--copy-size);
  line-height: 1.8;
  font-family: var(--copy-font);
}

p a:link,
p a:visited {
  text-decoration: underline;
}

a:link,
a:visited {
  color: var(--link-color);
  text-decoration: none;
}

body {
  height: 100dvh;
  overflow-y: scroll;
}

li {
  line-height: 1.8;
  font-family: var(--copy-font);
}

button.btn-circle {
  border: none;
}

button.btn-circle:hover,
a.btn-circle:hover {
  transform: rotate(-10deg);
}

button.btn-circle,
a.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-items: center;
  transform: rotate(0deg);
  transition: all 0.1s ease-out;
  margin: 0.5rem;
  border-radius: 50%;
  background-color: var(--u-gold);
  padding: 1rem;
  width: 10ch;
  height: 10ch;
  text-decoration: none;
}

button.btn-circle > div,
a.btn-circle > div {
  color: var(--white);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

button.btn-circle strong,
a.btn-circle strong {
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
}

a:has(img) {
  display: block;
  margin: 1rem 0;
  padding: 0;
}

img,
a img {
  box-sizing: border-box;
  margin: 0;
  border: solid var(--white) 0.4rem;
  padding: 0;
  width: 100%;
}

img.border-br-blue {
  border-color: var(--r-blue);
}

form {
  display: grid;
  grid-template-rows: repeat(auto-fill, auto);
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  align-content: start;
  justify-content: start;
  justify-items: start;
  gap: 1rem;
}

form div.alert {
  margin: 1rem 0;
  border-radius: 5px;
  background-color: var(--r-blue-10);
  padding: 1rem;
  color: var(--r-blue);
  font-size: 0.95rem;
  font-family: var(--copy-font);
}

form div.alert.hidden {
  display: none;
}

form div.alert.success {
  background-color: var(--success);
  color: var(--r-blue);
}

form div.alert.error {
  background-color: var(--error);
  color: var(--white);
}

form input,
form select {
  border: solid var(--r-blue-10) 1px;
  border-radius: 5px;
  padding: 0.5rem;
}

form input,
form select {
  font-family: var(--copy-font);
}

form label {
  font-size: 0.9rem;
  font-family: var(--copy-font);
}

form input[type='checkbox'] + label {
  font-size: 1rem;
  font-family: var(--copy-font);
}

form label a:link {
  text-decoration: underline;
}

form div:has(> label + input) {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  gap: 0.5rem;
  font-family: var(--copy-font);
}

form div:has(> input + label) {
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--copy-font);
}

form button,
.btn,
.btn:where(:visited, :link) {
  --btn-bg-col: var(--white);
  --btn-font-col: var(--r-blue);
  --btn-outline-col: var(--r-blue);
  --btn-outline-hover-col: transparent;
  --btn-bg-hover-col: var(--r-blue);
  --btn-font-hover-col: var(--white);
  -webkit-appearance: none;
  display: block;
  appearance: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out,
    outline-color 0.3s ease-in-out, transform 0.1s ease-in-out;
  cursor: pointer;
  box-sizing: border-box;
  outline-color: transparent;

  box-shadow: rgba(0, 0, 0, 0.1) 2px 4px 5px 0px;
  border: none;
  border-radius: 5px;
  background-color: var(--btn-bg-col);
  padding: 0.5rem 1rem;
  width: fit-content;
  color: var(--btn-font-col) !important;
  caret-color: transparent;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
}

.btn.with-outline {
  outline: var(--btn-outline-col) 1px solid;
}

form button:hover,
.btn:hover {
  outline: 1px var(--btn-outline-hover-col) solid;
  box-shadow: rgba(0, 0, 0, 0.07) 1px 1px 2px 0px;
  background-color: var(--btn-bg-hover-col);
  color: var(--btn-font-hover-col) !important;
}
form button:active,
.btn:active {
  transform: scale(0.98);
}

form button.btn-dark,
.btn.btn-dark,
.btn.btn-dark:where(:visited, :link) {
  --btn-outline-col: var(--white);
  --btn-bg-col: var(--r-blue);
  --btn-font-col: var(--white);
  --btn-outline-hover-col: var(--r-blue);
  --btn-bg-hover-col: transparent;
  --btn-font-hover-col: var(--r-blue);
}

form button.btn-100,
.btn.btn-100 {
  width: 100%;
}

form button.btn-m50,
.btn.btn-m50 {
  min-width: 50%;
}
