/* Base */

:root {
    --background: #11110f;
    --surface: #181714;
    --surface-light: #22201c;
    --border: #34312b;

    --text: #ece8df;
    --muted: #aaa399;

    --accent: #b98d7e;
    --accent-soft: rgba(185,141,126,.15);
}


* {
    box-sizing: border-box;
}


body {

    margin: 0;

    background:
        radial-gradient(
            circle at top,
            #24231e 0%,
            var(--background) 45%
        );

    color: var(--text);

    font-family:
        Inter,
        "Helvetica Neue",
        Arial,
        sans-serif;

    line-height: 1.6;

}



/* Header */


#header-desk {

    position: sticky;

    top: 0;

    z-index: 10;

    height: 78px;

    padding: 0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(17,17,15,.88);

    backdrop-filter: blur(12px);

    border-bottom:

        1px solid var(--border);

}


a {

    text-decoration: none;

}


.brand h1 {

    margin: 0;

    font-size: 1.1rem;

    letter-spacing: .12em;

    text-transform: uppercase;

}



.brand p {

    margin: 0;

    color: var(--muted);

    font-size: .8rem;

    font-style: italic;

}




nav a {

    color: var(--muted);

    text-decoration: none;

    margin-left: 28px;

    font-size: .85rem;

    text-transform: uppercase;

    letter-spacing: .12em;

}



nav a:hover {

    color: var(--text);

}



.search {

    background: transparent;


    border:

        1px solid var(--border);


    color: var(--text);


    padding: 9px 14px;


    border-radius: 4px;

}



#menu-button {

    display:none;

}



#header-mobile {

    display:none;

}



/* Main layout */


main {

    max-width: 1200px;

    margin: auto;

    padding:

        90px 40px;

}



section {

    margin-bottom: 90px;

}



/* Small labels */


section h2 {


    font-size: .8rem;

    text-transform: uppercase;

    letter-spacing: .25em;


    color: var(--accent);

    font-weight: 500;

}



/* Hero / featured */


.featured {


    background:

        linear-gradient(

            120deg,

            rgba(255,255,255,.04),

            transparent

        );


    border:

        1px solid var(--border);


    padding: 35px;


    min-height: 180px;


}



.featured h3 {


    font-size: 2.8rem;

    font-weight: 400;

    margin: 0 0 10px;


}




a {

    color: var(--text);

    text-decoration: none;

}



/* Cards */


.grid {

    display:grid;

    grid-template-columns:

        repeat(3,1fr);


    gap:20px;

}



.card {


    background:

        rgba(255,255,255,.03);


    border:

        1px solid var(--border);


    padding:25px;


    transition:.2s;


    margin-bottom:25px;


}



.card:hover {


    background:

        rgba(255,255,255,.06);


}



.cardlist {

	list-style: none;


}



/* Tags */


.tag-carousel {

    display:flex;

    gap:12px;

    overflow-x:auto;


}



.tag {

    display:inline-block;


    padding:

        8px 18px;


    border:

        1px solid var(--border);


    border-radius:999px;


    background:

        rgba(255,255,255,.03);


    color:var(--muted);


    white-space:nowrap;


    text-decoration:none;


    font-size:.85rem;

}



.tag:hover {

    border-color:var(--accent);

    color:var(--text);

}



.number {

    font-size: .8rem;

    text-transform: uppercase;

    letter-spacing: .25em;


    color: var(--accent);

    font-weight: 500;

}



/* Works page */


.two-column {


    display:grid;

    grid-template-columns:

        1.5fr 1.5fr;


    gap:60px;

}



.work-list {


    list-style:none;

    padding:0;

}



.work-list li {


    padding:15px 0;


    border-bottom:

        1px solid var(--border);

}


.work-list a {

    text-decoration: none;

}


.two-column h2 {


    font-size: .8rem;

    text-transform: uppercase;

    letter-spacing: .25em;


    color: var(--accent);

    font-weight: 500;

}



/* Work page stats */


.stats {


    background:var(--surface);


    border:

        1px solid var(--border);


    padding:30px;

}


.stats h2 {

    border-top:1px solid #34312b;

    padding-top:25px;

}


.cats {

    border-bottom:

        1px solid var(--border);

    padding-bottom:20px;

}


.warning {

    display:inline-block;

    padding:8px 16px;

    border:1px solid #34312b;

    border-radius:999px;

    color:#c58d7d;

    background:rgba(197,141,125,.08);

    margin:5px;

    font-size:.85rem;

}


#description a {

  text-decoration: underline;

}


#chapter-section ul {

  list-style-type: "›  ";

}



/* Chapters */


.chapter-button {

    display:inline-block;

    padding:10px 20px;

    margin:10px;

    border:1px solid #34312b;

    border-radius:999px;

    color:#ece8df;

    text-decoration:none;

    background:#181714;
}

.chapter-button:hover{

    border-color:#b98d7e;
}



/* Work */


.center-poem {

    text-align: center;

}


td {

    vertical-align: top;

}



/* Comments */


.comments-header {

    font-size: .8rem;

    text-transform: uppercase;

    letter-spacing: .25em;


    color: var(--accent);

    font-weight: 500;


    margin-top: 100px;

}



.comments {

    margin-top:3rem;

    padding:2rem;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:14px;

}



.comments label {

    display:block;

    margin-bottom:.4rem;

    font-weight:600;

    color:var(--text-secondary);

}



.comments input,
.comments textarea {

    width:100%;

    box-sizing:border-box;

    margin-bottom:1.25rem;

    padding:.8rem 1rem;

    background:var(--background);

    color:var(--text);

    border:1px solid var(--border);

    border-radius:8px;

    font:inherit;

    transition:border-color .2s,
        box-shadow .2s;

}



.comments textarea {

    min-height:10rem;

    resize:vertical;

    line-height:1.6;

}



.comments input:focus,
.comments textarea:focus {

    outline:none;

    border-color:var(--accent);

    box-shadow:0 0 0 2px rgb(130 180 255 / 20%);

}



.comments button {

    display:inline-block;

    padding:

        8px 18px;

    border:

        1px solid var(--border);

    border-radius:999px;

    background:

        rgba(255,255,255,.03);

    color:var(--text);

    white-space:nowrap;

    text-decoration:none;

    font-size:.85rem;

}



.comments button:hover {

    border-color:var(--accent);

    color:var(--text);

}



.comments button:active {

    transform:translateY(1px);

}



.user-comment {

    background:#1b1a18;

    border:1px solid #3a332d;

    border-radius:12px;

    padding:1.2rem;

    margin:1rem 0;

}



.comment-header {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:.75rem;

}



.comment-name {

    font-weight:bold;

    font-size:1.05rem;

    color:#f0e8df;

}



.comment-date {

    font-size:.85rem;

    opacity:.6;

}



.comment-text {

    line-height:1.7;

    white-space:pre-wrap;

}



/* FAQ n About */


details {


    border-bottom:

        1px solid var(--border);


    padding:20px 0;

}



summary {


    cursor:pointer;


    font-size:1.1rem;

}



.image {


    width: 200px;


    height: auto;


}



.righthand {

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

}



/* Mobile */


@media(max-width:800px){


#header-mobile {

    position: sticky;

    top: 0;

    z-index: 10;

    height: 78px;

    padding: 0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(17,17,15,.88);

    backdrop-filter: blur(12px);

    border-bottom:

        1px solid var(--border);

}



#menu-button {

    display:block;

}



#mobile-menu {

    display:none;

    position:absolute;

    top:100%;
    left:0;

    width:100%;

    background:rgba(17,17,15,.88);

    border-top:1px solid #444;

    padding:1rem;

    box-sizing:border-box;

    z-index:1000;

}



#mobile-menu.open {

    display:flex;

    justify-content:center;

    align-items:center;

    padding:1rem;

}



#header-desk {

    display:none;

}



.grid,
.two-column {

    grid-template-columns:1fr;

}



.righthand {

    flex-direction: column;

}



.righthand img {

    width: 100%;

}



.works-layout{

    display:flex;

    flex-direction:column;

}



#tags{

    order:1;

}



#all-works{

    order:2;

}


}