
*,
::after,
::before {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--family-body), sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;

    justify-content: flex-start;
    align-items: stretch;
    /* flex-flow: column; */
    flex-direction: column;

    /*text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);*/
    /*box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);*/
}

@media (max-width: 720px) {
    body {
        padding: 1.5rem 1rem 3.75rem;
    }
}

/*  ------------------------------------------------------------------------  */

/*header, main, footer {*/
/*    width: 100%;*/
/*    max-width: 996px;*/
/*    margin: 0 auto;*/
/*    padding: 0;*/
/*}*/

header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

header [class^='container'] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

main {
    margin-bottom: 2rem;
    flex: 1;
}

@media (max-width: 720px) {
    main {
        padding: 1.5rem 1rem 3.75rem;
    }
}

footer {
    margin-top: 2rem;
}

/*  ------------------------------------------------------------------------  */

footer nav ul {
    display: flex;
    flex-direction: row;
    height: 3rem;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

/*  ------------------------------------------------------------------------  */

h1,
h2,
h3 {
    font-family: var(--family-heading), monospace;
    margin: 0 0 1rem 0;
    font-weight: normal;
}

h1 {
    font-size: 3.5rem;
}

.dark h1 {
    color: var(--accent-500);
}

p {
    margin: 0 0 .75rem 0;
}

a:link,
a:visited {
    color: var(--link);
}

a:visited {
    color: var(--link-visited);
}

a:hover,
a:active {
    color: var(--link-hover);
}

article {
    /*background-image: linear-gradient(0deg, var(--border), var(--border)),*/
    /*                  linear-gradient(0deg, var(--border), var(--border)),*/
    /*                  linear-gradient(0deg, var(--border), var(--border)),*/
    /*                  linear-gradient(0deg, var(--border), var(--border));*/
    /*background-position: 100% 100%, 0 0, 100% 0, 100% 0;*/
    /*background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;*/
    /*background-size: 100% 1px, 1px 100%, 1px 100%, 100% 1px;*/
    /*padding: 1px;*/
    /*background-color: var(--surface);*/
    display: flex;
    flex-direction: column;
    position: relative;
}

article footer {
    color: var(--muted-color);
    border-top: 1px solid var(--border);
    padding: .5rem;
    font-family: var(--family-monospace), monospace;
    background-color: var(--surface);
}

/*  Grid  ------------------------------------------------------------------  */

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }
}

@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 720px;
    }
}

@media (min-width: 576px) {
    .container, .container-sm {
        max-width: 540px;
    }
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

.col {
    flex: 1 0 0;
}

/*  Utilities  -------------------------------------------------------------  */

.muted {
    color: var(--muted);
    font-size: .875rem;
}

/*  Accessibilty  ----------------------------------------------------------  */

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    margin: -1px!important;
    overflow: hidden!important;
    clip: rect(0,0,0,0)!important;
    white-space: nowrap!important;
    border: 0!important;
}

/*  Logo  ------------------------------------------------------------------  */

.logo {
    margin: 0;
    padding: 0;
    font-family: var(--family-heading), sans-serif;
    font-size: 3em;
    line-height: 1;
    font-weight: bold;
    color: var(--primary-500);
}

.logo:link {
    text-decoration: none;
}

.logo:visited {
    color: var(--link);
}

.telaria-fr .logo {
    font-family: var(--family-logo), monospace;
    font-size: 2.75em;
    font-weight: normal;
    text-shadow: none;
}

/*  Theme switcher  --------------------------------------------------------  */

[for="theme-switcher"] {
    display: flex;
    align-items: center;
    align-content: center;
    gap: .5rem;
}

[role="switch"] {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 2.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: 1rem;
    background-color: #757580;
    text-indent: -9999px;
}

[role="switch"][aria-checked="true"] {
    padding-left: 1.2em;
    background-color: #0a0;
}

[role="switch"]:before {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    margin: 0 0 0 .25rem;
    border-radius: 50%;
    background-color: #fff;
    transition: transform .2s ease-in-out;
}

[role="switch"][aria-checked="false"] {
    padding-left: .2em;
    background: #757580;
}

/*  ------------------------------------------------------------------------  */

.home main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.home article {
    text-align: center;
}

.home article footer {
    display: none;
}

#home-illustration {
    height: 360px;
    width: 100%;
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}

/*  ------------------------------------------------------------------------  */
