/* ------------------------------------
 * Typecho Default Theme
 *
 * @author  Typecho Team
 * @link  http: //typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
:root {
    --width: 680px;
    --font-weight: 400;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    --font-scale: 1em;
    --blockquote-color: #373379a2;
    --background-color: #ffffff;
    --list-color: #f6f6f6;
    --bottom-color: #F9F5F1;
    --text-color: #333;
    --link-color: #11193b;
    --visited-color: #222;
    --code-background-color: #dedcdc;
    --code-color: #222;
    --gray-color: #666;
    --next-border: 1px solid #ddd;
    --list-border: 2px solid #C4E8C8;
    --common-radius: 8px;
    --transition-ease: all .3s ease;
    --black: #000;
    --friends-hover-bg: #FEE69A;
    --highlight-bg: #ffef005c;
    --block-color: #f8f8f8;
    --dark-background: #111827;
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: justify;
    background-color: var(--bottom-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 2;
    color: var(--text-color);
    text-autospace: normal;
}

:where(h1, h2, h3, h4, h5, h6) {
    font-weight: 900;
    font-size: 20px;
    color: var(--text-color);
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

nav a {
    margin-left: 16px;
}

b,
strong {
    font-weight: 900;
    background: linear-gradient(transparent 55%, var(--highlight-bg) 0);
    color: var(--text-color)
}

button {
    margin: 0;
    cursor: pointer;
}

time {
    font-family: var(--font-main);
  	font-style: normal;
  	font-size: 15px;
}

#upvote-form {
    display: none !important;
}

table {
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid;
    margin: 30px 0;
    opacity: .1;
}

.footnotes {
    border: 0;
    border-top: 1px solid;
    margin: 30px 0;
}

img {
    max-width: 100%;
}

code {
    font-family: monospace;
    padding: 2px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
}

blockquote {
    margin-inline-start: 0;
    margin-inline-end: 0;
    font-size: 14px;
    color: var(--blockquote-color);
    border: 1px solid #dadada;
    border-radius: var(--common-radius);
    padding: 10px 20px;
    background-color: #e0ece8;
}


cite {
    display: flex;
    justify-content: flex-end;
    font-size: 14px
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    border-bottom: var(--next-border);
}

footer {
    margin-top: 40px;
    text-align: center;
    border-top: var(--next-border);
}

.title:hover {
    text-decoration: none;
}

.title h1 {
    font-size: 1.5em;
}

.inline {
    width: auto !important;
}

.highlight, .code {
    padding: 1px 15px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: auto;
}

/* blog post list */
ul.blog-posts {
    list-style-type: none;
    padding: 0;
    margin: 0 -10px;
}

ul.blog-posts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin: 15px 0;
    position: relative;
}

ul.blog-posts li::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: repeating-linear-gradient(to right, #d1d5db 0px, #d1d5db 4px, transparent 4px, transparent 8px);
    z-index: 1;
}

ul.blog-posts li span, ul.blog-posts li a {
    background: var(--bottom-color);
    padding: 0 12px;
    z-index: 2;
    position: relative;
}

.links {
    display: flex;
    flex-wrap: wrap;
    margin-left: -.2rem;
    margin-right: -1rem;
    gap: 20px
}

.friends {
    width: 31%;
    text-decoration: none;
    color: var(--black);
    text-align: center;
    box-sizing: border-box;
    padding: 10px;
    transition: var(--transition-ease);
    font-size: 14px;
    border-radius: var(--common-radius);
    background-color: color-mix(in srgb, var(--block-color) 30%, transparent);
    border: 3px solid #eee;
}

.friends:hover {
    background-color: var(--block-color);
}

.tags {
    color: var(--gray-color);
    padding-top: 20px
}

.tags a {
    font-size: 0.75rem;
    border: 3px solid #eee;
    border-radius: 100px;
    padding: 4px 8px;
    background-color: var(--block-color);
}

::selection {
    background-color: var(--highlight-bg);
    color: var(--dark-background)
}

li p {
    font-family: var(--font-main);
    font-size: 14px;
}