/*
Theme Name: HeMa Foundation
Description: Bespoke, accessible Astra child theme for Hema Foundation Trust.
Template: astra
Version: 1.0.0
Requires PHP: 7.4
Text Domain: hema-foundation
*/
:root{--red:#981e32;--deep:#531925;--gold:#a87932;--ivory:#faf7f0;--ink:#302b2b;--muted:#68605d;--line:#e5dcd0}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--ivory);color:var(--ink);font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}h1,h2,h3,h4{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--deep);line-height:1.13}h1{font-size:clamp(43px,6.6vw,88px);letter-spacing:-.045em;margin:18px 0 28px}h2{font-size:clamp(34px,4vw,54px);letter-spacing:-.025em;margin:12px 0 25px}h3{font-size:29px;margin:10px 0 18px}p{margin:0 0 22px}a{color:var(--red);text-underline-offset:5px}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}:focus-visible{outline:3px solid var(--gold);outline-offset:5px}img{max-width:100%;height:auto}figure{margin:0}.hm-wrap{width:min(1180px,90%);margin:auto}.hm-skip{position:absolute;left:-9999px}.hm-skip:focus{left:20px;top:15px;background:#fff;padding:12px;z-index:10000}.hm-header{background:#faf7f0f5;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.admin-bar .hm-header{top:32px}.hm-nav{min-height:94px;display:flex;justify-content:space-between;align-items:center;gap:30px}.hm-brand{display:flex;flex-direction:column;line-height:1.05;text-decoration:none;color:var(--red);flex-shrink:0}.hm-brand b{font:italic bold 39px Georgia,serif;letter-spacing:-2px}.hm-brand small{font-size:9px;letter-spacing:.2em;font-weight:700;margin-top:6px}.hm-links{display:flex;align-items:center;gap:23px;font-size:13px;font-weight:600}.hm-links a{text-decoration:none;color:var(--ink)}.hm-links a:hover{color:var(--red)}.hm-links .hm-button{color:white}.hm-menu{display:none;background:none;border:1px solid var(--line);color:var(--red);padding:9px 13px}.hm-button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;padding:14px 23px;background:var(--red);border:1px solid var(--red);color:#fff;text-decoration:none;font-size:13px;font-weight:600;letter-spacing:.02em;border-radius:2px;cursor:pointer}.hm-button:hover{background:var(--deep);color:#fff;text-decoration:none}.hm-button.outline{background:transparent;color:var(--red)}.hm-actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:30px}.hm-eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);font-weight:700}.hm-hero{padding:80px 0 76px;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 95% 10%,#ead8c4 0,transparent 53%)}.hm-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:80px;align-items:center}.hm-lead{font-size:18px;color:var(--muted);max-width:610px}.hm-portrait{background:var(--deep);padding:25px 25px 22px;color:#fff;border-radius:180px 180px 2px 2px;max-width:365px;margin:auto;box-shadow:22px 22px 0 #e9dfce}.hm-portrait img{display:block;width:100%;aspect-ratio:4/4.8;object-fit:cover;object-position:50% 20%;border-radius:160px 160px 0 0;filter:sepia(.12)}.hm-portrait figcaption{font-size:12px;text-align:center;line-height:1.6;margin-top:17px;color:#f0ded5}.hm-portrait figcaption strong{display:block;font-family:Georgia,serif;font-size:17px;font-weight:400}.hm-ribbon{display:flex;justify-content:space-between;gap:25px;padding:26px 0;color:var(--muted);font-size:12px;letter-spacing:.06em}.hm-ribbon strong{color:var(--red);font-weight:600}.hm-section{padding:86px 0}.hm-section.white{background:#fff}.hm-section.dark{background:var(--deep);color:#f6ece2}.hm-section.dark h2,.hm-section.dark h3{color:#fff7e9}.hm-section.dark .hm-eyebrow{color:#e1bd7c}.hm-section.dark p{color:#e5d0cc}.hm-section.dark a{color:#f0ce8b}.hm-narrow{max-width:780px}.hm-rule{border:0;border-top:1px solid var(--line);margin:35px 0}.hm-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.hm-card{padding:32px 0;border-top:1px solid var(--line)}.hm-card .number{color:var(--gold);font:italic 32px Georgia,serif}.hm-card p{color:var(--muted)}.hm-status{display:inline-block;color:var(--red);background:#f3e6e5;font-size:10px;padding:4px 9px;text-transform:uppercase;letter-spacing:.1em;font-weight:700}.hm-status.planned{background:#eee8dc;color:#675b42}.hm-pullquote{font:italic 34px/1.4 Georgia,serif;border-left:2px solid var(--gold);padding-left:30px;color:var(--deep)}.hm-page-title{padding:64px 0 25px;border-bottom:1px solid var(--line)}.hm-page-title h1{font-size:clamp(40px,5vw,68px)}.hm-content{min-height:40vh}.hm-content>p,.hm-content>h2,.hm-content>h3,.hm-content>.wp-block-gallery,.hm-content>.wp-block-image{max-width:1180px;width:90%;margin-left:auto;margin-right:auto}.hm-content>p:first-child{margin-top:40px}.hm-content>.wp-block-shortcode{width:min(1180px,90%);margin:auto}.hm-content>.wp-block-gallery{padding:35px 0}.hm-empty{padding:36px;border:1px solid var(--line);background:#fff}.hm-empty p:last-child{margin-bottom:0}.hm-footer{background:#3e1821;padding:60px 0 24px;color:#d9c5c3}.hm-footer .hm-brand{color:#fff2dc}.hm-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:50px}.hm-footer p{font-size:13px}.hm-footer a{color:#ead1b0}.hm-footer h3{color:#fff2dc;font:17px Georgia,serif}.hm-footer ul{list-style:none;padding:0;margin:0;font-size:13px}.hm-footer li{margin-bottom:8px}.hm-copyright{border-top:1px solid #ffffff20;padding-top:22px;margin-top:35px;font-size:11px;display:flex;justify-content:space-between;gap:25px}.hm-form{max-width:750px;padding:36px;background:white;border:1px solid var(--line);margin:30px 0}.hm-form label{display:block;font-size:13px;font-weight:600;margin:18px 0 6px}.hm-form input:not([type=checkbox]),.hm-form textarea,.hm-form select{width:100%;border:1px solid #bfb5aa;background:#fffdfa;border-radius:2px;padding:12px;color:var(--ink)}.hm-form textarea{min-height:140px}.hm-form .hm-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:400}.hm-form input[type=checkbox]{margin-top:7px;flex-shrink:0}.hm-form .hm-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.hm-notice{border-left:3px solid var(--gold);background:#fff;padding:20px 25px;margin:25px 0}.hm-event-list{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:30px 0}.hm-event-list article{border-top:2px solid var(--gold);padding:24px;background:white}.hm-event-list time{font-size:12px;color:var(--muted)}.hm-post{width:min(850px,90%);margin:45px auto 80px}.hm-post img{max-height:600px;object-fit:contain}.hm-post h1{font-size:56px}.hm-post-content{margin-top:30px}.hm-staging{padding:8px 5%;background:#eee3cf;color:#5b3922;text-align:center;font-size:11px}.wp-block-gallery img{border-radius:2px}.hm-note{font-size:13px;color:var(--muted)}
@media(max-width:1000px){.hm-links{gap:14px;font-size:12px}.hm-grid{gap:40px}}
@media(max-width:800px){.hm-nav{min-height:80px}.hm-menu{display:block}.hm-links{display:none;position:absolute;top:80px;left:0;right:0;background:var(--ivory);padding:25px 5%;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;font-size:15px;gap:18px}.hm-links.open{display:flex}.hm-grid,.hm-columns,.hm-footer-grid,.hm-event-list{grid-template-columns:1fr}.hm-grid{gap:45px}.hm-hero{padding:48px 0 55px}.hm-portrait{max-width:310px;width:90%;margin:8px auto 20px}.hm-section{padding:55px 0}.hm-ribbon{flex-wrap:wrap;justify-content:flex-start;gap:14px 30px}.hm-copyright{flex-direction:column;gap:8px}.hm-form{padding:22px}.hm-footer-grid{gap:25px}.hm-post h1{font-size:40px}.hm-pullquote{font-size:28px}.admin-bar .hm-header{top:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
