/* ==========================================================================
   Typography & global helpers
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: 1.125rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-ink);
}

/* Bilimore display face (logo, nav, footer name, greetings) */
.display-text {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
}

/* Small, widely tracked sans label (dates, "VIEW ALL", meta) */
.label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.arrow {
    display: inline-block;
    margin-left: 0.9em;
    font-family: var(--font-sans);
    letter-spacing: 0;
    transition: transform var(--duration) var(--ease);
}

a:hover > .arrow {
    transform: translateX(4px);
}

.short-rule {
    display: block;
    width: 40px;
    height: 1px;
    margin: 22px auto;
    background: var(--color-line-strong);
}

.divider {
    width: calc(100% - 48px);
    max-width: calc(var(--page-max) - 48px);
    height: 1px;
    margin: 0 auto;
    background: var(--color-line);
}

.empty-state {
    padding: 48px 0;
    text-align: center;
    font-style: italic;
    color: var(--color-muted);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--color-ink);
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 0.8rem;
}

.skip-link:focus {
    top: 8px;
}

:focus-visible {
    outline: 1px solid var(--color-charcoal);
    outline-offset: 3px;
}

/* Rich text from the editor (entry body) */
.prose > * + * {
    margin-top: 1.15em;
}

.prose h2,
.prose h3 {
    margin-top: 1.8em;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.prose blockquote {
    padding-left: 1.2em;
    border-left: 1px solid var(--color-line-strong);
    font-style: italic;
    color: var(--color-muted);
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose hr {
    width: 40px;
    height: 1px;
    margin: 2em auto;
    background: var(--color-line-strong);
}
