/* The opening spread and reading index share a visible page margin. */
:root { --ts-editor-mark: #a84e32; --ts-page-edge: #c9c6b8; }
.ts-journal-hero { padding: 2rem 0 0; overflow: clip; }
.ts-journal-masthead { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--ts-ink); }
.ts-journal-masthead p { margin: 0; font-size: .66rem; letter-spacing: .075em; }
.ts-journal-masthead p > span { color: #9a9d90; padding-inline: .7rem; }
.ts-journal-masthead > a { font-size: .72rem; text-decoration: none; }
.ts-journal-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: 3.5rem 0 4rem; }
.ts-journal-title { position: relative; padding-left: 2rem; }
.ts-journal-title__margin { position: absolute; top: .6rem; left: 0; writing-mode: vertical-rl; font: .57rem "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; color: #777c70; }
.ts-journal-title h1 { font-size: clamp(3.1rem, 5.6vw, 5.7rem); font-weight: 650; line-height: 1.16; letter-spacing: -.065em; margin: 0; }
.ts-journal-title h1 > span { display: inline-block; color: var(--ts-accent); font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-weight: 500; letter-spacing: -.055em; margin-top: .3rem; }
.ts-journal-intro { display: flex; gap: 1.2rem; margin-top: 2.5rem; }
.ts-journal-intro > span { color: var(--ts-editor-mark); font-size: 1.4rem; line-height: 1; }
.ts-journal-intro p { font-size: .85rem; color: #5a6054; line-height: 1.9; margin-bottom: .9rem; }
.ts-journal-intro a { font-size: .78rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ts-accent); padding-bottom: .25rem; color: var(--ts-accent); }
.ts-journal-intro a span { margin-left: 1.5rem; }
.ts-journal-contents { border-block: 1px solid var(--ts-ink); display: flex; gap: 1.8rem; align-items: center; padding: 1rem 0; font-size: .7rem; }
.ts-journal-contents > span { margin-right: auto; color: #74786d; }
.ts-journal-contents a { text-decoration: none; white-space: nowrap; }
.ts-journal-contents b { font-family: "SFMono-Regular", Consolas, monospace; font-weight: 400; color: var(--ts-accent); margin-right: .55rem; }
.ts-journal-contents a:hover { color: var(--ts-accent); }
.ts-workbench #selected-work, .ts-workbench #recent-notes, .ts-workbench #current-focus, .ts-workbench #make-contact { scroll-margin-top: 95px; }
.ts-workbench .ts-desk-heading { padding-bottom: 1.3rem; border-bottom: 1px solid var(--ts-ink); margin-bottom: 0; }
.ts-workbench .ts-desk-heading h2 { font-family: "Songti SC", "STSong", serif; font-weight: 550; }
.ts-workbench .ts-desk-heading .ts-eyebrow { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; color: var(--ts-accent); }
.ts-workbench .ts-desk-section--tinted { background: #e9ecdf; }
.ts-workbench .ts-note-index { border-top: 0; position: relative; }
.ts-workbench .ts-note-index:before { content: ""; position: absolute; left: 66px; top: 0; bottom: 0; border-left: 1px solid #c9d0be; pointer-events: none; }
.ts-workbench .ts-note-index__item { padding-block: 2.2rem; }
.ts-workbench .ts-note-index__number { color: var(--ts-editor-mark); font-family: "SFMono-Regular", Consolas, monospace; }
.ts-workbench .ts-note-index__open { border: 0; border-radius: 0; font-size: 1.3rem; }
.ts-workbench .ts-note-index h3 { font-family: "Songti SC", "STSong", serif; font-size: clamp(1.35rem, 2.1vw, 1.9rem); }

.ts-notebook-hero--journal { padding-block: 2rem 3.5rem; }
.ts-notebook-hero--journal > .container { display: block; }
.ts-notebook-masthead { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ts-ink); padding-bottom: 1rem; }
.ts-notebook-masthead .ts-kicker { margin: 0; }
.ts-notebook-masthead a { font-size: .7rem; text-decoration: none; }
.ts-notebook-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .52fr); gap: 5rem; align-items: end; padding: 1.4rem 0 0; }
.ts-notebook-hero--journal h1 { font-family: "Songti SC", "STSong", serif; font-weight: 500; font-size: clamp(3.2rem, 5.6vw, 5.5rem); line-height: 1.35; margin: 1.3rem 0; }
.ts-notebook-title > div > p { color: #66705b; font-size: .88rem; max-width: 560px; line-height: 1.9; }
.ts-notebook-title .ts-notebook-legend { border-left: 1px solid #bec6b0; padding-left: 1.5rem; margin-bottom: .4rem; }
.ts-notebook-title .ts-notebook-legend dt { font: .71rem "SFMono-Regular", Consolas, "PingFang SC", monospace; }
.ts-notebook-title .ts-notebook-legend dd { font-family: "Songti SC", "STSong", serif; font-size: .8rem; margin-bottom: .85rem; }
.ts-notebook .ts-section-heading h2 { font-size: 1.5rem; letter-spacing: -.03em; }
.ts-notebook { padding-block: 3rem; }
.ts-notebook .ts-section-heading { margin-bottom: 1.8rem; }
.ts-notebook .ts-filter { border: 0; border-radius: 0; background: transparent; padding: 0 0 1.5rem; }
.ts-notebook-list .ts-guide-card.ts-note-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 2rem; padding: 2.3rem 0; border-bottom: 1px solid var(--ts-line); background: transparent; position: relative; }
.ts-notebook-list .ts-note-card__margin { grid-column: 1; grid-row: 1; align-self: stretch; border-right: 1px solid var(--ts-line); padding-right: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ts-note-card__margin time { display: block; font-family: "SFMono-Regular", Consolas, monospace; }
.ts-note-card__margin time b { display: block; font-size: 1.15rem; font-weight: 400; line-height: 1.2; color: var(--ts-ink); }
.ts-note-card__margin time span { display: block; color: #8a8e80; font-size: .58rem; margin-top: .3rem; }
.ts-note-card__margin > span { font-size: .58rem; color: var(--ts-accent); line-height: 1.7; }
.ts-notebook-list .ts-note-card__body { grid-column: 2; grid-row: 1; min-width: 0; }
.ts-notebook-list .ts-guide-card.ts-note-card .ts-guide-card__meta { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .63rem; }
.ts-notebook-list .ts-guide-card.ts-note-card .ts-guide-card__meta > span:first-child { display: flex; gap: .8rem; flex-wrap: wrap; }
.ts-notebook-list .ts-guide-card.ts-note-card h3 { font-family: "Songti SC", "STSong", serif; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.65; margin-bottom: .7rem; }
.ts-note-card__body > p { color: #6a705f; font-size: .88rem; line-height: 1.9; margin: 0; max-width: 850px; }
.ts-notebook-list .ts-guide-card.ts-note-card .ts-guide-card__image { position: static; grid-area: auto; width: 150px; aspect-ratio: 16 / 10; margin: 0 0 .7rem 1rem; float: right; }
.ts-note-card__body:after { content: ""; display: block; clear: both; }
.ts-notebook-series h3, .ts-topic-grid h3 { font-family: "Songti SC", "STSong", serif; font-weight: 500; }
@media (max-width: 1100px) {
    .ts-journal-spread { gap: 2rem; }
    .ts-journal-title { padding-left: 1.4rem; }
    .ts-journal-title h1 { font-size: clamp(2.8rem, 5.3vw, 4.5rem); }
    .ts-journal-contents { gap: 1rem; }
    .ts-notebook-title { gap: 2rem; }
}
@media (max-width: 767px) {
    .ts-journal-hero { padding-top: 1.2rem; }
    .ts-journal-masthead { align-items: start; }
    .ts-journal-masthead p { font-size: .54rem; max-width: 220px; line-height: 1.8; }
    .ts-journal-masthead p > span { padding-inline: .2rem; }
    .ts-journal-masthead > a { font-size: .6rem; white-space: nowrap; margin-top: .15rem; }
    .ts-journal-spread { grid-template-columns: 1fr; gap: 3rem; padding: 2rem 0 2.5rem; }
    .ts-journal-title { padding-left: 1.4rem; }
    .ts-journal-title h1 { font-size: clamp(3rem, 12vw, 4.8rem); line-height: 1.17; }
    .ts-journal-title__margin { font-size: .5rem; }
    .ts-journal-intro { margin-top: 1.6rem; gap: .8rem; }
    .ts-journal-intro p { font-size: .78rem; }
    .ts-journal-intro a { font-size: .73rem; }
    .ts-journal-contents { flex-wrap: wrap; gap: .7rem 1.2rem; font-size: .64rem; padding-block: .9rem; }
    .ts-journal-contents > span { width: 100%; margin: 0; font-size: .56rem; }
    .ts-workbench .ts-note-index:before { left: 28px; }
    .ts-workbench .ts-note-index__item { padding-block: 1.7rem; }
    .ts-notebook-hero--journal { padding-block: 1.4rem 2rem; }
    .ts-notebook-masthead .ts-kicker { font-size: .56rem; }
    .ts-notebook-masthead a { font-size: .62rem; }
    .ts-notebook-title { grid-template-columns: 1fr; gap: 1rem; }
    .ts-notebook-hero--journal h1 { font-size: 2.65rem; line-height: 1.4; }
    .ts-notebook-title > div > p { font-size: .8rem; }
    .ts-notebook-title .ts-notebook-legend { border-left: 0; border-top: 1px solid #bec6b0; padding: 1rem 0 0; }
    .ts-notebook-list .ts-guide-card.ts-note-card { grid-template-columns: 58px minmax(0, 1fr); gap: 1rem; padding-block: 1.7rem; }
    .ts-note-card__margin { padding-right: .6rem; }
    .ts-note-card__margin time b { font-size: .9rem; }
    .ts-note-card__margin > span { font-size: .52rem; }
    .ts-notebook-list .ts-guide-card.ts-note-card .ts-guide-card__meta { font-size: .56rem; gap: .5rem; }
    .ts-notebook-list .ts-guide-card.ts-note-card .ts-guide-card__meta > span:last-child { display: none; }
    .ts-notebook-list .ts-guide-card.ts-note-card h3 { font-size: 1.25rem; line-height: 1.7; }
    .ts-note-card__body > p { font-size: .78rem; }
}
