
@import url('https://fonts.googleapis.com/css2?family=Quattrocento:wght@400;700&family=Quattrocento+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Open+Sans:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 16px;
    background: #fff;
    color: #0e194e;
    line-height: 25px;
}

/* ── Site header ── */
.site-header {
    text-align: center;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #e8e8e8;
}
.site-title {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 20px;           /* halved from 40px */
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #000;
    text-decoration: none;
}

/* ── Navigation ── */
nav {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
    padding: 6px 0;
    position: relative;
    /* allow horizontal scroll on very small screens */
    overflow-x: auto;
    white-space: nowrap;
}
nav a, .dropdown > span {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.91px;
    color: #b9b9b9;
    text-decoration: none;
    text-transform: uppercase;
    padding: 6px 12px;
    display: inline-block;
    cursor: pointer;
    transition: color .15s;
}
nav a:hover, .dropdown > span:hover { color: #333; }
nav a.active { color: #333; }

/* Dropdown */
.dropdown { display: inline-block; position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e0e0e0;
    min-width: 90px;
    z-index: 100;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.dropdown-menu a { display: block; padding: 8px 14px; }
.dropdown:hover .dropdown-menu { display: block; }

/* ── Page content (year + about pages) ── */
.page-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 44px 24px 80px;
    text-align: center;
}

/* ── Home page ── */
.home-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    text-align: center;
}
.home-tagline {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #0e194e;
    margin-bottom: 4px;
}
.home-est {
    font-size: 0.95rem;
    color: #0e194e;
    font-style: italic;
    margin-bottom: 44px;
}

/* Featured (2025) cover */
.featured-cover {
    display: block;
    margin: 0 auto 48px;
    text-decoration: none;
}
.featured-cover img {
    width: 220px;
    max-width: 55vw;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s;
    display: block;
    margin: 0 auto;
}
.featured-cover img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
}
.featured-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b9b9b9;
    margin-bottom: 10px;
}

/* Book grid (all other years) */
.book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 16px;
    justify-items: center;
}
.book-grid a {
    display: block;
    text-decoration: none;
}
.book-grid img {
    width: 100%;
    max-width: 130px;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    transition: transform .2s, box-shadow .2s;
    display: block;
}
.book-grid img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

/* ── Year pages ── */
.year-heading {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0e194e;
    margin-bottom: 28px;
    letter-spacing: .02em;
}
.greeting {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.85;
    margin-bottom: 30px;
    color: #0e194e;
    text-align: center;
}
.book-cover {
    max-width: 240px;
    width: 100%;
    margin: 0 auto 38px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.message {
    text-align: left;
    color: #0e194e;
}
.message p {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    line-height: 25px;
    margin-bottom: 20px;
    color: #0e194e;
}
.message p strong {
    font-weight: 700;
    font-style: italic;
    color: #0e194e;
}
.message p u {
    text-decoration: underline;
    font-style: italic;
    color: #0e194e;
}
.closing {
    margin-top: 30px;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    color: #0e194e;
    text-align: center;
}
.closing strong {
    font-weight: 700;
    font-style: italic;
}

/* ── About ── */
.about-body { text-align: left; }
.about-body p {
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    line-height: 25px;
    margin-bottom: 20px;
    color: #0e194e;
}
.about-body a { color: #0e194e; }

/* ── Footer ── */
footer {
    text-align: center;
    padding: 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: #ccc;
    border-top: 1px solid #eee;
    letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .site-title { font-size: 16px; letter-spacing: 1px; }

    nav a, .dropdown > span { font-size: 11px; padding: 5px 9px; }

    .home-content { padding: 28px 16px 60px; }

    .featured-cover img { width: 180px; }

    /* 4 columns on tablet */
    .book-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }

    .page-content { padding: 32px 18px 60px; }
    .year-heading { font-size: 1.9rem; }
    .book-cover { max-width: 200px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .site-title { font-size: 13px; letter-spacing: 0.8px; }

    nav { padding: 4px 0; }
    nav a, .dropdown > span { font-size: 10px; padding: 5px 7px; letter-spacing: 0.5px; }

    .home-content { padding: 24px 14px 50px; }
    .home-tagline { font-size: 1.1rem; }

    .featured-cover img { width: 150px; }

    /* 3 columns on mobile */
    .book-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }

    .page-content { padding: 24px 16px 50px; }
    .year-heading { font-size: 1.6rem; }
    .book-cover { max-width: 170px; }
    .message p { font-size: 15px; line-height: 23px; }
}
