:root {
    --input-border: #404366;
    --input-focus-h: 245;
    --input-focus-s: 100%;
    --input-focus-l: 42%;
    --button-color: #404366;
    --button-text: #fff;
    --text-color: #313131;
    --link-color: #404366;
    --text-light: 118;
    --text-extra-light: 77;
    --text-normal: 157;
    --text-medium: 200;
    --text-bold: 249;
    --text-extra-bold: 317;
    --text-heavy: 377;
    ---bg-error-msg: hsla(360, 49%, 52%, 30%);
    --text-color-error: #892c2c;
    --bg-color: white;
    --bg-success: hsla(180, 100%, 25%, 0.33);
    --text-color-success: hsl(180, 100%, 18%);
    --primary-color: #404366;
}

/* Typography */
@font-face {
    font-family: 'Codec Pro';
    font-display: swap;
    font-weight: 38 682;
    src:
            url('../fonts/Codec-Pro-Variable-subset.woff2') format('woff2'),
            url('../fonts/Codec-Pro-Variable-subset.woff') format('woff');
}


body {
    font-family: "Codec Pro", "Red Hat Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: var(--text-light);
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-kerning: normal;
    text-rendering: geometricPrecision;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 400px) {
    body  {
        font-size: 1.25rem;
    }
}

strong {
    font-weight: var(--text-medium);
}

h1 {
    font-size: 2.50rem;
    font-weight: var(--text-heavy);
}

h2 {
    font-size: 2.00rem;
    font-weight: var(--text-bold);
}

input {
    font-size: 16px;
    font-size: max(16px, 1em);
    font-family: inherit;
    font-weight: var(--text-normal);
    padding: 0.25em 0.5em;
    background-color: #fff;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    display: block;
    -webkit-appearance: none;
    margin-bottom: .5rem;
}

a {
    color: var(--link-color);
    text-decoration-thickness: .2rem
}

a:hover {
    text-decoration-style: dotted;
}

.input:not(textarea) {
    line-height: 1;
    height: 2.25rem;
}

.input[readonly] {
    border-style: dotted;
    cursor: not-allowed;
    color: #777;
}

.input[disabled] {
    --input-border: #ccc;

    background-color: #eee;
    cursor: not-allowed;
}

textarea.input {
    resize: vertical;
}

.input:focus {
    border-color: hsl(var(--input-focus-h), var(--input-focus-s), var(--input-focus-l));
    box-shadow: 0 0 0 3px hsla(var(--input-focus-h), var(--input-focus-s), calc(var(--input-focus-l) +
    40%), 0.8);
    transition: 180ms box-shadow ease-in-out;
}

.input:focus {
    outline: 3px solid transparent;
}

a.button {
    text-decoration: none;
}

button  {
    border: none;
    background-color: transparent;
    font-family: inherit;
    padding: 0;
    cursor: pointer;
}

@media screen and (-ms-high-contrast: active) {
    button  {
        border: 2px solid currentcolor
    }
}

a.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--button-color);
    color: var(--button-text);
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.18);
    padding: 0.25em 0.5em;
    min-width: 10ch;
    min-height: 44px;
    text-align: center;
    line-height: 1.1;
    transition: 220ms all ease-in-out;
}

a.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: inherit;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.18);
    padding: 0.25em 0.5em;
    min-width: 10ch;
    min-height: 44px;
    text-align: center;
    line-height: 1.1;
    transition: 220ms all ease-in-out;
    text-decoration: none;
    font-weight: var(--text-extra-bold);
    border-bottom-color: inherit;
    border-style: solid;
}

.copy_button {
    background-color: var(--bg-color);
    color: var(--primary-color);
    margin-left: -2.5rem;
    margin-right: 1rem;
    padding: 0;
    border-radius: 0;
    min-width: unset;
    min-height: unset;
    box-shadow: unset;
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    top: .4rem;
}

svg {
    fill: currentColor;
}

.message {
    display: block;
    background-color: lightsteelblue;
    padding: 20px;
    margin-top: 20px;
}

.errorMessage {
    font-weight: var(--text-normal);
    display: block;
    background-color: var(---bg-error-msg);
    color: var(--text-color-error);
    padding-top: .5em;
    padding-right: 1em;
    padding-left: 3.0em;
    padding-bottom: .5em;
    margin-top: 20px;
    background-image: url('../images/error_bg.svg');
    background-repeat: no-repeat;
    background-position: left 1em center;
}

.errorMessage a {
    color: inherit;
}

.hidden {
    display: none !important;
}

/* Utilities */
.float-left {
    float: left;
}

.float-right {
    float: right;
}

.light {
    font-weight: 77;
}

.align-center {
    text-align: center;
}
/* Components styles */

label {
    display: block;
}

[data-shrinker-target="url"] {
    display:block;
    width: 100%;
}

[data-controller="shrinker"] {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    border: 0;
}

[data-shrinker-target="slug"] {
    width: 15em;
    margin-top: .5rem;
    padding-left: 4.5em;
    background-image: url('../images/slug_bg.svg');
    background-repeat: no-repeat;
    background-position: left -1px top -1px;
    display: inline-block;
}

[data-shrinker-target="originalUrl"] {
    display: block;
    padding-left: 2em;
}

[data-shrinker-target="originalUrl"] img {
    float: left;
    margin-right: .5rem;
}

.logo {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.logo a {
    text-decoration: none;
}

.content {
    flex: 1 0 auto;
}

.footer {
    font-size: 1rem;
    flex-shrink: 0;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
}

.wrapper {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.loading-btn {
    padding: 0.25em 2.0em 0.25em 0.5em;
    background-image: url("../images/oval.svg");
    background-position: right .75em center;
    background-repeat: no-repeat;
    background-size: 1em;
}

[data-shrinker-target="urlSection"] {
    display: flex;
    flex-direction: column;
}
.urlSection__actions {
    align-self: flex-end;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.urlSection__actions span {
    margin-right: .5em;
}

.auth-success {
    color: var(--text-color-success);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    border: 0;
    padding: .3em 1em;
    background-color: var(--bg-success);
}

.auth-error {
    color: var(--text-color-error);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    border: 0;
    padding: .3em 1em;
    background-color: var(---bg-error-msg);
}
.auth-success h2, .auth-error h2 {
    margin-bottom: 1ex;
}

.auth-success p, .auth-error p {
    margin-bottom: 1ex;
}




