@font-face {
    font-family: "QuicksandLocal";
    src: url("/fonts/Quicksand[wght].ttf") format("truetype");
    font-style: normal;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: "QuicksandLocal", sans-serif;
    background: #ffffff;
    line-height: 1.65;
    letter-spacing: 0.01em;
    font-size: clamp(16px, 1.2vw, 15px);
}

h1 {
    font-size: 40px;
    margin-bottom: 30px;
    color: #C3C0B9;
    font-family: "Noteworthy", "Marker Felt", "Comic Sans MS", cursive;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-family: "Noteworthy", "Marker Felt", "Comic Sans MS", cursive;
    color: #C3C0B9;
    text-align: left;

    font-size: 24px;
    color: #222;
    font-weight: 100;

}

p {
    font-weight: 300;
}

strong {
    font-weight: 500;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.menu h1,
h2,
h3 {
    font-family: "Noteworthy", "Marker Felt", "Comic Sans MS", cursive;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    transition: color 0.2s ease, opacity 0.2s ease;
    font-family: "Noteworthy", "Marker Felt", "Comic Sans MS", cursive;
}

.menu a:hover {
    color: #D9CFB4;

}

/* active menu link */
.page-comics .nav-comics,
.page-books .nav-books,
.page-behind-panels .nav-behind,
.page-about .nav-about,
.page-letters .nav-letters,
.page-contact .nav-contact {
    color: #D9B191;
}

/* HEADER */

.site-header {
    padding: 10px 16px 8px;
    border-bottom: 2px solid #D9CFB4;
}

/* NAVIGATION */

.top-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

/* LOGO */

.logo img {
    height: 34px;
    display: block;
}

/* MENU */

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-size: 19px;
    line-height: 1.2;
}

.menu a:hover {
    opacity: 0.6;
}

/*. HOME. */
.page-home {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: auto;
}



/* FOOTER */

.site-footer {
    background: #DCCEB1;
    color: #fff;
    padding: 28px 20px 24px;
    margin-top: 40px;
    font-weight: 500
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 22px;
    text-align: center;
}

.footer-col {
    font-size: 14px;

}


.footer-col h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    color: white;
    text-decoration: none;
    line-height: 1.4;
}

.footer-col a:hover {
    opacity: 0.6;
}

.footer-col p {
    margin: 0 0 6px;
    line-height: 1.5;
    font-weight: 500;
}

.footer-bottom {
    margin-top: 22px;
    text-align: center;
    opacity: 0.75;
}

/* DESKTOP */

@media (min-width: 900px) {
    .site-header {
        padding: 12px 5 60px;
    }

    .top-nav {
        flex-direction: row;
        gap: 40px;
    }

    .logo img {
        height: 48px;
    }

    .menu {
        flex-wrap: nowrap;
        gap: 30px;
    }

    .menu a {
        font-size: 18px;
    }

    .site-footer {
        padding: 30px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        column-gap: 80px;
        text-align: left;
    }



    .footer-bottom {
        margin-top: 20px;
    }
}

/* CONTACTS ************/
.contact-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: auto;
}


.contact-illustration,
.about-illustration {
    width: 300px;
    margin-bottom: 0px;
}

.contact-email {
    margin-top: 20px;
}

.about-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: auto;
}

.about-page h1 {
    margin-bottom: 30px;
}

.about-page p {
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
}

.about-author {
    margin-top: 25px;
    opacity: 0.8;
}

.home-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.home-buttons img {
    height: 70px;
    width: auto;
    transition: transform 0.15s ease;
}

.home-buttons img:hover {
    transform: scale(1.05) rotate(-1deg);
}



/* NAPIS CLOUD */
.site-title {
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.05;
}

.title-cloud {
    display: block;
    font-size: clamp(34px, 5vw, 56px);
}

.title-of {
    display: block;
    font-size: clamp(12px, 1.8vw, 16px);
    opacity: 0.6;
    margin: 4px;
}

.title-floating {
    display: block;
    font-size: clamp(34px, 5vw, 56px);
    animation: floatFlowers 6s ease-in-out infinite;
}

/* floating animation */

@keyframes floatFlowers {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* ARTICLE PAGE */

.page-article .nav-behind {
    color: #D9B191;
}

.article-page {
    max-width: 760px;
    margin: auto;
    padding: 40px 20px 60px;
}

.article-content {
    text-align: left;
}

.article-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D9B191;
}

.article-content h1 {
    margin-top: 0;
    margin-bottom: 22px;
}

.article-intro {
    font-size: 1.1em;
}

.article-content p {
    margin: 0 0 18px;
}


/* ARTICLE IMAGE */

.article-figure {
    margin: 20px 0 28px;
}

.article-figure img {
    width: 100%;
    border-radius: 6px;
}


/* NEXT ARTICLE */

.article-nav {
    text-align: left;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #D9CFB4;
}

.next-article-next {
    text-decoration: none;
    font-size: 14px;
    color: #777;
}

.next-article span {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    color: #222;
}



/* BEHIND THE PANELS */

.behind-page {
    max-width: 860px;
    margin: auto;
    padding: 40px 20px 60px;
}

.behind-intro {
    text-align: center;
    margin-bottom: 34px;
}

.behind-intro h1 {
    margin-bottom: 18px;
}

.behind-lead {
    max-width: 760px;
    margin: 0 auto;
}

.behind-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.behind-item {

    padding-top: 22px;
}

.behind-item-link {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.behind-thumb {
    width: 150px;
    flex: 0 0 150px;
    border-radius: 12px;
    display: block;
}

.behind-text p {
    margin: 0 0 8px;
}

.behind-more {
    color: #7a7a7a;
}

@media (max-width: 700px) {
    .behind-item-link {
        flex-direction: column;
        gap: 12px;
    }

    .behind-thumb {
        width: 130px;
        flex-basis: auto;
    }

    .behind-text h2 {
        font-size: 24px;
    }
}


/* ARTICLE PAGE */

.article-page {
    max-width: 760px;
    margin: auto;
    padding: 40px 20px 60px;
}

.article-content {
    text-align: left;
}

.article-back {
    margin: 0 0 18px;
    font-size: 15px;
}

.article-back a {
    text-decoration: none;
    color: #7a7a7a;
}

.article-content h1 {
    margin-top: 0;
    margin-bottom: 22px;
}

.article-figure {
    margin: 0 0 24px;
}

.article-figure img {
    display: block;
    width: 100%;
    max-width: 520px;
    border-radius: 6px;
}

.article-intro {
    font-size: 1.1em;
}

.article-content p {
    margin: 0 0 18px;
}

.article-nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #E7E1D3;
}

.article-next {
    text-decoration: none;
    color: #7a7a7a;
    font-size: 15px;
}

.article-next span {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.2;
    color: #000;
    font-family: "Noteworthy", "Marker Felt", "Comic Sans MS", cursive;
}


/* MOBILE */

@media (max-width: 860px) {
    .featured-link {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

.episode-archive {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

.episode-archive-hero {
    margin-bottom: 28px;
}

.episode-archive h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.15;
}

.episode-archive-intro {
    margin: 0;
    max-width: 700px;
    font-size: 1rem;
    line-height: 1.6;
    color: #5f5a50;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.episode-row {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.episode-row:hover .episode-text h2 {
    color: #D9CFB4;
}

.episode-thumb {
    width: 92px;
    height: auto;
    flex-shrink: 0;
    display: block;
    border-radius: 12px;
}

.episode-text h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 400;
    /* tanjša pisava */
    color: rgba(0, 0, 0, 0.65);
    /* podobno kot meni */
    text-decoration: none;
}

.episode-number {
    color: #C3C0B9;
    margin-right: 10px;
    font-size: 14px;
}


@media (max-width: 640px) {
    .episode-archive {
        padding: 24px 16px 56px;
    }

    .episode-row {
        gap: 12px;
        align-items: flex-start;
    }

    .episode-thumb {
        width: 74px;
    }

    .episode-text h2 {
        font-size: 0.98rem;
    }
}

/* BOOKS PAGE */

.books-page {
    max-width: 860px;
    margin: auto;
    padding: 40px 20px 60px;
}

.books-intro {
    text-align: center;
    margin-bottom: 34px;
}

.books-intro h1 {
    margin-bottom: 18px;
}

.books-lead {
    max-width: 760px;
    margin: 0 auto;
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.book-item {
    border-top: 1px solid #E7E1D3;
    padding-top: 22px;
}

.book-item-link {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.book-thumb {
    width: 150px;
    flex: 0 0 150px;
    border-radius: 6px;
    display: block;
}

.book-text p {
    margin: 0 0 8px;
}

.book-more {
    color: #7a7a7a;
}

@media (max-width: 700px) {
    .book-item-link {
        flex-direction: column;
        gap: 12px;
    }

    .book-thumb {
        width: 130px;
        flex-basis: auto;
    }

    .book-text h2 {
        font-size: 24px;
    }
}

/* EPISODE PAGE */

.episode-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.episode-header {
    text-align: center;
    margin-bottom: 30px;
}

.episode-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D9B191;
}

.episode-header h1 {
    margin: 0 0 10px;
}

.episode-series-link {
    text-decoration: none;
    color: #7a7a7a;
}

.episode-series-link:hover {
    color: #D9B191;
}

.episode-panels {
    max-width: 720px;
    margin: 0 auto;
}

.episode-panel {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 2px;
}

.episode-nav {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #E7E1D3;
}

.episode-nav-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.episode-nav-link {
    text-decoration: none;
    color: #7a7a7a;
}

.episode-nav-link:hover {
    color: #D9B191;
}

.episode-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.episode-panels {
    max-width: 720px;
    margin: 0 auto;
}

.episode-caption-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 0px;
    overflow: hidden;
}

.episode-caption-bg {
    display: block;
    width: 100%;
    height: auto;
}

.episode-caption-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* zgornji napis EPISODE 010 */
.episode-caption-kicker {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;

    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D9B191;
    font-weight: 400;
    white-space: nowrap;
}

/* glavni naslov je centriran v sredinskem delu panela */
.episode-caption-title {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);

    margin: 0;
    width: 72%;

    font-size: clamp(34px, 6vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #2F2E35;
    font-family: "Noteworthy", "Marker Felt", "Comic Sans MS", cursive;
    font-weight: 400;
    text-align: center;
    text-wrap: balance;
}

@media (max-width: 640px) {
    .episode-caption-panel {
        margin-bottom: 0px;
    }

    .episode-caption-kicker {
        top: 20%;
        font-size: clamp(14px, 3.8vw, 20px);
    }

    .episode-caption-title {
        top: 56%;
        width: 80%;
        font-size: clamp(26px, 8.2vw, 54px);
        line-height: 1.03;
    }
}

.letters-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}


.letters-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6b6257;
    margin-bottom: 40px;
}

.letters-preview {
    margin: 40px 0;
}

.letters-preview img {
    max-width: 100%;
    border-radius: 8px;
}

.letters-form {
    margin-top: 30px;
}

.letters-form input[type="email"] {
    padding: 12px;
    width: 70%;
    max-width: 280px;
    border: 1px solid #d9cfb4;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.letters-form button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background: #d9cfb4;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
}

.letters-note {
    font-size: 0.9rem;
    color: #8b7f71;
    margin-top: 15px;
}

.letters-success {
    display: none;
    margin-top: 20px;
    font-size: 1rem;
    color: #6b6257;
}

.mailing-invite-block {
    text-align: center;
    margin: 38px 0 18px;
    padding: 0 20px;
}

.mailing-invite {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #8b7f71;
    text-decoration: none;
}

.mailing-invite a {
    color: #D9B191;
    text-decoration: none;
    padding-bottom: 1px;
}

.mailing-invite a:hover {
    opacity: 0.8;
}


.letters-message-page {
  max-width: 700px;
  margin: 90px auto;
  padding: 0 20px 40px;
  text-align: center;
}

.letters-message-page .letters-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #6f675f;
  margin-bottom: 34px;
}

.letters-actions {
  margin-top: 12px;
}

.letters-secondary-link {
  color: #8b7f71;
  text-decoration: none;
  padding-bottom: 2px;
}

.letters-secondary-link:hover {
  color: #D9B191;
}

.home-latest-wrap {
  margin-top: 4.5rem;
}

.home-latest-episode {
  max-width: 800px;
  margin: 0 auto;
}

.home-latest-kicker {
  margin: 0 0 0.4rem 0;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.home-latest-title {
  margin: 0 0 1.8rem 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: normal;
}