* {
    box-sizing: border-box;
}
:root {
    color-scheme: light;
    --ink: #432c30;
    --accent: #8d4052;
    --paper: #fff9f0;
    --line: #e8d5c8;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.85 system-ui, "Microsoft YaHei", sans-serif;
    overflow-wrap: anywhere;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible {
    outline: 3px solid #8d4052;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
.wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
.skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: white;
    padding: 8px;
}
.skip:focus {
    top: 12px;
    z-index: 9;
}
.header {
    border-bottom: 1px solid var(--line);
    background: #fffdf8;
}
.top, .brand, nav, .foot {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.top, .foot {
    justify-content: space-between;
    padding-block: 20px;
}
.brand {
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}
.brand small {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
}
nav {
    gap: 16px;
    font-size: 14px;
}
nav a[aria-current] {
    border-bottom: 2px solid var(--accent);
}
.hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
    padding-block: 52px;
    border-bottom: 1px solid var(--line);
}
.hero-copy, .entry-copy {
    min-width: 0;
}
.eyebrow {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}
h1, h2, h3 {
    line-height: 1.4;
    font-family: Georgia, "Songti SC", SimSun, serif;
}
h1 {
    font-size: clamp(30px, 4vw, 54px);
    margin: 12px 0 22px;
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 23px;
    margin: 10px 0;
}
figure {
    margin: 0;
}
.hero-photo {
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 8px 10px 0 #ecd8ce;
}
.hero-photo img {
    width: 100%;
}
figcaption {
    color: #775e61;
    font-size: 13px;
    padding-top: 8px;
}
.action {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 3px;
}
.chapters {
    padding-block: 36px;
}
.journal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.entry {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.entry p {
    margin: 5px 0 12px;
}
.read {
    font-weight: 700;
}
.practice {
    margin-block: 20px 48px;
    padding: 26px;
    background: #f3dfd4;
    border-left: 4px solid var(--accent);
}
.detail {
    max-width: 800px;
    margin: 35px auto 60px;
}
.detail figure img {
    width: min(100%, 520px);
}
.related {
    display: grid;
    gap: 10px;
}
footer {
    background: #432c30;
    color: #fff1e7;
}
footer a {
    color: #fff1e7;
}
footer p {
    font-size: 14px;
}
@media (max-width: 850px) {
    .hero, .journal {
        grid-template-columns: 1fr;
    }
    .hero {
        gap: 22px;
        padding-block: 28px;
    }
}
@media (max-width: 480px) {
    .wrap {
        width: calc(100% - 28px);
    }
    .entry {
        grid-template-columns: 1fr;
    }
    .photo img {
        aspect-ratio: 16 / 9;
    }
    nav {
        gap: 10px;
    }
}

/* Responsive layout safeguards */
.hero,
.entry,
.journal,
.foot > div {
    min-width: 0;
}
.hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.photo {
    min-width: 0;
    align-self: start;
}
.foot nav {
    gap: 12px;
}
@media (max-width: 850px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 480px) {
    .hero-photo {
        box-shadow: 4px 5px 0 #ecd8ce;
    }
    .top,
    .foot {
        gap: 12px;
    }
    .practice {
        padding: 18px;
    }
}
