/**************************************
root
**************************************/
:root {
    color-scheme: dark;
}

/**************************************
fonts
**************************************/
@font-face {
    font-family: 'Rationalist';
    src: url('TT_Rationalist_Light.woff2') format('woff2'),
         url('TT_Rationalist_Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rationalist Italic';
    src: url('TT_Rationalist_Light_Italic.woff2') format('woff2'),
         url('TT_Rationalist_Light_Italic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MiriamLibre';
    src: url('MiriamLibre-Regular.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

/**************************************
body
**************************************/
html,
body {
    background: url('background.jpg');
    background-size: 2000px 1000px;
    background-color: #191919;
    font-family: 'Rationalist', 'MiriamLibre';
    color: #B3B3B3;
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    line-height: 1.6;
    letter-spacing: 1px;
    font-feature-settings: "ss01", "ss02";
}

/**************************************
body-container
**************************************/
.body-container {
    margin: 1.5rem auto;
    max-width: 660px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/**************************************
heading
**************************************/
h1 {
    color: #F5CA79;
    font-size: 1.8rem;
    font-family: 'Rationalist Italic';
    letter-spacing: 0.2rem;
    /* text-transform: uppercase; */
    font-weight: 100;
    text-align: center;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    line-height: 1.1;
    max-width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/**************************************
highlight
**************************************/
::selection {
    background: #363636;
}

/**************************************
horizontal lines
**************************************/
hr {
    width: 33%;
    border: none;
    height: 1px;
    color: #B3B3B3;
    background-color: #B3B3B3;
    opacity: 0.5;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* .hr-main {
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin: 1rem 0;
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #F5CA79;
    height: 4px;
    opacity: 0.8;
    border-bottom: 1px solid #F5CA79;
    width: 100%;
    background-color: transparent;
    opacity: 1;
} */

/**************************************
links
**************************************/
a {
    color: #F5CA79;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/**************************************
blockquote
**************************************/
blockquote {
    margin: 0;
    padding: 0 0 0 0.75rem;
    border-left: 1px solid #F5CA79;
    line-height: 1.6;
    position: relative;
    margin-bottom: 2rem;
}

/* blockquote::before {
    content: "\201C";
    color: #F5CA79;
    font-size: 2.3em;
    position: absolute;
    left: 4px;
    top: -10px;
} */

blockquote::after {
    content: '';
}

blockquote span {
    display: block;
    opacity: 0.8;
    font-style: normal;
    margin-top: 0.75em;
    font-size: smaller;
    text-align: right;
}

i {
    font-family: 'Rationalist Italic';
    font-style: normal;
}

/**************************************
textarea
**************************************/
textarea {
    background: transparent !important;
    border: 1px dotted rgb(179, 179, 179, 1);
    color: #B3B3B3;
    margin-left: 6px;
}

input:focus,
textarea:focus {
    outline: none !important;
    border-color: #F5CA79;
}

/**************************************
subheading
**************************************/
h2 {
    text-align: center;
    font-size: 1.3rem;
    /* text-transform: uppercase; */
    text-transform: capitalize;
    font-weight: 100;
    margin-top: -0.2rem;
    margin-bottom: 0;
    font-family: 'Rationalist Italic';
}

.subheading {
    overflow: hidden;
    text-align: center;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.subheading>span {
    position: relative;
    display: inline-block;
}

.subheading>span:before,
.subheading>span:after {
    content: '';
    position: absolute;
    top: 50%;
    border-bottom: 1px solid;
    border-color: #B3B3B3;
    opacity: 0.5;
    width: 100vw;
    margin: 0 20px;
}

.subheading>span:before {
    right: 100%;
}

.subheading>span:after {
    left: 100%;
}

/**************************************
tree
**************************************/
details {
    margin: 0;
    padding: 0;
}

summary {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
    cursor: pointer;
    user-select: none;
    padding: 1px 0;
}

/* Remove default marker completely */
summary::-webkit-details-marker,
summary::marker {
    display: none;
}

/* Custom collapsible marker */
summary::before {
    content: "→";
    color: #F5CA79;
    width: 1.2em;
    text-align: center;
    display: inline-block;
}

details[open]>summary::before {
    rotate: 90deg;
    position: relative;
    top: 1px;
}

/* Indent nested content */
details>div.content,
details>details {
    margin-left: 1.6em;
}

/* Leaf items (non-collapsible) */
.leaf {
    margin: 1px 0;
    padding-left: 1.6em;
    position: relative;
    min-height: 1.3em;
}

.leaf::before {
    content: "—";
    position: absolute;
    left: 4px;
    top: 0.5px;
    color: #B3B3B3;
    font-family: monospace;
    line-height: 1.4;
}

/**************************************
fiction
**************************************/
.fandom {
    opacity: 0.8;
    font-size: smaller;
}