:root{--canvas:#f8f2ea;
  --canvas-deep:#efe3d8;
  --surface:#fffdfc;
  --surface-soft:#fbf5ef;
  --ink:#362522;
  --muted:#756761;
  --muted-light:#9b8e88;
  --terra:#b96549;
  --terra-dark:#8e4936;
  --terra-soft:#f3e1d8;
  --sage:#718071;
  --sage-soft:#e5ebe4;
  --blush:#ecd9d1;
  --line:#dfd3ca;
  --line-strong:#cdbbb0;
  --white:#fff;
  --footer:#3f2d29;
  --shadow-sm:0 10px 24px rgba(76,51,43,.07);
  --shadow-md:0 24px 70px rgba(76,51,43,.13);
  --radius-sm:12px;
  --radius-md:20px;
  --radius-lg:30px;
  --font-display:"EB Garamond",Georgia,serif;
  --font-body:Inter,"Segoe UI",Arial,sans-serif;
  --content:1240px;
  --safe-area-left:env(safe-area-inset-left,0px);
  --safe-area-right:env(safe-area-inset-right,0px);}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--canvas)}
body{margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;}
body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{max-width:100%}
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:12px;z-index:40;min-height:44px;display:flex;align-items:center;padding:9px 13px;border-radius:999px;background:var(--ink);color:#fff;font-weight:800;transform:translateY(-160%);transition:transform .16s ease}
.skip-link:focus{transform:translateY(0);outline:3px solid rgba(185,101,73,.34);outline-offset:3px}
.shell{--shell-gutter:24px;--shell-half-max:620px;width:auto;margin-left:max(var(--shell-gutter),var(--safe-area-left),calc(50% - var(--shell-half-max)));margin-right:max(var(--shell-gutter),var(--safe-area-right),calc(50% - var(--shell-half-max)))}
.eyebrow{display:block;color:var(--terra-dark);font-size:12px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 21px;border:1px solid transparent;border-radius:999px;font-size:14px;font-weight:750;line-height:1.2;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease}
.button--small{min-height:40px;padding:9px 13px;font-size:12px}
.button--primary{background:var(--terra);color:white;box-shadow:0 8px 20px rgba(185,101,73,.2)}
.button--secondary{background:var(--sage-soft);color:#405343}
.button--outline{border-color:var(--line-strong);background:transparent;color:var(--ink)}
.button--quiet{background:transparent;color:var(--ink)}
.button--cta-light{background:white;color:var(--terra-dark);box-shadow:0 12px 28px rgba(50,27,21,.22)}
.text-link{display:inline-flex;align-items:center;gap:9px;color:var(--terra-dark);font-size:14px;font-weight:750}
.text-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .18s ease}
.button:focus-visible,.text-link:focus-visible,.site-nav a:focus-visible,.mobile-menu a:focus-visible,.browse-search:focus-within,.browse-search button:focus-visible,.page-control:focus-visible,.page-number:focus-visible,.footer-search:focus-within,.footer-column a:focus-visible,.footer-bottom a:focus-visible,.footer-bottom button:focus-visible,.menu-button:focus-visible{outline:3px solid rgba(185,101,73,.32);outline-offset:4px}
.button:active,.menu-button:active{transform:translateY(1px)}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.brand__mark{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1px rgba(185,101,73,.18);color:var(--terra)}
.brand__mark svg{width:27px;height:27px;fill:currentColor}
.brand__name{font-family:var(--font-display);font-size:27px;font-weight:600;letter-spacing:-.025em}
.site-header{position:relative;z-index:20;border-bottom:1px solid rgba(223,211,202,.75);background:rgba(255,253,252,.92);backdrop-filter:blur(16px)}
.site-header.is-scrolled{border-color:rgba(205,187,176,.95);background:rgba(255,253,252,.97);box-shadow:0 10px 26px rgba(76,51,43,.08)}
.site-header__inner{min-height:78px;display:grid;grid-template-columns:220px minmax(380px,1fr) 410px;align-items:center;gap:18px}
.site-nav{justify-self:center;display:flex;gap:25px}
.site-nav a{position:relative;padding:27px 0 24px;color:var(--muted);font-size:14px;font-weight:650;white-space:nowrap}
.site-nav a.is-active,.site-nav a:hover{color:var(--ink)}
.site-nav a.is-active:after{content:"";position:absolute;left:0;right:0;bottom:16px;height:2px;border-radius:2px;background:var(--terra)}
.header-actions{justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:7px;width:410px}
.menu-button{display:none;width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:var(--surface);align-content:center;justify-items:center;gap:4px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.menu-button span{display:block;width:17px;height:1.5px;background:var(--ink)}
.mobile-menu{position:fixed;inset:66px 0 auto;z-index:19;background:rgba(255,253,252,.98);border-bottom:1px solid var(--line);box-shadow:0 24px 48px rgba(76,51,43,.14)}
.mobile-menu[hidden]{display:none}
.mobile-menu__inner{padding-block:18px 22px}
.mobile-menu__nav{display:grid;gap:4px}
.mobile-menu__nav a{padding:13px 4px;border-bottom:1px solid rgba(223,211,202,.7);color:var(--ink);font-family:var(--font-display);font-size:25px;font-weight:600;line-height:1}
.mobile-menu__actions{display:grid;gap:9px;margin-top:18px}
.section{padding-top:96px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:48px;margin-bottom:32px}
.section-heading h2{margin:8px 0 0;font-family:var(--font-display);font-size:46px;font-weight:500;letter-spacing:-.035em;line-height:1.02}
.section-heading p{max-width:590px;margin:12px 0 0;color:var(--muted);font-size:15px}
.section-heading__side{max-width:390px;display:grid;gap:17px;justify-items:end;color:var(--muted);font-size:14px}
.section-heading__side p{margin:0;text-align:right;font-size:14px}


/* Shared memorial listing card */
.memorial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.memorial-card{overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.memorial-card__image{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--terra-soft)}
.memorial-card__image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease}
.candle-pill{position:absolute;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:rgba(54,37,34,.78);backdrop-filter:blur(8px);color:white;font-size:11px;font-weight:700}
.candle-pill svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7}
.memorial-card__body{min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px}
.memorial-card__body>div{min-width:0}
.memorial-card h3{margin:0;font-family:var(--font-display);font-size:25px;font-weight:600;letter-spacing:-.02em;line-height:1}
.memorial-card h3 span{color:var(--terra);font-family:var(--font-body);font-size:16px}
.memorial-card p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.circle-link{width:39px;height:39px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface-soft);color:var(--terra-dark);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.circle-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}

/* Shared browse/list introduction and pagination */
.browse-hero{position:relative;overflow:hidden;padding:82px 0 70px;background:linear-gradient(135deg,#f2dfd5 0%,#f9eee8 54%,#edf1e9 100%);border-bottom:1px solid var(--line)}
.browse-hero__inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 540px;align-items:end;gap:76px}
.browse-hero__copy{max-width:650px}
.browse-hero h1,.results-heading h2{margin:0;font-family:var(--font-display);font-weight:500;letter-spacing:-.035em;color:var(--ink)}
.browse-hero h1{max-width:620px;margin-top:11px;font-size:66px;line-height:.98}
.browse-hero__copy p{max-width:610px;margin:21px 0 0;color:var(--muted);font-size:17px;line-height:1.68}
.browse-search{min-height:66px;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:13px;padding:7px 7px 7px 21px;border:1px solid rgba(142,73,54,.23);border-radius:20px;background:rgba(255,253,252,.9);box-shadow:0 18px 42px rgba(76,51,43,.11);backdrop-filter:blur(12px)}
.browse-search>svg{width:23px;height:23px;fill:none;stroke:var(--terra-dark);stroke-width:1.8}
.browse-search input{min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}
.browse-search input::placeholder{color:var(--muted-light)}
.browse-search button{min-height:50px;padding:0 25px;border:0;border-radius:14px;background:var(--ink);color:white;font-size:14px;font-weight:750}
.browse-hero__branch{position:absolute;right:-28px;top:-18px;width:280px;height:auto;fill:none;stroke:rgba(142,73,54,.18);stroke-width:2}
.results-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:32px}
.results-heading h2{margin-top:7px;font-size:48px;line-height:1}
.results-heading p{margin:10px 0 0;color:var(--muted);font-size:13px}
.browse-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;margin-top:48px}
.page-list{display:flex;align-items:center;gap:8px}
.page-control,.page-number{min-height:43px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:750}
.page-control{justify-self:start;gap:8px;padding:10px 17px;border-radius:999px}
.page-control:last-child{justify-self:end}
.page-control svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.page-number{width:43px;border-radius:50%}
.page-number.is-active{border-color:var(--terra);background:var(--terra);color:white}
.page-number--ellipsis{border-color:transparent;background:transparent}
.page-control.is-disabled{opacity:.4;pointer-events:none}
.browse-empty-state{max-width:720px;margin:35px auto 0;padding:54px 30px;border:1px solid var(--line);border-radius:28px;background:var(--surface);text-align:center;box-shadow:var(--shadow-sm)}
.browse-empty-state__mark{width:66px;height:66px;display:grid;place-items:center;margin:0 auto 20px;border-radius:50%;background:var(--terra-soft);color:var(--terra)}
.browse-empty-state__mark svg{width:38px;height:38px;fill:currentColor}
.browse-empty-state h2{margin:0;font-family:var(--font-display);font-size:40px;font-weight:500;letter-spacing:-.035em;color:var(--ink)}
.browse-empty-state p{max-width:480px;margin:12px auto 22px;color:var(--muted)}

.site-footer{margin-top:100px;background:var(--footer);color:white}
.footer-main{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:56px;padding:58px 0 48px}
.brand--footer .brand__name{color:white}
.brand--footer .brand__mark{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.footer-brand p{max-width:310px;margin:17px 0 22px;color:rgba(255,255,255,.58);font-size:13px}
.footer-search{width:240px;min-height:45px;display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(255,255,255,.15);border-radius:14px;color:rgba(255,255,255,.72);font-size:12px}
.footer-search>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
form.footer-search{display:grid;grid-template-columns:18px 1fr 24px;gap:9px;padding:7px 9px 7px 14px}
form.footer-search input{min-width:0;width:100%;padding:0;border:0;outline:0;background:transparent;color:white;font-size:12px}
form.footer-search input::placeholder{color:rgba(255,255,255,.58);opacity:1}
form.footer-search input::-webkit-search-cancel-button{display:none}
form.footer-search button{width:24px;height:24px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:rgba(255,255,255,.75);cursor:pointer}
form.footer-search button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.footer-column{display:flex;flex-direction:column;gap:9px}
.footer-column strong{margin-bottom:5px;font-family:var(--font-display);font-size:20px;font-weight:600}
.footer-column a{color:rgba(255,255,255,.62);font-size:12px}
.footer-bottom{min-height:62px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;border-top:1px solid rgba(255,255,255,.11);color:rgba(255,255,255,.72);font-size:12px;line-height:1.4}
.footer-bottom>div{display:flex;gap:20px}
.footer-bottom button{justify-self:end;min-height:40px;padding:8px 12px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:transparent;color:rgba(255,255,255,.8);font-size:12px;line-height:1.2}

@media(max-width:1180px){
  .memorial-grid{gap:14px}
  .memorial-card__body{padding:14px}
  .browse-hero{padding:67px 0 58px}
  .browse-hero__inner{grid-template-columns:minmax(0,1fr) 430px;gap:42px}
  .browse-hero h1{font-size:55px}
}
@media(max-width:900px){
  .memorial-grid{grid-template-columns:1fr 1fr}
  .browse-hero__inner{grid-template-columns:1fr;gap:30px}
  .browse-hero__copy{max-width:680px}
}
@media(max-width:720px){
  .browse-pagination{grid-template-columns:1fr 1fr;gap:12px}
  .page-list{grid-column:1/-1;grid-row:1;justify-content:center}
  .page-control{grid-row:2;width:100%}
  .page-control:last-child{justify-self:stretch}
}
@media(max-width:520px){
  .memorial-card__body{min-height:88px}
  .browse-hero{padding:48px 0 42px}
  .browse-hero__inner{gap:25px}
  .browse-hero h1{font-size:44px;line-height:.98}
  .browse-hero__copy p{margin-top:16px;font-size:14px;line-height:1.62}
  .browse-search{min-height:0;grid-template-columns:22px 1fr;padding:12px 13px;border-radius:17px}
  .browse-search button{grid-column:1/-1;min-height:46px;width:100%;margin-top:2px}
  .browse-hero__branch{right:-95px;top:-35px;width:210px}
  .results-heading{display:block;margin-bottom:23px}
  .results-heading h2{font-size:39px}
  .results-heading p{font-size:12px}
  .browse-pagination{margin-top:34px}
  .browse-empty-state{padding:42px 22px}
  .browse-empty-state h2{font-size:35px}
}

@media(hover:hover) and (pointer:fine){
.button:hover{transform:translateY(-2px)}
.button--primary:hover{box-shadow:0 12px 28px rgba(185,101,73,.28)}
.button--secondary:hover{box-shadow:0 10px 22px rgba(64,83,67,.12)}
.button--outline:hover{border-color:var(--terra);box-shadow:0 10px 22px rgba(76,51,43,.08)}
.menu-button:hover{border-color:var(--terra);box-shadow:0 10px 22px rgba(76,51,43,.1)}
.text-link:hover svg{transform:translateX(3px)}
.memorial-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(76,51,43,.12);border-color:rgba(205,187,176,.95)}
.memorial-card:hover img{transform:scale(1.02)}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}
}
@media(max-width:1180px){
.shell{--shell-gutter:20px;--shell-half-max:480px}
.site-header__inner{grid-template-columns:190px 1fr auto auto}
.site-nav{gap:14px}
.site-nav a{font-size:12px}
.header-actions{width:auto}
.header-actions .button:not(:first-child){display:none}
.menu-button{display:grid}
.section-heading h2{font-size:43px}
.footer-main{gap:30px}
}
@media(max-width:900px){
.shell{--shell-gutter:16px;--shell-half-max:360px}
.site-header__inner{min-height:70px;grid-template-columns:1fr auto}
.site-nav,.header-actions{display:none}
.menu-button{display:grid}
.section{padding-top:78px}
.section-heading{align-items:flex-start}
.footer-main{grid-template-columns:1.3fr 1fr 1fr}
.footer-column:last-child{display:none}
.footer-bottom{grid-template-columns:1fr auto}
.footer-bottom>div{display:none}
}
@media(max-width:520px){
body{font-size:15px}
.shell{--shell-gutter:15px;--shell-half-max:180px}
.brand__mark{width:37px;height:37px}
.brand__mark svg{width:24px;height:24px}
.brand__name{font-size:24px}
.site-header__inner{min-height:66px}
.menu-button{width:42px;height:42px}
.section{padding-top:66px}
.section-heading{display:block;margin-bottom:24px}
.section-heading h2{font-size:38px}
.section-heading p{font-size:14px}
.section-heading>.text-link,.section-heading__actions>.text-link{display:none}
.section-heading__side{display:block;max-width:none;margin-top:15px}
.section-heading__side p{text-align:left;font-size:13px}
.site-footer{margin-top:72px}
.footer-main{grid-template-columns:1fr;gap:27px;padding:42px 0 34px}
.footer-search{width:100%}
.footer-column:last-child{display:flex}
.footer-bottom{min-height:74px;display:flex;flex-wrap:wrap;justify-content:space-between;padding:15px 0}
.footer-bottom button{justify-self:auto}
}

/* V2 runtime language switch keeps the approved footer control geometry. */
.footer-language{position:relative;justify-self:end;min-height:40px;display:inline-flex;align-items:center;padding:8px 12px;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:rgba(255,255,255,.8);font-size:12px;line-height:1.2;cursor:pointer}
.footer-language>span{display:inline-flex;align-items:center;gap:6px;pointer-events:none}
.footer-language b{font-size:12px;font-weight:700}
.footer-language select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.footer-language:focus-within{outline:3px solid rgba(185,101,73,.32);outline-offset:4px}
@media(max-width:520px){.footer-language{justify-self:auto}}
/* Shared remembrance emoji controls used by Create, Edit, and condolence forms. */
.emoji-tools{display:flex;gap:5px}.emoji-tools button{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.emoji-tools button:focus-visible{outline:3px solid rgba(185,101,73,.25);outline-offset:2px}
