/* ==========================================================================
   Kiwi Church public website: "Living" design system
   Used by homepage, communities, calendar, kete, post, resources.
   Legacy pages keep css/styles.css. Do not link both on one page.

   CLASS API
   --------------------------------------------------------------------------
   HEAD BOILERPLATE (every page)
     <script>document.documentElement.classList.add('js');setTimeout(function(){if(!(window.KiwiSite&&KiwiSite.ready))document.documentElement.classList.remove('js')},4000)</script>
        (before the stylesheet; reveals only hide content when JS is running. The timeout is the
        safety net: if js/site.js has not started within 4s, or threw, .js comes off and every
        .rv is plainly visible. Copy the line verbatim.)
     Rubik 400/500/600/700 from Google Fonts, then css/site.css.
     Scripts at end of body: firebase, js/firebase-config.js, js/main.js, js/site.js (in that order).

   PAGE SHELL
     <div class="living">                 page wrapper, owns the trunk. Header, main and footer go inside.
       <div class="trunk"></div>          the ponga trunk, full page height. First child.
       <header class="header" id="header"> ... copy verbatim from homepage.html
       <nav class="mobile-nav" id="mobile-nav"> ... copy verbatim
       <main id="main"> sections </main>
       <footer class="footer"> ... copy verbatim
     </div>
     Modals and #toast-container sit after .living, direct children of body.

   SECTION (hangs off the trunk)
     <section class="limb">               modifiers: .limb--sand (sand band), .limb--hero (tight top, first section),
                                          .limb--board (add to .limb--hero when the hero is a forest .board:
                                          inner pages. Tightens the bottom, drops the marker beside the headline,
                                          and flips .display / .display-sub inside the board to ivory / sage)
       <i class="limb-marker"></i>        dot on the trunk, turns terracotta once scrolled to (site.js adds .lit)
       <div class="limb-label">Text</div> small wayfinding label left of the trunk (above the content on mobile)
       <div class="limb-body"> ... </div> content column, right of the trunk
       <div class="limb-hang"> ... </div> content flush against the trunk (lists of blades, boards)
     </section>
     Direct children of .limb that are .blade / .board / .slot / .empty are placed for you
     (.blade, .board and .empty flush to the trunk, .slot in the content column).

   PHOTOS + GROUND (pictures live in public/Images/site, use root paths /Images/site/x.webp in --photo)
     .limb--photo        full-bleed photo behind the section, forest wash, text flips to ivory.
                         style="--photo:url('/Images/site/x.webp')". + .limb--photo-end fades into the footer.
     .limb--aside        reserves the right side for <figure class="limb-aside"><img></figure> (last child),
                         a leaf-edged picture running off the page edge. Stacks under the content on mobile.
     .slot--bleed        add to a .slot that is a direct child of .limb: taller, runs off the right edge.
     .board--photo       hero board with a picture behind it (style="--photo:url(...)").
     .ridge              rolling hills between sections: <div class="ridge" style="--from:var(--parchment);--to:var(--sand)" aria-hidden="true"></div>

   TYPE
     .display            hero headline (h1). Wrap each line in <span>. .display--page = smaller, inner pages.
     .display-sub        paragraph under the headline
     .limb-title         section heading (h2). .limb-title--xl = larger closing statement
     .desc               intro paragraph under a section heading
     .stems > .stems-lead + .stem      words hanging off the trunk on small curved stems (homepage "Who We Are")

   BLOCKS
     .blade              forest leaf blade with one rounded leading edge. Works on a, button, span, div.
                         a.blade / button.blade nudge along on hover and focus.
       .blade--terra     primary action (terracotta, forest-dark text). Use sparingly. Text on terracotta is
                         always var(--forest-dark), never ivory (contrast).
       .blade--more      extra space above (the link that follows a list)
     .ev                 event blade: add to .blade. Children .ev-name, .ev-when, .ev-where
     .board              large forest panel flush to the trunk, content lines up with .limb-body.
                         .board--plain = ivory panel with clay border.
     .slot               photo slot. Empty: <figure class="slot" data-label="Photo: a shared meal"></figure>
                         Filled: <figure class="slot"><img src alt></figure>
       .slots            two unequal slots side by side (stacks on mobile)
     .book > .entry      the "hut book" list (Kete entries, resources). Entry children:
                         .entry-date, .entry-main (> .entry-title + .entry-text), .entry-photo (optional)
     .empty              designed empty state blade, e.g. <p class="empty">Nothing on just now</p>
     .loading            quiet loading line
     .prose              rich text (Kete post body): images, iframes, quotes, lists are contained

   CONTROLS
     .btn-quiet          text button / link with underline
     .chip               filter button. Selected: .active or aria-pressed="true". Group in .chips
     .field              input / select / textarea on a light background
     .filter-bar         search + chips on one line, joined to the trunk by a twig. Goes inside .limb-hang:
                         <div class="filter-bar"><input class="field"> <div class="chips">...</div></div>
     .tag                small gold leaf pill (category, type, "Featured") for forest backgrounds.
                         Inside .modal it turns forest on ivory. Pages add only spacing / display tweaks.

   MODAL
     <div class="modal-overlay" id="..." onclick="close()">         add .open to show
       <div class="modal" role="dialog" aria-modal="true" onclick="event.stopPropagation()">   .modal--wide for posts
         <button class="modal-close" onclick="close()" aria-label="Close modal">&times;</button>
         <div> .modal-body > .modal-title, .modal-meta (ul > li), .modal-desc, .modal-actions </div>
     site.js: Escape clicks the open modal's .modal-close, focus moves in on open and back on close.

   FROND (max two per page)
     <svg class="frond frond--top" data-unfurl="lead" viewBox="0 0 320 520" aria-hidden="true"></svg>
     <svg class="frond frond--bottom" data-unfurl viewBox="0 0 320 520" aria-hidden="true"></svg>
     Direct child of a .limb. data-unfurl="lead" = starts part open, opens as the page scrolls (hero).
     data-unfurl = opens as its section scrolls into view. Drawn by site.js.

   REVEAL
     .rv                 fades in when scrolled to (site.js adds .on). Always visible under reduced motion.

   DATA SCRIPTS
     Guard Firestore calls with KiwiSite.hasDb() (from site.js), not `typeof db`: when the Firebase
     scripts are blocked, `typeof db` itself throws.
     Format event times with KiwiSite.safeTime(time), never KiwiChurch.formatTime directly (it throws
     on a missing time). safeTime returns '' when there is nothing to show.
     Wrap EVERY Firestore-sourced string in KiwiSite.esc(str) before putting it in an innerHTML template
     (escapes & < > " '), including values inside attributes. No inline onclick with data in it: put the
     id in a data- attribute (escaped) and use one delegated click listener on the list container. Elements rendered later may use .rv, site.js picks them up.

   TOAST
     #toast-container.toast-container > .toast (.success / .error), created by main.js showToast.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
    --forest: #1c3d31;
    --forest-dark: #0f251e;
    --forest-light: #2d5a4a;
    --ivory: #faf8f4;
    --parchment: #f5f1eb;
    --sand: #ebe6dc;
    --sage: #7d9a87;
    --sage-light: #a8c4b0;
    --terracotta: #c17f59;
    --gold: #d4a574;
    --bark: #2c3530;
    --stone: #6b7c72;
    --clay: #e0dbd2;
    --muted: var(--forest-light);

    --post: clamp(80px, 13vw, 200px);   /* trunk x position */
    --pw: 3px;                          /* trunk core width */
    --gap: clamp(22px, 3.5vw, 56px);    /* trunk to content */
    --edge: clamp(18px, 6vw, 96px);     /* right page margin */
    --col: calc(var(--post) + var(--pw) + var(--gap));
    --limb-pad: clamp(72px, 10vw, 150px);
    --leaf: 0 2.6em 0 0 / 0 100% 0 0;
    --trunk-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='520'%3E%3Cpath d='M12 0C19 130 5 390 12 520' fill='none' stroke='%232d5a4a' stroke-width='5'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bark);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.footer :focus-visible, .board :focus-visible { outline-color: var(--gold); }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shell + trunk ---------- */
.living { position: relative; overflow-x: clip; isolation: isolate; background: var(--parchment); }
.trunk {
    position: absolute; top: 0; bottom: 0; left: var(--post); z-index: 1;
    width: 24px; margin-left: -10.5px;
    background: var(--trunk-img) repeat-y;
    pointer-events: none;
}

/* ---------- header ---------- */
.header {
    position: relative; z-index: 60;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
    padding: 26px var(--edge) 26px var(--col);
    font-weight: 500;
}
.wordmark { margin-right: auto; display: block; color: var(--forest); line-height: 0; }
/* the Kiwi Church logo, tinted by the wordmark's colour (forest on light ground, ivory over photos) */
.wordmark-logo {
    display: block; width: 64px; aspect-ratio: 400 / 390; background: currentColor;
    -webkit-mask: url('/Images/site/logo-mask.png') center / contain no-repeat;
            mask: url('/Images/site/logo-mask.png') center / contain no-repeat;
}
@media (max-width: 900px) { .wordmark-logo { width: 48px; } }
.nav-desktop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav-link { padding: 2px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav-link:hover { border-color: var(--terracotta); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--forest); border-color: var(--sage); }
.nav-login { background: var(--forest); color: var(--ivory); padding: 7px 18px; border-radius: 3px; transition: background .2s; }
.nav-login:hover { background: var(--forest-light); }
.mobile-menu-btn {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; background: none; color: var(--forest); cursor: pointer;
}
/* main.js swaps the icon on click; without this the click target is detached and its outside-click handler closes the menu again */
.mobile-menu-btn svg { display: block; pointer-events: none; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
    .header { position: sticky; top: 0; padding-top: 12px; padding-bottom: 12px; transition: background .25s, box-shadow .25s; }
    .header.scrolled { background: var(--parchment); box-shadow: 0 1px 0 var(--clay); }
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-nav {
        position: fixed; inset: 0; z-index: 50;
        display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
        padding: 104px var(--edge) 40px var(--col);
        background: var(--parchment) var(--trunk-img) repeat-y calc(var(--post) - 10.5px) 0;
        overflow-y: auto;
        visibility: hidden; opacity: 0;
        transition: opacity .25s ease, visibility 0s linear .25s;
    }
    .mobile-nav.open { visibility: visible; opacity: 1; transition-delay: 0s; }
    .mobile-nav-link {
        position: relative; padding: .16em 0;
        font-size: clamp(1.9rem, 8.4vw, 2.8rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1;
        color: var(--forest);
    }
    .mobile-nav-link::before {
        content: ''; position: absolute; top: calc(50% - 5px);
        left: calc(-1 * (var(--gap) + var(--pw) / 2 + 5px));
        width: 10px; height: 10px; border-radius: 50%; background: var(--sage-light);
    }
    .mobile-nav-link.active::before, .mobile-nav-link[aria-current="page"]::before { background: var(--terracotta); }
    .mobile-nav-link:hover { color: var(--forest-light); }
}

/* ---------- limb (section) ---------- */
.limb { position: relative; padding: var(--limb-pad) 0; }
.limb--sand { background: var(--sand); }
.limb--hero { padding-top: clamp(10px, 2vw, 30px); }
.limb-marker {
    position: absolute; z-index: 2;
    left: calc(var(--post) + var(--pw) / 2 - 5px); top: clamp(40px, 6vw, 90px);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--sage-light); transition: background .8s ease;
}
.limb--hero .limb-marker { top: clamp(40px, 6vw, 80px); }
/* hero that is a forest board (inner pages): the board closes the hero, so less air below it,
   and the first trunk dot sits beside the board's headline, not on its top edge */
.limb--board { padding-bottom: clamp(16px, 3vw, 48px); }
.limb--board .limb-marker { top: clamp(84px, 12vw, 190px); }
.limb-marker.lit { background: var(--terracotta); }
.limb-label {
    position: absolute; z-index: 2; left: 0; top: var(--limb-pad);
    width: calc(var(--post) - 18px); padding-top: .35em;
    text-align: right; font-size: .92rem; font-weight: 500; color: var(--muted);
}
.limb-body { position: relative; z-index: 2; margin-left: var(--col); margin-right: var(--edge); }
.limb-hang { position: relative; z-index: 2; margin-left: var(--post); }

/* ---------- type ---------- */
.display {
    padding-top: clamp(20px, 4vw, 60px);
    font-size: clamp(3rem, 8.4vw, 8.6rem); font-weight: 600; line-height: .94; letter-spacing: -.03em;
    color: var(--forest); overflow-wrap: break-word;
}
.display span { display: block; }
.display--page { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; }
.display-sub {
    max-width: 24em; margin-top: 1.4em; margin-bottom: 26px;
    font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.4; color: var(--muted);
}
.limb-title {
    margin-bottom: .7em;
    font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 700; line-height: 1; letter-spacing: -.025em;
    color: var(--forest); overflow-wrap: break-word;
}
.limb-title--xl { max-width: 10em; margin-bottom: .4em; font-size: clamp(2.3rem, 6.4vw, 5.6rem); }
.desc { max-width: 30em; margin: -.6em 0 2.2em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); }
.limb-title--xl + .desc { max-width: 28em; margin: 0 0 2em; color: var(--bark); }

.stems { position: relative; z-index: 2; font-weight: 400; }
.stems-lead {
    display: block; margin: 0 var(--edge) .7em var(--col);
    font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.5; color: var(--forest);
}
.stem {
    position: relative; display: block; width: fit-content; max-width: calc(100% - var(--post));
    margin-left: var(--post); padding: .22em 18px .22em calc(var(--pw) + var(--gap));
    font-size: clamp(1.5rem, 4vw, 3.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
    color: var(--forest);
}
.stem::before {
    content: ''; position: absolute; left: 0; top: calc(50% - 15px);
    width: calc(var(--gap) - 8px); height: 16px;
    border: solid var(--forest-light); border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 16px;
}

/* ---------- blade ---------- */
.blade {
    position: relative; z-index: 2;
    display: flex; align-items: baseline; gap: 1.8em;
    width: fit-content; max-width: calc(100% - 14px);
    margin: 0 0 10px; padding: .62em 3.2em .62em calc(var(--pw) + 20px);
    border: 0; border-radius: var(--leaf);
    background: var(--forest); color: var(--ivory);
    font-family: inherit; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.15; text-align: left;
    transition: transform .35s ease, opacity .9s ease, background .25s ease;
}
a.blade, button.blade { cursor: pointer; }
a.blade:hover, a.blade:focus-visible, button.blade:hover, button.blade:focus-visible { transform: translateX(8px); }
.blade--terra { background: var(--terracotta); color: var(--forest-dark); }   /* forest dark on terracotta is about 5:1 (AA); ivory is not */
.blade--more { margin-top: 28px; }
.limb > .blade, .limb > .empty { margin-left: var(--post); max-width: calc(100% - var(--post) - 14px); }

.ev {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 2em;
    width: min(78%, 820px); margin-bottom: 12px;
    padding-top: .85em; padding-bottom: .85em; padding-right: 3.6em;
}
.ev-name { font-size: clamp(1.3rem, 2.5vw, 2.1rem); font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ev-when { font-size: clamp(1.05rem, 1.7vw, 1.45rem); font-weight: 500; white-space: nowrap; color: var(--gold); }
.ev-where { grid-column: 1 / -1; margin-top: .3em; font-size: .98rem; font-weight: 400; color: var(--sage-light); overflow-wrap: anywhere; }

.empty {
    position: relative; z-index: 2;
    width: fit-content; max-width: calc(100% - 14px);
    margin: 0 0 10px; padding: .9em 3.4em .9em calc(var(--pw) + 20px);
    border: 1px solid var(--sage); border-left: 0; border-radius: var(--leaf);
    font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; color: var(--muted);
}
.loading { position: relative; z-index: 2; padding: .6em 0 .6em calc(var(--pw) + 20px); font-weight: 500; color: var(--muted); }

/* ---------- board ---------- */
.board {
    position: relative; z-index: 2;
    padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 56px) clamp(24px, 4vw, 56px) calc(var(--pw) + var(--gap));
    border-radius: 0 clamp(40px, 7vw, 110px) 0 0;
    background: var(--forest); color: var(--ivory);
}
.board .limb-title { color: var(--ivory); }
.board--plain { background: var(--ivory); color: var(--bark); border: 1px solid var(--clay); border-left: 0; }
.board--plain .limb-title { color: var(--forest); }
.board--plain :focus-visible { outline-color: var(--forest); }   /* the gold board ring is too faint on ivory */
/* .display / .display-sub are forest on parchment; on the forest board they flip */
.board:not(.board--plain) .display { padding-top: 0; color: var(--ivory); }
.board:not(.board--plain) .display-sub { margin-bottom: 0; color: var(--sage-light); }
.limb--board > .board {
    margin-top: clamp(18px, 3vw, 44px);
    padding-top: clamp(40px, 7vw, 110px);
    padding-bottom: clamp(32px, 5vw, 72px);
}
.limb > .board { margin-left: var(--post); margin-right: var(--edge); }

/* ---------- photo slot ---------- */
.slot {
    position: relative; z-index: 2; overflow: hidden;
    display: flex; align-items: flex-end;
    height: clamp(180px, 26vw, 380px); margin: 0;
    border: 1px solid var(--sage); border-radius: 4px;
    background: rgba(168, 196, 176, .26);
}
.slot::after { content: attr(data-label); padding: 14px 18px; font-size: .92rem; font-weight: 500; color: var(--muted); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.limb > .slot { margin: clamp(60px, 9vw, 130px) var(--edge) 0 var(--col); }
.slots { position: relative; z-index: 2; display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.slots .slot { height: clamp(170px, 22vw, 320px); }

/* ---------- hut book ---------- */
.book { position: relative; z-index: 2; border-bottom: 1px solid var(--clay); }
.entry {
    display: grid; grid-template-columns: clamp(70px, 10vw, 130px) minmax(0, 1fr) clamp(120px, 20vw, 260px);
    width: 100%; padding: 0; border: 0; border-top: 1px solid var(--clay);
    background: none; color: inherit; text-align: left;
}
a.entry, button.entry { cursor: pointer; }
.entry > * { padding: clamp(18px, 2.4vw, 30px) 18px; }
.entry-date { padding-left: 0; color: var(--muted); }
.entry-title { display: block; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.1; color: var(--forest); overflow-wrap: anywhere; transition: color .2s; }
a.entry:hover .entry-title, button.entry:hover .entry-title { color: var(--terracotta); }
.entry-text { display: block; max-width: 30em; margin-top: .5em; color: var(--muted); overflow-wrap: anywhere; }
.entry-photo {
    position: relative; overflow: hidden; display: flex; align-items: flex-end;
    min-height: 96px; margin: 14px 0 14px 14px; padding: 10px 12px;
    border: 1px solid var(--sage); border-radius: 3px;
    font-size: .85rem; font-weight: 500; color: var(--muted);
}
.entry-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- rich text ---------- */
.prose { max-width: 40em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.65; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; color: var(--forest); }
.prose h1, .prose h2 { font-size: 1.7em; }
.prose h3 { font-size: 1.35em; }
.prose h4 { font-size: 1.1em; }
.prose a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--terracotta); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--sage); color: var(--forest); font-size: 1.1em; }
.prose img, .prose video { display: block; max-width: 100%; height: auto; border-radius: 4px; }
/* the sand background holds a visible 16:9 place while a video is slow to load (or blocked) */
.prose iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; background: var(--sand); }
.prose pre { max-width: 100%; overflow-x: auto; padding: 1em; background: var(--sand); border-radius: 4px; font-size: .9em; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose hr { border: 0; border-top: 1px solid var(--clay); }
/* alignment classes written by the member app's editor */
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-center img { margin-left: auto; margin-right: auto; }

/* ---------- controls ---------- */
.btn-quiet {
    padding: 2px 0; border: 0; border-bottom: 2px solid var(--sage); background: none;
    font-weight: 500; color: var(--forest); cursor: pointer; transition: border-color .2s;
}
.btn-quiet:hover { border-color: var(--terracotta); }
.chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: .42em 1.7em .42em .9em; border: 1px solid var(--sage); border-radius: 0 1.6em 0 0 / 0 100% 0 0;
    background: none; font-weight: 500; font-size: .95rem; color: var(--forest); cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--forest); }
.chip.active, .chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.field {
    display: block; width: 100%; padding: 11px 2px;
    border: 0; border-bottom: 1px solid var(--sage); border-radius: 0;
    background: transparent; color: var(--bark);
}
.field::placeholder { color: var(--stone); opacity: 1; }
.field:focus { outline: 0; border-bottom: 2px solid var(--forest); padding-bottom: 10px; }
/* filter bar: search + categories, one quiet line off the trunk */
.filter-bar {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px clamp(18px, 3vw, 44px);
    margin-right: var(--edge);
    padding-left: calc(var(--pw) + var(--gap));
}
/* the twig that joins the bar to the trunk */
.filter-bar::before {
    content: ''; position: absolute; left: 0; bottom: 1px;
    width: calc(var(--gap) - 8px); height: 16px;
    border: solid var(--forest-light); border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 16px;
}
.filter-bar .field { flex: 1 1 240px; max-width: 24em; }
.filter-bar .chips { flex: 0 1 auto; }
/* tag: small gold leaf pill */
.tag {
    display: inline-block; max-width: 100%;
    padding: .12em 1.3em .12em .6em;
    border: 1px solid var(--gold); border-radius: 0 1.6em 0 0 / 0 100% 0 0;
    font-size: .85rem; font-weight: 500; color: var(--gold); overflow-wrap: anywhere;
}
.modal .tag { border-color: var(--sage); color: var(--forest); }

/* ---------- frond ---------- */
.frond { position: absolute; z-index: 1; display: block; overflow: visible; pointer-events: none; }
.frond--top { right: 8vw; top: 0; width: min(30vw, 420px); }
.frond--bottom { right: 8vw; bottom: 0; width: min(24vw, 330px); }

/* ---------- footer ---------- */
.footer { position: relative; padding: var(--limb-pad) 0 36px; background: var(--forest); color: var(--ivory); }
.footer-inner { position: relative; z-index: 2; margin-left: var(--col); margin-right: var(--edge); }
.footer-logo { display: block; width: clamp(110px, 12vw, 150px); height: auto; margin: -14px 0 0 -14px; }
.footer-tagline { max-width: 26em; margin: .6em 0 3.2em; color: var(--sage-light); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr 2fr; gap: 40px 34px; }
.footer-title { margin-bottom: 12px; font-size: .95rem; font-weight: 500; color: var(--gold); }
.footer-links { list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links a, .footer-contact a { transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact a { color: var(--sage-light); overflow-wrap: anywhere; }
.footer-contact .gap { margin-top: .75rem; }
.footer-form input, .footer-form textarea {
    display: block; width: 100%; padding: 11px 2px;
    border: 0; border-bottom: 1px solid var(--sage); border-radius: 0;
    background: transparent; color: var(--ivory); resize: vertical;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: var(--sage-light); opacity: .85; }
.footer-form input:focus, .footer-form textarea:focus { outline: 0; border-bottom: 2px solid var(--gold); padding-bottom: 10px; }
.footer-form button {
    margin-top: 20px; padding: .6em 2.6em .6em 1.2em;
    border: 0; border-radius: 0 2em 0 0 / 0 100% 0 0;
    background: var(--terracotta); color: var(--forest-dark); font-weight: 600; cursor: pointer;
    transition: transform .3s ease;
}
.footer-form button:hover { transform: translateX(6px); }
.footer-form button:disabled { opacity: .7; cursor: default; transform: none; }
.footer-bottom { margin-top: 56px; font-size: .85rem; color: var(--sage-light); }

/* ---------- modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 18px;
    background: rgba(15, 37, 30, .62);
    visibility: hidden; opacity: 0;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.modal-overlay.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal {
    position: relative; width: min(560px, 100%); max-height: calc(100vh - 36px); overflow-y: auto;
    background: var(--ivory); color: var(--bark);
    border-left: 3px solid var(--sage); border-radius: 0 3rem 4px 0;
}
.modal:focus { outline: 0; }
.modal--wide { width: min(860px, 100%); }
.modal-close {
    position: absolute; top: 12px; right: 16px; z-index: 2;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: none; color: var(--forest); font-size: 1.8rem; line-height: 1; cursor: pointer;
    transition: background .2s;
}
.modal-close:hover { background: var(--sand); }
.modal-body { padding: clamp(24px, 4vw, 38px); }
.modal-title {
    margin: 0 1.6em .7em 0;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
    color: var(--forest); overflow-wrap: anywhere;
}
.modal-meta { list-style: none; display: grid; gap: .6em; margin-bottom: 1.3em; }
.modal-meta li { display: flex; align-items: flex-start; gap: .75em; overflow-wrap: anywhere; }
.modal-meta svg { flex: none; margin-top: .12em; color: var(--forest-light); }
.modal-desc { margin-bottom: 1.6em; line-height: 1.6; overflow-wrap: anywhere; }
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.modal-actions .blade { margin: 0; }

/* ---------- toast ---------- */
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 36px); }
.toast {
    display: flex; align-items: center; gap: 10px; padding: 12px 18px;
    background: var(--forest-dark); color: var(--ivory); border-left: 3px solid var(--sage-light); border-radius: 0 3px 3px 0;
    font-weight: 500; animation: slideIn .3s ease;
}
.toast.success { border-left-color: var(--gold); }
.toast.error { border-left-color: var(--terracotta); }
.toast svg { flex: none; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- reveal ---------- */
/* .js is set in the head and taken off again if site.js never starts (see HEAD BOILERPLATE) */
.js .rv { opacity: 0; transition: opacity .9s ease, transform .35s ease; }
.js .rv.on { opacity: 1; }

/* ---------- photo + ground: pictures and rolling hills instead of plain parchment ---------- */
:root {
    --aside-w: min(34vw, 520px);
    --photo-wash: linear-gradient(90deg, rgba(15, 37, 30, .9) 0%, rgba(15, 37, 30, .66) 46%, rgba(15, 37, 30, .2) 100%);
    --hill-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V66C170 30 330 16 540 46S900 104 1100 58 1350 8 1440 34V120Z'/%3E%3C/svg%3E");
    --hill-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V92C200 58 420 66 650 90S1010 122 1230 82 1400 66 1440 74V120Z'/%3E%3C/svg%3E");
}

/* full-bleed photo behind a section. Set the picture inline: style="--photo:url('Images/site/x.webp')" */
.limb--photo { color: var(--ivory); }
.limb--photo::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: var(--photo-wash), var(--photo) center / cover no-repeat var(--forest-dark);
}
/* last section before the footer: the picture settles into the forest footer */
.limb--photo-end::before {
    background: linear-gradient(180deg, rgba(28, 61, 49, 0) 55%, var(--forest) 100%), var(--photo-wash),
                var(--photo) center / cover no-repeat var(--forest-dark);
}
.limb--photo .limb-label { color: var(--sage-light); }
.limb--photo .limb-title, .limb--photo .display, .limb--photo .stems-lead, .limb--photo .stem { color: var(--ivory); }
.limb--photo .desc, .limb--photo .limb-title--xl + .desc, .limb--photo .display-sub { color: var(--clay); }
.limb--photo .stem::before { border-color: var(--sage-light); }
.limb--photo .blade:not(.blade--terra) { background: var(--ivory); color: var(--forest); }
.limb--photo .frond path { fill: var(--sage-light); }
.limb--photo .frond g { stroke: var(--clay); }
.limb--photo :focus-visible { outline-color: var(--gold); }

/* a picture filling the empty right side of a section, leaf edge towards the trunk */
.limb-aside {
    position: absolute; z-index: 1; top: var(--limb-pad); bottom: var(--limb-pad); right: 0;
    width: var(--aside-w); margin: 0; overflow: hidden;
    border-radius: clamp(60px, 10vw, 160px) 0 0 0;
    background: var(--sage-light);
}
.limb-aside img { display: block; width: 100%; height: 100%; object-fit: cover; }
.limb--aside .limb-body, .limb--aside .limb-hang, .limb--aside .stems { margin-right: calc(var(--aside-w) + var(--gap)); }
.limb--aside > .stems .stems-lead { margin-right: 0; }
.limb--aside .ev { width: calc(100% - 14px); }
.limb--aside { min-height: clamp(380px, 40vw, 620px); }

/* section ending in a frond: the picture stops above the frond */
.limb--aside.limb--frond-end .limb-aside { bottom: calc(min(24vw, 330px) * 1.625 + 24px); }
.limb--aside.limb--frond-end { min-height: calc(var(--limb-pad) + 420px + min(24vw, 330px) * 1.625); }

/* a photo slot that runs off the right edge of the page */
.limb > .slot--bleed { height: clamp(300px, 42vw, 640px); margin-right: 0; border: 0; border-radius: clamp(60px, 10vw, 160px) 0 0 0; }

.limb > .slot--bleed { margin-top: clamp(36px, 5vw, 76px); }
.limb--hero:has(> .slot--bleed) { padding-bottom: clamp(36px, 5vw, 76px); }

/* rolling hills between two sections: <div class="ridge" style="--from:var(--parchment);--to:var(--sand)" aria-hidden="true"></div> */
.ridge { position: relative; height: clamp(56px, 8vw, 130px); margin: -1px 0; background: var(--from, var(--parchment)); }
.ridge::before, .ridge::after { content: ''; position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.ridge::before { background: var(--sage-light); opacity: .55; -webkit-mask-image: var(--hill-back); mask-image: var(--hill-back); }
.ridge::after { background: var(--to, var(--sand)); -webkit-mask-image: var(--hill-front); mask-image: var(--hill-front); }

/* inner-page hero board with a picture behind it */
.board--photo {
    min-height: clamp(320px, 34vw, 540px);
    background: linear-gradient(100deg, rgba(15, 37, 30, .94) 0%, rgba(28, 61, 49, .8) 48%, rgba(28, 61, 49, .3) 100%),
                var(--photo) center / cover no-repeat var(--forest);
}

@media (max-width: 760px) {
    :root { --photo-wash: linear-gradient(180deg, rgba(15, 37, 30, .82), rgba(15, 37, 30, .7)); }
    .limb-aside { position: relative; top: auto; bottom: auto; width: auto; height: 230px; margin: 36px 0 0 var(--col); border-radius: 70px 0 0 0; }
    .limb--aside .limb-body, .limb--aside .limb-hang, .limb--aside .stems { margin-right: var(--edge); }
    .limb--aside .limb-hang { margin-right: 0; }
    .limb--aside, .limb--aside.limb--frond-end { min-height: 0; }
    .limb--aside.limb--frond-end .limb-aside { bottom: auto; }
    .limb > .slot--bleed { height: 260px; }
    .board--photo { min-height: 0; background: linear-gradient(180deg, rgba(15, 37, 30, .86), rgba(28, 61, 49, .76)), var(--photo) center / cover no-repeat var(--forest); }
}

/* ---------- tablet: four footer columns are too tight for the email addresses ---------- */
@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
    :root { --post: 16px; --gap: 22px; --edge: 18px; }
    .limb-label { position: relative; top: auto; width: auto; margin: 0 var(--edge) 14px var(--col); padding: 0; text-align: left; }
    .blade { gap: 1em; padding-left: calc(var(--pw) + 16px); }
    .ev { width: calc(100% - 14px); gap: 0 1em; padding-right: 2.6em; }
    .limb > .slot { height: 220px; margin-top: 40px; }
    .slots { grid-template-columns: 1fr; }
    .slots .slot { height: 180px; }
    .entry { grid-template-columns: 64px minmax(0, 1fr); }
    .entry-photo { grid-column: 2; min-height: 72px; margin: 0 0 18px 18px; }
    .filter-bar { gap: 16px; }
    .filter-bar::before { bottom: auto; top: 26px; }
    .filter-bar .field { flex-basis: 100%; max-width: none; }
    .frond--top { right: -14px; top: -6px; width: 124px; }
    .frond--bottom { right: 14px; width: 150px; }
    .limb--frond-end { padding-bottom: 270px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > *:nth-child(n+3) { grid-column: 1 / -1; }
    .modal { border-radius: 0 2.4rem 4px 0; }
}

/* ==========================================================================
   OPEN LAYOUT (.living.living--open): no trunk line. Content sits in a centred column,
   sections alternate plain ground and photo bands joined by hills, and bush/Kiwi symbols
   from /Images/site/bush.svg sit on the plain ground. Rule: never put a symbol over a photo.
   .living--hero = the page opens with a photo, so the header sits over it in ivory.
   ========================================================================== */
.living--open {
    /* one side margin used on both sides, so the column is truly centred at every width */
    --side: max(clamp(18px, 6vw, 96px), calc((100vw - 1240px) / 2));
    --post: var(--side);
    --edge: var(--side);
    --pw: 0px;
    --gap: 0px;
    --col: var(--post);
    --leaf: 1.5em 0 1.5em 0;
    --aside-w: min(38vw, 500px);
}
.living--open .trunk, .living--open .limb-marker { display: none; }

/* labels sit above the section heading instead of in a column left of the trunk */
.living--open .limb-label {
    position: static; width: auto; margin: 0 var(--edge) 1.1em var(--col); padding: 0;
    text-align: left; font-size: .95rem; letter-spacing: .02em; color: var(--forest-light);
}
.living--open .limb--photo .limb-label { color: var(--sage-light); }

/* "Who We Are" words: no twigs, a small leaf instead */
.living--open .stem { padding-left: 1.15em; }
.living--open .stem::before {
    left: 0; top: calc(50% - .2em); width: .55em; height: .55em;
    border: 0; border-radius: .55em 0 .55em 0; background: var(--sage);
}

/* ---------- header over the hero photo ---------- */
.living--hero .header { position: absolute; top: 0; left: 0; right: 0; }
.living--hero .wordmark, .living--hero .nav-link, .living--hero .mobile-menu-btn { color: var(--ivory); }
.living--hero .nav-link.active, .living--hero .nav-link[aria-current="page"] { color: var(--ivory); border-color: var(--sage-light); }
.living--hero .nav-login { background: var(--ivory); color: var(--forest); }
.living--hero .nav-login:hover { background: var(--clay); }
.living--hero .header :focus-visible { outline-color: var(--gold); }
@media (max-width: 900px) {
    .living--hero .header { position: fixed; }
    .living--hero .header.scrolled { background: var(--forest); box-shadow: none; }
    .living--hero .header:has([aria-expanded="true"]) .wordmark,
    .living--hero .header:has([aria-expanded="true"]) .mobile-menu-btn { color: var(--forest); }
    .living--hero .header:has([aria-expanded="true"]) { background: transparent; }
    .living--hero .mobile-nav { background: var(--parchment); }
    .living--hero .mobile-nav-link::before { display: none; }
}

/* ---------- hills that sit inside a section, over its photo ---------- */
.living--open .ridge--in { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 3; margin: 0; background: transparent; }
.living--open .ridge--top { top: -2px; bottom: auto; transform: scaleY(-1); }

/* ---------- thick koru branches ---------- */
.bush { display: block; overflow: visible; pointer-events: none; }
.bush use { transform-box: fill-box; }
.branch { position: absolute; z-index: 2; pointer-events: none; transform-origin: 50% 100%; }
.branch .bush { width: 100%; height: 100%; }

/* silver fern, large and quiet, behind "Who We Are" */

/* one gentle motion: branches sway a little */
@media (prefers-reduced-motion: no-preference) {
    .branch { animation: sway 9s ease-in-out infinite alternate; }
}
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg); } }


/* empty states and boards no longer lean on a trunk */
.living--open .empty { border-left: 1px solid var(--sage); }
.living--open .board { padding-left: clamp(24px, 4vw, 56px); border-radius: clamp(40px, 6vw, 90px) 0 clamp(40px, 6vw, 90px) 0; }
.living--open .limb > .board { margin-right: var(--post); }
.living--open .filter-bar::before { display: none; }
.living--open .limb > .slot { border: 0; border-radius: clamp(60px, 8vw, 130px) 0 clamp(60px, 8vw, 130px) 0; box-shadow: 0 30px 60px -30px rgba(15, 37, 30, .45); }

/* inner-page hero: the board becomes a full-width photo under the header */
.living--hero .limb--board { padding: 0; }
.living--hero .limb--board > .board--photo {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(460px, 64vh, 700px); margin: 0;
    padding: 140px var(--edge) clamp(110px, 12vw, 200px) var(--col);
    border-radius: 0;
    background: linear-gradient(90deg, rgba(15, 37, 30, .88) 0%, rgba(15, 37, 30, .6) 45%, rgba(15, 37, 30, .15) 100%),
                linear-gradient(180deg, rgba(15, 37, 30, .55) 0%, rgba(15, 37, 30, 0) 30%),
                var(--photo) center / cover no-repeat var(--forest-dark);
}
.living--hero .limb--board > .board--photo .display-sub { color: var(--clay); }

/* pictures beside text: pulled in off the edge, leaf corners */
.living--open .limb-aside {
    right: var(--post); width: var(--aside-w);
    border-radius: clamp(70px, 9vw, 140px) 0 clamp(70px, 9vw, 140px) 0;
    box-shadow: 0 30px 60px -30px rgba(15, 37, 30, .45);
    z-index: 2; max-height: 680px;
}
.living--open .limb--aside .limb-body, .living--open .limb--aside .limb-hang, .living--open .limb--aside .stems {
    margin-right: calc(var(--aside-w) + var(--post) + clamp(24px, 4vw, 64px));
}


/* Kiwi symbols on plain ground (never over a photo). Usually a row standing on the hill at the
   end of a section: <div class="kiwi-row [kiwi-row--right]" aria-hidden="true">
   <svg class="kiwi" viewBox="(symbol's viewBox)" style="--w:120px"><use href="/Images/site/bush.svg#kea"/></svg></div>
   Symbols: kea, bbq, cricket, mountain, cabbage-a, cabbage-b, fern, branch-rise/reach/hang. */
.kiwi { position: relative; z-index: 1; display: block; flex: none; width: calc(var(--w, 140px) * var(--ks, 1)); height: auto; overflow: visible; pointer-events: none; color: var(--forest-light); --leaf: var(--sage); --ground: var(--parchment); }
.limb--sand .kiwi, .living--open .limb--intro .kiwi { --ground: var(--sand); }
.kiwi--sage { color: var(--sage); --leaf: var(--sage-light); }
.footer .kiwi { color: var(--forest-light); --leaf: var(--forest-light); --ground: var(--forest); --accent: var(--forest-light); }
.kiwi-row {
    position: relative; z-index: 3; display: flex; align-items: flex-end; gap: clamp(14px, 2.6vw, 44px);
    margin: clamp(48px, 7vw, 110px) var(--post) calc(-1 * var(--limb-pad) - clamp(14px, 2vw, 30px)) var(--col);
    pointer-events: none;
}
.kiwi-row--right { justify-content: flex-end; }
.footer .kiwi-row { justify-content: flex-end; margin: clamp(40px, 5vw, 70px) 0 0; }
.footer .kiwi-row + .footer-bottom { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--forest-light); }
/* a kea perched beside the values */
.kiwi--perch { position: absolute; right: var(--post); top: var(--limb-pad); }

@media (max-width: 760px) {
    .living--open .limb-aside { right: auto; width: auto; height: 260px; margin: 40px var(--edge) 0 var(--col); border-radius: 60px 0 60px 0; }
    .living--open .limb--aside .limb-body, .living--open .limb--aside .limb-hang, .living--open .limb--aside .stems { margin-right: var(--edge); }
    .living--open .limb--aside .limb-hang { margin-right: var(--edge); }
    .living--hero .limb--board > .board--photo { min-height: 78svh; padding-top: 120px; }
    .living--open { --ks: .62; }
    .kiwi-row { margin-right: var(--edge); }
    .kiwi--hide-m { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rv, .js .rv { opacity: 1 !important; transform: none !important; }
    a.blade:hover, a.blade:focus-visible, button.blade:hover, button.blade:focus-visible, .footer-form button:hover { transform: none; }
}

/* footer: one wide mountain range under the columns */
.footer .kiwi-row--footer { justify-content: center; }
.footer .kiwi--range { width: min(100%, 1100px); }
@media (min-width: 761px) { .footer .kiwi-row--footer { margin-top: calc(-1 * clamp(40px, 9vw, 150px)); } }

/* ---------- Kete post cards (kete.html list + homepage "From the Kete"): light cards, hero photo on top ---------- */
.kete-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.2vw, 30px);
    margin: 0 var(--edge) 0 var(--col);
}
.kete-grid > .loading, .kete-grid > .empty { grid-column: 1 / -1; padding-left: 0; }
.kcard {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--ivory); color: var(--forest);
    border-radius: clamp(26px, 3vw, 40px) 0 clamp(26px, 3vw, 40px) 0;
    box-shadow: 0 14px 34px -24px rgba(15, 37, 30, .5);
    transition: transform .2s, box-shadow .2s;
}
.kcard:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -22px rgba(15, 37, 30, .55); }
.kcard:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.kcard-photo { display: block; aspect-ratio: 16 / 10; background: var(--sage); overflow: hidden; }
.kcard-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kcard:hover .kcard-photo img { transform: scale(1.04); }
.kcard-photo--none { aspect-ratio: 16 / 4; }
.kcard-body { display: flex; flex-direction: column; flex: 1; gap: .7em; padding: clamp(20px, 2.2vw, 28px); }
.kcard-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3em 1em; font-size: .9rem; }
.kcard-date { color: var(--muted); }
.kcard-title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.2; color: var(--forest); overflow-wrap: break-word; }
.kcard-text { color: var(--bark, var(--forest-light)); line-height: 1.5; }
.kcard-meta {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4em 1em;
    margin-top: auto; padding-top: .8em;
    font-size: .9rem; color: var(--muted);
}
.kcard:hover .entry-more { border-color: var(--terracotta); }
@media (prefers-reduced-motion: reduce) { .kcard, .kcard-photo img { transition: none; } .kcard:hover, .kcard:hover .kcard-photo img { transform: none; } }
.kete-grid--home { margin: clamp(28px, 4vw, 48px) 0 0; }
.kcard .entry-cat { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; color: var(--forest); }
.kcard .entry-cat i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--sage)); }
.kcard .entry-more { font-weight: 500; color: var(--forest); border-bottom: 2px solid var(--sage); transition: border-color .2s; }
