/*! Kiss */
:root {
    --screen: #202020;
    --text-main: #f0f0f0;
    --text-sub: #b4b4b4;
    --accent: #85a8d2;
    /*
    blue: #85a8d2
    green: #85b46e
    yellow: #cabd58
    sakura: #d482b6

    trash
    - #ADBFFB
    */
}

@media (prefers-color-scheme: dark) {

}

*:not(pre, code) {
    font-family: sans-serif;
}

* {
    word-break: break-all;
    box-sizing: border-box;
    scrollbar-color: var(--text-sub) var(--text-main);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: var(--text-main);
}

*::-webkit-scrollbar-thumb {
    background:  var(--text-sub);
}

html {
    touch-action: manipulation;
}

body {
    background-color: var(--screen);
    width: 92%;
    max-width: 720px;
    margin: 0 auto;
}

header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 32px 0;
}

header .header-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

header > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

header nav > a {
    color: var(--accent);
    font-size: 1.2rem;
}

footer {
    margin: 48px 0 16px 0;
}

hr {
    margin: 16px 0;
    border: dashed 1px var(--text-sub);
}

hr.solid {
    border: solid 1px var(--text-sub);
}

a {
    word-break: normal;
    overflow-wrap: break-word;
}

a:not([id]):not([class]) {
    color: var(--accent);
}

a:hover {
    opacity: 0.8;
}

#info {
    display: flex;
    flex-direction: column;
    margin: 64px 0;
}

#info #postTitle {
    font-size: 1.6rem;
    font-weight: bold;
}

#info .post-meta,
#info .post-meta * {
    color: var(--text-sub);
    font-size: 0.9rem;
}

h1, h2, h3, h4, h5, h6, div, p, span, a, code:not(pre code), th, td {
    color: var(--text-main);
}

blockquote *,
small:not(a small) {
    color: var(--text-sub);
}

h1, h2, h3 {
    margin: 32px 0 4px 0;
    font-weight: bold;
}

h4, h5, h6 {
    margin: 16px 0 4px 0;
}

h1 {
    border-bottom: solid 2px var(--text-sub);
    font-size: 1.8rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1.05rem;
}

h1 + h2,
h2 + h3,
h3 + h4,
h4 + h5,
h5 + h6 {
    margin-top: 16px!important;
}

h1 + p:not(notice),
h2 + p:not(notice),
h3 + p:not(notice),
h4 + p:not(notice),
h5 + p:not(notice),
h6 + p:not(notice) {
    margin-top: 4px!important;
}

p:not(.notice p), pre {
    margin: 16px 0;
}

.notice p {
    margin: 8px 0;
}

p {
    line-height: 1.6em;
    letter-spacing: 0.05em;
}

pre {
    background-color: var(--text-sub);
    padding: 8px 8px;
    overflow-x: auto;
}

code {
    font-size: 1rem;
}

code:not(pre code) {
    background-color: var(--text-main);
    color: var(--screen);
    margin: 0 4px;
    padding: 2px 4px;
}

blockquote {
    position: relative;
    margin: 16px 8px;
    padding: 16px;
}

blockquote::before, blockquote::after {
    z-index: -1;
    position: absolute;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.6;
}

blockquote::before {
    content: "“";
    top: 0px;
    left: 4px;
}

blockquote::after {
    content: "”";
    bottom: 0px;
    right: 4px;
}

img, video {
    background-color: var(--text-sub);
    width: 100%;
    margin: 16px 0;
    aspect-ratio: 16/9;
    object-fit: contain;
}

iframe {
    background-color: var(--text-sub);
    width: 100%;
}

table {
    display: block;
    max-width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    overflow: hidden;
    overflow-x: auto;
    table-layout: fixed;
}

table > thead {
    border-bottom: 2px solid var(--text-sub);
}

table th,
table td {
    min-width: 128px;
    max-width: 256px;
    padding: 8px;
    border-left: 1px solid var(--text-sub);
    border-top: 1px solid var(--text-sub);
    border-collapse: none;
    vertical-align: top;
}

table td:first-child, table th:first-child{
    border-left:none;
}

table tr:first-child td, table tr:first-child th{
    border-top:none;
}

ul:not(ul > ul, ul > ol), ol:not(ol > ul, ol > ol) {
    margin: 8px 0;
    padding-left: 32px;
}

ul > ul, ul > ol, ol > ul, ol > ol {
    margin-bottom: 8px;
    padding-left: 16px;
}

.notice {
    position: relative;
    margin: 16px 0;
    padding: 38px 16px 8px 16px;
}

.notice::before {
    content: "◆";
    position: absolute;
    top: 8px;
    left: 12px;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: bold;
}

.notice::after {
    z-index: -1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--accent);
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 8px 0;
    padding: 8px;
    text-decoration: none;
}

.link-card:hover {
    opacity: 0.8;
}

.link-card::after {
    z-index: -1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--accent);
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.link-card .link-card-title {
    display: -webkit-box;
    word-break: break-all;
    font-size: 1.15rem;
    font-weight: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.link-card .link-card-here {
    color: var(--text-sub);
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.embed-video-share {
    width: 100%;
    aspect-ratio: 16/9;
}

.post-card {
    display: flex;
    flex-direction: column;
    margin: 16px 0;
    padding: 8px;
    text-decoration: none;
}

.post-card .post-card-title {
    color: var(--accent);
    text-decoration: underline;
    font-size: 1.4rem;
}

.post-card .post-card-mata {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.move-post {
    display: flex;
    gap: 8px;
    margin: 80px 0 32px 0;
}

@media (max-width:480px) {
    .move-post {
        flex-direction: column;
        gap: 8px;
    }
}

.mp-card {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 8px;
    border: solid 1px var(--text-main);
    text-decoration: none;
    flex-direction: column;
}

.mp-card:hover {
    opacity: 0.8;
}

.mp-card .mp-card-prev, .mp-card .mp-card-next {
    font-size: 0.9rem;
    font-weight: bold;
}

.mp-card .mp-card-next {
    text-align: right;
}

.mp-card .mp-card-title {
    display: -webkit-box;
    word-break: break-all;
    font-size: 1rem;
    font-weight: normal;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}