/* RESET */
body {
    margin: 0;
    font-family: 'Playfair Display', serif;
    background-color: #f4f1ea;
    background-image: url("https://www.transparenttextures.com/patterns/paper.png");
    overflow-x: hidden;
    color: #111;
}

/* NAV */
nav {
    background: #111;
    padding: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* SECTIONS */
section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* HOME */
#home h1 {
    font-size: 64px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

#home a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
}

/* WEEKLY */
.issue {
    flex: 0 0 320px;
    scroll-snap-align: start;
    padding: 16px;
    border: 1px solid #111;
    background: #fdfbf7;
    transition: transform 0.2s ease;
}

.issue:hover {
    transform: translateY(-5px);
}

.issues {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.issue img {
    width: 100%;
    max-width: 240px;
    display: block;
    margin: 16px auto;
    border: 1px solid #111;
}

.issue a {
    display: inline-block;
    padding: 8px 16px;
    background: black;
    color: white;
    text-decoration: none;
}

h1, h2, h3 {
    font-weight: 900;
    letter-spacing: 1px;
}

.issue h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

#home,
#weekly,
#about {
    width: 100%;
}

#home .content,
#weekly .content,
#about .content {
    max-width: 900px;
}

.newspaper img {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 40px auto;
    border: 1px solid #111;
}

#about p {
    max-width: 720px;
    line-height: 1.55;
    font-size: 17px;
    color: #111;
}

#about {
    border-top: 1px solid #111;
    margin-top: 80px;
    padding-top: 40px;
}

#about .content {
    max-width: 760px;
}

.about-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 280px;
    border: 1px solid #111;
    filter: grayscale(100%) contrast(1.1);
    margin: 15px;
}

zvaz-image {
    padding: 50px;
}

.site-footer {
    border-top: 1px solid #111;
    margin-top: 100px;
    padding: 35px 20px 50px;
    text-align: center;
}

.footer-brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-links {
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links a {
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-icons img {
    width: 26px;
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    filter: grayscale(100%);
}

.social-icons img:hover {
    opacity: 1;
}

.swipe-hint {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.7;
    display: none;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    nav {
        padding: 12px 16px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 14px 18px;
    }

    nav a {
        font-size: 16px;
    }

    section {
        padding: 42px 22px;
        max-width: 100%;
        box-sizing: border-box;
    }

    #home {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 80px;
    }

    #home h1 {
        font-size: 34px;
        line-height: 1.05;
        letter-spacing: 0.5px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    #home p {
        font-size: 20px;
        line-height: 1.3;
        max-width: 100%;
    }

    #home a {
        font-size: 18px;
        padding: 12px 18px;
    }

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

    .issue {
        max-width: 100%;
        box-sizing: border-box;
    }

    .issue img {
        max-width: 100%;
    }

    .about-layout {
        flex-direction: column;
    }

    .about-image img {
        max-width: 220px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .swipe-hint {
        display: block;
    }
}