/* ==========================================================
   RESET / BOX MODEL
   ========================================================== */
* {
    box-sizing: border-box;
}

/* ==========================================================
   ROOT VARIABLES
   ========================================================== */
:root {
    --frank_background_color: #c7c6cc;
    --frank_text_color_1: #daf6d1;

    --link-glow-inner: #78B4FFFF;
    --link-glow-mid:   #78B4FFE6;
    --link-glow-outer: #78B4FFB3;
}

/* ==========================================================
   KEYFRAMES (GLOBAL)
   ========================================================== */
@keyframes slow_throb_1 {
    0%,100% { opacity: 0.6; }
    50%     { opacity: 1; }
}

@keyframes slow_throb_2 {
    0%,100% { opacity: 0.75; }
    50%     { opacity: 0.95; }
}

@keyframes slow_throb_3 {
    0%,100% { opacity: 0.85; }
    50%     { opacity: 0.98; }
}

/* ==========================================================
   BASE
   ========================================================== */
body {
    margin: 0;
    padding: 0;
    background: var(--frank_background_color);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--frank_text_color_1);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================
   ILLUMINATION
   ========================================================== */
.illuminate-on-hover:hover h1,
.illuminate-on-hover:hover h2,
.illuminate-on-hover:hover h3,
.illuminate-on-hover:hover p,
.illuminate-on-hover:hover span {
    text-shadow:
            0 0 6px  var(--link-glow-inner),
            0 0 20px var(--link-glow-mid),
            0 0 40px var(--link-glow-outer);
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.page-frame {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
    margin-top: 40px;
    position: relative;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.site-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 3px rgba(40,40,40,0.65);
}

#menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
}

/* ==========================================================
   DROPDOWN
   ========================================================== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40,40,40,0.35);
    padding: 16px 20px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.menu-link {
    display: block;
    padding: 6px 0;
    font-size: 16px;
}

/* ==========================================================
   HOME
   ========================================================== */
.home-gallery {
    margin-top: 90px;
    text-align: center;
}

.home-img {
    width: 70%;
    max-width: 420px;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* ==========================================================
   BOOKS
   ========================================================== */
.books-grid {
    margin-top: 90px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 60px;
    justify-items: center;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-card.throb-2 {
    animation: slow_throb_2 6s ease-in-out infinite;
}

.book-card img {
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
    display: block;
}

.book-meta {
    text-align: center;
    margin-top: 14px;
}

.book-meta h2 {
    font-size: 20px;
    margin: 6px 0 4px;
}

.book-meta p {
    font-size: 15px;
    opacity: 0.7;
    margin: 0;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    text-align: center;
    margin: 90px 0 40px;
    opacity: 0.9;
}

.social {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 26px;
}

.social-link {
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(80,80,80,0.6);
}

.meta {
    font-size: 13px;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 4px rgba(80,80,80,0.6);
}

/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 600px) {
    .site-title { font-size: 32px; }
    .home-img { width: 90%; }
    .books-grid { grid-template-columns: 1fr; gap: 40px; }
    .book-card img { max-width: 240px; }
}
