/* Kelly Has ADHD brand layer, loaded after Source's built/screen.css.
   Unbuilt on purpose: no gulp pipeline needed to change the brand.
   Direction B "Feral Godmother" (assets/brand/directions.html, chosen 2026-10-29):
   bubblegum + forest green, Shrikhand with a hard shadow, marigold buttons, twinkling stars.
   One committed light look; no dark mode. */

/* 1. Palette and type ---------------------------------------------------- */

:root {
    --kh-paper: #FFF6FA;      /* reading surface */
    --kh-bubblegum: #FFD1E8;  /* header, footer, CTA bands */
    --kh-hot: #FF2E88;        /* display headings only (large text) */
    --kh-hot-ink: #C8105A;    /* pink for small text and links: 5:1 on paper */
    --kh-forest: #0E3B2C;     /* ink */
    --kh-marigold: #FF9F1C;   /* buttons, stars */
    --kh-mint: #B6F0D0;       /* cards, tags */
    --kh-white: #FFFFFF;

    --kh-display: "Shrikhand", "Cooper Black", Georgia, serif;
    --font-sans: "Atkinson Hyperlegible", Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: var(--font-sans);
    /* Source reads these for every heading and body rule. A font picked in Ghost admin
       (Settings -> Design -> Brand) still wins, because ghost_head sets them later. */
    --gh-font-heading: var(--kh-display);
    --gh-font-body: var(--font-sans);
    --kh-border: 3px solid var(--kh-forest);
    --kh-radius-blob: 14px 4px 14px 4px;
}

body {
    --background-color: var(--kh-paper);
    --ghost-accent-color: var(--kh-forest);
    --color-primary-text: var(--kh-forest);
    --color-darker-gray: var(--kh-forest);
    --color-secondary-text: rgb(14 59 44 / .72);
    --color-border: rgb(14 59 44 / .16);
    background-color: var(--kh-paper);
    color: var(--kh-forest);
    font-size: 1.8rem;
    line-height: 1.6;
}

.is-title,
.gh-navigation-logo,
.gh-footer-logo,
.gh-content > h2,
.gh-cta-title,
.gh-footer-signup-header {
    font-family: var(--kh-display);
    font-weight: 400;
    letter-spacing: 0;
}

/* Subheadings in posts stay in the reading face: Shrikhand is for big moments only. */
body .gh-content :is(h3, h4, h5, h6) { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }

a { color: inherit; }
.gh-content a {
    color: var(--kh-forest);
    text-decoration: underline;
    text-decoration-color: var(--kh-hot);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}
.gh-content a:hover { color: var(--kh-hot-ink); }

:focus-visible { outline: 3px solid var(--kh-hot-ink); outline-offset: 3px; }

/* Shorter lines for easier reading (Source defaults to ~720px). */
.gh-content { --content-width: 680px; }

/* 2. Navigation ---------------------------------------------------------- */

.gh-navigation {
    background-color: var(--kh-bubblegum);
    color: var(--kh-forest);
    border-bottom: 3px dashed var(--kh-forest);
}
.gh-navigation-logo { font-size: 2.8rem; line-height: 1; color: var(--kh-forest); }
.gh-navigation-logo::after {
    content: "";
    display: inline-block;
    width: .7em;
    height: .7em;
    margin-left: .2em;
    vertical-align: .35em;
    background: var(--kh-marigold);
    clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
.gh-navigation-logo:has(img)::after { display: none; }
.gh-navigation-menu .nav a,
.gh-navigation-members a:not(.gh-button) { font-weight: 700; color: var(--kh-forest); }
.gh-navigation-menu .nav .nav-current a { text-decoration: underline 3px var(--kh-hot); text-underline-offset: 6px; }

/* 3. Buttons and forms --------------------------------------------------- */

.gh-button,
.gh-form .gh-button,
.gh-navigation-members .gh-button {
    background-color: var(--kh-marigold);
    color: var(--kh-forest);
    border: var(--kh-border);
    border-radius: var(--kh-radius-blob);
    font-weight: 700;
    box-shadow: 3px 3px 0 var(--kh-forest);
    transition: transform .12s ease, box-shadow .12s ease;
}
.gh-button:hover,
.gh-form .gh-button:hover { opacity: 1; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--kh-forest); }
.gh-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--kh-forest); }

.gh-form {
    background-color: var(--kh-white);
    border: var(--kh-border);
    border-radius: 18px;
}
.gh-form:hover { background-color: var(--kh-white); }
.gh-form-input { color: var(--kh-forest); }
.gh-form-input::placeholder { color: rgb(14 59 44 / .55); }

/* 4. Landing header ------------------------------------------------------ */

.gh-header.is-classic { background-color: var(--kh-bubblegum); }
.gh-header.is-classic { padding-block: 0; }
.gh-header.is-classic .gh-header-inner { position: relative; padding-block: clamp(40px, 6vw, 72px); }
.kh-ribbon {
    display: inline-block;
    margin: 0 0 20px;
    padding: 6px 14px;
    background: var(--kh-forest);
    color: var(--kh-mint);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}
.gh-header.is-classic .gh-header-title {
    max-width: 16ch;
    margin-inline: auto;
    font-size: clamp(4rem, 7vw, 7.2rem);
    line-height: 1.02;
    color: var(--kh-hot);
    text-shadow: 3px 3px 0 var(--kh-forest);
    text-wrap: balance;
}
.kh-header-sub { max-width: 46ch; margin: 18px auto 0; font-size: 1.9rem; }
.gh-header.is-classic .gh-form { margin-top: 32px; }

.kh-star {
    position: absolute;
    background: var(--kh-marigold);
    clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
    pointer-events: none;
}
.kh-star-1 { width: 72px; height: 72px; right: 6%; top: 18%; animation: kh-twinkle 3.2s ease-in-out infinite; }
.kh-star-2 { width: 34px; height: 34px; right: 16%; top: 54%; background: var(--kh-hot); animation: kh-twinkle 2.6s ease-in-out .6s infinite; }
.kh-star-3 { width: 26px; height: 26px; left: 8%; top: 30%; background: var(--kh-forest); animation: kh-twinkle 3.8s ease-in-out 1.2s infinite; }
@keyframes kh-twinkle { 50% { transform: scale(.72) rotate(20deg); } }
@media (max-width: 767px) {
    .kh-star-1 { width: 44px; height: 44px; right: 4%; top: 6%; }
    .kh-star-2 { display: none; }
    .kh-star-3 { left: 4%; top: 8%; }
}

/* 5. Post cards ---------------------------------------------------------- */

.gh-feed .gh-card,
.gh-featured .gh-card {
    background: var(--kh-mint);
    border: var(--kh-border);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.gh-feed .gh-card:nth-child(3n+2) { background: var(--kh-white); }
.gh-feed .gh-card:nth-child(3n) { background: var(--kh-bubblegum); }
.gh-feed .gh-card:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--kh-forest); }
.gh-feed .gh-card-link { padding: 18px; }
.gh-feed .gh-card-image { border-radius: 12px; overflow: hidden; border: 2px solid var(--kh-forest); }
.gh-card-title { color: var(--kh-forest); line-height: 1.15; }
.gh-card-tag {
    display: inline-block;
    color: var(--kh-hot-ink);
    font-weight: 700;
    letter-spacing: .06em;
}
.gh-card-meta { color: rgb(14 59 44 / .72); }

/* Section headings ("Latest") get the display face too. */
.gh-container-title { font-family: var(--kh-display); font-weight: 400; font-size: 2.8rem; color: var(--kh-forest); text-transform: none; letter-spacing: 0; }

/* 6. Articles and pages -------------------------------------------------- */

.gh-article-title { color: var(--kh-forest); line-height: 1.05; text-wrap: balance; }
.gh-article-tag { color: var(--kh-hot-ink); font-weight: 700; }
.gh-article-excerpt { color: rgb(14 59 44 / .8); }
.gh-content > blockquote:not([class]) { border-left: 6px solid var(--kh-hot); }
.gh-content .kg-callout-card { border: var(--kh-border); border-radius: 18px; }

/* 7. CTA band and footer ------------------------------------------------- */

.gh-cta { background-color: var(--kh-bubblegum); }
.gh-footer {
    background-color: var(--kh-forest);
    color: var(--kh-mint);
    --color-darker-gray: var(--kh-mint);
    --color-secondary-text: rgb(182 240 208 / .8);
}
.gh-footer a { color: var(--kh-mint); }
.gh-footer-signup-header { color: var(--kh-bubblegum); }
.gh-footer-logo { color: var(--kh-bubblegum); }
.gh-footer .gh-form { border-color: var(--kh-mint); }

/* 8. Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .kh-star { animation: none; }
    .gh-button, .gh-feed .gh-card { transition: none; }
    .gh-feed .gh-card:hover, .gh-button:hover { transform: none; }
}
