/* =========================================================
   MEMORANDUM MORI
   downtown autumn / teenage zine / slightly haunted
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Special+Elite&display=swap');


/* -------------------------
   GENERAL
------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background:
        radial-gradient(circle at 20% 10%, rgba(120, 70, 40, 0.08), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(90, 30, 25, 0.06), transparent 35%),
        #d8ccb7;

    color: #292622;

    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 14px;
    line-height: 1.7;
}


/* subtle paper texture */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.18;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.025) 0px,
            rgba(0,0,0,0.025) 1px,
            transparent 1px,
            transparent 4px
        );

    z-index: 999;
}


/* -------------------------
   LINKS
------------------------- */

a {
    color: #702e27;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    background: #702e27;
    color: #eee4d1;
    text-decoration: none;
}


/* -------------------------
   MAIN SITE WRAPPER
------------------------- */

.site {
    width: min(1050px, calc(100% - 30px));
    margin: 35px auto 60px;
}


/* -------------------------
   HEADER
------------------------- */

.site-header {
    border-top: 3px solid #292622;
    border-bottom: 1px solid #292622;

    padding: 15px 10px 18px;

    position: relative;
}

.site-header small {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title {
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(38px, 7vw, 72px);

    line-height: 0.95;

    margin: 10px 0 5px;

    letter-spacing: -3px;

    color: #2c2925;
}

.site-subtitle {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;

    color: #71342b;
}


/* -------------------------
   NAVIGATION
------------------------- */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    padding: 12px 0;
}

.main-nav a {
    color: #292622;
    text-decoration: none;

    border: 1px solid #292622;

    padding: 4px 9px;

    font-family: "DM Mono", monospace;
    font-size: 10px;

    text-transform: uppercase;

    background: rgba(255,255,255,0.15);
}

.main-nav a:hover {
    background: #292622;
    color: #e4d7c0;
}


/* -------------------------
   MAIN GRID
------------------------- */

.layout {
    display: grid;

    grid-template-columns: 235px 1fr;

    gap: 28px;

    margin-top: 20px;
}


/* -------------------------
   SIDEBAR
------------------------- */

.sidebar {
    border-right: 1px solid #292622;

    padding-right: 20px;
}

.sidebar-box {
    margin-bottom: 25px;

    padding: 13px;

    border: 1px solid #292622;

    background: rgba(245, 237, 219, 0.38);

    position: relative;
}

.sidebar-box:nth-child(even) {
    transform: rotate(0.5deg);
}

.sidebar-title {
    margin: 0 0 8px;

    font-family: "Special Elite", monospace;

    font-size: 17px;

    color: #702e27;
}

.sidebar img {
    width: 100%;

    display: block;

    filter: grayscale(20%) contrast(0.95);

    border: 1px solid #292622;
}


/* -------------------------
   CONTENT
------------------------- */

.content {
    min-width: 0;
}

.page-title {
    font-family: "Special Elite", monospace;

    font-size: clamp(32px, 6vw, 54px);

    line-height: 1;

    margin: 0 0 5px;

    color: #2c2925;
}

.page-subtitle {
    margin-top: 0;

    color: #71342b;

    font-style: italic;
}


/* -------------------------
   PAPER / ARTICLE BOX
------------------------- */

.paper {
    background: rgba(242, 233, 215, 0.72);

    border: 1px solid #292622;

    padding: 25px;

    margin-bottom: 22px;

    box-shadow: 5px 5px 0 rgba(41, 38, 34, 0.12);
}

.paper:nth-child(even) {
    transform: rotate(-0.25deg);
}


/* -------------------------
   HOME FEATURE
------------------------- */

.feature {
    display: grid;

    grid-template-columns: 1.1fr 1fr;

    gap: 20px;

    margin-bottom: 25px;
}

.feature-image {
    width: 100%;
    height: 100%;

    min-height: 270px;

    object-fit: cover;

    filter: grayscale(15%) sepia(15%);

    border: 1px solid #292622;
}

.feature-text h2 {
    font-family: "Special Elite", monospace;

    font-size: 30px;

    line-height: 1.1;

    margin-top: 5px;
}


/* -------------------------
   LITTLE LABELS
------------------------- */

.label {
    display: inline-block;

    padding: 3px 7px;

    background: #71342b;

    color: #eee4d1;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 10px;
}


/* -------------------------
   LISTS
------------------------- */

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 4px;
}


/* -------------------------
   DIARY ENTRIES
------------------------- */

.diary-entry {
    border-bottom: 1px dashed #777065;

    padding-bottom: 25px;

    margin-bottom: 25px;
}

.diary-date {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    color: #71342b;

    letter-spacing: 1px;
}

.diary-entry h2 {
    font-family: "Special Elite", monospace;

    font-size: 28px;

    margin: 5px 0;
}


/* -------------------------
   PHOTO GRID
------------------------- */

.photo-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.photo-card {
    border: 1px solid #292622;

    padding: 7px;

    background: #eee4d1;
}

.photo-card:nth-child(2n) {
    transform: rotate(1deg);
}

.photo-card:nth-child(3n) {
    transform: rotate(-1deg);
}

.photo-card img {
    width: 100%;

    display: block;
}

.photo-caption {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    margin-top: 5px;
}


/* -------------------------
   MUSIC / TRACKLIST
------------------------- */

.tracklist {
    border-top: 1px solid #292622;
}

.track {
    display: grid;

    grid-template-columns: 35px 1fr auto;

    gap: 10px;

    padding: 10px 5px;

    border-bottom: 1px dashed #777065;

    font-family: "DM Mono", monospace;

    font-size: 11px;
}

.track-number {
    color: #71342b;
}


/* -------------------------
   MOVIE CARD
------------------------- */

.movie-card {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 20px;
}

.movie-card img {
    width: 100%;

    border: 1px solid #292622;
}

.movie-title {
    font-family: "Special Elite", monospace;

    font-size: 30px;

    margin-top: 0;
}


/* -------------------------
   RECIPE CARDS
------------------------- */

.category-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin: 15px 0 25px;
}

.category-buttons button {
    border: 1px solid #292622;

    background: transparent;

    padding: 6px 10px;

    cursor: pointer;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    text-transform: uppercase;
}

.category-buttons button:hover,
.category-buttons button.active {
    background: #292622;
    color: #eee4d1;
}

.recipe {
    border-left: 4px solid #71342b;

    padding-left: 18px;

    margin-bottom: 35px;
}

.recipe h2 {
    font-family: "Special Elite", monospace;

    font-size: 28px;

    margin-bottom: 0;
}

.recipe-meta {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    color: #71342b;
}


/* -------------------------
   CHARACTER SHRINES
------------------------- */

.shrine-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.shrine {
    background: rgba(242, 233, 215, 0.7);

    border: 1px solid #292622;

    padding: 12px;

    box-shadow: 4px 4px 0 rgba(41,38,34,0.1);
}

.shrine:nth-child(2n) {
    transform: rotate(0.7deg);
}

.shrine:nth-child(3n) {
    transform: rotate(-0.5deg);
}

.shrine img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    filter: sepia(15%) contrast(0.95);

    border: 1px solid #292622;
}

.shrine h2 {
    font-family: "Special Elite", monospace;

    margin-bottom: 3px;
}


/* -------------------------
   GUESTBOOK
------------------------- */

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;

    border: 1px solid #292622;

    background: rgba(255,255,255,0.3);

    padding: 9px;

    margin-bottom: 10px;

    font-family: "DM Mono", monospace;

    font-size: 11px;
}

.guestbook-form textarea {
    min-height: 130px;

    resize: vertical;
}

.guestbook-form button {
    border: 1px solid #292622;

    background: #292622;

    color: #eee4d1;

    padding: 8px 14px;

    font-family: "DM Mono", monospace;

    cursor: pointer;
}


/* -------------------------
   UNDER CONSTRUCTION
------------------------- */

.construction {
    text-align: center;

    padding: 70px 25px;

    border: 2px dashed #71342b;

    background: rgba(242,233,215,0.5);
}

.construction h1 {
    font-family: "Special Elite", monospace;

    font-size: 50px;

    margin: 10px 0;
}

.progress {
    width: 80%;

    max-width: 400px;

    height: 15px;

    border: 1px solid #292622;

    margin: 25px auto;

    padding: 2px;
}

.progress-bar {
    height: 100%;

    width: 66%;

    background: #71342b;
}


/* -------------------------
   FOOTER
------------------------- */

footer {
    margin-top: 35px;

    padding-top: 15px;

    border-top: 1px solid #292622;

    text-align: center;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 700px) {

    .site {
        width: calc(100% - 20px);

        margin-top: 15px;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;

        border-bottom: 1px solid #292622;

        padding-right: 0;

        padding-bottom: 10px;
    }

    .feature {
        grid-template-columns: 1fr;
    }

    .movie-card {
        grid-template-columns: 1fr;
    }

    .shrine-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .site-title {
        letter-spacing: -2px;
    }
}