body, html, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

:root {
    --color-accent-1-500: #ffd90f;
    --color-accent-2-500: #4666b3;
    --color-accent-3-400: #d76600;
    --color-accent-4-400: #2d50aa;
    --color-accent-4-500: #4177dc;
    --color-success-500: hsl(160, 60%, 45%);
    --color-text-inverted: hsl(199, 16%, 44%);
    --color-bg-inverted: #eee;
    --color-bg-inverted-300: #c7d1da;
    --color-bg: #98a9b7;
    --color-bg-100: hsl(199, 12%, 54%);
    --color-text: #fff;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
}

html {font-size: 112.5%;} /*16px*/

body {
    font-weight: 300;
    font-family: 'Lato', sans-serif;
}

body,
*[data-theme="default"] {
    --color-el-bg: var(--color-bg);
    background-color: #98a9b7;
    background-color: var(--color-bg);
    color: #fff;
    color: var(--color-text);
}
*[data-theme="default-100"] {
    --color-el-bg: var(--color-bg-100);
    background-color: hsl(199, 12%, 54%);
    background-color: var(--color-bg-100);
    color: #fff;
    color: var(--color-text);
}

*[data-theme="inverted"] {
    --color-el-bg: #eee;
    background-color: #eee;
    background-color: var(--color-bg-inverted);
    color: hsl(199, 16%, 44%);
    color: var(--color-text-inverted)
}

a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: hsla(220, 6%, 100%, 0.4);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

p {margin-bottom: 1rem;}

.h1,
h1 {
  margin-top: 0;
  font-size: 4.209rem;
}

.h2,
h2 {font-size: 3.157rem;}

.h3,
h3 {font-size: 2.369rem;}

.h4,
h4 {font-size: 1.777rem;}

.h5,
h5 {font-size: 1.333rem;}

.h6,
h6 {font-size: 1rem;}

small, .text_small {font-size: 0.75rem;}

textarea {
    width: 100%;
    height: 10em;
}

fieldset {
    border: none;
    padding: 0;
}

picture > * {
    max-width: 100%;
    height: auto;
}

picture > img {
    border-radius: inherit;
}

select,
textarea,
input {
    max-width: 100%;
}

.wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
}

.wrapper__content,
.margin-centered {
    margin-left: auto;
    margin-right: auto;
}

.w100,
.wrapper__content {
    max-width: 60rem;
    width: 100%;
}

.w66 {
    max-width: 40rem;
}

.stack > *:not(script):not([hidden]) + *{
    margin-top: 1em;
    margin-top: var(--gap, 1em);
}

.stack[data-gap="400"]  > *:not(script):not([hidden]) + *,
.stack[data-gap="400"]  > *:not(script):not([hidden]):target + *{
    margin-top: 4em;
    margin-top: var(--gap, 4em);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.cluster[data-mode="inline"] {
    display: inline-flex;
}

.hz-card__text {
    flex-grow: 1;
    max-width: 20rem;
    font-size: min(max(1rem, 4vw), 3rem);
}

[data-dir="right"] > .hz-card__text {
    text-align: right;
}

.flex-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: var(--justify, space-between);
    align-items: var(--align, flex-start);
    gap: 1em;
}

.icon {
    display: inline-block;
    width: 1em;
    vertical-align: bottom;
}

.button-cta,
.button {
    background: url("/assets/noise-texture.svg"), hsl(220, 0%, 45%);
    background: url("/assets/noise-texture.svg"), var(--color-bg-100);
    border-radius: 50px;
    border: 2px solid #eee;
    color: #eee;
    display: inline-block;
    padding: 1em 1.3em;
    text-decoration: none;
    font-variant: small-caps;
    transition: all 0.2s ease;
    cursor: pointer;
}

.button-cta:hover,
.button-cta:focus,
.button:hover,
.button:focus {
    font-weight: bold;
}

.button-cta {
    background: url("/assets/noise-texture.svg"), #98a9b7;
    background: url("/assets/noise-texture.svg"), var(--color-accent-4-400);
    
}

.button-cta:hover,
.button-cta:focus {
    background: url("/assets/noise-texture.svg"), #65798e;
    background: url("/assets/noise-texture.svg"), var(--color-accent-4-500);
}

.button > *,
.button-cta > * {
    vertical-align: middle;
}

.button-cta > .icon:last-child {
    margin-left: 0.4em;
}


.button-cta[data-type="primary"] {
    background: url("/assets/noise-texture.svg"), #4666b3;
    background: url("/assets/noise-texture.svg"), var(--color-accent-2-500);
    color: #eee;
    border-color: #eee;
}

.site-footer,
.site-header {
    padding-bottom: 1em;
    padding-top: 1em;
}

.site-logo {
    align-items: center;
    display: flex;
    gap: 0;
    column-gap: 0.6em;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1;
    letter-spacing: 0.1em;
    row-gap: -0.5em;
    max-width: 70%;
    box-sizing: border-box;
}


.site-logo__romansky {
    display: inline-block;
    width: 18rem;
    max-width: 100%;
}


.painted-divider {
    --divider-size: 6rem;
    --divider-height: 4.2rem;
    position: relative;
}

.painted-divider[data-side="top,bottom"],
.painted-divider[data-side="top"] {
    padding-top: 4.2rem;
    padding-top: var(--divider-height);
}

.painted-divider[data-side="top,bottom"],
.painted-divider[data-side="bottom"] {
    padding-bottom: 4.2rem;
    padding-bottom: var(--divider-height);
}
.painted-divider[data-side="top,bottom"]::before,
.painted-divider[data-side="top,bottom"]::after,
.painted-divider[data-side="top"]::before,
.painted-divider[data-side="bottom"]::after {
    background-size: 6rem;
    background-size: var(--divider-size);
    content: " ";
    height: 4.2rem;
    height: var(--divider-height);
    left: 0;
    position: absolute;
    width: 100%;
}

.painted-divider[data-side="top,bottom"]::before,
.painted-divider[data-side="top"]::before {
    background-image: url("/assets/divider-pattern.png");
    background-repeat: repeat-x;
    background-position: 5.2rem 0.3rem, top left;
    background-position: var(--roller-position,  5.2rem 0.3rem), top left;
    top: -1rem;
}

.painted-divider[data-side="top,bottom"]::after,
.painted-divider[data-side="bottom"]::after {
    background-image: url("/assets/divider-pattern.png");
    background-repeat: repeat-x;
    background-position: top left;
    bottom: -0.1rem;
    transform: scale(-1);
}

.pad-y-420 {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
}

.site-hero {
    color: hsla(0, 0%, 6%, 0.76);
    color: var(--color-text-inverted);
    align-items: center;
    background-color: #fff;
    display: flex;
    font-size: min(2em, 7vw);
    justify-content: center;
}

.site-hero[data-side="top,bottom"]::before {
        background-image: url("/assets/hero-illustration.png"),
            url("/assets/divider-pattern.png");
        background-repeat: no-repeat, repeat-x;
}


.site-hero__content {
    flex-grow: 2;
}

.site-hero__cta {
     background-image: linear-gradient( var(--color-bg-inverted-300), #fff);
}

.raise-100-interactive,
.raise-100 {
    box-shadow: 0 0.2em 0.5em hsla(220, 6%, 6%, 0.2), 0 0.2em 0.1em hsla(220, 6%, 6%, 0.4);
}

.raise-100-interactive {
    transition: all 100ms ease-in-out;
    position: relative;
    bottom: 0.2em;
}

.raise-100-interactive:focus,
.raise-100-interactive:hover {
    box-shadow: 0 0.4em 0.7em hsla(220, 6%, 6%, 0.2), 0 0.4em 0.3em hsla(220, 6%, 6%, 0.4);
    bottom: 0.4em;
}

.raise-100-interactive:active {
    box-shadow:  0 0.1em 0.1em rgba(0,0,0, 0.4);
    bottom: 0;
}

.radio-group {
    border: solid 1px var(--color-bg-100);
    border-radius: 999px;
    display: inline-flex;
    color: var(--color-text-inverted);
    overflow: hidden;
}

.radio-group > input[type="radio"] {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.radio-group > label {
    display: block;
    padding: 0.3em;
    cursor: pointer;
    min-width: 5em;
    text-align: center;
    transition: all 0.2s ease;
}

.radio-group > label:focus,
.radio-group > label:hover {
    font-weight: bold;
}

.radio-group > label:last-of-type {
    padding-right: 0.5em;
}

.radio-group > label:first-of-type {
    padding-left: 0.5em;
}

.radio-group > input:checked + label {
    background-color: var(--color-bg-100);
    color: var(--color-text);
}

.ps-dev-link {
    color: rgb(255, 167, 69);
}




.flipped-x {
    transform: scaleX(-1);
}

.form-group > * {
    display: block;
}


.half-max {
    max-width: 50%;
    flex-grow: 0;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.unstyled-list {
    list-style-type: none;
    padding: 0;
}

.offscreen {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.rounded-subtle {
    border-radius: 0.1em;
}

.hide-next + * {
    display: none;
}

.text-center {
    text-align: center;
}

.bg-success {
    background-color: hsl(160, 60%, 45%);
    background-color: var(--color-success-500);
    --color-el-bg: var(--color-success-500);
}


.pad-100 {
    padding: 1em;
}

.pad-t-100 {
    padding-top: 1em;
}

@media screen and (min-width: 80rem) {
    .painted-divider {
        --divider-size: 16rem;
        --divider-height: 13rem;
        --roller-position:  13.8rem 0.9rem;
    }
    
}