:root {
    --bg: #faf8f3;
    --bg-soft: #f3efe6;
    --text: #2d2a26;
    --text-muted: #6b6760;
    --accent: #6b2222;
    --accent-soft: #8a3a3a;
    --rule: #d8d2c4;
    --link: #4a5c6a;
    --link-hover: #6b2222;
    --serif: "Crimson Text", "EB Garamond", Cardo, Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

header.site-header {
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
}

.site-header .container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem 1.4rem;
}

.site-title {
    font-family: var(--serif);
    font-size: 1.7rem;
    margin: 0 0 0.15rem;
    letter-spacing: 0.01em;
    font-weight: 600;
    color: var(--text);
}

.site-title a { color: inherit; border-bottom: none; }

.site-tagline {
    font-style: italic;
    color: var(--text-muted);
    margin: 0 0 1.2rem;
    font-size: 0.97rem;
}

nav.primary {
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

nav.primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

nav.primary a {
    color: var(--text-muted);
    border-bottom: none;
}

nav.primary a:hover,
nav.primary a.current {
    color: var(--accent);
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

main.wide { max-width: 1040px; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    margin: 0 0 0.4rem;
    letter-spacing: -0.005em;
}

h1 + .lede {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.05rem;
    margin: 0 0 2rem;
}

h2 {
    font-size: 1.4rem;
    margin: 2.2rem 0 0.8rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.3rem;
}

h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }

p { margin: 0 0 1rem; }

blockquote {
    margin: 1.2rem 0;
    padding: 0.4rem 1.2rem;
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-style: italic;
    background: var(--bg-soft);
}

blockquote footer {
    font-style: normal;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.callout {
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.callout strong { color: var(--accent); }

table.catalog {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

table.catalog th, table.catalog td {
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

table.catalog th {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-soft);
    border-bottom: 2px solid var(--rule);
}

table.catalog tr:hover td { background: var(--bg-soft); }

.status {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.12rem 0.45rem;
    border-radius: 2px;
    white-space: nowrap;
}

.status-available { background: #e6efe6; color: #2c5230; }
.status-preparation { background: #f0e9d6; color: #6b5320; }
.status-forthcoming { background: #e6e9f0; color: #2c3c5a; }
.status-restricted { background: #f0d6d6; color: #6b2222; }

ul.news-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.news-feed li {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule);
}

ul.news-feed li:last-child { border-bottom: none; }

.news-date {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.contributors-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.3rem;
}

.contributors-list li {
    border-left: 2px solid var(--rule);
    padding: 0.1rem 0 0.1rem 0.9rem;
}

.contributor-name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

.contributor-role {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 0.3rem;
}

.contributor-bio {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

form.login-form {
    max-width: 360px;
    margin: 2rem 0;
    background: var(--bg-soft);
    padding: 1.6rem;
    border: 1px solid var(--rule);
}

form.login-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    margin-top: 0.9rem;
}

form.login-form label:first-child { margin-top: 0; }

form.login-form input[type="text"],
form.login-form input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--rule);
    background: var(--bg);
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text);
}

form.login-form button {
    margin-top: 1.4rem;
    padding: 0.6rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

form.login-form button:hover { background: var(--accent-soft); }

.notice {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

.sample-meta {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}

.sample-meta dt {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    display: inline;
}

.sample-meta dd {
    display: inline;
    margin: 0 1.2rem 0 0.3rem;
}

.sample-body p { text-indent: 1.5em; margin-bottom: 0.8rem; }
.sample-body p:first-of-type { text-indent: 0; }
.sample-body p:first-of-type::first-letter {
    font-size: 2.6em;
    line-height: 1;
    float: left;
    margin: 0.05em 0.1em 0 0;
    font-weight: 400;
    color: var(--accent);
}

.bilingual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.bilingual .col-original {
    font-family: var(--serif);
    color: var(--text-muted);
    border-right: 1px solid var(--rule);
    padding-right: 1.5rem;
}

@media (max-width: 600px) {
    .bilingual { grid-template-columns: 1fr; }
    .bilingual .col-original { border-right: none; border-bottom: 1px solid var(--rule); padding: 0 0 1rem; }
}

footer.site-footer {
    border-top: 1px solid var(--rule);
    background: var(--bg-soft);
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer.site-footer .container {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

footer.site-footer h4 {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 0.5rem;
    font-family: var(--sans);
}

footer.site-footer p, footer.site-footer ul { margin: 0 0 0.3rem; font-size: 0.85rem; }
footer.site-footer ul { list-style: none; padding: 0; }
footer.site-footer ul li { padding: 0.1rem 0; }
footer.site-footer .imprint {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
