:root {
    --fm-milk: #f4efe4;
    --fm-milk-muted: #d9d1c2;
    --fm-focus: #d6ae49;
}

html { -webkit-tap-highlight-color: rgba(244, 239, 228, .14); }
body { accent-color: var(--fm-focus); }
a { color: var(--fm-milk-muted); }
a:hover, a:focus { color: var(--fm-milk); }
button, a, [role="button"] { -webkit-tap-highlight-color: rgba(244, 239, 228, .12); }
::selection { background: rgba(214, 174, 73, .28); color: var(--fm-milk); }
::-moz-selection { background: rgba(214, 174, 73, .28); color: var(--fm-milk); }
:focus-visible { outline: 2px solid var(--fm-focus); outline-offset: 2px; }

/* Long Russian headings must never become a source of horizontal scrolling. */
h1, h2, .page-title, .rune-admin-header h1, .quiz-studio-hero h1,
.catalog-admin-head h1, .free-destiny-hero h1, .destiny-reading > header h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

@media (max-width: 430px) {
    h1, .page-title, .rune-admin-header h1, .quiz-studio-hero h1,
    .catalog-admin-head h1, .free-destiny-hero h1, .destiny-reading > header h1 {
        font-size: clamp(1.85rem, 10vw, 2.75rem) !important;
        line-height: 1.02 !important;
        letter-spacing: -.025em;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* MVC validation summaries contain a hidden <li> even when no errors exist. */
.validation-summary-valid { display:none!important; }
