body.secondary-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-shell {
    width: min(100%, 900px);
    flex: 1;
    margin: 4rem auto 6rem;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgb(255 254 249 / 78%);
}

.page-shell h1 {
    max-width: 760px;
    margin-bottom: 1.5rem;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.03;
}

.page-shell h2 {
    margin: 2rem 0 0.75rem;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.page-shell h3 {
    font-size: 1.35rem;
}

.page-shell p,
.page-shell li {
    color: #555b53;
}

.page-shell p {
    margin-bottom: 1rem;
}

.page-shell p a,
.page-shell li a {
    color: #5140ba;
    font-weight: 600;
    text-decoration-thickness: 1px;
}

.page-shell ul,
.page-shell ol {
    padding-left: 1.35rem;
}

.page-shell li {
    padding-left: 0.3rem;
    margin-bottom: 0.45rem;
}

.page-shell blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 1.2rem;
    border-left: 3px solid var(--lime-dark);
    background: #f0f0e8;
}

.page-shell blockquote p {
    margin: 0.65rem 0;
}

.page-shell pre,
.page-shell code {
    font-family: var(--font-mono);
}

.page-shell pre {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f0efe8;
    color: var(--ink);
}

.page-shell pre code {
    padding: 0;
    border: 0;
    background: transparent;
}

.page-shell .eyebrow {
    color: var(--violet);
}

.page-back {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.page-back:hover {
    text-decoration: underline;
}

.page-shell .loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
}

.page-shell .loading::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--violet);
    content: "";
}

@media (max-width: 640px) {
    .page-shell {
        margin: 2rem auto 3rem;
    }

    .page-shell h1 {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }
}
