/* main.css */

@font-face {
    font-family: 'PT Serif';
    src: url('/font/PT_Serif/PTSerif-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PT Serif';
    src: url('/font/PT_Serif/PTSerif-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('/font/Figtree/Figtree-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body, p, ul {
    margin: 0;
    padding: 0;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

html, body {
    font-family: 'Figtree';
    font-size: 20px;
    font-weight: 340;
}

html {
    background-color: var(--bg-root-color, #999);
}

body {
    position: relative;
    background: transparent;
}

.background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    z-index: 0;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.background-layer--a {
    opacity: 1;
}

body.bg-a .background-layer--a { opacity: 1; }
body.bg-a .background-layer--b { opacity: 0; }

body.bg-b .background-layer--a { opacity: 0; }
body.bg-b .background-layer--b { opacity: 1; }

.slides,
.slide {
    position: relative;
    background: transparent;
}

.slides {
    z-index: 1;
    width: 100%;
}

.slides-dynamic {
    opacity: 1;
    transition: opacity 150ms ease;
}

.slides-dynamic.is-fading {
    opacity: 0;
}

.slide {
    width: 100%;
}

.subheader { 
    display: inline-block;
    width: fit-content;
    padding: 0.3em 0em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    font-size: 0.84em;
    font-weight: 500;
    color: var(--tmp-color3);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.tags li {
    display: inline-block;
    width: fit-content;
    border-radius: 0.4em;
    padding: 0.4em 0.6em;
    font-size: 0.8em;
    background: var(--tmp-color5);
    color: #FFF;
    opacity: 0.9;
}

.more {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.94em;
    color: var(--tmp-color3);
}

.more li + li {
    margin-top: 0.6em;
}

.more a::before {
    content: "→ ";
}

.articles {
    display: flex;
    gap: 1.2em;
    width: 100%;
    padding: 1em;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(0, 0, 0, 0.08);
    font-size: 1.1em;
    font-family: 'PT Serif';
    color: #000;
    -webkit-overflow-scrolling: touch;
}

.article {
    flex: 0 0 auto;
    width: 80vw;
    padding: 1em;
    border-radius: 0.3em;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}