html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 6rem;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) {
    min-inline-size: 20rem;
    color: var(--wp-color-text);
    font-family: var(--bs-font-sans-serif);
    font-size: var(--wp-text-body);
    line-height: var(--wp-leading-body);
    text-align: start;
    overflow-wrap: break-word;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) p {
    font-family: inherit;
    text-wrap: pretty;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    line-height: var(--wp-leading-heading);
    text-wrap: balance;
    scroll-margin-top: 6rem;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) h1 {
    font-size: var(--wp-text-page);
    letter-spacing: -0.025em;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) h2 {
    font-size: var(--wp-text-section);
    letter-spacing: -0.015em;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--wp-color-focus);
    outline-offset: 2px;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) a {
    text-decoration-thickness: from-font;
    text-underline-offset: 0.14em;
    text-underline-position: from-font;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(button, [role="button"], summary, a[href]) {
    touch-action: manipulation;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(input, select, textarea) {
    caret-color: var(--wp-color-primary);
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(time, .writer-stat-card__value, [data-tabular]) {
    font-variant-numeric: tabular-nums;
}

:is(.writer-public-shell, .writer-admin-page, .writer-editor-page) img:not(.writer-brand-logo) {
    outline: 1px solid var(--wp-image-outline);
    outline-offset: -1px;
}

::selection {
    color: var(--wp-color-text);
    background: var(--wp-color-primary-subtle);
}

@media (max-width: 47.999rem) {
    :is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(input, select, textarea) {
        font-size: 1rem;
    }
}

@media (forced-colors: active) {
    :is(.writer-public-shell, .writer-admin-page, .writer-editor-page) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline-color: Highlight;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
