/* ===== BASE ===== */
body {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    background: #FFFFFF;
    color: #222222;
    letter-spacing: 0.5px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

h1 {
    font-size: 40px;
    margin: 0 0 48px;
    color: #262E79;
    text-align: center;
    letter-spacing: 3px;
}

h2 {
    font-size: 28px;
    letter-spacing: 1px;
}

h1, h2 {
    letter-spacing: 1px;
}


/* ===== HEADER & NAV ===== */
.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding-top: 35px;
}

.logo {
    position: absolute;
    left: 20px;
    top: 35px;
}

.logo img {
    width: 220px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.nav {
    display: flex;
    gap: 200px;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 130px;
    flex: 1;
}

.nav a {
    font-size: 18px;
    font-weight: 500;
    position: relative;
}

.nav a.active {
    color: #262E79;
    text-decoration: none;
}


/* ===== PAGE ===== */
.page {
    padding: 60px 48px;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1;
}

.page h1 {
    font-size: 29px !important;
}

.main {
    max-width: 1000px;
    margin: 40px auto 0;
}


/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 260px auto;
    gap: 100px;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.site-logo-img {
    width: 220px;
    transform: translateY(-130px);
    filter: brightness(0.994);
    display: block;
}

.hero-text h1 {
    font-size: 60px !important;
    text-transform: uppercase;
    color: #222222;
    margin-bottom: 60px;
    white-space: nowrap;
}

.hero-poem {
    color: #262E79;
    font-size: 18px;
    line-height: 1.8;
}


/* ===== INTRO ANIMATION ===== */
.intro {
    position: fixed;
    inset: 0;
    background: #3b332d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: intro-hide 2.8s ease forwards;
}

.intro-title {
    color: #FFFFFF;
    font-size: 32px;
    letter-spacing: 3px;
    font-weight: 700;
    animation: title-fade 1.6s ease forwards;
}

.intro-circle {
    position: fixed;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #20242a;
    left: 90px;
    top: 90px;
    opacity: 0;
    animation: circle-appear 2.8s ease forwards;
}

@keyframes title-fade {
    0%   { opacity: 0; transform: scale(0.96); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1.04); }
}

@keyframes circle-appear {
    0%, 55% { opacity: 0; transform: scale(3); }
    75%      { opacity: 1; }
    100%     { opacity: 1; transform: scale(1); }
}

@keyframes intro-hide {
    0%, 75% { opacity: 1; visibility: visible; }
    100%    { opacity: 0; visibility: hidden; pointer-events: none; }
}


/* ===== QUOTE & TEXT ===== */
.quote {
    width: 360px;
    margin-left: auto;
    margin-bottom: 40px;
    text-align: right;
    font-size: 16px;
    line-height: 1.7;
    color: #262E79;
}

.quote .author {
    margin-top: 10px;
    text-align: right;
}

.text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

.text p {
    margin-bottom: 18px;
}

.text-page {
    max-width: 760px;
    font-size: 20px;
    line-height: 1.8;
}


/* ===== BUTTONS ===== */
.meet-button,
.meet-button--small {
    display: block;
    width: 260px;
    margin: 120px auto 0;
    padding: 25px 0;
    background: #222222;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.meet-button--small {
    width: 240px;
    padding: 22px 0;
    margin-top: 60px;
}

.meet-button:hover,
.meet-button--small:hover {
    transform: translateY(-3px);
}


/* ===== AUTHORS LIST ===== */
.authors-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.alphabet {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
    font-size: 16px;
}

.alphabet a {
    color: #222222;
    text-decoration: none;
}

.alphabet a:hover,
.alphabet a.active-letter {
    color: #262E79;
    font-weight: 700;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 60px;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #222222;
    font-size: 16px;
}

.author-item img,
.author-photo-wrap {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: grayscale(100%);
    transition: 0.3s;
}

.author-photo-wrap {
    overflow: hidden;
}

.author-photo-wrap img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
}

.author-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.author-item:hover span {
    color: #262E79;
}

.no-authors {
    text-align: center;
    margin-top: 40px;
}

.authors {
    margin-top: 40px;
}

.author-card {
    border-top: 1px solid #262E79;
    padding: 28px 0;
}

.author-card a {
    font-size: 18px;
    font-weight: 700;
    color: #262E79;
}

.years {
    margin-top: 18px;
    color: #777;
    font-size: 16px;
}


/* ===== AUTHOR DETAIL ===== */
.author-top {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 70px;
    margin-top: 80px;
    padding-left: 70px;
}

.author-detail-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    object-position: top center;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-right: auto;
}

.author-name {
    font-size: 35px;
    color: #222222;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.author-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    width: 100%;
}

.author-photo {
    flex: 1;
}

.author-poems {
    margin-top: 60px;
}


/* ===== POEMS LIST ===== */
.poem-card {
    padding: 15px 0;
}

.poem-card h3 {
    margin-bottom: 10px;
}

.poem-card a {
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-line;
    color: #262E79;
}

.poems {
    display: flex;
    flex-direction: column;
    gap: 32px;
}


/* ===== POEM DETAIL ===== */
.poem-page {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 70px;
    min-height: 520px;
}

.poem-header {
    text-align: center;
    margin-bottom: 40px;
}

.poem-author {
    color: #262E79;
    font-size: 20px;
    margin-bottom: 12px;
}

.poem-title {
    color: #262E79;
    font-size: 18px !important;
    font-weight: normal;
    margin-bottom: 15px;
}

.poem-text {
    font-size: 16px !important;
    line-height: 1.9;
    letter-spacing: 0.4px;
    white-space: pre-line;
    text-align: left;
}

.poem-stars {
    letter-spacing: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.poem-year {
    margin-top: 20px;
    font-size: 14px;
    color: #262E79;
    letter-spacing: 2px;
}

.random-poem {
    width: 520px;
    margin: 35px auto 0;
    color: #26204a;
    font-size: 15px;
    line-height: 1.55;
}

.random-poem h2 {
    text-align: center;
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 45px;
    font-weight: 700;
}


/* ===== MATERIALS ===== */
.materials-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 315px;
    box-sizing: border-box;

    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.materials-list {
    max-width: 760px;
    margin-top: 5px;
}

.material-card {
    padding: 16px 0;
    border-top: none;
}

.material-card a {
    color: #222222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 2.2;
}

.material-card a:hover {
    color: #262E79;
}

/* ===== FEEDBACK ===== */
.feedback-section {
    max-width: 650px;
    margin: 100px auto;
    text-align: center;
}

.feedback-section h1 {
    font-size: 35px !important;
    margin-bottom: 30px;
}
.feedback-section h3 {
    font-size: 12px !important;
    margin-bottom: 50px;
    color: #555;
    font-weight: 200;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-row {
    display: flex;
    gap: 12px;
}

.feedback-form input {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #2b2b2b;
    color: white;
    font-family: inherit;
}

.feedback-form textarea {
    padding: 20px;
    border: none;
    border-radius: 12px;
    background: #2b2b2b;
    color: white;
    min-height: 160px;
    font-family: inherit;
}

.feedback-form button {
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #222222;
    color: #FFFFFF;
    cursor: pointer;
    transition: 0.2s;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: #aaa;
}


/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    margin-top: 60px;
    background: #222;
    width: 100%;
    box-sizing: border-box;
}

.footer-logo,
.footer-tg {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 13px;
    letter-spacing: 2px;
}

.footer-logo:hover,
.footer-tg:hover {
    opacity: 0.7;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        font-size: 16px;
    }

    * {
        box-sizing: border-box;
    }

    .header {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 26px 16px 20px !important;
        gap: 18px !important;
    }

    .logo {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .logo img {
        width: 120px !important;
        height: 120px !important;
    }

    .nav {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        padding-top: 20px !important;
        padding-left: 0 !important;
    }

    .nav a {
        font-size: 14px !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important;
    }

    .page, .main, .authors-page {
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px 22px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }

    h1, .page h1 {
        font-size: 30px !important;
        line-height: 1.25;
        text-align: center;
        margin-bottom: 32px;
        letter-spacing: 2px;
    }

    .hero {
        width: 100% !important;
        display: block !important;
        padding: 45px 22px 20px !important;
        min-height: auto !important;
    }

    .site-logo-img {
        width: 100px !important;
        height: auto !important;
        transform: none !important;
        margin: 0 auto 30px !important;
    }

    .hero-text h1 {
        font-size: 36px !important;
        white-space: normal !important;
        text-align: center !important;
        letter-spacing: 3px !important;
        margin: 35px 0 45px !important;
    }

    .hero-poem {
        font-size: 15px;
        line-height: 1.7;
        text-align: right;
    }

    .quote {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 35px !important;
        text-align: right !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    .text, .text-page {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 17px !important;
        line-height: 1.75 !important;
    }

    .alphabet {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 28px 38px !important;
        margin: 20px auto 20px !important;
        padding: 0 20px 20px !important;
        font-size: 18px !important;
    }

    .authors-grid {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 34px !important;
        padding: 0 !important;
    }

    .author-item {
        width: 100% !important;
        font-size: 21px !important;
        gap: 22px !important;
    }

    .author-photo-wrap,
    .author-item img {
        width: 76px !important;
        height: 76px !important;
        min-width: 76px !important;
    }

    .author-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 30px !important;
        padding-left: 0 !important;
    }

    .author-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .author-photo {
        width: 100% !important;
        max-width: 260px !important;
        margin: 0 auto 20px !important;
        display: flex !important;
        justify-content: center !important;
        order: -1 !important;
    }

    .author-detail-photo {
        width: 150px !important;
        height: 150px !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    .author-name {
        font-size: 34px !important;
        text-align: center !important;
        margin: 0 0 20px !important;
    }

    .author-bio {
        font-size: 16px !important;
        line-height: 1.75 !important;
        text-align: left !important;
        width: 100% !important;
    }
    .poem-page {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 35px 24px !important;
    }

    .poem-author {
        font-size: 20px;
        text-align: center;
    }

    .poem-title {
        font-size: 18px !important;
        text-align: center;
    }

    .poem-text {
        font-size: 16px !important;
        line-height: 1.8;
        overflow-wrap: break-word;
    }

    .random-poem {
        width: 100% !important;
        max-width: 100% !important;
        margin: 25px auto 0 !important;
        font-size: 15px !important;
    }

    .meet-button, .meet-button--small {
        width: 100% !important;
        max-width: 300px !important;
        padding: 22px 0 !important;
        margin: 80px auto 0 !important;
        font-size: 24px !important;
    }

    .feedback-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 60px 0 !important;
        padding: 0 22px !important;
    }

    .feedback-section h1 {
        font-size: 24px !important;
    }

    .feedback-row {
        flex-direction: column !important;
    }

    .feedback-form input,
    .feedback-form textarea,
    .feedback-form button {
        width: 100% !important;
    }

    .footer {
        width: 100% !important;
        padding: 20px 22px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    iframe, .flourish-embed, .flourish-credit {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .materials-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 24px 60px !important;
    box-sizing: border-box !important;

    display: flex !important;
    justify-content: center !important;
    }

    .materials-list {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        
    }

    .material-card {
        padding: 18px 0 !important;
        border-top: none !important;
    }

    .material-card a {
        display: block !important;
        color: #222222 !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 2.2 !important;
        letter-spacing: 0.5px !important;
        text-align: left !important;
    }
}