/* ═══════════════════════════════════════════════════════════════════════════
   Lyndsie Clark — Base layer
   Element defaults, Bootstrap retheme and the site's own components.
   Consumes lc-tokens.css only; no literal colours live here.

   Load order matters: lc-tokens.css, then Bootstrap, then this file, then
   lc-motion.css. Bootstrap in the middle so the bridge variables reach it and
   the overrides below still win on equal specificity.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Elements ────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
/* Someone who has asked their system for less motion gets no smooth scrolling
   either — jump-to-anchor is the behaviour they asked for. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background-color: var(--lc-bg);
    color: var(--lc-text);
    font-family: var(--lc-font-body);
    font-weight: var(--lc-weight-body);
    font-size: var(--lc-text-base);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;   /* hero and reveal transforms can overhang briefly */
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--lc-heading);
    font-weight: var(--lc-weight-heading);
    line-height: 1.22;
    letter-spacing: var(--lc-track-display);
}
/* h1 is Montserrat; h2–h6 are Montserrat Alternates, which is how the live
   site's type is set and the reason its sub-headings read warmer than its
   page titles. */
h1, .h1 { font-family: var(--lc-font-display); font-size: var(--lc-text-2xl); }
h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { font-family: var(--lc-font-subhead); }
h2, .h2 { font-size: var(--lc-text-xl); }
h3, .h3 { font-size: var(--lc-text-lg); }
h4, .h4 { font-size: var(--lc-text-md); }
h5, .h5, h6, .h6 { font-size: var(--lc-text-base); }

a { color: var(--lc-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--lc-link-hover); }

small, .small, figcaption, .lc-meta { font-weight: var(--lc-weight-body-sm); }

::selection { background: var(--lc-tint-signal-hover); color: var(--lc-text); }

:focus-visible {
    outline: var(--bs-focus-ring-width) solid var(--bs-focus-ring-color);
    outline-offset: 2px;
    border-radius: var(--lc-radius-sm);
}

hr { border-color: var(--lc-border); opacity: 1; }

blockquote, .blockquote {
    border-left: 3px solid var(--lc-work);
    padding: var(--lc-space-2) 0 var(--lc-space-2) var(--lc-space-5);
    margin: var(--lc-space-6) 0;
    color: var(--lc-text-secondary);
    font-size: var(--lc-text-md);
    font-style: italic;
}

code, kbd, samp { font-family: var(--lc-font-mono); font-size: 0.9em; color: var(--lc-cyan); }
pre { background: var(--lc-bg-sunken); border: 1px solid var(--lc-border); border-radius: var(--lc-radius); padding: var(--lc-space-4); overflow-x: auto; }

img { max-width: 100%; height: auto; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
/* Inline padding is 1.5rem, matching the half-gutter of a .row.g-5. A Bootstrap
   row out-dents by half its gutter, so a container padded less than that lets
   the widest row push past the viewport — which is where the footer's 8px of
   horizontal scroll on a phone came from. */
.lc-container      { width: 100%; max-width: var(--lc-container); margin-inline: auto; padding-inline: var(--lc-space-5); }
.lc-container-wide { width: 100%; max-width: var(--lc-container-wide); margin-inline: auto; padding-inline: var(--lc-space-5); }
.lc-section        { padding-block: var(--lc-space-8); }
.lc-section-tight  { padding-block: var(--lc-space-6); }
.lc-prose          { max-width: var(--lc-measure); }

/* The eyebrow above a section heading — small, spaced, magenta. The one place
   full-strength magenta appears as text, and only ever at label size in caps,
   where the 3.9:1 contrast is permitted for non-body text. */
.lc-eyebrow {
    display: block;
    font-family: var(--lc-font-body);
    font-size: var(--lc-text-xs);
    font-weight: 600;
    letter-spacing: var(--lc-track-eyebrow);
    text-transform: uppercase;
    color: var(--lc-work);
    margin-bottom: var(--lc-space-2);
}

/* A short rule under a heading, in the accent. */
.lc-rule { width: 64px; height: 2px; border: 0; background: linear-gradient(90deg, var(--lc-work), transparent); opacity: 0.95; margin: var(--lc-space-4) 0; }
.lc-rule-center { margin-inline: auto; }

/* ── Header / navigation ─────────────────────────────────────────────────── */
.lc-header {
    position: sticky;
    top: 0;
    z-index: var(--lc-z-header);
    background: color-mix(in srgb, var(--lc-bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background var(--lc-dur) var(--lc-ease),
                border-color var(--lc-dur) var(--lc-ease),
                box-shadow var(--lc-dur) var(--lc-ease);
}
/* .is-stuck is added by site.js once the page has scrolled past the hero: the
   bar gains a hairline and a shadow so it separates from the content under it,
   and stays transparent at the top where it sits over the hero image. */
.lc-header.is-stuck {
    background: color-mix(in srgb, var(--lc-bg) 94%, transparent);
    border-bottom-color: var(--lc-border);
    box-shadow: var(--lc-shadow);
}

.lc-brand { display: inline-flex; align-items: center; gap: var(--lc-space-3); text-decoration: none; }
.lc-brand-name {
    font-family: var(--lc-font-display);
    font-size: var(--lc-text-lg);
    font-weight: 600;
    color: var(--lc-chrome);
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.lc-brand-tagline {
    display: block;
    font-size: var(--lc-text-2xs);
    letter-spacing: var(--lc-track-eyebrow);
    text-transform: uppercase;
    color: var(--lc-text-muted);
    font-weight: var(--lc-weight-body-sm);
}

.lc-nav .nav-link {
    color: var(--lc-chrome);
    font-family: var(--lc-font-display);
    font-size: var(--lc-text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-inline: var(--lc-space-3);
    position: relative;
}
/* The underline grows from the centre on hover and stays put on the current
   page. transform rather than width so it runs on the compositor. */
.lc-nav .nav-link::after {
    content: "";
    position: absolute;
    left: var(--lc-space-3);
    right: var(--lc-space-3);
    bottom: 0.35rem;
    height: 1.5px;
    background: linear-gradient(90deg, var(--lc-cyan), var(--lc-work));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--lc-dur) var(--lc-ease-out);
}
.lc-nav .nav-link:hover::after,
.lc-nav .nav-link:focus-visible::after,
.lc-nav .nav-link.active::after { transform: scaleX(1); }
.lc-nav .nav-link:hover, .lc-nav .nav-link.active { color: var(--lc-chrome-strong); }

.lc-nav .dropdown-menu {
    background: var(--lc-surface-overlay);
    border: 1px solid var(--lc-border);
    border-top: 2px solid var(--lc-work);
    border-radius: var(--lc-radius);
    box-shadow: var(--lc-shadow-lg);
    padding: var(--lc-space-2);
}
.lc-nav .dropdown-item { color: var(--lc-text-secondary); border-radius: var(--lc-radius-sm); padding: var(--lc-space-2) var(--lc-space-3); }
.lc-nav .dropdown-item:hover, .lc-nav .dropdown-item:focus { background: var(--lc-tint-hover); color: var(--lc-chrome-strong); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
/* The site's signature: a photograph under a dark wash with the headline on it.
   The image is a child <img> rather than a background so it can be responsive
   (srcset) and lazy rules still apply, and so the builder can swap it. */
.lc-hero { position: relative; display: grid; isolation: isolate; overflow: clip; background: var(--lc-hero-bg); }
.lc-hero > .lc-hero-media { grid-area: 1 / 1; position: relative; }
.lc-hero > .lc-hero-body  { grid-area: 1 / 1; position: relative; z-index: 2; align-self: center; width: 100%; }

/* Absolute, so the photograph does not size the hero. In the grid flow an image
   contributes its own aspect to the row height, which made a portrait cover
   photo on a blog post render a hero three screens tall while min-height sat
   there doing nothing. Out of flow, the modifier's min-height governs and the
   image fills whatever that is. */
.lc-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lc-hero-media::after { content: ""; position: absolute; inset: 0; background: var(--lc-hero-scrim); }
.lc-hero-sm  { min-height: 42vh; }
.lc-hero-md  { min-height: 62vh; }
.lc-hero-lg  { min-height: 86vh; }

/* Heroes are dark in both themes, so their type is fixed light rather than
   following the theme — otherwise the light theme would put violet text on a
   dark photograph. */
.lc-hero-body, .lc-hero-body p { color: #fff; }
.lc-hero-title {
    font-family: var(--lc-font-display);
    font-size: var(--lc-text-display);
    font-weight: 600;
    color: var(--lc-lavender);
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(11, 7, 18, 0.6);
}
.lc-hero-sub {
    font-family: var(--lc-font-subhead);
    font-size: var(--lc-text-md);
    font-weight: 400;
    color: var(--lc-lavender-light);
    font-style: italic;
    max-width: 44ch;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--lc-font-display);
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--lc-radius-pill);
    padding: 0.62rem 1.5rem;
    transition: transform var(--lc-dur-fast) var(--lc-ease),
                box-shadow var(--lc-dur) var(--lc-ease),
                background-color var(--lc-dur) var(--lc-ease),
                border-color var(--lc-dur) var(--lc-ease),
                color var(--lc-dur) var(--lc-ease);
}
.btn:active { transform: translateY(1px); }

.btn-lc-primary {
    background: var(--lc-work);
    border: 1px solid transparent;
    color: var(--lc-work-ink);
}
.btn-lc-primary:hover, .btn-lc-primary:focus-visible {
    background: var(--lc-signal-hover);
    color: var(--lc-work-ink);
    box-shadow: var(--lc-shadow-signal);
    transform: translateY(-2px);
}

.btn-lc-outline {
    background: transparent;
    border: 1px solid var(--lc-border-strong);
    color: var(--lc-chrome);
}
.btn-lc-outline:hover, .btn-lc-outline:focus-visible {
    border-color: var(--lc-cyan);
    color: var(--lc-cyan-bright);
    background: var(--lc-tint);
    transform: translateY(-2px);
}

.btn-lc-ghost { background: transparent; border: 0; color: var(--lc-text-secondary); }
.btn-lc-ghost:hover { color: var(--lc-cyan); background: var(--lc-tint); }

/* Same reason the hero's type is fixed light: a hero is dark in both themes, so
   a button that takes its colour from the theme turns deep violet on near-black
   the moment the light theme is on — about 1.5:1, which is no button at all. */
.lc-hero-body .btn-lc-outline,
.lc-hero-body .btn-lc-ghost {
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}
.lc-hero-body .btn-lc-outline:hover,
.lc-hero-body .btn-lc-outline:focus-visible,
.lc-hero-body .btn-lc-ghost:hover,
.lc-hero-body .btn-lc-ghost:focus-visible {
    border-color: var(--lc-cyan);
    color: var(--lc-cyan-bright);
    background: rgba(255, 255, 255, 0.09);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.lc-card {
    background: var(--lc-surface);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--lc-dur) var(--lc-ease-out),
                box-shadow var(--lc-dur) var(--lc-ease-out),
                border-color var(--lc-dur) var(--lc-ease-out);
}
.lc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lc-shadow-lg);
    border-color: var(--lc-border-strong);
}
.lc-card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--lc-bg-sunken); }
.lc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--lc-dur-slow) var(--lc-ease-out); }
.lc-card:hover .lc-card-media img { transform: scale(1.06); }
.lc-card-body { padding: var(--lc-space-5); display: flex; flex-direction: column; gap: var(--lc-space-2); flex: 1; }
.lc-card-title { font-family: var(--lc-font-subhead); font-size: var(--lc-text-lg); color: var(--lc-heading); margin: 0; }
.lc-card-title a { color: inherit; text-decoration: none; }
.lc-card-title a:hover { color: var(--lc-cyan); }
.lc-card-excerpt { color: var(--lc-text-secondary); font-size: var(--lc-text-sm); margin: 0; }

/* Book covers are portrait and must never be cropped — the whole point of a
   cover is that it is seen whole. */
.lc-cover { aspect-ratio: 2 / 3; }
.lc-cover img { object-fit: contain; }

.lc-meta {
    font-size: var(--lc-text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lc-text-muted);
}

.lc-chip {
    display: inline-block;
    font-size: var(--lc-text-2xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: var(--lc-radius-pill);
    background: var(--lc-tint-strong);
    color: var(--lc-text-secondary);
    border: 1px solid var(--lc-border);
    text-decoration: none;
}
a.lc-chip:hover { background: var(--lc-tint-signal-hover); color: var(--lc-text); border-color: var(--lc-border-signal); }

/* ── Prose (blog bodies, imported WordPress content, builder rich text) ───── */
.lc-prose-body { font-size: var(--lc-text-md); line-height: 1.85; color: var(--lc-text); }
.lc-prose-body > * + * { margin-top: var(--lc-space-4); }
.lc-prose-body h2 { margin-top: var(--lc-space-7); font-size: var(--lc-text-xl); }
.lc-prose-body h3 { margin-top: var(--lc-space-6); }
.lc-prose-body img, .lc-prose-body figure { border-radius: var(--lc-radius); }
/* Imported bodies carry width/height attributes from WordPress's own layout. */
.lc-prose-body img { max-width: 100%; height: auto; }
.lc-prose-body iframe { border: 0; }
.lc-prose-body figure { margin-block: var(--lc-space-6); }
.lc-prose-body figcaption { font-size: var(--lc-text-sm); color: var(--lc-text-muted); text-align: center; margin-top: var(--lc-space-2); }
.lc-prose-body ul, .lc-prose-body ol { padding-left: var(--lc-space-5); }
.lc-prose-body li + li { margin-top: var(--lc-space-2); }
.lc-prose-body a { text-decoration: underline; }
.lc-prose-body table { width: 100%; border-collapse: collapse; }
.lc-prose-body th, .lc-prose-body td { border: 1px solid var(--lc-border); padding: var(--lc-space-2) var(--lc-space-3); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-control, .form-select {
    background: var(--lc-bg-sunken);
    border: 1px solid var(--lc-border);
    color: var(--lc-text);
    border-radius: var(--lc-radius);
    padding: 0.62rem 0.9rem;
    transition: border-color var(--lc-dur) var(--lc-ease), box-shadow var(--lc-dur) var(--lc-ease);
}
.form-control:focus, .form-select:focus {
    background: var(--lc-bg-sunken);
    color: var(--lc-text);
    border-color: var(--lc-cyan);
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}
.form-control::placeholder { color: var(--lc-text-muted); }
.form-label { font-size: var(--lc-text-sm); font-weight: 500; color: var(--lc-text-secondary); margin-bottom: var(--lc-space-1); }
.form-text { color: var(--lc-text-muted); font-size: var(--lc-text-xs); }

/* ── Newsletter panel ────────────────────────────────────────────────────── */
.lc-newsletter {
    background:
        radial-gradient(120% 140% at 0% 0%, var(--lc-tint-signal) 0%, transparent 55%),
        var(--lc-surface);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-xl);
    padding: var(--lc-space-7);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lc-footer { background: var(--lc-bg-sunken); border-top: 1px solid var(--lc-border); padding-block: var(--lc-space-7) var(--lc-space-5); margin-top: var(--lc-space-9); }
.lc-footer a { color: var(--lc-text-secondary); text-decoration: none; }
.lc-footer a:hover { color: var(--lc-cyan); }
.lc-footer-bottom { background: var(--lc-tint-strong); margin-top: var(--lc-space-5); padding-block: var(--lc-space-3); font-size: var(--lc-text-xs); color: var(--lc-text-secondary); }

.lc-social { display: flex; gap: var(--lc-space-2); }
.lc-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--lc-border);
    color: var(--lc-chrome);
    transition: transform var(--lc-dur) var(--lc-ease-spring), background var(--lc-dur) var(--lc-ease), border-color var(--lc-dur) var(--lc-ease), color var(--lc-dur) var(--lc-ease);
}
.lc-social a:hover { transform: translateY(-3px) scale(1.06); background: var(--lc-tint-signal-hover); border-color: var(--lc-border-signal); color: var(--lc-chrome-strong); }

/* ── Skip link ───────────────────────────────────────────────────────────── */
.lc-skip {
    position: absolute; left: var(--lc-space-3); top: -4rem;
    z-index: calc(var(--lc-z-header) + 1);
    background: var(--lc-surface-overlay); color: var(--lc-text);
    padding: var(--lc-space-2) var(--lc-space-4); border-radius: var(--lc-radius);
    border: 1px solid var(--lc-border-strong);
    transition: top var(--lc-dur) var(--lc-ease-out);
}
.lc-skip:focus { top: var(--lc-space-3); }

/* Observed by site.js to decide when the header leaves the top of the page.
   One pixel tall and inert — a scroll listener would do the same job on every
   frame instead of only when it crosses. */
.lc-header-sentinel { position: absolute; top: 0; height: 1px; width: 100%; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   READING — the blog archive, a post, and the paths through them
   A post is the longest thing on this site and the only place a reader stays
   for ten minutes, so it gets a narrower measure, a larger body size and more
   leading than the rest of the pages.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pairs with a preceding .lc-section so a heading block and the grid below it
   read as one band rather than two. */
.lc-section-top-tight { padding-block-start: 0; }

/* The faint full-width rule, for separating a post from what follows it.
   Distinct from .lc-rule, which is a short accent mark under a heading. */
.lc-rule-faint {
    width: 100%;
    height: 1px;
    border: 0;
    background: var(--lc-border);
    margin-block: var(--lc-space-6);
    opacity: 1;
}

/* The article is a centred column inside the container, not a full-width block:
   a 68ch measure pinned to the left of a 1140px container reads as a mistake. */
.lc-article-head,
.lc-article-foot,
.lc-prose-wide { max-width: var(--lc-measure); margin-inline: auto; }
.lc-article-head { margin-block: var(--lc-space-7) var(--lc-space-6); }
.lc-article-foot { margin-top: var(--lc-space-7); }

/* Imported WordPress bodies carry full-width images and galleries that look
   cramped at the measure, so figures bleed symmetrically past the column — but
   only by as much as the viewport can spare, and never out of the container. */
.lc-prose-wide { --lc-bleed: 0rem; }
@media (min-width: 992px) {
    .lc-prose-wide { --lc-bleed: clamp(0rem, 5vw, 6rem); }
}
.lc-prose-wide > figure,
.lc-prose-wide > .wp-block-gallery,
.lc-prose-wide > .wp-block-image,
.lc-prose-wide > figure > img,
.lc-prose-wide > p > img {
    width: calc(100% + (2 * var(--lc-bleed)));
    max-width: calc(100% + (2 * var(--lc-bleed)));
    margin-inline: calc(-1 * var(--lc-bleed));
    height: auto;
}

/* A post's cover is artwork, not a banner photograph: shorter than the home
   hero so the first paragraph is on screen without scrolling. */
.lc-hero-post { min-height: 52vh; }
.lc-hero-title-sm { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 30ch; }

/* The reading-progress line is meaningful on a long document and meaningless
   everywhere else, so it appears only on a page that declares one. Done in CSS
   rather than by adding a class in script, so it is correct on the first frame. */
.lc-ember-line { opacity: 0; transition: opacity var(--lc-dur) var(--lc-ease); }
body:has([data-lc-progress]) .lc-ember-line { opacity: 1; }

/* ── Category chips with a count ─────────────────────────────────────────── */
/* The number is the information — which of 22 categories are actually worth
   opening — so it is set apart rather than run together with the name. */
.lc-chip-count {
    display: inline-block;
    margin-left: 0.4rem;
    padding-left: 0.4rem;
    border-left: 1px solid var(--lc-border);
    color: var(--lc-text-muted);
    font-variant-numeric: tabular-nums;
}
a.lc-chip:hover .lc-chip-count { color: var(--lc-work); border-left-color: var(--lc-work); }

/* ── Pager ──────────────────────────────────────────────────────────────── */
.lc-pager {
    display: flex;
    align-items: center;
    gap: var(--lc-space-4);
    margin-top: var(--lc-space-8);
    padding-top: var(--lc-space-5);
    border-top: 1px solid var(--lc-border);
}
.lc-pager-pages {
    display: flex;
    gap: var(--lc-space-2);
    list-style: none;
    margin: 0 auto;
    padding: 0;
    font-variant-numeric: tabular-nums;
}
.lc-pager-pages a,
.lc-pager-pages span {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--lc-radius);
    text-decoration: none;
    color: var(--lc-text-secondary);
}
.lc-pager-pages a:hover { background: var(--lc-tint-strong); color: var(--lc-text); }
.lc-pager-pages [aria-current="page"] {
    background: var(--lc-work);
    color: var(--lc-work-ink);
    font-weight: 600;
}
.lc-pager-step {
    font-family: var(--lc-font-body);
    font-size: var(--lc-text-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--lc-work);
}
.lc-pager-step:hover { text-decoration: underline; }
.lc-pager-step.is-disabled { color: var(--lc-text-muted); }

/* ── Draft preview bar ──────────────────────────────────────────────────── */
/* Deliberately loud. Someone looking at a draft must never mistake it for the
   live page, because the next thing they do is tell somebody it is published. */
.lc-preview-bar {
    background: var(--lc-ember-deep);
    color: #fff;
    font-size: var(--lc-text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding-block: var(--lc-space-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOK PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* The large cover. .lc-cover already contains the image inside a 2/3 frame
   without cropping; this only lifts it off the page and gives it the book's own
   colour, which is the point of sampling an accent per book. */
.lc-cover-xl {
    max-width: 28rem;
    box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.7),
                0 0 0 1px var(--lc-border),
                0 12px 48px -12px color-mix(in srgb, var(--lc-work) 42%, transparent);
}

/* Publication facts. A definition list because that is what it is, laid out in
   rows so a missing fact leaves no gap. */
.lc-factlist {
    display: grid;
    gap: var(--lc-space-3);
    margin-block: var(--lc-space-6) 0;
    padding-top: var(--lc-space-4);
    border-top: 1px solid var(--lc-border);
}
.lc-factlist > div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--lc-space-3); }
.lc-factlist dt {
    font-family: var(--lc-font-body);
    font-size: var(--lc-text-xs);
    font-weight: 600;
    letter-spacing: var(--lc-track-eyebrow);
    text-transform: uppercase;
    color: var(--lc-text-muted);
    margin: 0;
}
.lc-factlist dd { margin: 0; color: var(--lc-text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS — notices, field errors, and the honeypot
   ═══════════════════════════════════════════════════════════════════════════ */

/* A result panel: subscription confirmed, message sent, something went wrong.
   Bordered on the leading edge in the accent so it reads as a response to what
   the reader just did, rather than as part of the page. */
.lc-notice {
    padding: var(--lc-space-4) var(--lc-space-5);
    border: 1px solid var(--lc-border);
    border-left: 3px solid var(--lc-work);
    border-radius: var(--lc-radius);
    background: var(--lc-tint);
}
.lc-notice:empty { display: none; }
.lc-notice p:last-child { margin-bottom: 0; }
.lc-notice-error { border-left-color: var(--lc-danger); }
.lc-notice ul { margin: 0; padding-left: var(--lc-space-5); }

/* Field-level messages. Named rather than Bootstrap's .invalid-feedback because
   that class only appears under .was-validated, and this validation is the
   server's. */
.form-error {
    display: block;
    margin-top: var(--lc-space-1);
    font-size: var(--lc-text-sm);
    color: var(--lc-danger);
}
.form-error:empty { display: none; }

/* The honeypot. Taken out of the layout and out of the accessibility tree
   without display:none, which some bots check for. A screen reader never reaches
   it because the wrapper is aria-hidden and the field is not tabbable. */
.lc-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUB-NAVIGATION
   The old site's two-level nav (Writing ▸ Short Stories) ports across as a
   panel rather than a Bootstrap dropdown, because every parent here is itself a
   real page — a dropdown toggle would take away the click that reaches it.
   ═══════════════════════════════════════════════════════════════════════════ */
.lc-nav .lc-subnav {
    list-style: none;
    margin: 0;
    padding: var(--lc-space-2);
}

/* Desktop: a hover/focus panel. Opened by :hover and :focus-within, so it is
   reachable by keyboard without any script — tabbing into a child opens it. */
@media (min-width: 992px) {
    .lc-nav .nav-item { position: relative; }
    .lc-nav .lc-subnav {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 15rem;
        background: var(--lc-surface-overlay);
        border: 1px solid var(--lc-border);
        border-top: 2px solid var(--lc-work);
        border-radius: var(--lc-radius);
        box-shadow: var(--lc-shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity var(--lc-dur) var(--lc-ease),
                    transform var(--lc-dur) var(--lc-ease-out),
                    visibility var(--lc-dur);
        z-index: 1;
    }
    .lc-nav .nav-item:hover > .lc-subnav,
    .lc-nav .nav-item:focus-within > .lc-subnav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    @media (prefers-reduced-motion: reduce) {
        .lc-nav .lc-subnav { transition: none; transform: none; }
    }
}

/* Mobile: always open, indented. A panel that needs a hover has no meaning on a
   touch screen, and the offcanvas has the room. */
@media (max-width: 991.98px) {
    .lc-nav .lc-subnav { padding-left: var(--lc-space-5); }
}

.lc-nav .lc-subnav a {
    display: block;
    padding: var(--lc-space-2) var(--lc-space-3);
    border-radius: var(--lc-radius-sm);
    color: var(--lc-text-secondary);
    font-size: var(--lc-text-sm);
    text-decoration: none;
}
.lc-nav .lc-subnav a:hover,
.lc-nav .lc-subnav a:focus-visible {
    background: var(--lc-tint-hover);
    color: var(--lc-chrome-strong);
}

/* A parent with children but no page of its own: a label, not a link. */
.lc-nav .nav-link.is-static { color: var(--lc-text-muted); cursor: default; }
.lc-nav .nav-link.is-static::after { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER REFINEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* The nameplate and the navigation have to share one row. Both wrap by default,
   and the tagline is long enough that at 1024px it took three lines and pushed
   the nav onto a second row. */
.lc-brand-name { white-space: nowrap; }
.lc-brand-tagline { white-space: nowrap; }
.lc-nav > .nav { flex-wrap: nowrap; }
.lc-nav .nav-link { white-space: nowrap; }

/* Below a wide desktop the tagline is the first thing to go: the name carries
   the identity, and the offcanvas below that width has the room for the rest. */
@media (max-width: 1199.98px) {
    .lc-brand-tagline { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO FRAMING — a stopgap, and marked as one
   The banner photograph has "Lyndsie Clark / Author. Artist. Rapier Fighter."
   burned into the left third of the frame, left over from the WordPress theme
   that used it as a title card. Two words of it collide with the headline.

   object-position alone cannot remove it: the image is 2.80:1 and the hero is
   about 1.85:1, so `cover` already shows 66% of the width and the type ends at
   37%. Anchoring the crop to the right and scaling up 1.2x narrows the window
   to 55% and starts it at 45% — past the type at every viewport this hero is
   used at. The real fix is a version of the photograph without the nameplate,
   at which point this block goes away.
   ═══════════════════════════════════════════════════════════════════════════ */
.lc-hero-lg .lc-hero-media img {
    object-position: 100% 40%;
    scale: 1.2;
    transform-origin: right center;
}

/* On a phone the frame is a tall slice about 19% of the image wide, so it can
   be put on the figure (45-59%) and still clear the type that ends at 37%. The
   right-hand crop the desktop needs would be empty rubble here. */
@media (max-width: 767.98px) {
    .lc-hero-lg .lc-hero-media img { object-position: 52% 42%; scale: 1; }
}

/* ── Header at phone widths ──────────────────────────────────────────────── */
/* The nameplate is set at card-title size, which with nowrap is wider than a
   375px viewport once the menu button is beside it. */
@media (max-width: 575.98px) {
    .lc-header .lc-container { gap: var(--lc-space-2) !important; }
    .lc-brand-name { font-size: var(--lc-text-base); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUILDER PAGES
   A page authored in the visual builder brings its own sections and
   containers, so this wrapper adds no layout of its own. It exists to be the
   scope: every rule in a page's own stylesheet is rewritten to sit inside
   .lc-page-body before it is stored, so page CSS cannot reach the header, the
   footer, or any other page.
   ═══════════════════════════════════════════════════════════════════════════ */
.lc-page-body { display: block; }
