@import url('/fonts/stylesheet.css');

html{
    font-size: 14px;
    line-height: 1.44;
    background-color: #edece9;
}
body{
    margin: 0;
}
.txt hr,
.posts-separator{
    width: 100%;
    margin: 0.5rem 0;
    border: none;
    text-align: center;
    font-family: "Dejavu Serif", Georgia, 'Times New Roman', Times, serif;
    color: rgba(0,0,0,0.5);
    font-size: 1.2em;
}

.txt hr::before,
.posts-separator::before{
    content: "***";
}
.site-header {
    margin-bottom: 1rem;
}

.site-header h1 {
    margin: 1em 5em;
    font-family: "DejaVu Sans Condensed", "DejaVu Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(0,0,0,0.7);
}

.txt{
    max-width: 60ch;
    margin: 1em 5em ;
    font-family: "Dejavu Serif", Georgia, 'Times New Roman', Times, serif;
}
#posts-root{
    margin-top: 5em;
}
.info{
    font-family: "dejavu sans mono";
    font-size: 0.85em;
}
figure{
    margin: 2rem 0;
    width: 100%;
}
figure img{
    width: 100%;
    height: auto;
    display: block;
}
figure.aside{
    float: right;
    width: min(44%, 220px);
    margin: 0 0 1rem 1.5rem;
}
.post::after{
    content: "";
    display: block;
    clear: both;
}
@media (max-width: 720px){
    figure{
        margin: 1.5rem 0;
    }
    figure.aside{
        float: none;
        width: 100%;
        margin: 1.5rem 0 0;
    }
}
.pagination{
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 2rem 0 0;
    font-family: "DejaVu Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.pagination #next-page{
    margin-left: auto;
}
.pagination button{
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
    font: inherit;
    cursor: pointer;
    color: #1f1f1f;
}
.pagination button:not([disabled]):hover,
.pagination button:not([disabled]):focus{
    text-decoration: underline;
}
.pagination button[disabled]{
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination .page-button.active{
    background: rgba(0,0,0,0.8);
    color: #edece9;
}

.site-footer{
    font-family: "DejaVu Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 4rem auto 2rem;
    color: #4a4a4a;
    padding: 0 1rem;
}

.site-footer p{
    margin: 0;
}

.comments-section {
    margin-top: 2rem;
    font-family: "dejavu sans mono", monospace;
    font-size: 0.85em;
}

.comment {
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
}

.comment-form {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-input, .username-input {
    border: none;
    background: transparent;
    border-bottom: 1px solid #000;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    width: 200px;
}

.send-btn {
    cursor: pointer;
}

.send-btn:hover {
    text-decoration: underline;
}

.simple-input {
    border: none;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    font-family: inherit;
    font-size: 0.85em;
    outline: none;
    padding: 2px 0;
    width: 120px;
    transition: border-color 0.2s ease;
}

.simple-input:focus {
    border-bottom-color: #000;
}

.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* PIN Overlay Styles */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #edece9;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pin-container {
    text-align: center;
    padding: 2rem;
}

.pin-container h1 {
    font-family: "DejaVu Sans Condensed", "DejaVu Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 0.5rem 0;
}

.pin-container p {
    font-family: "Dejavu Serif", Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 0 2rem 0;
}

.pin-input {
    border: none;
    background: transparent;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    font-family: "DejaVu Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 1.5rem;
    letter-spacing: 1rem;
    outline: none;
    padding: 0.5rem 1rem;
    width: 120px;
    text-align: center;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.pin-input:focus {
    border-bottom-color: #000;
}

.pin-submit {
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-family: "DejaVu Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.9rem;
    cursor: pointer;
    color: #1f1f1f;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pin-submit:hover {
    background-color: #000;
    color: #edece9;
}

.pin-error {
    color: #b00;
    font-family: "DejaVu Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.8rem;
    height: 1rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pin-error:not(:empty) {
    opacity: 1;
}

