:root {
    --bg: #f7f4ef;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #8b2942;
    --accent-dark: #6b1f33;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    gap: 1rem;
}
.logo {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
}
nav a {
    margin-left: 1rem;
    color: var(--text);
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
}
nav a:hover { color: var(--accent); }
main.container { padding: 2rem 1rem 4rem; }
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.hero {
    background: linear-gradient(135deg, #fff, #f3ebe3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.hero h1 { margin-top: 0; font-size: 2.4rem; }
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.search-form input, .form input, .form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 220px;
    font: inherit;
}
button, .button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    font-family: system-ui, sans-serif;
}
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary { background: #374151; margin-left: 0.5rem; }
.stats-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.stat-card, .pricing-card, .book-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}
.stat-card strong { display: block; font-size: 2rem; color: var(--accent); }
.book-list { display: grid; gap: 1rem; }
.book-card { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: start; }
.book-card img { width: 80px; border-radius: 6px; }
.book-detail-grid { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; }
.book-detail img { width: 180px; border-radius: 8px; }
.meta-list { padding-left: 1.2rem; }
.muted { color: var(--muted); }
.alert { padding: 1rem; border-radius: 8px; margin: 1rem 0; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }
.form label { display: block; margin-bottom: 1rem; font-family: system-ui, sans-serif; }
.form.inline { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { border: 1px solid var(--border); padding: 0.75rem; text-align: left; }
pre, code { font-family: Consolas, monospace; }
.openapi { max-height: 400px; overflow: auto; background: #111; color: #eee; padding: 1rem; border-radius: 8px; }
.simple-list { background: var(--card); border-radius: 12px; padding: 1rem 2rem; border: 1px solid var(--border); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    nav a { margin: 0 1rem 0 0; }
    .book-detail-grid { grid-template-columns: 1fr; }
}
