/* ============================================
   SORT OF BOOKS — Modern Editorial Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --blue: #4BA3C7;
    --blue-light: #e8f4f9;
    --gold: #c9a96e;
    --dark: #1a1a1a;
    --text: #3a3a3a;
    --muted: #888;
    --border: #e8e4de;
    --cream: #faf8f5;
    --max-w: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: #fff;
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--dark); }
em { font-style: italic; }

/* ---- HEADER / NAV ---- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 30px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.logo img { height: 24px; opacity: 0.85; transition: opacity 0.2s; }
.logo:hover img { opacity: 1; }
.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links li { list-style: none; }
.nav-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}
.nav-links a:hover { color: var(--dark); text-decoration: none; }
.nav-links a.active { color: var(--dark); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 1px;
}
.header-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---- MOBILE NAV ---- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
}
.menu-toggle:hover { background: var(--cream); }
.nav-links.open { display: flex !important; }

/* ---- HERO ---- */
.hero {
    padding: 80px 30px 70px;
    text-align: center;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero .tagline {
    color: var(--blue);
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ---- CONTENT ---- */
.content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px 30px 80px;
}
.content p {
    margin-bottom: 24px;
    line-height: 1.85;
}
.content h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--dark);
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ---- ABOUT PAGE ---- */
.about-intro {
    font-size: 18px;
    line-height: 1.9;
    color: var(--dark);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.team-list {
    background: var(--cream);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
}
.team-list p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}

.distribution {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    margin-top: 48px;
}
.distribution p {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}
.distribution h2 {
    font-size: 20px;
    margin-top: 40px;
}

/* ---- AUTHORS GRID ---- */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 36px 28px;
}
.author-card { cursor: default; }
.author-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.author-card:hover img {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.author-card h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 6px;
}
.author-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- CONTACT ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--sans);
    color: var(--text);
    background: #fff;
    outline: none;
    margin-bottom: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(75,163,199,0.12);
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form button {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s;
}
.contact-form button:hover {
    background: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(75,163,199,0.3);
}

.contact-info {
    background: var(--cream);
    border-radius: 12px;
    padding: 32px;
}
.contact-info h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 14px;
}
.contact-info p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.6;
}
.contact-info hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.social-links { margin-top: 24px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
}
.social-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    margin-right: 8px;
    flex-shrink: 0;
}
.social-links a:hover { color: var(--blue); }

/* ---- NEWSLETTER ---- */
.newsletter {
    background: var(--cream);
    padding: 72px 30px;
    text-align: center;
    margin-top: 80px;
    position: relative;
}
.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.newsletter h2 {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 400;
}
.newsletter p {
    font-size: 15px;
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--sans);
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--blue); }
.newsletter-form button {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.25s;
}
.newsletter-form button:hover {
    background: var(--blue);
}

/* ---- FOOTER ---- */
footer {
    padding: 36px 30px;
    text-align: center;
    font-size: 13px;
    color: #bbb;
    letter-spacing: 0.3px;
}
footer a { color: #999; }
footer a:hover { color: var(--blue); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 20px 30px;
        gap: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex !important; }
    .hero { padding: 56px 24px 48px; }
    .content { padding: 40px 24px 60px; }
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .team-list { grid-template-columns: 1fr; }
    .newsletter { padding: 48px 24px; margin-top: 48px; }
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 20px; }
    .hero h1 { font-size: 28px; }
    .content { padding: 32px 20px 48px; }
    .authors-grid { gap: 20px 12px; }
    .author-card img { border-radius: 8px; }
    .contact-info { padding: 24px; }
}
