/*
Theme Name: Dragonquill
Description: A dark, chronicle-inspired Game of Thrones fan theme with a cinematic banner masthead and editorial story cards.
Version: 1.1.0
Author: Ariane
*/

/* =========================================================
   Tokens
   ========================================================= */

:root {
    --lp-max-width: 1120px;
    --lp-bg: #080b0e;
    --lp-bg-alt: #101519;
    --lp-text: #eee8da;
    --lp-text-muted: #9d9b92;
    --lp-border: rgba(222, 190, 122, 0.18);
    --lp-accent: #d4a85f;
    --lp-accent-hover: #f0c979;
    --lp-radius: 0;
    --lp-font-body: "Arima", "Cormorant Garamond", Georgia, serif;
    --lp-font-size-base: 17px;
    --lp-line-height-base: 1.65;
    --lp-surface-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
    --lp-header-ink: #080d12;
    --lp-iron: #182127;
    --lp-ember: #a43d35;
    --lp-ember-bright: #d35b43;
    --lp-ice: #a6bdc2;
    --lp-paper: #d9d0bd;
}

:root[data-theme="dark"],
:root[data-theme="light"] {
    --lp-max-width: 1120px;
    --lp-bg: #080b0e;
    --lp-bg-alt: #101519;
    --lp-text: #eee8da;
    --lp-text-muted: #b7b2a7;
    --lp-border: rgba(222, 190, 122, 0.18);
    --lp-accent: #d4a85f;
    --lp-accent-hover: #f0c979;
    --lp-ember: #a43d35;
    --lp-ember-bright: #d35b43;
    --lp-ice: #a6bdc2;
    --lp-iron: #182127;
    --lp-paper: #eee8da;
    --lp-radius: 0;
    --lp-surface-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
    --lp-font-body: "Arima", "Cormorant Garamond", Georgia, serif;
    --lp-header-ink: #06090c;
}

/* =========================================================
   Reset & base
   ========================================================= */

* {
    box-sizing: border-box;
}

body.lp-site {
    color: var(--lp-text);
    font-family: var(--lp-font-body);
    font-size: var(--lp-font-size-base);
    line-height: var(--lp-line-height-base);
    margin: 0;
}

a {
    color: var(--lp-accent);
}

a:hover,
a:focus {
    color: var(--lp-accent-hover);
}

strong,
b {
    background: linear-gradient(135deg, var(--lp-accent-hover), var(--lp-ember-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

em,
i {
    color: var(--lp-accent);
}

img {
    height: auto;
    max-width: 100%;
}

.lp-skip-link {
    background: var(--lp-accent);
    color: #fff;
    left: -9999px;
    padding: 0.5em 1em;
    position: absolute;
    top: 0;
    z-index: 100;
}

.lp-skip-link:focus {
    left: 0;
}

/* =========================================================
   Header
   ========================================================= */

.lp-site-header {
    background: var(--lp-bg-alt);
    border-bottom: 1px solid var(--lp-border);
}

.lp-site-header__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--lp-max-width);
    padding: 1.25rem 1.5rem;
}

.lp-site-header__brand a {
    color: var(--lp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.lp-site-header__logo {
    display: block;
    max-height: 48px;
    width: auto;
}

.lp-site-header__tagline {
    color: var(--lp-text-muted);
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 0.15rem;
}

/* Optional header image, above the header bar. --lp-header-image-height
   is the Header section's own configurable Theme Option (default 200px). */
.lp-site-header__image-wrap {
    margin: 0 auto;
    max-width: var(--lp-max-width);
}

.lp-site-header__image {
    display: block;
    height: var(--lp-header-image-height, 200px);
    object-fit: cover;
    width: 100%;
}

/* =========================================================
   Navigation menus
   ========================================================= */

.lp-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-menu__item a {
    color: var(--lp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
}

.lp-nav-menu__item a:hover,
.lp-nav-menu__item a:focus {
    color: var(--lp-accent);
}

/* Nested submenus — hidden by default and revealed on hover/focus
   of their parent item, the classic dropdown pattern; positioned relative
   to the parent <li> so it doesn't disturb the top-level menu's own
   layout (flex row in the header, stacked list in the sidebar/footer). */

.lp-nav-menu__item {
    position: relative;
}

.lp-nav-menu__submenu {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    display: none;
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 12rem;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    z-index: 10;
}

.lp-nav-menu__item--has-children:hover > .lp-nav-menu__submenu,
.lp-nav-menu__item--has-children:focus-within > .lp-nav-menu__submenu {
    display: block;
}

.lp-nav-menu__submenu .lp-nav-menu__item a {
    display: block;
    padding: 0.4rem 1rem;
}

.lp-nav-menu__submenu .lp-nav-menu__submenu {
    left: 100%;
    top: 0;
}

/* Inside the sidebar widget (.lp-widget__nav-menu) the top-level
   list stacks vertically rather than flowing horizontally, so a dropdown
   position doesn't apply — submenus expand inline, indented, instead. */

.lp-widget__nav-menu .lp-nav-menu__submenu {
    background: none;
    border: none;
    display: block;
    padding: 0.35rem 0 0 1rem;
    position: static;
}

/* =========================================================
   Search form (site header)
   ========================================================= */

.lp-search-form {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.lp-search-form__label {
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.lp-search-form__input {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.lp-search-form__button {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
}

.lp-search-form__button:hover,
.lp-search-form__button:focus {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}

/* =========================================================
   Theme toggle
   ========================================================= */

.lp-theme-toggle {
    align-items: center;
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: border-color 0.15s ease;
    width: 2.25rem;
}

.lp-theme-toggle:hover,
.lp-theme-toggle:focus-visible {
    border-color: var(--lp-accent);
}

.lp-theme-toggle:focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
}

/* Which icon shows is driven purely by CSS, the same data-theme
   attribute/prefers-color-scheme guard the color tokens above use — no
   JS DOM manipulation of the button's contents needed. */
.lp-theme-toggle__icon--light {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-theme-toggle__icon--dark {
        display: none;
    }

    :root:not([data-theme="light"]) .lp-theme-toggle__icon--light {
        display: inline;
    }
}

:root[data-theme="dark"] .lp-theme-toggle__icon--dark {
    display: none;
}

:root[data-theme="dark"] .lp-theme-toggle__icon--light {
    display: inline;
}

/* =========================================================
   Layout
   ========================================================= */

.lp-layout {
    align-items: start;
    display: grid;
    margin: 0 auto;
}

body.lp-site {
    color: var(--lp-text);
    min-width: 320px;
}

body.lp-site::before {
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

a:hover,
a:focus {
    color: var(--lp-accent-hover);
}

::selection {
    background: var(--lp-accent);
    color: #111;
}

.lp-skip-link {
    color: #0b0e10;
}

.lp-site-header__image-wrap {
    overflow: hidden;
    position: relative;
}

.lp-site-header__image-wrap::before {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.lp-site-header__image {
    display: block;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.lp-site-header__inner {
    max-width: none;
    position: relative;
    z-index: 2;
}

.lp-site-header__brand {
    align-self: center;
    grid-area: brand;
    margin: 0;
}

.lp-site-header__brand a {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
}

.lp-site-header__brand a::before {
    border: 1px solid var(--lp-accent);
    content: "";
    display: inline-block;
    transform: rotate(45deg);
}

.lp-site-header__brand a:hover,
.lp-site-header__brand a:focus {
    color: var(--lp-accent-hover);
}

.lp-site-header__logo {
    max-height: 48px;
}

.lp-site-header__tagline {
    font-family: "Source Sans 3", Arial, sans-serif;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.lp-site-header__nav {
    grid-area: nav;
}

.lp-nav-menu__item a {
    display: inline-block;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    padding: 0.2rem 0;
    text-decoration: none;
    text-transform: uppercase;
}

.lp-nav-menu__item a:hover,
.lp-nav-menu__item a:focus {
    color: var(--lp-accent-hover);
}

.lp-site-header .lp-nav-menu__submenu {
    background: #0c141a;
    border-color: rgba(197, 154, 90, 0.34);
    border-radius: 2px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.38);
}

.lp-search-form {
    align-self: center;
    grid-area: search;
}

.lp-search-form__input {
    font-family: "Source Sans 3", Arial, sans-serif;
}

.lp-search-form__input::placeholder {
    color: rgba(230, 225, 214, 0.5);
}

.lp-search-form__button {
    color: #16110a;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
}

.lp-search-form__button:hover,
.lp-search-form__button:focus {
    background: var(--lp-accent-hover);
    border-color: var(--lp-accent-hover);
    color: #16110a;
}

.lp-theme-toggle {
    align-self: center;
    grid-area: toggle;
}

.lp-eyebrow {
    color: var(--lp-accent);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

.lp-page-title {
    margin: 0;
}

.lp-main-header__intro {
    margin: 0.7rem 0 0;
}

.lp-content--home .lp-post-list__item {
    background: linear-gradient(145deg, rgba(18, 26, 33, 0.98), rgba(12, 18, 24, 0.98));
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__thumbnail img {
    border-radius: 0;
    filter: saturate(0.78) contrast(1.08);
    height: 175px;
    object-fit: cover;
    width: 100%;
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__body {
    background:
        linear-gradient(145deg, rgba(8, 13, 18, 0.9), rgba(34, 24, 16, 0.75)),
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(197, 154, 90, 0.025) 14px 15px);
    color: #e6e1d6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.4rem, 3vw, 2.35rem);
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__title {
    line-height: 1.08;
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__title a {
    color: #f1e8d7;
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__meta {
    color: rgba(230, 225, 214, 0.6);
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__more {
    color: var(--lp-accent-hover);
}

.lp-content--home .lp-post-list__item:not(:first-child) {
    display: flex;
    flex-direction: column;
}

.lp-content--home .lp-post-list__item:not(:first-child) .lp-post-list__thumbnail {
    order: -1;
}

.lp-content--home .lp-post-list__item:not(:first-child) .lp-post-list__thumbnail img {
    border-radius: 0;
    filter: saturate(0.78) contrast(1.06);
    /* height intentionally unset — falls through to the shared
       .lp-post-list__thumbnail img rule's clamp() height below, the
       same one the first post's image now resolves to as well, so
       every card's thumbnail renders at the same height. */
    object-fit: cover;
    width: 100%;
}

.lp-content--home .lp-post-list__item:not(:first-child) .lp-post-list__body {
    padding: 1.2rem 1.25rem 1.35rem;
}

.lp-content--home .lp-post-list__item:not(:first-child) .lp-post-list__title {
    font-size: 1.35rem;
    line-height: 1.16;
}

.lp-post-list__title,
.lp-post__title {
    font-family: "Cinzel", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.015em;
}

.lp-post-list__title a,
.lp-post__title {
    color: var(--lp-text);
    text-decoration: none;
}

.lp-post-list__meta,
.lp-post__meta {
    font-family: "Source Sans 3", Arial, sans-serif;
}

.lp-post-list__excerpt,
.lp-main-header__intro {
    color: var(--lp-text-muted);
}

.lp-post-list__more {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
}

.lp-widget,
.lp-sidebar .lp-welcome-message {
    font-family: var(--lp-font-body);
}

.lp-widget__title {
    margin-bottom: 0.8rem;
}

.lp-widget__list li {
    border-bottom-color: var(--lp-border);
}

.lp-post__title {
    line-height: 1.04;
}

.lp-post__thumbnail img {
    filter: saturate(0.84) contrast(1.04);
}

.lp-post__content {
    font-size: 1.06rem;
}

.lp-post__content blockquote {
    border-left-color: var(--lp-accent);
    font-style: italic;
}

.lp-post__content code,
.lp-post__content pre,
.lp-post__content th {
    background: var(--lp-iron);
}

.lp-site-footer {
    color: #e6e1d6;
}

.lp-site-footer__nav {
    border-bottom: 1px solid rgba(197, 154, 90, 0.2);
    padding-bottom: 1.1rem;
}

.lp-site-footer__nav .lp-nav-menu {
    justify-content: center;
}

@media (max-width: 720px) {
    .lp-site-header {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    a,
    .lp-post__content img,
    .lp-post__tags-item a,
    .lp-related-posts__item {
        transition: none;
    }

    .lp-post__content img:hover,
    .lp-related-posts__item:hover {
        transform: none;
    }
}

.lp-main {
    min-width: 0;
}

/* Hierarchy UI breadcrumbs — content/page.php only renders this
   for a page with at least one ancestor (see the_page_breadcrumbs()'s
   own docblock); a top-level page shows no breadcrumb trail at all. */

.lp-breadcrumbs {
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.lp-breadcrumbs__list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-breadcrumbs__item {
    align-items: center;
    display: inline-flex;
    gap: 0.4em;
}

.lp-breadcrumbs__link {
    color: var(--lp-text-muted);
    text-decoration: underline;
}

.lp-breadcrumbs__link:hover {
    color: var(--lp-accent);
}

.lp-breadcrumbs__separator {
    color: var(--lp-text-muted);
}

.lp-breadcrumbs__item--current {
    color: var(--lp-text);
    font-weight: 600;
}

.lp-empty-state {
    color: var(--lp-text-muted);
    font-style: italic;
}

.lp-archive__image {
    border-radius: var(--lp-radius);
    display: block;
    height: auto;
    margin: -0.5rem 0 1.5rem;
    max-width: 480px;
    width: 100%;
}

.lp-archive__description {
    color: var(--lp-text-muted);
    margin: -0.5rem 0 1.5rem;
    max-width: 68ch;
}

/* =========================================================
   Maintenance mode
   ========================================================= */

.lp-maintenance {
    margin: 0 auto;
    max-width: 60ch;
    padding: 3rem 1.5rem;
    text-align: center;
}

.lp-maintenance .lp-page-title {
    margin-bottom: 0.75rem;
}

.lp-maintenance__message {
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 60ch;
}

.lp-maintenance__return-at {
    color: var(--lp-text-muted);
    margin-top: 0.75rem;
}

.lp-post,
.lp-page {
    max-width: 68ch;
}

.lp-post__title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2rem;
    margin-top: 0;
}

.lp-post__meta,
.lp-post-list__meta {
    color: var(--lp-text-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

/* post_categories()/the_post_categories() rendered inline in the
   meta line, on both the single post view and listing cards. */
.lp-post__categories a,
.lp-post-list__categories a {
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-post__categories a:hover,
.lp-post__categories a:focus,
.lp-post-list__categories a:hover,
.lp-post-list__categories a:focus {
    text-decoration: underline;
}

/* the_post_categories() rendered inline in the homepage listing's
   kicker label — inherits the kicker's own ember-bright/uppercase
   styling instead of the meta line's accent-colored link treatment. */
.lp-post-list__kicker a {
    color: inherit;
    text-decoration: none;
}

.lp-post-list__kicker a:hover,
.lp-post-list__kicker a:focus {
    text-decoration: underline;
}

/* comments_link() rendered inline in the post-list meta line. */
a.lp-post-list__comments {
    color: var(--lp-accent);
    text-decoration: none;
}

a.lp-post-list__comments:hover,
a.lp-post-list__comments:focus {
    text-decoration: underline;
}

.lp-post-list__comments--closed {
    color: var(--lp-text-muted);
}

/* get_the_tags()/the_tags() rendered as a pill list below a
   single post's own content, distinct from .lp-widget__tag-cloud-item
   (different component, even though visually similar). */
.lp-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.lp-post__tags-item a,
.lp-post-list__tags-item a {
    background: rgba(14, 20, 24, 0.92);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-accent);
    display: inline-block;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lp-post__tags-item a:hover,
.lp-post__tags-item a:focus,
.lp-post-list__tags-item a:hover,
.lp-post-list__tags-item a:focus {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: var(--lp-header-ink);
}

/* Same pill treatment as .lp-post__tags above, for the homepage
   listing's own tag list — smaller top margin since it follows the
   footer's own border-top divider rather than sitting directly under
   the post content. */
.lp-post-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

/* the_related_posts(), rendered under a single post's own
   article, before comments. */
.lp-related-posts {
    border-top: 1px solid var(--lp-border);
    margin: 2.5rem 0 0;
    padding-top: 1.75rem;
}

.lp-related-posts__title {
    color: var(--lp-accent);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin: 0 0 1.1rem;
    text-transform: uppercase;
}

.lp-related-posts__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-related-posts__item {
    background: rgba(14, 20, 24, 0.92);
    border: 1px solid var(--lp-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    flex: 1 1 160px;
    max-width: 200px;
    padding: 0.85rem;
    transition: border-color 160ms ease, transform 160ms ease;
}

.lp-related-posts__item:hover {
    border-color: var(--lp-accent);
    transform: translateY(-2px);
}

.lp-related-posts__thumbnail {
    margin: -0.85rem -0.85rem 0.65rem;
}

.lp-related-posts__thumbnail img {
    display: block;
    filter: saturate(0.8) contrast(1.05);
    height: auto;
    max-width: 100%;
}

.lp-related-posts__link {
    color: var(--lp-text);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
}

.lp-related-posts__link:hover,
.lp-related-posts__link:focus {
    color: var(--lp-accent);
}

/* Only ever rendered when edit_post_link() actually returned a URL for
   the current visitor — a quiet footer note inside the post, not a
   prominent button, since it's only ever meant for the signed-in
   author/editor, not readers. */
.lp-post__edit-link {
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-muted);
    font-size: 0.85rem;
    margin: 2rem 0 0;
    padding-top: 1.25rem;
}

.lp-post__edit-link a {
    color: var(--lp-accent);
}

.lp-post__content {
    max-width: 68ch;
}

.lp-post__thumbnail {
    margin: 0 0 1.5rem;
}

.lp-post__thumbnail img {
    border-radius: 4px;
    display: block;
    height: auto;
    max-width: 100%;
}

/* =========================================================
   Rendered post/page content — typography for
   everything MarkdownParser/HtmlSanitizer can produce: headings,
   code, blockquotes, tables, task lists, footnotes, and the
   [[toc]] table of contents.
   ========================================================= */

.lp-post__content :is(h1, h2, h3, h4, h5, h6) {
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
}

.lp-post__content :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.lp-post__content p {
    margin: 0 0 1em;
}

.lp-post__content a {
    color: var(--lp-accent);
}

.lp-post__content a:hover {
    color: var(--lp-accent-hover);
}

.lp-post__content img {
    background: var(--lp-paper);
    border: 1px solid var(--lp-accent);
    border-radius: var(--lp-radius);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    height: auto;
    max-width: 100%;
    padding: 0.5rem;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.lp-post__content img:hover {
    box-shadow: 0 0 0 1px var(--lp-accent-hover), 0 18px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(-2px);
}

/*
 * Image alignment — classes the WYSIWYG editor's Insert Media
 * "Alignment" step adds directly to the <img> (content-editor.js).
 * .alignnone needs no rule of its own: an inline <img> with no float is
 * already the "no alignment" default.
 */
.lp-post__content img.alignleft {
    float: left;
    margin: 0.25em 1.5em 1em 0;
}

.lp-post__content img.alignright {
    float: right;
    margin: 0.25em 0 1em 1.5em;
}

.lp-post__content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*
 * WordPress Importer's [caption] shortcode conversion wraps a
 * migrated image and its caption text in <figure class="lp-caption
 * {align}"><img ...><figcaption>...</figcaption></figure> — the align.*
 * rules here mirror the plain img.align* rules above so a captioned
 * image floats/centers exactly like an unwrapped one would.
 */
.lp-post__content figure.lp-caption {
    margin: 0 0 1em;
    max-width: 100%;
}

.lp-post__content figure.lp-caption img {
    display: block;
    height: auto;
    margin: 0;
    max-width: 100%;
}

.lp-post__content figure.lp-caption.alignleft {
    float: left;
    margin: 0.25em 1.5em 1em 0;
}

.lp-post__content figure.lp-caption.alignright {
    float: right;
    margin: 0.25em 0 1em 1.5em;
}

.lp-post__content figure.lp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.lp-post__content figure.lp-caption figcaption {
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-muted);
    font-size: 0.85em;
    font-style: italic;
    margin-top: 0.5em;
    padding-top: 0.5em;
    text-align: center;
}

.lp-post__content code {
    background: var(--lp-bg-alt);
    border-radius: var(--lp-radius);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.15em 0.4em;
}

.lp-post__content pre {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    margin: 0 0 1em;
    overflow-x: auto;
    padding: 1em;
}

.lp-post__content pre code {
    background: none;
    font-size: 0.85em;
    padding: 0;
}

.lp-post__content blockquote {
    border-left: 4px solid var(--lp-border);
    color: var(--lp-text-muted);
    margin: 0 0 1em;
    padding: 0.25em 1em;
}

.lp-post__content hr {
    border: none;
    border-top: 1px solid var(--lp-border);
    margin: 2em 0;
}

.lp-post__content :is(ul, ol) {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.lp-post__content li {
    margin: 0.25em 0;
}

.lp-post__content .lp-task-list-item {
    list-style: none;
    margin-left: -1.5em;
}

.lp-post__content .lp-task-list-item input[type="checkbox"] {
    margin-right: 0.4em;
}

.lp-post__content table {
    border-collapse: collapse;
    margin: 0 0 1em;
    width: 100%;
}

.lp-post__content :is(th, td) {
    border: 1px solid var(--lp-border);
    padding: 0.5em 0.75em;
    text-align: left;
}

.lp-post__content th {
    background: var(--lp-bg-alt);
}

.lp-post__content .lp-align-center {
    text-align: center;
}

.lp-post__content .lp-align-right {
    text-align: right;
}

/*
 * Text alignment (WYSIWYG editor toolbar) — distinct from
 * .lp-align-center/.lp-align-right above, which are Markdown table-cell
 * alignment classes (renderTable() in MarkdownParser). TinyMCE's align
 * toolbar is configured (content-editor.js) to apply these
 * has-text-align-* classes rather than an inline style="text-align:...",
 * since HtmlSanitizer never allows a style attribute at all.
 */
.lp-post__content .has-text-align-left {
    text-align: left;
}

.lp-post__content .has-text-align-center {
    text-align: center;
}

.lp-post__content .has-text-align-right {
    text-align: right;
}

.lp-post__content .has-text-align-justify {
    text-align: justify;
}

/*
 * Fixed font-color palette (both editors) — a hardcoded set of
 * named colors rather than a free-pick color, applied as a class on a
 * <span> instead of an inline style="color:..." since HtmlSanitizer
 * never allows a style attribute at all. Names must match the palette
 * content-editor.js offers and MarkdownParser::FONT_COLORS accepts.
 * Colors themselves are tokens (--lp-color-*, defined above) so dark
 * mode can lighten them for contrast rather than hardcoding a value here.
 */
.lp-post__content .has-red-color {
    color: var(--lp-color-red);
}

.lp-post__content .has-orange-color {
    color: var(--lp-color-orange);
}

.lp-post__content .has-yellow-color {
    color: var(--lp-color-yellow);
}

.lp-post__content .has-green-color {
    color: var(--lp-color-green);
}

.lp-post__content .has-blue-color {
    color: var(--lp-color-blue);
}

.lp-post__content .has-purple-color {
    color: var(--lp-color-purple);
}

.lp-post__content .has-gray-color {
    color: var(--lp-color-gray);
}

.lp-post__content .lp-toc {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    margin: 0 0 1.5em;
    padding: 1em 1.25em;
}

.lp-post__content .lp-toc ol {
    list-style: decimal;
    margin: 0.5em 0 0;
    padding-left: 1.25em;
}

.lp-post__content .lp-toc__level-2 { margin-left: 1em; }
.lp-post__content .lp-toc__level-3 { margin-left: 2em; }
.lp-post__content .lp-toc__level-4 { margin-left: 3em; }
.lp-post__content .lp-toc__level-5 { margin-left: 4em; }
.lp-post__content .lp-toc__level-6 { margin-left: 5em; }

.lp-post__content .lp-footnotes {
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-muted);
    font-size: 0.9em;
    margin-top: 2em;
    padding-top: 1em;
}

.lp-post__content .lp-footnote-backref {
    margin-left: 0.35em;
    text-decoration: none;
}

/* "Show featured image above title" Theme Option — same full-width
   banner treatment as .lp-post-list__thumbnail's own hero-banner
   image, applied to a single post/page instead of a listing card. */
.lp-post__thumbnail--hero {
    width: 100%;
}

.lp-post__thumbnail--hero img {
    border-radius: var(--lp-radius);
    height: 320px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 720px) {
    .lp-post__thumbnail--hero img {
        height: 200px;
    }
}

/* =========================================================
   Post list (homepage & archives)
   ========================================================= */

.lp-post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/*
 * Full-width, above-the-title featured image (design reference: a
 * classic fansite hero-banner layout) rather than a small side
 * thumbnail — column direction stacks .lp-post-list__thumbnail above
 * .lp-post-list__body since both are already siblings in that DOM
 * order in index.php/archive.php.
 */
.lp-post-list__item {
    border-bottom: 1px solid var(--lp-border);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.lp-post-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lp-post-list__thumbnail {
    display: block;
    width: 100%;
}

.lp-post-list__body {
    flex: 1;
    min-width: 0;
}

.lp-post-list__title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
}

.lp-post-list__title a {
    color: var(--lp-text);
    text-decoration: none;
}

.lp-post-list__title a:hover,
.lp-post-list__title a:focus {
    color: var(--lp-ice);
}

.lp-post-list__excerpt {
    margin: 0 0 0.75rem;
}

/* Full-content post-listing mode ("Post Display" Theme Option) —
   reuses .lp-post__content's rich-content rules (headings, images, lists,
   etc.) for the identical rendered markup the_content() produces on a
   single-post page; this class only adds listing-specific spacing. */
.lp-post-list__content {
    margin: 0 0 0.75rem;
}

.lp-post-list__more {
    color: var(--lp-accent);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
}

.lp-post-list__more:hover,
.lp-post-list__more:focus {
    text-decoration: underline;
}

/* =========================================================
   Search results
   ========================================================= */

.lp-search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lp-search-results__item {
    border-bottom: 1px solid var(--lp-border);
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.lp-search-results__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lp-search-results__thumbnail {
    flex-shrink: 0;
}

.lp-search-results__thumbnail img {
    border-radius: 4px;
    display: block;
    height: 120px;
    object-fit: cover;
    width: 120px;
}

.lp-search-results__body {
    flex: 1;
    min-width: 0;
}

.lp-search-results__type {
    color: var(--lp-text-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.lp-search-results__title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
}

.lp-search-results__title a {
    color: var(--lp-text);
    text-decoration: none;
}

.lp-search-results__title a:hover,
.lp-search-results__title a:focus {
    color: var(--lp-accent);
}

.lp-search-results__meta {
    color: var(--lp-text-muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

.lp-search-results__excerpt {
    margin: 0;
}

.lp-search-highlight {
    background: color-mix(in srgb, var(--lp-accent) 30%, transparent);
    border-radius: 2px;
    color: inherit;
    padding: 0 0.1em;
}

/* =========================================================
   Pagination
   ========================================================= */

.lp-pagination {
    margin-top: 2rem;
}

.lp-pagination__list {
    display: flex;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-pagination__item a,
.lp-pagination__item span {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    display: inline-block;
    min-width: 2rem;
    padding: 0.35rem 0.6rem;
    text-align: center;
    text-decoration: none;
}

.lp-pagination__item a:hover,
.lp-pagination__item a:focus {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}

.lp-pagination__item.is-current span {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: #fff;
}

.lp-pagination__item--nav a,
.lp-pagination__item--nav span {
    font-weight: 600;
}

.lp-pagination__item--nav.is-disabled span {
    color: var(--lp-border);
    cursor: not-allowed;
}

.lp-pagination__item--ellipsis span {
    border: none;
    color: var(--lp-border);
    min-width: 1.5rem;
    padding: 0.35rem 0.2rem;
}

/* =========================================================
   Sidebar & widgets
   ========================================================= */

.lp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lp-widget {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 1.25rem;
}

.lp-widget__title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    margin-top: 0;
}

.lp-widget__content {
    color: var(--lp-text-muted);
    font-size: 0.95rem;
}

/* The optional Welcome Message, either below the header (a
   full-width band) or inside .lp-sidebar (styled like a .lp-widget so it
   reads as part of that same list rather than a mismatched extra box). */
.lp-welcome-message {
    color: var(--lp-text);
    margin: 0 auto;
    max-width: var(--lp-max-width);
    padding: 1.25rem 1.5rem;
}

.lp-sidebar .lp-welcome-message {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    margin: 0;
    max-width: none;
    padding: 1.25rem;
}

/*
 * Text/HTML widget WYSIWYG output, plus the Custom HTML widget's
 * hand-authored markup — both render into this same .lp-widget__content
 * wrapper, so both benefit from real typography for the tag set
 * HtmlSanitizer allows rather than unstyled browser defaults. A compact
 * echo of .lp-post__content's own rules above, scaled down for a sidebar
 * widget rather than full post/page content.
 */
.lp-widget__content :is(h1, h2, h3, h4, h5, h6) {
    color: var(--lp-text);
    line-height: 1.3;
    margin: 1em 0 0.4em;
}

.lp-widget__content :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.lp-widget__content p {
    margin: 0 0 0.85em;
}

.lp-widget__content p:last-child {
    margin-bottom: 0;
}

.lp-widget__content a {
    color: var(--lp-accent);
}

.lp-widget__content a:hover {
    color: var(--lp-accent-hover);
}

.lp-widget__content :is(ul, ol) {
    margin: 0 0 0.85em;
    padding-left: 1.35em;
}

.lp-widget__content blockquote {
    border-left: 3px solid var(--lp-border);
    margin: 0 0 0.85em;
    padding: 0.2em 0.85em;
}

.lp-widget__content hr {
    border: none;
    border-top: 1px solid var(--lp-border);
    margin: 1.25em 0;
}

.lp-widget__content .has-text-align-left {
    text-align: left;
}

.lp-widget__content .has-text-align-center {
    text-align: center;
}

.lp-widget__content .has-text-align-right {
    text-align: right;
}

.lp-widget__content .has-text-align-justify {
    text-align: justify;
}

/* Core widgets: Pages, Categories, Recent Posts, Recent
   Comments, Archives, and the Navigation Menu widget all render a plain
   link list; Tag Cloud and Meta reuse the same list/count building
   blocks. */

.lp-widget__list {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-widget__count {
    color: var(--lp-text-muted);
    font-size: 0.85em;
}

/* Nested Pages/Categories widget output — a child page's or
   subcategory's own <ul> lives inside its parent's <li>, indented by
   padding rather than margin so the parent's own bottom border (if a
   theme adds one later) wouldn't get cut short by a child list sitting
   outside it. */

.lp-widget__list--nested {
    border-left: 1px solid var(--lp-border);
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.lp-widget__nav-menu {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-widget__tag-cloud {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lp-widget__tag-cloud-item {
    border-bottom: 1px solid transparent;
    color: var(--lp-text);
    text-decoration: none;
}

.lp-widget__tag-cloud-item:hover {
    border-bottom-color: currentColor;
}

/* Statistics widget: reuses .lp-widget__list/.lp-widget__count
   above, plus its own label styling for the "Posts / Pages / Comments /
   Users" rows. */

.lp-widget__stats {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lp-widget__stats li {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.lp-widget__stats-label {
    color: var(--lp-text);
}

/* Social Links widget: a row of icon links for a fixed set of
   platforms. lp_icon() renders nothing when the (optional) Font Awesome
   plugin isn't active, in which case the platform's name is shown as
   plain text instead — see .lp-visually-hidden below for when it is. */

.lp-widget__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lp-widget__social-link {
    align-items: center;
    border: 1px solid var(--lp-border);
    border-radius: 50%;
    color: var(--lp-text);
    display: inline-flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    height: 2.25rem;
    justify-content: center;
    text-decoration: none;
    width: 2.25rem;
}

.lp-widget__social-link:hover,
.lp-widget__social-link:focus {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}

/* No icon plugin active: fall back to a plain text link rather than a
   label crammed into a small icon-sized circle. */
.lp-widget__social-link--text {
    border-radius: var(--lp-radius);
    height: auto;
    padding: 0.35rem 0.75rem;
    width: auto;
}

/* Standard visually-hidden pattern (mirrors admin.css's own copy) — used
   by the Social Links widget so a platform without an icon (Font Awesome
   inactive) still reads its full name to screen readers, while a
   platform with an icon keeps that name available without showing it
   twice. */

.lp-visually-hidden {
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* =========================================================
   Buttons
   ========================================================= */

.lp-button {
    background: var(--lp-accent);
    border-radius: var(--lp-radius);
    color: #fff;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    padding: 0.55rem 1.1rem;
    text-decoration: none;
}

.lp-button:hover,
.lp-button:focus {
    background: var(--lp-accent-hover);
    color: #fff;
}

/* =========================================================
   Forms & alerts
   ========================================================= */

.lp-field {
    margin: 0 0 1rem;
}

.lp-field label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.lp-field input,
.lp-field textarea {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    color: var(--lp-text);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
    width: 100%;
}

.lp-field input:focus,
.lp-field textarea:focus {
    outline: 2px solid var(--lp-accent);
    outline-offset: 1px;
}

.lp-field__hint {
    color: var(--lp-text-muted);
    font-size: 0.8rem;
    font-weight: normal;
}

.lp-alert {
    border-radius: var(--lp-radius);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
}

.lp-alert--success {
    background: var(--lp-success-bg);
    border: 1px solid var(--lp-success-border);
    color: var(--lp-success-text);
}

.lp-alert--error {
    background: var(--lp-error-bg);
    border: 1px solid var(--lp-error-border);
    color: var(--lp-error-text);
}

/* =========================================================
   Comments
   ========================================================= */

.lp-comments {
    border-top: 1px solid var(--lp-border);
    margin-top: 3rem;
    max-width: 68ch;
    padding-top: 2rem;
}

.lp-comments__title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
}

.lp-comments__form-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.1rem;
}

.lp-comments__closed {
    color: var(--lp-text-muted);
    font-style: italic;
}

.lp-comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.lp-comment-list--replies {
    border-left: 2px solid var(--lp-border);
    margin: 1rem 0 0 1.5rem;
    padding-left: 1rem;
}

.lp-comment {
    margin-bottom: 1.5rem;
}

.lp-comment__avatar {
    border-radius: 50%;
    float: left;
    height: 48px;
    margin: 0 0.75rem 0.5rem 0;
    width: 48px;
}

.lp-comment__meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    gap: 0.75rem;
    margin: 0 0 0.35rem;
}

.lp-comment__author {
    font-weight: 700;
}

.lp-comment__author a {
    color: var(--lp-text);
    text-decoration: none;
}

.lp-comment__date {
    color: var(--lp-text-muted);
}

.lp-comment__content {
    overflow-wrap: break-word;
}

.lp-comment__reply {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.lp-comment__reply summary {
    color: var(--lp-accent);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
}

.lp-comment__reply .lp-comment-form {
    margin-top: 0.75rem;
}

.lp-comment-form {
    max-width: 60ch;
}

.lp-comment-form__honeypot {
    left: -9999px;
    position: absolute;
}

/* The reply chain's own margin/padding/avatar size compound at
   each nesting level (comment_list()'s own $maxDepth cap still applies
   here — 5 levels by default); on a narrow phone that eats most of the
   content column by the deepest allowed level, so both shrink here. */
@media (max-width: 480px) {
    .lp-comment-list--replies {
        margin-left: 0.75rem;
        padding-left: 0.5rem;
    }

    .lp-comment__avatar {
        height: 32px;
        margin: 0 0.5rem 0.35rem 0;
        width: 32px;
    }
}

.lp-comments__pagination {
    align-items: center;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    gap: 1rem;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.lp-comments__pagination-status {
    color: var(--lp-text-muted);
}

/* =========================================================
   Footer
   ========================================================= */

.lp-site-footer {
    background: var(--lp-bg-alt);
    border-top: 1px solid var(--lp-border);
    margin-top: 2rem;
}

.lp-site-footer__inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 auto;
    max-width: var(--lp-max-width);
    padding: 1.5rem;
    text-align: center;
}

/* Footer Widget Area: renders above the footer navigation/
   copyright row, only when at least one widget is assigned. Widgets
   themselves reuse .lp-widget/.lp-widget__* unchanged from the sidebar —
   only this wrapper (a wrapping row of cards instead of a single stacked
   column) is new. */
.lp-site-footer__widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: var(--lp-max-width);
    padding: 1.5rem 1.5rem 0;
    text-align: left;
}

.lp-site-footer__widgets .lp-widget {
    flex: 1 1 220px;
}

/* .lp-widget__title has no color of its own, so on the dark footer
   background it would otherwise inherit .lp-site-footer's light text
   color even though the widget card itself stays light. */
.lp-site-footer__widgets .lp-widget__title {
    color: var(--lp-text);
}

.lp-site-footer__powered-by {
    color: var(--lp-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.lp-site-footer__powered-by a {
    color: inherit;
}

/* Shown only when Settings > Privacy has a Privacy Policy Page
   configured — see footer.php's own privacy_policy_url() check. */
.lp-site-footer__privacy-link {
    color: var(--lp-accent);
    font-size: 0.85rem;
    text-decoration: none;
}

.lp-site-footer__privacy-link:hover,
.lp-site-footer__privacy-link:focus {
    color: var(--lp-accent-hover);
    text-decoration: underline;
}

/* Additional per-theme footer content, distinct from the
   fixed "Powered by Lumora Press" line above it
   (.lp-site-footer__powered-by). */
.lp-footer-html {
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    width: 100%;
}

/* =========================================================
   Media Viewer & Lightbox
   ========================================================= */

/*
 * .lp-gallery is a pure grouping marker for media-viewer.js — no visual
 * style needed. .lp-pswp-caption is the custom caption bar registered
 * into PhotoSwipe's own dark UI chrome, so it's styled to match that
 * chrome directly rather than this theme's light/dark tokens.
 */
.lp-pswp-caption {
    background: rgba(0, 0, 0, 0.5);
    bottom: 0;
    color: #fff;
    font-size: 0.9rem;
    left: 0;
    padding: 0.75rem 1rem;
    /*
     * Pure read-only text overlay — must never intercept clicks meant
     * for whatever PhotoSwipe control happens to sit at the same edge.
     * !important is required, not decorative: PhotoSwipe auto-applies
     * its own `pswp__hide-on-close` class to elements registered this
     * way, and that class's own CSS includes
     * `.pswp--ui-visible .pswp__hide-on-close { pointer-events: auto; }`
     * — two classes, higher specificity than this single-class
     * selector — which silently wins back pointer-events the moment the
     * lightbox finishes opening, exactly when a visitor tries to click.
     */
    pointer-events: none !important;
    position: absolute;
    right: 0;
    text-align: center;
}

/*
 * .lp-pswp-meta shows image dimensions and (when the "Show filenames in
 * lightbox" setting is on) the filename — stacked above .lp-pswp-caption
 * rather than merged into it, since a caption is author-written content
 * and this is file metadata.
 */
.lp-pswp-meta {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.8rem;
    left: 0;
    padding: 0.5rem 1rem;
    /*
     * Full-width overlay at the same edge as PhotoSwipe's own toolbar
     * (zoom/close/download/slideshow buttons) — without this, the bar
     * sits on top of those buttons and swallows clicks meant for them,
     * even though the buttons remain visually unobstructed (the bar has
     * no visible border/shadow to signal it's there). !important is
     * required, not decorative — see .lp-pswp-caption's identical note
     * above for why: PhotoSwipe's own
     * `.pswp--ui-visible .pswp__hide-on-close { pointer-events: auto; }`
     * (higher specificity) otherwise wins this back the moment the
     * lightbox finishes opening.
     */
    pointer-events: none !important;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
}

/* The slideshow toggle button gets a visual "playing" state so its icon's meaning is clear without relying on a title/tooltip alone. */
.lp-pswp-slideshow--playing {
    color: var(--lp-accent);
}

/* =========================================================
   Embeds
   ========================================================= */

/*
 * .lp-embed wraps every auto-embedded iframe (EmbedService::wrap()) —
 * max-width is the one admin-configurable, per-request value (Settings >
 * Embeds), set as an inline style at render time; everything else here is
 * static and themeable. .lp-embed__frame provides the responsive
 * container: video/code providers get a fixed aspect ratio so the iframe
 * scales with its column width without letterboxing; audio providers
 * (SoundCloud, Spotify) use a provider-typical fixed height instead,
 * since their own players are short and wide, not a video-shaped rectangle.
 */
.lp-embed {
    margin: 1.5em 0;
}

.lp-embed__frame {
    background: var(--lp-bg-alt);
    border-radius: var(--lp-radius);
    overflow: hidden;
    position: relative;
}

.lp-embed--youtube .lp-embed__frame,
.lp-embed--vimeo .lp-embed__frame,
.lp-embed--codepen .lp-embed__frame {
    aspect-ratio: 16 / 9;
}

.lp-embed--soundcloud .lp-embed__frame {
    height: 166px;
}

.lp-embed--spotify .lp-embed__frame {
    height: 352px;
}

.lp-embed__frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

/* =========================================================
   Downloads List
   ========================================================= */
/*
 * Rendered by the WordPress Importer plugin's DownloadsShortcode
 * in place of a migrated [sdm_show_dl_from_category]
 * shortcode — one list per Folder, mixing real Media Manager downloads
 * with external-link Redirects.
 */
.lp-downloads-list {
    background: var(--lp-bg-alt);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    margin: 1.5em 0;
    padding: 1em 1.25em;
}

.lp-downloads-list__title {
    font-size: 1.1em;
    margin: 0 0 0.75em;
}

.lp-downloads-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-downloads-list__item {
    border-top: 1px solid var(--lp-border);
    /* Contains a floated alignleft/alignright description image below
       so it doesn't bleed into the next item's border-top separator. */
    overflow: hidden;
    padding: 0.5em 0;
}

.lp-downloads-list__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.lp-downloads-list__link {
    font-weight: 600;
}

.lp-downloads-list__size {
    color: var(--lp-text-muted);
    font-size: 0.9em;
}

.lp-downloads-list__description {
    color: var(--lp-text-muted);
    font-size: 0.95em;
    margin-top: 0.25em;
}

.lp-downloads-list__description p {
    margin: 0 0 0.75em;
}

.lp-downloads-list__description p:last-child {
    margin-bottom: 0;
}

.lp-downloads-list__description img {
    height: auto;
    max-width: 100%;
}

.lp-downloads-list__description img.alignleft {
    float: left;
    margin: 0.25em 1.25em 1em 0;
}

.lp-downloads-list__description img.alignright {
    float: right;
    margin: 0.25em 0 1em 1.25em;
}

.lp-downloads-list__description img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Folder Gallery
   ========================================================= */
/*
 * Rendered by FolderGalleryShortcode for the [lumora_folder_gallery]
 * shortcode — inserted via the content editor's "Insert Folder" button
 * as a row of thumbnails for every image in a chosen Media folder.
 */
.lp-folder-gallery {
    margin: 1.5em 0;
}

.lp-folder-gallery__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-folder-gallery__item {
    display: block;
}

.lp-folder-gallery__link,
.lp-folder-gallery__thumb {
    display: block;
}

/*
 * "img.lp-folder-gallery__thumb", not just ".lp-folder-gallery__thumb"
 * — this shortcode's output usually lands inside .lp-post__content,
 * whose own "img { max-width: 100%; height: auto; }" rule (above) is
 * equally specific to a single-class selector and would otherwise win
 * on source order alone, collapsing the fixed thumbnail crop back to
 * each image's natural aspect ratio. Matching its own "class + element"
 * specificity tier is what makes source order (this rule comes later)
 * decide it instead — the same mechanism .lp-downloads-list__description
 * img's own alignment rules above already rely on.
 */
img.lp-folder-gallery__thumb {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    height: 150px;
    object-fit: cover;
    width: 150px;
}

/* =========================================================
   Media Player
   ========================================================= */
/*
 * Rendered by MediaPlayerShortcode for the [lumora_audio]/[lumora_video]
 * shortcodes — inserted via the content editor's "Insert Audio"/"Insert
 * Video" buttons. Plyr (loaded conditionally, see FooterAssets) replaces
 * each <audio>/<video>'s native controls with its own ".plyr" wrapper;
 * --plyr-color-main ties its accent color to this theme's own rather than
 * Plyr's default blue. Without JavaScript, or before Plyr loads, the
 * plain native controls on .lp-audio-player__audio/.lp-video-player__video
 * still work.
 */
.lp-audio-player,
.lp-video-player {
    margin: 1.5em 0;
}

.lp-audio-player .plyr,
.lp-video-player .plyr {
    --plyr-color-main: var(--lp-accent);
}

.lp-audio-player__audio {
    width: 100%;
}

.lp-video-player__video {
    border-radius: var(--lp-radius);
    display: block;
    height: auto;
    width: 100%;
}

.lp-audio-player__caption,
.lp-video-player__caption {
    color: var(--lp-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5em;
    text-align: center;
}

/* =========================================================
   Contact Forms
   ========================================================= */
/*
 * Rendered by the Contact Forms plugin's [contact_form] shortcode. Reuses
 * the shared .lp-field/.lp-alert/.lp-button classes above wherever they
 * already fit (field rows, success/error messages, the submit button) —
 * only what's genuinely new here (the form wrapper, the honeypot's
 * hiding technique, a checkbox-field layout, and the CAPTCHA widget's
 * spacing) gets its own class.
 */
.lp-contact-form {
    margin: 1.5em 0;
    max-width: 60ch;
}

/* Mirrors .lp-comment-form__honeypot's identical off-screen technique —
   a real visitor never sees or fills this field. */
.lp-contact-form__honeypot {
    left: -9999px;
    position: absolute;
}

.lp-contact-form__required {
    color: var(--lp-error-border);
}

.lp-contact-form__captcha {
    margin: 1em 0;
}

/* A checkbox field's label wraps the input (rather than the shared
   .lp-field label preceding it) so the checkbox and its text read as one
   clickable target. */
.lp-field--checkbox {
    align-items: center;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: normal;
    gap: 0.5em;
}

.lp-field--checkbox input[type="checkbox"] {
    width: auto;
}

.lp-button {
    background: var(--lp-ember);
    border: 1px solid var(--lp-ember);
    border-radius: 0;
    font-family: var(--lp-font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lp-button:hover,
.lp-button:focus {
    background: var(--lp-ember-bright);
    border-color: var(--lp-ember-bright);
}

.lp-field input[type="file"] {
    color: var(--lp-text-muted);
    font-size: 0.85rem;
    padding: 0.4rem;
}

.lp-field input[type="file"]::file-selector-button,
.lp-field input[type="file"]::-webkit-file-upload-button {
    background: transparent;
    border: 1px solid var(--lp-border);
    border-radius: 0;
    color: var(--lp-accent);
    cursor: pointer;
    font-family: var(--lp-font-body);
    font-size: 0.8rem;
    margin-right: 0.75rem;
    padding: 0.4rem 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.lp-field input[type="file"]::file-selector-button:hover,
.lp-field input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--lp-accent);
    color: #fff;
}

@media (max-width: 720px) {
    img.lp-folder-gallery__thumb {
        height: 100px;
        width: 100px;
    }
}

/* =========================================================
   Lumora Gallery Shortcodes
   ========================================================= */
/*
 * Rendered by the optional Lumora Gallery Shortcodes plugin's
 * [lumora_gallery_album]/[lumora_gallery_newest] shortcodes — a row of
 * thumbnails pulled from a separately-installed Lumora Gallery site,
 * plus a "View album"/"View gallery" link back to it. Deliberately
 * structured like .lp-folder-gallery/.lp-downloads-list above (same
 * item-grid + optional title shape) so it reads as part of the same
 * design system rather than a one-off.
 */
.lp-gallery-shortcode {
    margin: 1.5em 0;
}

.lp-gallery-shortcode__title {
    margin: 0 0 0.5em;
}

.lp-gallery-shortcode__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    list-style: none;
    margin: 0 0 0.75em;
    padding: 0;
}

.lp-gallery-shortcode__item {
    display: block;
}

.lp-gallery-shortcode__link,
.lp-gallery-shortcode__thumb {
    display: block;
}

/* "img.lp-gallery-shortcode__thumb" — see img.lp-folder-gallery__thumb's
   own comment above for why the element selector is needed to win
   against .lp-post__content img's lower-specificity max-width rule. */
img.lp-gallery-shortcode__thumb {
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    height: 150px;
    object-fit: cover;
    width: 150px;
}

.lp-gallery-shortcode__view-link {
    color: var(--lp-accent);
    display: inline-block;
    font-size: 0.9rem;
}

.lp-gallery-shortcode__view-link:hover {
    color: var(--lp-accent-hover);
}

@media (max-width: 720px) {
    img.lp-gallery-shortcode__thumb {
        height: 100px;
        width: 100px;
    }
}

/* =========================================================
   Structural redesign: a dark fan portal with a
   cinematic masthead, signal strip, centered reading rail, repeated
   media-led dispatches, and a compact council column. Its own color
   tokens live in the Tokens section at the top of this file.
   ========================================================= */

body.lp-site {
    background:
        linear-gradient(rgba(8, 11, 14, 0.55), rgba(8, 11, 14, 0.65)),
        url("resources/dragonquill-stone-background.jpg") center top / cover fixed no-repeat,
        radial-gradient(circle at 50% -12%, rgba(53, 77, 82, 0.24), transparent 31rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        var(--lp-bg);
    background-attachment: fixed, fixed, scroll, scroll, scroll, scroll;
    background-size: cover, cover, auto, 36px 36px, 36px 36px, auto;
}

body.lp-site::before {
    background-image:
        radial-gradient(rgba(235, 218, 174, 0.12) 0.6px, transparent 0.7px),
        radial-gradient(rgba(0, 0, 0, 0.45) 0.6px, transparent 0.7px);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    opacity: 0.18;
}

.lp-site-header {
    background: #06090c;
    border: 0;
    border-bottom: 1px solid rgba(212, 168, 95, 0.35);
    border-radius: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    margin: 0 auto;
    max-width: 1180px;
    overflow: hidden;
    position: relative;
}

.lp-site-header__utility {
    border-bottom: 1px solid rgba(238, 232, 218, 0.1);
    color: rgba(238, 232, 218, 0.54);
    display: flex;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    letter-spacing: 0.19em;
    line-height: 1.4;
    padding: 0.52rem 1.25rem;
    text-transform: uppercase;
}

.lp-site-header__utility-note {
    color: rgba(212, 168, 95, 0.82);
}

.lp-site-header__image-wrap {
    background: #0b1217;
    border-bottom: 1px solid rgba(238, 232, 218, 0.14);
    max-width: none;
}

.lp-site-header__image-wrap::before {
    background:
        linear-gradient(90deg, rgba(3, 7, 10, 0.26), transparent 22%, transparent 75%, rgba(3, 7, 10, 0.34)),
        linear-gradient(180deg, rgba(3, 6, 8, 0.02) 18%, rgba(3, 6, 8, 0.1) 55%, rgba(3, 6, 8, 0.72) 100%);
}

.lp-site-header__image-wrap::after {
    background: linear-gradient(110deg, transparent 0 46%, rgba(212, 168, 95, 0.11) 46.2%, transparent 46.7%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.lp-site-header__image {
    filter: saturate(0.95) contrast(1.05) brightness(0.94);
    height: clamp(230px, 30vw, 380px);
}

.lp-site-header__inner {
    background:
        linear-gradient(120deg, rgba(10, 16, 20, 0.99), rgba(17, 25, 30, 0.99)),
        #0b1115;
    border-top: 3px solid var(--lp-ember);
    display: grid;
    gap: 0.8rem 1.1rem;
    grid-template:
        "brand search toggle" auto
        "nav nav nav" auto / minmax(0, 1fr) auto auto;
    margin-top: 0;
    padding: 1rem 1.25rem 0.8rem;
}

.lp-site-header__brand {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.lp-site-header__brand-kicker {
    color: var(--lp-ember-bright);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
}

.lp-site-header__brand a {
    color: #f1eadc;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.2rem, 2.1vw, 1.75rem);
    gap: 0.55rem;
    letter-spacing: 0.11em;
}

.lp-site-header__brand a::before {
    background: var(--lp-ember);
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 4px rgba(164, 61, 53, 0.14);
    height: 0.48rem;
    margin-right: 0.2rem;
    width: 0.48rem;
}

.lp-site-header__tagline {
    color: rgba(238, 232, 218, 0.52);
    font-size: 0.65rem;
    letter-spacing: 0.17em;
    margin-left: 1.22rem;
}

.lp-site-header__nav {
    border-top: 1px solid rgba(238, 232, 218, 0.14);
    padding-top: 0.75rem;
}

.lp-nav-menu {
    gap: 0.2rem 1.35rem;
}

.lp-nav-menu__item a {
    color: rgba(238, 232, 218, 0.72);
    font-size: 0.66rem;
    letter-spacing: 0.19em;
}

.lp-nav-menu__item a::after {
    background: var(--lp-ember-bright);
    content: "";
    display: block;
    height: 1px;
    margin-top: 0.22rem;
    transition: width 160ms ease;
    width: 0;
}

.lp-nav-menu__item a:hover::after,
.lp-nav-menu__item a:focus::after {
    width: 100%;
}

.lp-search-form__input {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(238, 232, 218, 0.18);
    border-radius: 0;
    color: var(--lp-text);
    font-size: 0.78rem;
    min-height: 2rem;
    width: 10.5rem;
}

.lp-search-form__button {
    background: var(--lp-ember);
    border: 1px solid var(--lp-ember);
    border-radius: 0;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    min-height: 2rem;
    text-transform: uppercase;
}

.lp-theme-toggle {
    background: transparent;
    border-color: rgba(238, 232, 218, 0.2);
    border-radius: 0;
    min-height: 2rem;
}

.lp-site-header__signal {
    align-items: center;
    border-top: 1px solid rgba(212, 168, 95, 0.16);
    color: rgba(212, 168, 95, 0.78);
    display: flex;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.59rem;
    font-weight: 800;
    gap: 0.9rem;
    justify-content: center;
    letter-spacing: 0.24em;
    padding: 0.45rem 1rem;
    text-transform: uppercase;
}

.lp-site-header__signal span:nth-child(2) {
    color: var(--lp-ember-bright);
}

.lp-site-body {
    min-height: 66vh;
}

.lp-layout {
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1.72fr) minmax(235px, 0.72fr);
    max-width: var(--lp-max-width);
    padding: 2.5rem 1.25rem 4.5rem;
}

.lp-content--home .lp-main-header {
    border-bottom: 1px solid rgba(212, 168, 95, 0.25);
    margin: 0 0 1.6rem;
    padding: 0 0 1.25rem 1.15rem;
    position: relative;
}

.lp-content--home .lp-main-header::before {
    background: var(--lp-ember);
    bottom: 1.25rem;
    content: "";
    left: 0;
    position: absolute;
    top: 0.15rem;
    width: 3px;
}

.lp-eyebrow,
.lp-post-list__kicker {
    color: var(--lp-ember-bright);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* Distinguishes the "Filed in the chronicles" label from the
   category links that follow it, which stay the kicker's own
   ember-bright (inherited via .lp-post-list__kicker a below). */
.lp-post-list__kicker-label {
    color: var(--lp-accent);
}

.lp-eyebrow {
    margin-bottom: 0.52rem;
}

.lp-page-title {
    color: var(--lp-text);
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.08;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
}

.lp-main-header__intro {
    color: var(--lp-text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-top: 0.7rem;
    max-width: 53ch;
}

.lp-content--home .lp-post-list,
.lp-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.lp-content--home .lp-post-list__item,
.lp-post-list__item {
    background:
        linear-gradient(135deg, rgba(17, 24, 29, 0.98), rgba(10, 15, 18, 0.98)),
        var(--lp-bg-alt);
    border: 1px solid rgba(222, 190, 122, 0.19);
    border-left: 3px solid rgba(164, 61, 53, 0.76);
    border-radius: 0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
    display: block;
    overflow: hidden;
}

.lp-content--home .lp-post-list__item:first-child,
.lp-content--home .lp-post-list__item.lp-post-list__item--featured {
    background:
        linear-gradient(145deg, rgba(22, 29, 34, 0.98), rgba(10, 14, 17, 0.98)),
        var(--lp-bg-alt);
    border-color: rgba(212, 168, 95, 0.42);
    border-left: 3px solid var(--lp-ember-bright);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
    display: block;
}

.lp-post-list__thumbnail,
.lp-content--home .lp-post-list__item:first-child .lp-post-list__thumbnail,
.lp-content--home .lp-post-list__item.lp-post-list__item--featured .lp-post-list__thumbnail {
    background: #05080a;
    border-bottom: 1px solid rgba(212, 168, 95, 0.18);
    min-height: 0;
}

.lp-post-list__thumbnail img,
.lp-content--home .lp-post-list__item:first-child .lp-post-list__thumbnail img,
.lp-content--home .lp-post-list__item.lp-post-list__item--featured .lp-post-list__thumbnail img {
    border-radius: 0;
    display: block;
    filter: saturate(0.74) contrast(1.08) brightness(0.86);
    height: clamp(190px, 28vw, 320px);
    min-height: 0;
    object-fit: cover;
    width: 100%;
}

/* Single post/page featured image — same desaturated dark-portal
   treatment as the listing thumbnails above, plus a border and drop
   shadow since it sits directly on the page background rather than
   inside a card. */
.lp-post__thumbnail img {
    border: 1px solid rgba(212, 168, 95, 0.18);
    border-radius: 0;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
    filter: saturate(0.74) contrast(1.08) brightness(0.86);
}

.lp-post__thumbnail--hero img {
    border-left: none;
    border-radius: 0;
    filter: saturate(0.77) contrast(1.1) brightness(0.84);
}

.lp-post-list__body,
.lp-content--home .lp-post-list__item:first-child .lp-post-list__body {
    background: transparent;
    color: var(--lp-text);
    display: block;
    padding: 1.25rem 1.45rem 1.35rem;
}

.lp-post-list__kicker {
    margin: 0 0 0.45rem;
}

.lp-post-list__title,
.lp-content--home .lp-post-list__item:first-child .lp-post-list__title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.1;
    margin: 0;
}

.lp-content--home .lp-post-list__item:first-child .lp-post-list__title {
    font-size: clamp(1.65rem, 3.3vw, 2.6rem);
}

.lp-post-list__title a,
.lp-content--home .lp-post-list__item:first-child .lp-post-list__title a {
    color: var(--lp-text);
}

.lp-post-list__title a:hover,
.lp-post-list__title a:focus {
    color: var(--lp-ice);
}

.lp-post-list__meta,
.lp-post__meta {
    color: rgba(238, 232, 218, 0.56);
    font-size: 0.69rem;
    letter-spacing: 0.07em;
    line-height: 1.5;
    margin: 0.68rem 0 0;
    text-transform: uppercase;
}

.lp-post__meta {
    margin-bottom: 2rem;
}

.lp-post-list__excerpt,
.lp-post-list__content {
    color: var(--lp-text-muted);
    font-size: 1.03rem;
    line-height: 1.52;
    margin-top: 0.85rem;
    max-width: 70ch;
}

.lp-post-list__content :is(p, ul, ol) {
    margin-top: 0;
}

.lp-post-list__content img {
    border: 1px solid rgba(212, 168, 95, 0.18);
    filter: saturate(0.8) contrast(1.05);
}

.lp-post-list__footer {
    align-items: center;
    border-top: 1px solid rgba(238, 232, 218, 0.12);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
}

.lp-post-list__more {
    color: var(--lp-accent);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    margin-top: 0;
}

.lp-post-list__sigil {
    color: var(--lp-ember-bright);
    font-size: 0.9rem;
}

.lp-sidebar {
    gap: 1rem;
    position: sticky;
    top: 1.5rem;
}

.lp-sidebar__label {
    border-bottom: 1px solid rgba(212, 168, 95, 0.2);
    border-top: 2px solid var(--lp-ember);
    color: var(--lp-paper);
    font-family: "Arima", Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    margin: 0;
    padding: 0.7rem 0.8rem;
    text-transform: uppercase;
}

.lp-widget,
.lp-sidebar .lp-welcome-message {
    background: rgba(14, 20, 24, 0.92);
    border: 1px solid rgba(222, 190, 122, 0.17);
    border-radius: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.lp-widget__title {
    border-bottom: 1px solid rgba(212, 168, 95, 0.18);
    border-left: 3px solid var(--lp-ember);
    color: var(--lp-accent);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin: -1rem -1rem 0.9rem;
    padding: 0.55rem 0.75rem;
    text-transform: uppercase;
}

.lp-widget__content,
.lp-widget__list,
.lp-widget__nav-menu {
    color: var(--lp-text-muted);
    font-size: 0.88rem;
}

.lp-widget__list {
    gap: 0;
}

.lp-widget__list li {
    border-bottom: 1px solid rgba(238, 232, 218, 0.1);
    padding: 0.6rem 0;
}

.lp-widget__list li:last-child {
    border-bottom: 0;
}

.lp-widget__list a,
.lp-widget__nav-menu a {
    color: var(--lp-text);
    text-decoration: none;
}

.lp-widget__list a:hover,
.lp-widget__nav-menu a:hover {
    color: var(--lp-accent-hover);
}

.lp-post,
.lp-page {
    background: rgba(15, 21, 25, 0.95);
    border: 1px solid rgba(222, 190, 122, 0.21);
    border-left: 3px solid var(--lp-ember);
    border-radius: 0;
    box-shadow: var(--lp-surface-shadow);
    max-width: none;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.lp-post__title {
    color: var(--lp-text);
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.035em;
}

.lp-post__content {
    color: #d9d3c7;
}

.lp-post__content a {
    color: var(--lp-accent);
}

.lp-pagination__list {
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.lp-pagination__item a,
.lp-pagination__item span {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(238, 232, 218, 0.18);
    color: var(--lp-text-muted);
    font-size: 0.8rem;
}

.lp-pagination__item a:hover,
.lp-pagination__item a:focus {
    border-color: var(--lp-ember-bright);
    color: var(--lp-ember-bright);
}

.lp-pagination__item.is-current span {
    background: var(--lp-ember);
    border-color: var(--lp-ember);
    color: #fff;
}

.lp-site-footer {
    background: #06090c;
    border-top: 2px solid var(--lp-ember);
    margin-top: 0;
}

.lp-site-footer__inner {
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
}

.lp-site-footer__nav {
    border-bottom-color: rgba(212, 168, 95, 0.2);
}

.lp-site-footer__powered-by,
.lp-site-footer__powered-by a,
.lp-site-footer__inner {
    color: rgba(238, 232, 218, 0.52);
}

@media (max-width: 720px) {
    .lp-site-header__utility {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.18rem;
        padding: 0.5rem 0.9rem;
    }

    .lp-site-header__utility-note {
        font-size: 0.56rem;
    }

    .lp-site-header__image {
        height: 220px;
    }

    .lp-site-header__inner {
        grid-template:
            "brand brand" auto
            "search toggle" auto
            "nav nav" auto / minmax(0, 1fr) auto;
        padding: 0.95rem 0.9rem 0.75rem;
    }

    .lp-site-header__brand a {
        font-size: 1.18rem;
    }

    .lp-search-form__input {
        width: min(12rem, 62vw);
    }

    .lp-site-header__signal {
        font-size: 0.52rem;
        gap: 0.55rem;
        letter-spacing: 0.15em;
    }

    .lp-layout {
        grid-template-columns: 1fr;
        padding: 1.7rem 0.9rem 3rem;
    }

    .lp-sidebar {
        position: static;
    }

    .lp-post-list__thumbnail img {
        height: 195px;
    }

    .lp-post-list__body,
    .lp-content--home .lp-post-list__item:first-child .lp-post-list__body {
        padding: 1.1rem 1rem 1.15rem;
    }
}

/* Full-bleed masthead: the sample keeps its banner edge-to-edge while the
   reading rail below remains centered and narrower. */
html,
body.lp-site {
    overflow-x: hidden;
    width: 100%;
}

.lp-site-header {
    border-left: 0;
    border-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

.lp-site-header__utility,
.lp-site-header__image-wrap,
.lp-site-header__inner,
.lp-site-header__signal {
    max-width: none;
    width: 100%;
}

.lp-site-header__image-wrap {
    margin: 0;
}

.lp-site-header__image {
    height: 500px;
    width: 100%;
}

@media (max-width: 720px) {
    .lp-site-header__image {
        height: 320px;
    }
}

/* Arima is reserved for readable editorial copy; display typography keeps
   the Cinzel/Source Sans hierarchy used by the Chronicle masthead. */
.lp-post__content,
.lp-post-list__content,
.lp-post-list__excerpt {
    font-family: "Arima", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}
