:root {
    --bg: #f4efe6;
    --card: #fffdfa;
    --ink: #2f2418;
    --muted: #6d5b48;
    --line: #d8c9b7;
    --accent: #6d4c2f;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.wrap.wide { max-width: 1300px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(47, 36, 24, 0.08);
}

h1, h2, h3 {
    margin-top: 0;
    font-family: Garamond, 'EB Garamond', Georgia, serif;
    letter-spacing: 0.02em;
}

.lede, .meta { color: var(--muted); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--muted);
}
input, select, button, .button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}
button, .button {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    cursor: pointer;
}
.button.ghost {
    background: transparent;
    color: var(--accent);
}
.notice {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.notice.error { background: #fbe8e6; color: #7a1f1f; }
.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 28px;
}
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.book-page {
    font-family: Garamond, 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.75;
}
.book-page section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}
.title-page {
    text-align: center;
    padding: 40px 0 56px;
}
blockquote {
    margin: 0 0 16px;
    padding-left: 18px;
    border-left: 3px solid var(--line);
    font-style: italic;
}
.ok { color: #2d6a4f; }
.warn { color: #9c4f19; }

@media (max-width: 760px) {
    .form-grid, .two-col { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; }
}
