:root {
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  color: var(--color);
  background-color: var(--background-color);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

:root.light {
  --color: rgba(36, 36, 36, 1);
  --background-color: rgba(255, 255, 255, 0.8);
  
  --coral: rgb(224, 108, 0);
  --cloud: rgba(224, 216, 212, 0.85);
}

:root.dark {
  --color: rgba(255, 255, 255, 0.8);
  --background-color: rgba(36, 36, 36, 1);

  --coral: rgb(250, 166, 82);
  --cloud: rgba(214, 225, 226, 0.15);
}

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

.spacer {
  display: block;
  background: var(--debug-color);
  opacity: 0;
  pointer-events: none;
}

a {
  color: var(--coral);
}

.spacer.xs { height: calc(1 * var(--spacer-size)); }
.spacer.sm { height: calc(2 * var(--spacer-size)); }
.spacer.md { height: calc(4 * var(--spacer-size)); }
.spacer.lg { height: calc(8 * var(--spacer-size)); }
.spacer.xl { height: calc(16 * var(--spacer-size)); }

/** DEBUG **/
:root.debug-spacer .spacer {
  opacity: 0.3;
}

h1, h2, h3, h4 {
  font-family: 'Londrina Solid', sans-serif;
  line-height: 1;
}

h1 { font-size: 4.50em; }
h2 { font-size: 3.00em; }
h3 { font-size: 2.00em; }
h4 { font-size: 1.50em; }

img {
  width: 100%;
  border-radius: calc(0.25 * var(--spacer-size)); 
}

nav .logo {
  width: calc(5 * var(--spacer-size)); 
}

nav .links {
  float: right;
}

.links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: var(--spacer-size);
}

.links li {
  flex-grow: 0;
  flex-basis: auto;
  padding: calc(0.2 * var(--spacer-size)) calc(0.35 * var(--spacer-size));
  border-radius: calc(0.2 * var(--spacer-size));
  font-size:.9em;
}

.links li:hover {
  position: relative;
  top: 1px;
  cursor: pointer;
}

.links a {
  text-decoration: none;
}

nav .links a {
  color:rgb(57, 57, 57);
}

footer .links a {
  color: var(--color);
}

.links svg {
  position: relative;
  top: 2px;
}

nav .links svg {
  fill: rgb(57, 57, 57);
}

footer .links svg {
  fill: var(--color);
}

.button {
  background: var(--coral);
  border-radius: calc(0.25 * var(--spacer-size)); 
  color: var(--background-color);
  padding: calc(0.5 * var(--spacer-size)) var(--spacer-size);
  text-decoration: none;
  font-weight: bold;
  font-size: 120%;
}

.button:active {
  position: relative;
  top: 2px;
}

.accordian--entry--title h3 {
  position: relative;
  padding: var(--spacer-size) 0;
  user-select: none;
  border-top: 1px solid var(--color);
  border-bottom: 1px solid var(--color);
  transition: 200ms color ease-out;
}

.accordian--entry--title h3:hover {
  color: var(--coral);
  cursor: pointer;
}

.collapsed:not(:last-child) .accordian--entry--title h3 {
  border-bottom: 1px solid transparent;
}

.accordian--entry--title h3::after {
  content: '–';
}
.collapsed .accordian--entry--title h3::after {
  content: '+';
}

.accordian--entry--title h3::after {
  font-family: sans-serif;
  color: var(--color);
  position: absolute;
  line-height: 0; 
  top: 50%;
  right: 0;
}

.accordian--entry--body {
  transition: 200ms height ease-out;
  overflow: hidden;
}

.accordian.collapsed .accordian--entry--body {
  height: 0;
}

.bg-gradient {
  background: rgb(131,58,180);
  background: linear-gradient(143deg, rgba(131, 58, 180, 1) 0%, rgba(143, 165, 241, 1) 0%, rgba(255, 138, 168, 1) 35%, rgba(253, 255, 124, 1) 62%, rgba(155, 255, 136, 1) 87%, rgba(136, 255, 191, 1) 100%);
}

.bg-cloud {
  background-color: var(--cloud);
}

.flex {
  display: flex;
  gap: calc(2 * var(--spacer-size));
  justify-content: space-between;
  flex-wrap: no-wrap;
}

.flex__item {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 50%;
}

.hero img {
  filter: invert(0.8);
}

.hero {
  color: rgb(85, 85, 85);
}

:root {
  --debug-color: rgb(255, 210, 30);
  --spacer-size: 2rem;
  }

.content {
  margin: 0 auto;
  max-width: 105rem;
  font-size: 2.0rem;
}

@media (min-width: 76.8em) {
  .constrained {
    max-width: 70rem !important;
  }

  .illo {
    margin-left: calc(-2 * var(--spacer-size));
    width: calc(100% + calc(2 * var(--spacer-size)))
  }
}

/* 768px Tablet portrait and below */
@media (max-width: 76.8em) {
  
 :root {
   --debug-color: rgb(120, 30, 255);
   --spacer-size: 1.5rem;
 }

  .content {
    margin: 0 auto;
    max-width: 70rem;
    font-size: 1.6rem;
  }

}


/* 480px Mobile landscape and below */
@media (max-width: 48em) {
  
  :root {
    --debug-color: rgb(255, 30, 50);
    --spacer-size: 1rem;
  }
 
  .content {
    margin: 0 auto;
    max-width: 40rem;
    font-size: 1.4rem;
    padding: 0 calc(2 * var(--spacer-size));
  }

  .flex {
    flex-wrap: wrap;
  }

  .flex__item {
    flex-shrink: 0;
    flex-basis: 100%;
  }
  
}
