a {
    text-decoration: none;
}

a:link {
    color: blue;
}

a:active {
    color: red;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: brown;
}

/* Typography */
B {
    font-weight: bold;
    color: #505050;
}

blockquote {
    color: navy;
    font-style: italic;
}

body {
    color: #333;
    font-family: Garamond, serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 30px;
}

/* Captions, Headings, Paragraphs */
caption {
    font-weight: bold;
}

caption.ctr {
    text-align: center;
}

center {
    text-align: center;
}

h3.q {
    text-indent: 45px;
    margin: 45px;
    font-size: large;
    color: blue;
}

p {
    font-size: large;
}

p.left {
    text-align: left;
}

p.normal {
    font-size: normal;
}

p.ctr {
    text-align: center;
}

p.right {
    text-align: right;
}

p.q {
    text-indent: 45px;
    margin: 45px;
    font-size: normal;
    font-style: italic;
    color: blue;
}

p.80 {
    font-size: 80%;
}

q {
    color: blue;
}

span {
    color: #505050;
}

span.80 {
    font-size: 80%;
}

span.120 {
    font-size: 120%;
}

span.140 {
    font-size: 140%;
}

/* Book list grid */
#booklist {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.language-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Card-like tables */
.styled-table {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: separate;
    border-spacing: 0;
}

.styled-table tr+tr {
    border-top: 1px solid #eee;
}

.styled-table th,
.styled-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.styled-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    width: 30%;
}

.styled-table td {
    background: #fff;
    color: #555;
    width: 70%;
}

/* Read button */
.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1.5em;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 0.75em;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.read-btn::after {
    content: '→';
    font-size: 1.1em;
    transition: margin-left 0.2s ease;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.read-btn:hover::after {
    margin-left: 0.3em;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #ddd;
    }

    .styled-table {
        background: #2a2a2a;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .styled-table th {
        background: #333;
        color: #fff;
    }

    .styled-table td {
        background: #2a2a2a;
        color: #ccc;
    }

    .read-btn {
        background: linear-gradient(135deg, #219ebc, #023047);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    flex: 0 0 auto;
    margin-right: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.main-navigation {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

/* Primary nav list */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav li {
    margin: 0;
}

.primary-nav a {
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
}

.primary-nav a:hover {
    text-decoration: underline;
}

/* Shrink on scroll */
.site-header.scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.site-header.scrolled .logo img {
    height: 40px;
}

.site-header.scrolled .primary-nav ul {
    gap: 1rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .main-navigation {
        flex-direction: column;
        align-items: center;
    }

    .primary-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.disclaimer-panel {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.disclaimer-header h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #333;
}

.disclaimer-body {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.disclaimer-body h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #444;
}

.disclaimer-body p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Tighten up the last paragraph’s bottom margin */
.disclaimer-body p:last-of-type {
    margin-bottom: 0;
}

.site-footer {
    color: #6b7280;
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-inner p {
    margin: 0;
}

.site-footer a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Center on very small screens */
@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
