/* 
    CleriNews Newspaper Theme
*/


/* ---------- Base ---------- */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {

    background: #d2c5ab;

    color: #111;

    font-family: Georgia, "Times New Roman", serif;

    line-height: 1.6;

}


/* subtle paper effect */

.paper {

    max-width: 1200px;


    margin: auto;

    padding: 30px 60px;

    background: #f5eedb;

    min-height: 100vh;

    box-shadow: 0 0 20px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
}

.paper::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    background-image:
        radial-gradient(circle at 20% 30%, #000 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, #000 1px, transparent 1px);
    background-size: 120px 120px;
}



/* ---------- Masthead ---------- */


.masthead {

    text-align: center;

    padding-bottom: 20px;

}

.masthead-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0;
}

.masthead-subtitle {
    font-style: italic;
    font-size: 1.5rem;
    margin: .5rem 0;
}

.masthead-dateline {
    margin-top: .5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #777;
}




.rule {

    border-top: 3px solid #111;

    margin: 20px 0;

}


/* ---------- Edition ---------- */


.edition-header {

    text-align: center;

}


.edition-header h1 {

    font-size: 22px;

    text-transform: uppercase;

    letter-spacing: 4px;

}


.edition-date {

    font-size: 18px;

}


/* ---------- Poem ---------- */


.featured-poem {

    text-align: center;

    padding-top: 1rem;
    
}


.poem-headline {
    font-size: 3.5rem;
    letter-spacing: .08em;
    font-weight: normal;
    color: #333;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: .2em
}

.clerihew {
    max-width: 760px;
    width: auto;
    margin: 2rem auto;
    text-align: left;
    font-size: 2.1rem;
    line-height: 1.45;

    border-top:1px solid #999;

    border-bottom:1px solid #999;

    padding:1rem 0;

}

.clerihew p {

    margin: 10px 0;

}


/* Newspaper-style drop cap */


.clerihew p:first-child::first-letter{

    float:left;

    font-size:4.8rem;

    line-height:.8;

    padding-right:.15em;

    font-weight:bold;

}


/* ---------- Sketch ---------- */

.person-sketch{
    float:right;
    width:220px;
    margin:0 0 2rem 2rem;
}


.person-sketch img {

    max-width: 100%;

    border:1px solid #444;

    filter: grayscale(100%);

}


.person-sketch figcaption {

    font-size: 14px;

    font-style: italic;

}



/* ---------- News link ---------- */


.news-link {

    margin-top: 30px;

    font-size: 18px;

}


.news-link a {

    color: #111;

    text-decoration: underline;

}


/* ---------- Timeline ---------- */


.timeline-link:hover {

    text-decoration: underline;

}


.timeline{

    position:fixed;

    left:0;
    right:0;
    bottom:0;
    display: flex;
    justify-content: center;
    align-items: center;

    background:#ece3cf;

    border-top:2px solid #222;

    overflow-x:auto;

    white-space:nowrap;

}

.timeline a{

    display:inline-block;

    padding:12px 18px;

    color:#222;

    text-decoration:none;

}

.timeline a:hover{

    background:#ddd2ba;

}



.timeline-label {

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 3px;

}


.timeline-controls {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

}


.timeline button {

    background: none;

    color: inherit;

    border: 1px solid #f7f1df;

    padding: 5px 15px;

    font-size: 20px;

    cursor: pointer;

}


.timeline-dates {

    display: flex;
    justify-content: center;
    gap: .5rem
    overflow-x: auto
}



/* ---------- Footer ---------- */


.site-footer {

    text-align: center;

}


.copyright {

    font-size: 13px;

    margin-top: 20px;
    padding: 0.2em;
}



/* ---------- Mobile ---------- */


@media(max-width:700px) {


    .paper {

        padding: 20px 15px 130px 15px;

    }


    .masthead-title {

        font-size: 42px;

        letter-spacing: 2px;

    }


    .person-name {

        font-size: 30px;

    }


    .clerihew {

        font-size: 24px;

    }


    .featured-poem {

        padding: 30px 10%;

    }


}

/* ---------- Tag Cloud ---------- */

.tag-cloud {

    text-align: center;

    line-height: 3em;

    padding: 40px;

}

.tag-cloud a {

    color: #111;

    text-decoration: none;

    margin: 10px;

}

.tag-cloud a:hover {

    text-decoration: underline;

}
.share-links{
    margin:3rem 0 1rem;
    text-align:center;
}

.share-links img{
    height:36px;
    opacity:.75;
    transition:.2s;
}

.share-links img:hover{
    opacity:1;
    transform:scale(1.1);
}
.site-nav {
    display:flex;
    justify-content:center;
    gap:2rem;
    padding:.75rem 0;
    border-bottom:2px solid #111;
    margin-bottom:2rem;
    font-variant:small-caps;
}

.site-nav a{
    color:#111;
    text-decoration:none;
}

.site-nav a:hover{
    text-decoration:underline;
}

.archive-year{

    border-bottom:2px solid #222;

    margin-top:2rem;

    padding-bottom:.25rem;

    font-size:2rem;

}

.archive-month{

    margin-top:1rem;

    font-style:italic;

}

.archive-table{

    width:100%;

    border-collapse:collapse;

    margin-bottom:2rem;

}

.archive-table td{

    padding:.35rem .5rem;

    border-bottom:1px dotted #bbb;

}

.archive-date{

    width:90px;

    white-space:nowrap;

}

.archive-table a{

    color:#111;

    text-decoration:none;

}

.archive-table a:hover{

    text-decoration:underline;

}
.about-page{

    max-width:850px;

    margin:auto;

    padding:2rem 0 6rem 0;

}

.about-page h1{

    text-align:center;

    font-size:3rem;

    margin-bottom:2rem;

}

.about-page h2{

    border-bottom:1px solid #888;

    padding-bottom:.25rem;

    margin-top:2rem;

}

.about-page p{

    font-size:1.2rem;

    line-height:1.7;

}

.about-page .intro{

    font-style:italic;

    text-align:center;

    font-size:1.4rem;

    margin-bottom:2rem;

}


.login-box{

    max-width:400px;

    margin:4rem auto;

    text-align:center;

}

.login-box input{

    width:100%;

    padding:.75rem;

    font-size:1.1rem;

    box-sizing:border-box;

}

.login-box button{

    padding:.6rem 2rem;

    font-size:1rem;

    cursor:pointer;

}

.error{

    color:#900;

    font-weight:bold;

}

.admin-menu{
    max-width:500px;
    margin:2rem auto;
}

.admin-menu a{
    display:block;
    padding:1rem;
    margin:.5rem 0;
    border:1px solid #999;
    background:#f5eedb;
    color:#111;
    text-decoration:none;
}

.admin-menu a:hover{
    background:#e9dfc8;
}
