@import url("https://rsms.me/inter/inter.css");
/* @import url("https://fontsapi.zeoseven.com/69/main/result.css"); */

:root {
    --bg: #fcfcfc;
    --accent: #ff4ca3;
    --hover: #FB7576;
    --accent-alt: #da3e8a;
    --fg: #141414;
}

html {
    background-color: var(--bg);
    margin: auto;
    display: flex;
}

body {
    max-width: 800px;
    margin: auto;
    padding: 0 18px;
    line-height: 1.5;
    font-family: Inter, "Noto Sans CJK", sans-serif;
    /* font-feature-settings: 'liga', 'calt', 'ss01', 'ss03', 'cv05', 'cv06', 'cv11', 'cv13'; */

    color: var(--fg);
}

body.wide {
    max-width: 1280px !important;
}

header {
    padding-top: 24px;
    padding-bottom: 9px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    font-weight: 300;
}

a {
    color: var(--accent)
}

a:hover {
    color: var(--hover) !important;
    text-decoration: none !important;
}

hr {
    border-top: 1px solid var(--fg);
    height: 0;
    margin: auto;
    margin-left: 0;
    opacity: 22.2%;
}

button {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    background-color: var(--accent);
    border: 2px solid var(--accent);
    color: white;
    font-family: Inter, "Sarasa UI SC", "Sarasa Gothic SC", "Noto Sans CJK", sans-serif !important;
}

button:hover {
    background-color: var(--hover);
    border: 2px solid var(--hover);
}

footer {
    line-height: 1.1;
    opacity: 100%;
    font-size: 0.9em;
    margin-top: 2em;
}

article>:first-child {
    margin-top: 0;
}

article>:last-child {
    margin-bottom: 0;
}

.social {
    line-height: 0.9;
    text-align: center;
    font-size: 1rem;
    padding-bottom: 0.5em;
}

.social a {
    color: var(--accent) !important;
}

.carrottv-logo {
    content: url("../images/logo.svg");
}

.carrottv-logo.white {
    content: url("../images/logo-white.svg");
}

img {
    max-width: 100%;
    width: auto;
    height: auto;
    margin-left: 0;
    margin-right: auto;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}

ul.menu {
    padding: 0 0;
    font-size: 1.2rem;
    font-weight: 300;
    list-style-type: none;
    margin: 0.3rem 0;
}

ul.submenu {
    padding: 0 0;
    font-size: 1rem;
    font-weight: 300;
    list-style-type: none;
    margin: 0.3rem 0;
}

.menu li, .submenu li {
    display: inline-block;
    opacity: 60%;
    padding-right: 9px;
}

.menu li a, .submenu li a {
    text-decoration: none !important;
    color: var(--fg-light);
}

.menu li.active {
    opacity: 80%;
    font-size: 1.1em;
}

.submenu li.active {
    opacity: 90%;
    font-weight: 400;
}

.menu li:hover, .submenu li:hover, .social .submenu li:hover {
    opacity: 100%;
}

.menu.breadcrumb li:not(:last-child)::after {
    content: " / ";
}

.menu.breadcrumb li {
    padding-right: 0;
}

.social .submenu li {
    opacity: 90%;
}

.social .submenu a:hover {
    color: var(--hover) !important;
}

::selection {
    background-color: #fa408b;
    color: white;
}

::-moz-selection {
    background-color: #fa408b;
    color: white;
}

:root, * {
    scrollbar-color: var(--accent) var(--bg);
}

.center {
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --accent: #ff4ca3;
        --hover: #FB7576;
        --accent-alt: #da3e8a;
        --fg: #fbfbfb;
    }

    .carrottv-logo {
        content: url("../images/logo-dark.svg");
    }
}