:root {
    --paper: #fbfaf8;
    --paper-deep: #f0ebe9;
    --ink: #211e20;
    --muted: #746b6f;
    --rose: #b56883;
    --rose-pale: #ead6de;
    --sage: #65766d;
    --line: #d5cdca;
    --display: "Bodoni 72", Didot, "Times New Roman", serif;
    --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
    --sans: "Avenir Next", Avenir, "Gill Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
}

body {
    margin: 0;
    background-color: var(--paper);
    background-image: linear-gradient(rgba(33, 30, 32, 0.018) 1px, transparent 1px);
    background-size: 100% 28px;
    font-family: var(--serif);
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.lang-en,
.lang-cn {
    display: inline;
}

html[data-lang="cn"] .lang-en,
html[data-lang="en"] .lang-cn {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: white;
    font-family: var(--sans);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.journal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
    padding: 12px 34px;
    border-bottom: 1px solid var(--ink);
    background: rgba(251, 250, 248, 0.96);
    backdrop-filter: blur(12px);
}

.home-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.home-link:hover {
    color: var(--rose);
}

.journal-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.journal-mark span {
    margin-bottom: 4px;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
}

.journal-mark strong {
    font-family: var(--display);
    font-size: 18px;
}

.language-switch {
    justify-self: end;
    display: flex;
    border: 1px solid var(--ink);
}

.language-switch button {
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.language-switch button:last-child {
    border-right: 0;
}

.language-switch button.active {
    background: var(--ink);
    color: var(--paper);
}

main,
.journal-footer {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.masthead {
    padding: 48px 0 34px;
    border-bottom: 1px solid var(--ink);
}

.issue-line {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
}

.masthead h1 {
    margin: 22px 0 12px;
    font-family: var(--display);
    font-size: 112px;
    font-weight: 400;
    line-height: 0.9;
    text-align: center;
}

.masthead-rule {
    display: flex;
    align-items: center;
    height: 17px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--ink);
}

.masthead-rule span {
    width: 20%;
    height: 4px;
    margin: 0 auto;
    background: var(--rose);
}

.empty-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
    min-height: 560px;
    border-bottom: 1px solid var(--ink);
}

.feature-field {
    position: relative;
    display: grid;
    place-items: center;
    margin: 42px 42px 42px 0;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: var(--rose-pale);
}

.feature-field::before,
.feature-field::after {
    position: absolute;
    content: "";
}

.feature-field::before {
    inset: 11%;
    border: 1px solid rgba(33, 30, 32, 0.52);
}

.feature-field::after {
    width: 34%;
    aspect-ratio: 1;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--paper-deep);
}

.field-composition {
    position: absolute;
    inset: 0;
}

.field-composition span {
    position: absolute;
    z-index: 1;
    display: block;
    background: var(--ink);
}

.field-composition span:nth-child(1) {
    top: 28%;
    left: 12%;
    width: 26%;
    height: 1px;
}

.field-composition span:nth-child(2) {
    right: 12%;
    bottom: 27%;
    width: 28%;
    height: 1px;
}

.field-composition span:nth-child(3) {
    top: 12%;
    left: 52%;
    width: 1px;
    height: 20%;
}

.crop-mark {
    position: absolute;
    z-index: 2;
    width: 20px;
    height: 20px;
}

.crop-mark-tl { top: 18px; left: 18px; border-top: 1px solid; border-left: 1px solid; }
.crop-mark-tr { top: 18px; right: 18px; border-top: 1px solid; border-right: 1px solid; }
.crop-mark-bl { bottom: 18px; left: 18px; border-bottom: 1px solid; border-left: 1px solid; }
.crop-mark-br { right: 18px; bottom: 18px; border-right: 1px solid; border-bottom: 1px solid; }

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 0 54px 42px;
    border-left: 1px solid var(--ink);
}

.copy-register {
    display: flex;
    justify-content: space-between;
    margin-bottom: 62px;
}

.copy-register span {
    width: 64px;
    height: 7px;
    background: var(--rose);
}

.empty-state-label {
    margin: 0 0 14px;
    color: var(--rose);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.feature-copy h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 62px;
    font-weight: 400;
    line-height: 1;
}

.empty-state-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.copy-lines {
    display: grid;
    gap: 9px;
    margin-top: 42px;
}

.copy-lines i {
    display: block;
    height: 1px;
    background: var(--line);
}

.copy-lines i:nth-child(1) { width: 100%; }
.copy-lines i:nth-child(2) { width: 86%; }
.copy-lines i:nth-child(3) { width: 58%; }

.byline-line {
    width: 86px;
    height: 5px;
    margin-top: 48px;
    background: var(--sage);
}

.empty-index {
    padding: 76px 0 84px;
}

.index-heading,
.index-row {
    display: grid;
    align-items: center;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
}

.index-heading {
    grid-template-columns: 80px minmax(0, 1fr) 50px;
    gap: 24px;
    margin-bottom: 28px;
    color: var(--rose);
}

.index-heading i {
    height: 5px;
    background: var(--ink);
}

.index-heading span:last-child {
    text-align: right;
}

.index-row {
    grid-template-columns: 80px minmax(0, 1fr) 90px;
    gap: 24px;
    min-height: 74px;
    border-top: 1px solid var(--line);
}

.index-row:last-child {
    border-bottom: 1px solid var(--line);
}

.index-row i,
.index-row b {
    display: block;
    height: 1px;
    background: var(--ink);
}

.index-row i {
    width: 72%;
}

.index-row b {
    justify-self: end;
    width: 54px;
    background: var(--line);
}

.archive-strip {
    margin: 0;
    padding: 40px 0;
    border-top: 1px solid var(--ink);
}

.archive-strip img {
    width: min(760px, 100%);
    max-height: 160px;
    margin: 0 auto;
    object-fit: contain;
    filter: saturate(0.72);
}

.journal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--ink);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
}

.journal-footer p {
    margin: 0;
}

@media (max-width: 820px) {
    .journal-header {
        grid-template-columns: 1fr auto;
        min-height: 64px;
        padding: 10px 18px;
    }

    .journal-mark {
        display: none;
    }

    main,
    .journal-footer {
        width: min(100% - 34px, 680px);
    }

    .masthead {
        padding-top: 30px;
    }

    .masthead h1 {
        font-size: 56px;
    }

    .empty-feature {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .feature-field {
        min-height: 380px;
        margin: 30px 0;
    }

    .feature-copy {
        min-height: 320px;
        padding: 44px 0;
        border-top: 1px solid var(--ink);
        border-left: 0;
    }

    .copy-register {
        margin-bottom: 50px;
    }

    .feature-copy h2 {
        font-size: 52px;
    }

    .empty-index {
        padding: 54px 0 62px;
    }
}

@media (max-width: 460px) {
    .issue-line span:nth-child(2) {
        display: none;
    }

    .masthead h1 {
        font-size: 45px;
    }

    .feature-field {
        min-height: 300px;
    }

    .feature-copy h2 {
        font-size: 46px;
    }

    .index-row {
        grid-template-columns: 46px minmax(0, 1fr) 54px;
        gap: 14px;
    }

    .journal-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
