/* WovenPath: what the logo itself brings to the website (D22, 15 November 2026).
 *
 * The greens are in palette.css. This sheet adds the logo's own colours: the night sky at the top of the home
 * page with the sunrise behind the words, the sunrise gold for the main button, the word "count" and the
 * section labels, the cream of the lettering, the woven line under the header, and the logo itself, faint,
 * over every page. Gold and cream are the logo's, the same on every screen.
 *
 * Every pairing here meets the readability minimum (4.5 to 1 for text): cream on the night 16 to 1, the
 * ring's colour on the night 10.9 to 1, ink on gold 9 to 1, gold on the night 9.5 to 1, the gold label on
 * paper 5.6 to 1 (light) and the gold on the night (dark).
 */

:root {
    --wp-gold: #E9A94F;                       /* the sunrise: the main button */
    --wp-on-gold: #1A1307;                    /* text on the gold */
    --wp-highlight: #F2B35E;                  /* the word "count", on the night */
    --wp-highlight-glow: rgba(242, 179, 94, .38);
    --wp-cream: #F4EBDD;                      /* the lettering */
    --wp-label: #8A5A14;                      /* section labels on paper */
}
[data-theme="dark"] { --wp-label: #F2B35E; }

/* ---- The top of the home page is the logo's sky, in both modes: night, with the sunrise behind the words. */
.hero, [data-theme="dark"] .hero {
    background:
        radial-gradient(64% 52% at 50% -6%, rgba(242, 179, 94, .34) 0%, rgba(242, 179, 94, .10) 36%, transparent 64%),
        radial-gradient(60% 46% at 50% 112%, rgba(var(--wp-ring-rgb), .16), transparent 70%),
        linear-gradient(180deg, var(--wp-sky-top) 0%, var(--wp-sky-mid) 56%, var(--wp-sky-bottom) 100%) !important;
}
.hero-title, .hero-subtitle, .hero-subtitle-em, .hero-microtrust li { color: var(--wp-cream) !important; }
.hero .hs-stop { color: var(--wp-ring) !important; -webkit-text-fill-color: var(--wp-ring) !important; }
.hero-num {
    background: none !important;
    -webkit-background-clip: border-box !important; background-clip: border-box !important;
    -webkit-text-fill-color: var(--wp-highlight) !important; color: var(--wp-highlight) !important;
    text-shadow: 0 0 34px var(--wp-highlight-glow) !important;
}
.btn-primary-hero, .btn-primary-hero:hover {
    background: var(--wp-gold) !important; color: var(--wp-on-gold) !important; border-color: transparent !important;
}
.btn-secondary-hero {
    color: var(--wp-cream) !important; border-color: rgba(244, 235, 221, .42) !important;
    background: rgba(244, 235, 221, .05) !important;
}
.btn-secondary-hero:hover { background: rgba(244, 235, 221, .12) !important; }
.hero-badge {
    color: var(--wp-cream) !important; border-color: rgba(242, 179, 94, .32) !important;
    background: rgba(242, 179, 94, .07) !important;
}
/* The Menu button sits on the night sky too, until the header turns solid. */
.site-over-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-nav-toggle {
    color: var(--wp-cream) !important; border-color: rgba(244, 235, 221, .55) !important;
}

/* ---- The promise band, the closing invitation and the bar that follows you down the page are the logo's
   night too, so their words read: white on the bright green gradient was 2.2 to 3.8 to 1. */
.promise, .demo-cta {
    background:
        radial-gradient(70% 70% at 50% 0%, rgba(242, 179, 94, .16), transparent 70%),
        linear-gradient(160deg, var(--wp-sky-mid) 0%, var(--wp-sky-bottom) 100%) !important;
}
.promise::before { background: radial-gradient(circle at 78% 82%, rgba(var(--wp-ring-rgb), .12), transparent 48%) !important; }
.demo-cta::before { background: radial-gradient(80% 120% at 12% 0%, rgba(var(--wp-ring-rgb), .10), transparent 58%) !important; }
.demo-btn-primary, .demo-btn-primary:hover { background: var(--wp-gold) !important; color: var(--wp-on-gold) !important; }
.sticky-cta { background: linear-gradient(135deg, var(--wp-sky-mid), var(--wp-sky-bottom)) !important; }

/* ---- Section labels take the sunrise gold: the deep gold on paper, the bright gold on the night. */
.section-tag { color: var(--wp-label) !important; }
.hero .section-tag, .promise .section-tag, .demo-cta .section-tag { color: var(--wp-highlight) !important; }
/* On the night bands the label's pill is dark, so the gold reads under the sunrise glow too. */
.promise .section-tag, .demo-cta .section-tag {
    background: rgba(0, 0, 0, .28) !important; border-color: rgba(242, 179, 94, .35) !important;
}
/* The scroll hint at the foot of the sky: cream on a dark pill, over the glowing logo too. */
.hero-scroll-hint {
    color: var(--wp-cream) !important; background: rgba(1, 18, 12, .45) !important;
    border-color: rgba(244, 235, 221, .35) !important;
}

/* ---- The woven line under the header: the logo's two ribbons, the ring's colour and the gold. */
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--wp-thread) 22%, var(--wp-gold) 78%, transparent 100%);
    opacity: .85; pointer-events: none;
}

/* ---- The logo, faint, over every page. In light mode it's printed into the page (multiply), so it can only
   darken: dark text never gets lighter, and light text on a dark band loses almost nothing. In dark mode it
   glows (screen), at a strength measured so that no text falls below the readability minimum. On the night
   sky at the top of the home page, where printing can't show, the hero keeps its own glowing copy (light mode). */
body::after {
    content: ""; position: fixed; top: 50%; left: 50%;
    width: min(880px, 86vmin); aspect-ratio: 1;
    transform: translate(-50%, -44%);
    background: url("/static/images/wovenpath-mark-glow.webp") center / contain no-repeat;
    pointer-events: none; z-index: 5;
    opacity: .16; mix-blend-mode: multiply;
}
[data-theme="dark"] body::after { opacity: .07; mix-blend-mode: screen; }   /* closest text: 4.59:1 */
.hero-watermark { filter: none !important; opacity: .14 !important; mix-blend-mode: screen; }
[data-theme="dark"] .hero-watermark { display: none; }
@media print, (forced-colors: active) {
    body::after, .hero-watermark { display: none; }
}
