:root {
    --paper: #f3efe6;
    --ink: #1f1b16;
    --mute: #6a6258;
    --rule: #d8d0c4;
    --rule-soft: #e3dccf;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Source Han Serif SC", serif;
    font-size: 19px;
    line-height: 1.65;
}

.wrap {
    width: min(42rem, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.top {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 56px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
}

.top a {
    color: inherit;
    text-decoration: none;
}

.top a:hover,
.top a[aria-current="page"] {
    color: var(--ink);
}

.langs {
    display: flex;
    gap: 14px;
}

h1.brand {
    margin: 0 0 26px;
    line-height: 0;
}

h1.brand img {
    display: block;
    width: clamp(220px, 46vw, 320px);
    height: auto;
}

.lead {
    font-size: 1.2rem;
    color: var(--mute);
    margin: 0 0 4px;
}

.works {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
}

.works h2 {
    margin: 0 0 22px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

.work {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    color: inherit;
    text-decoration: none;
    padding: 4px 0 8px;
}

/* between entries: deliberately fainter and shorter than the section rule */
.work + .work {
    position: relative;
    margin-top: 24px;
    padding-top: 26px;
}

.work + .work::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 1px;
    background: var(--rule-soft);
}

.shot {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 1px 2px rgba(31, 27, 22, 0.1);
}

.meta {
    display: block;
    min-width: 0;
}

.work strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.work .desc {
    display: block;
    margin-top: 6px;
    color: var(--mute);
    font-size: 1rem;
}

.work em {
    display: block;
    margin-top: 8px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    font-style: normal;
    letter-spacing: 0.02em;
}

.work:hover strong { text-decoration: underline; text-underline-offset: 3px; }

footer {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    color: var(--mute);
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover { color: var(--ink); }

/* wide screens: brand on the left, the lists beside it */
@media (min-width: 900px) {
    .wrap {
        width: min(66rem, calc(100% - 96px));
        padding: 40px 0 88px;
    }

    .top { margin-bottom: 64px; }

    main {
        display: grid;
        grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr);
        column-gap: 80px;
        align-items: start;
    }

    .intro {
        position: sticky;
        top: 40px;
    }

    h1.brand img { width: 100%; max-width: 264px; }

    .lead { margin-bottom: 0; }

    .works { margin-top: 0; }
    .works + .works { margin-top: 46px; }

    .work { gap: 22px; }

    .shot {
        width: 92px;
        height: 92px;
        border-radius: 16px;
    }

    .work .desc { max-width: 34rem; }

    footer { margin-top: 56px; }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .wrap { width: min(42rem, calc(100% - 36px)); padding-top: 22px; }
    .top { margin-bottom: 44px; }
    .works { margin-top: 44px; }
    .work { gap: 14px; }
    .shot { width: 62px; height: 62px; border-radius: 12px; }
}

/* 2026-11：隶属一句 + 中文页图书卡片（三个版本各一个链接） */
.parent {
    margin: 10px 0 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--mute);
}
.parent a { color: inherit; text-decoration: none; }
.parent a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.work .editions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0.02em;
}
.work .editions a { color: var(--ink); text-decoration: none; }
.work .editions a:hover { text-decoration: underline; text-underline-offset: 3px; }
