:root {
    --font-body: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --color-bg: #faf7f2;
    --color-text: #1c1917;
    --color-muted: #57534e;
    --color-accent: #c2410c;
    --color-border: #e7e5e4;
    --max-width: 72rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
}

jslade {
    display: contents;
}

[style-scoped] {
    font-family: var(--font-body);
    color: inherit;
    line-height: inherit;
}

[style-scoped] h1,
[style-scoped] h2,
[style-scoped] h3,
[style-scoped] .font-display {
    font-family: var(--font-display);
    font-weight: 400;
}

[style-scoped] img {
    max-width: 100%;
    height: auto;
    display: block;
}

[style-scoped] a {
    color: var(--color-accent);
}

[style-scoped] p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Boot / navigation skeletons (global — painted before Jslade scopes mount) */
.page-skeleton {
    padding: 1.5rem 0 2rem;
    animation: sk-fade-in .2s ease;
}
.sk-line {
    height: .85rem;
    margin-bottom: .75rem;
    border-radius: .25rem;
    background: linear-gradient(90deg, #e7e5e4 0%, #f5f5f4 50%, #e7e5e4 100%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.2s ease-in-out infinite;
}
.sk-line.sk-wide { width: 72%; max-width: 28rem; }
.sk-line.sk-mid { width: 48%; max-width: 18rem; }
.sk-line.sk-short { width: 32%; max-width: 10rem; }
.sk-block {
    margin-top: 1.25rem;
    aspect-ratio: 16 / 9;
    max-height: 18rem;
    border-radius: .75rem;
    background: linear-gradient(90deg, #e7e5e4 0%, #f5f5f4 50%, #e7e5e4 100%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.2s ease-in-out infinite;
}
.sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.sk-card {
    aspect-ratio: 16 / 10;
    border-radius: .75rem;
    background: linear-gradient(90deg, #e7e5e4 0%, #f5f5f4 50%, #e7e5e4 100%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.2s ease-in-out infinite;
}
.is-placeholder { color: #a8a29e; }
@keyframes sk-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@keyframes sk-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
