/* The Lexstone SAFE Home, as the BOLD System page (pages/system.html, loaded only there through the "css" key in
   pages-src/system.html). A copy of brand/concepts/safe-home/assets/safe-home.css, rule for rule, with every rule
   scoped under the page's one wrapper, <div class="safe-home">:
   - :root tokens and the body rules sit on .safe-home, so the BOLD menu, Keep reading cards and footer outside it keep
     BOLD's own tokens (--gutter, --radius, --max and the rest);
   - the @font-face is left out (the BOLD head already loads Mona Sans under the same name), and so are the html rule
     (bold.css sets the same smooth scrolling) and the masthead, skip link and footer rules (BOLD's take their place);
   - first, every element and pseudo element inside the wrapper drops every bold.css value (all: revert-layer: back to
     the browser's own styles and the HTML attributes' hints, such as hidden and an img's width and height; plain
     all: revert would drop those hints too), so no bold.css rule (.hero, .h2, .eyebrow, .wrap, .note, .section-head,
     a, img, * and so on) reaches the SAFE Home content; the SAFE Home rules below then apply exactly as they do on the
     standalone page. It must stay the first rule here, and bold.css must be linked before this file.
   Two additions: a band the height of BOLD's fixed 72px top bar, in BOLD's night, so the see through bar sits on
   dark as it does on every other BOLD page and the hero starts below it; and BOLD's breadcrumb trail (.crumbs) at the
   top of the hero, in this file's own tokens. */

/* ---------- shut bold.css out of the wrapper ---------- */
.safe-home *,.safe-home *::before,.safe-home *::after{all:revert-layer}

/* Give BOLD's fixed topbar a real night background on system.html (visually identical to the 72px border-top below, so accessibility tools compute contrast against #0b0b0c rather than the light page surface) */
body:has(.safe-home) .topbar:not(.is-solid){background:var(--surface-night)}

/* ---------- the standalone page's :root and body, on the wrapper ---------- */
.safe-home{
  color-scheme:light;
  --surface:#f4f1ec;
  --surface-raised:#fbfaf7;
  --surface-sunk:#e7e2da;
  --surface-ink:#1c1b1a;
  --text:#1c1b1a;
  --text-dim:#5c5852;
  --text-on-ink:#f4f1ec;
  --brand:#ee1c25;
  --brand-deep:#c4141b;
  --highlight:#ee1c25;
  --line:rgba(28,27,26,.14);
  --focus:#1f5f99;
  --font:"Mona Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --gutter:clamp(16px,4.4vw,56px);
  --max:1320px;
  --radius:8px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
.safe-home{margin:0;background:var(--surface);color:var(--text);font-family:var(--font);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
.safe-home{border-top:72px solid var(--surface-night)}   /* under BOLD's fixed top bar (72px, .topbar__in): bold.css's night token */

.safe-home *,.safe-home *::before,.safe-home *::after{box-sizing:border-box}
.safe-home img{display:block;max-width:100%;height:auto}
.safe-home abbr[title]{text-decoration:none;border:0}
.safe-home .wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.safe-home :focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* ---------- the SAFE word ---------- */
.safe-home .safe-word{font-weight:800;font-stretch:118%;letter-spacing:.06em;color:var(--brand);white-space:nowrap}

/* ---------- hero ---------- */
.safe-home .hero{padding:clamp(40px,8vw,96px) 0 clamp(32px,6vw,72px)}
.safe-home .eyebrow{margin:0 0 14px;font-size:14px;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim)}
.safe-home .eyebrow .safe-word{letter-spacing:.14em;color:var(--brand-deep)}   /* small red text: the deeper red keeps 4.5:1 on the surface */
.safe-home .hero__title{margin:0;max-width:16ch;font-size:clamp(38px,8.6vw,92px);line-height:1.02;font-weight:760;font-stretch:96%;letter-spacing:-.015em}
.safe-home .safe{margin-top:clamp(32px,6vw,64px);border-top:1px solid var(--line)}
.safe-home .safe__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr}
.safe-home .safe__item{display:flex;flex-direction:column;gap:6px;padding:20px 12px 18px 0;border-bottom:1px solid var(--line)}
.safe-home .safe__item:nth-child(odd){padding-right:16px;border-right:1px solid var(--line)}
.safe-home .safe__item:nth-child(even){padding-left:16px}
.safe-home .safe__letter{font-size:clamp(56px,14vw,120px);line-height:.86;font-weight:820;font-stretch:120%;color:var(--brand)}
.safe-home .safe__word{font-size:clamp(15px,2.2vw,19px);font-weight:620;letter-spacing:.01em}
/* BOLD's breadcrumb trail ({{breadcrumb}}), the look of bold.css's .crumbs in this page's light tokens; the focus ring is the one above */
.safe-home .crumbs{margin:-10px 0 8px;font-size:14px;line-height:1.3}
.safe-home .crumbs__list{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}
.safe-home .crumbs__item{display:inline-flex;align-items:center;min-width:0;color:var(--text-dim)}
.safe-home .crumbs__item + .crumbs__item::before{content:"›";content:"›" / "";padding:0 8px;color:var(--text-dim)}
.safe-home .crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-decoration:none;text-underline-offset:4px}
.safe-home .crumbs a:hover,.safe-home .crumbs a:focus-visible{text-decoration:underline}
.safe-home .crumbs a:focus-visible{outline:3px solid var(--focus);outline-offset:3px} /* restated: bold.css's .crumbs ring (sky, for night) outranks the ring above and reads 1.6:1 on this light hero */


/* ---------- sections ---------- */
.safe-home .section-head{margin-bottom:clamp(20px,3vw,32px);max-width:62ch}
.safe-home .h2{margin:0 0 12px;font-size:clamp(28px,5vw,48px);line-height:1.08;font-weight:740;letter-spacing:-.01em}
.safe-home .h2--sub{margin-top:clamp(36px,5vw,56px);font-size:clamp(24px,3.4vw,34px)}
.safe-home .h3{margin:0 0 6px;font-size:19px;line-height:1.25;font-weight:700}
.safe-home .lede{margin:0;color:var(--text-dim);font-size:clamp(16px,1.6vw,19px)}
.safe-home .house,.safe-home .close{padding:clamp(24px,5vw,56px) 0 clamp(48px,8vw,96px)}
.safe-home .close{background:var(--surface-raised);border-top:1px solid var(--line)}

/* ---------- the house ---------- */
.safe-home .explorer{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.safe-home .explorer__stage,.safe-home .explorer__panel{min-inline-size:0}
.safe-home .stage{margin:0 calc(var(--gutter) * -1)}
.safe-home .stage__frame{position:relative;background:var(--surface-sunk);aspect-ratio:16/10;overflow:clip}
.safe-home .stage__pic,.safe-home .stage__pic img{display:block;width:100%;height:100%}
.safe-home .stage__pic img{object-fit:cover}
.safe-home .stage__pic[hidden]{display:none}
.safe-home .stage__glow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .25s var(--ease)}
.safe-home .stage__glow.is-on{opacity:1}
.safe-home .stage__pins{position:absolute;inset:0;pointer-events:none}
.safe-home .pin{appearance:none;border:0;padding:0;font-family:inherit;position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border-radius:50%;background:var(--surface-ink);color:var(--text-on-ink);font-size:13px;font-weight:750;display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface-raised),0 3px 10px rgba(0,0,0,.35);pointer-events:auto;cursor:pointer;opacity:1;transition:transform .16s var(--ease),background-color .18s,box-shadow .18s}
.safe-home .pin::after{content:"";position:absolute;inset:-8px} /* 44px touch target around each numbered pin */
.safe-home .pin:hover{transform:translate(-50%,-50%) scale(1.14);background:var(--brand-deep)}
.safe-home .pin.is-on{background:var(--brand-deep);transform:translate(-50%,-50%) scale(1.16);z-index:2;box-shadow:0 0 0 2.5px var(--surface-raised),0 0 0 6px rgba(238,28,37,.36)}
.safe-home .stage__cap{padding:12px var(--gutter) 0;font-size:15px;color:var(--text-dim);min-height:2.6em}
.safe-home .controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 0}
.safe-home .toggle{appearance:none;font:inherit;font-size:14.5px;font-weight:620;min-height:44px;padding:9px 16px;border-radius:999px;border:1.5px solid var(--text);background:var(--surface-raised);color:var(--text);cursor:pointer;transition:background-color .2s,color .2s}
.safe-home .toggle[aria-pressed="true"]{background:var(--text);color:var(--surface)}
.safe-home .toggle--reset{border-color:var(--brand);color:var(--brand-deep)}
.safe-home .toggle[aria-busy="true"]{cursor:progress}
.safe-home .stage__status{margin:10px 0 0;font-size:14.5px;color:var(--text-dim)}
.safe-home .stage__status:empty{margin:0}
.safe-home .stage__static{margin:12px 0 0;font-size:15.5px}
.safe-home .stage__static a{color:var(--brand-deep);font-weight:620;text-underline-offset:3px}
.safe-home .toggle:hover{background:var(--surface-sunk)}
.safe-home .toggle[aria-pressed="true"]:hover{background:var(--text)}
.safe-home .toggle:disabled,.safe-home .toggle:disabled:hover{opacity:.45;cursor:default;background:transparent}

/* active spotlight card (shown when JS enhances the explorer) */
.safe-home .spotlight{background:var(--surface-raised);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:var(--radius);padding:16px 18px;box-shadow:0 4px 16px rgba(28,27,26,.06)}
.safe-home .spotlight[hidden]{display:none}
.safe-home .spotlight__top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.safe-home .spotlight__step{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}
.safe-home .spotlight__nav{display:flex;gap:6px;margin-inline-start:auto}
.safe-home .step-btn{appearance:none;font:inherit;font-size:13.5px;font-weight:650;min-height:38px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;transition:background-color .16s,border-color .16s}
.safe-home .step-btn:hover{background:var(--surface-sunk);border-color:var(--text)}
.safe-home .spotlight__head{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.safe-home .spotlight__n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--brand-deep);color:var(--text-on-ink);display:grid;place-items:center;font-size:14px;font-weight:750}
.safe-home .spotlight__n[hidden]{display:none}
.safe-home .spotlight__title{margin:0;font-size:20px;line-height:1.2;font-weight:760;color:var(--text)}
.safe-home .spotlight__text{margin:0;color:var(--text-dim);font-size:15px;line-height:1.5}
.safe-home .spotlight__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.safe-home .spotlight__foot:empty{display:none}
.safe-home .spotlight__start{appearance:none;font:inherit;font-size:14.5px;font-weight:700;min-height:44px;padding:10px 16px;border-radius:999px;border:0;background:var(--brand-deep);color:var(--text-on-ink);cursor:pointer;transition:background-color .16s}
.safe-home .spotlight__start:hover{background:var(--surface-ink)}
.safe-home .spotlight__start[hidden],.safe-home .spotlight__more[hidden],.safe-home .spotlight__lift[hidden]{display:none}
.safe-home .spotlight__more{display:inline-flex;align-items:center;min-height:36px;color:var(--brand-deep);font-size:14.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.safe-home .spotlight__more:hover{color:var(--text)}
.safe-home .spotlight__lift{appearance:none;font:inherit;font-size:13.5px;font-weight:650;min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--brand);background:transparent;color:var(--brand-deep);cursor:pointer;transition:background-color .16s,color .16s}
.safe-home .spotlight__lift:hover{background:var(--brand-deep);color:var(--text-on-ink)}

/* no-JS default places list; compacted into a tactile numbered selector when .explorer.is-enhanced is active */
.safe-home .places{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}
.safe-home .place{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius);padding:4px 14px 14px;transition:border-color .18s,box-shadow .18s,background-color .18s}
.safe-home .place.is-on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.safe-home .place__btn{appearance:none;display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 0;margin:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.safe-home .place__btn:disabled{cursor:default}
.safe-home .place__h{margin:0;font:inherit}   /* the heading around each place's button: no h4 margin, size or weight of its own */
.safe-home .place__n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--surface-ink);color:var(--text-on-ink);display:grid;place-items:center;font-size:13.5px;font-weight:750;transition:background-color .18s}
.safe-home .place.is-on .place__n{background:var(--brand-deep)}
.safe-home .place__name{font-size:17px;font-weight:700;line-height:1.2}
.safe-home .place__text{margin:2px 0 0 38px;color:var(--text-dim);font-size:15.5px}

/* enhanced explorer: compact picker right beside (desktop) or right beneath (mobile) the house */
.safe-home .explorer.is-enhanced .stage__cap,
.safe-home .explorer.is-enhanced #places-title,
.safe-home .explorer.is-enhanced .place__text{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.safe-home .explorer.is-enhanced .places{position:relative;margin:12px 0 0;max-inline-size:100%;display:flex;overflow-x:auto;gap:8px;padding:2px 2px 8px;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
@media (max-width:480px){
  .safe-home .controls{gap:8px}
  .safe-home .toggle{font-size:13.5px;padding:8px 12px}
}
.safe-home .explorer.is-enhanced .place{position:relative;overflow:clip;flex:0 0 auto;padding:0;scroll-snap-align:start;border-radius:999px}
.safe-home .explorer.is-enhanced .place:hover{border-color:var(--text);background:var(--surface-sunk)}
.safe-home .explorer.is-enhanced .place.is-on{background:var(--surface-raised);border-color:var(--brand-deep);box-shadow:0 0 0 1px var(--brand-deep)}
.safe-home .explorer.is-enhanced .place__btn{min-height:44px;padding:6px 14px 6px 8px;gap:8px;white-space:nowrap}
.safe-home .explorer.is-enhanced .place__n{width:26px;height:26px;font-size:13px}
.safe-home .explorer.is-enhanced .place__name{font-size:14.5px;font-weight:660}

.safe-home .note{margin:24px 0 0;padding:14px 16px;border-left:3px solid var(--brand);background:var(--surface-raised);font-size:15px;color:var(--text-dim);max-width:70ch}

/* ---------- up close ---------- */
.safe-home .close__grid{display:grid;gap:clamp(28px,4vw,40px)}
.safe-home .detail{margin:0;scroll-margin-top:88px}
.safe-home .detail:target .detail__frame{box-shadow:0 0 0 3px var(--brand)}
.safe-home .detail__link{color:var(--brand-deep);font-weight:620;text-decoration:underline;text-underline-offset:3px}
.safe-home .detail__link:visited{color:var(--focus)}
.safe-home .detail__link:hover{color:var(--text)}
.safe-home .sample-drawer{margin-top:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.safe-home .sample-drawer__summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 14px;font-size:14.5px;font-weight:650;color:var(--text);cursor:pointer;list-style:none}
.safe-home .sample-drawer__summary::-webkit-details-marker{display:none}
.safe-home .sample-drawer__summary::after{content:"+";flex:none;width:24px;height:24px;border-radius:50%;background:var(--surface-ink);color:var(--text-on-ink);display:grid;place-items:center;font-size:15px;font-weight:700;line-height:1}
.safe-home .sample-drawer[open] .sample-drawer__summary::after{content:"−";background:var(--brand-deep)}
.safe-home .sample-drawer__summary:hover{background:var(--surface-sunk)}
.safe-home .sample-drawer__body{padding:0 14px 14px;border-top:1px solid var(--line)}
.safe-home .sample-drawer__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.safe-home .sample-drawer__grid--three{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.56fr)}
.safe-home .sample-drawer__grid--swatches{grid-template-columns:repeat(3,1fr)}
.safe-home .sample-drawer__item{margin:0;background:var(--surface-raised);border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
.safe-home .sample-drawer__item img{width:100%;height:auto;object-fit:cover}
.safe-home .sample-drawer__item--contain{background:#fff}
.safe-home .sample-drawer__item--contain img{object-fit:contain;max-height:190px;padding:8px;background:#fff}
.safe-home .sample-drawer__item--swatch img{aspect-ratio:1/1.5;object-fit:cover}
.safe-home .sample-drawer__item figcaption{padding:7px 9px;font-size:12.5px;line-height:1.35;color:var(--text-dim);border-top:1px solid var(--line)}
.safe-home .sample-drawer__foot{margin:10px 0 0;font-size:13.5px;color:var(--text-dim)}
@media (max-width:520px){
  .safe-home .sample-drawer__grid--three{grid-template-columns:1fr 1fr}
  .safe-home .sample-drawer__grid--three .sample-drawer__item:last-child{grid-column:1 / -1}
  .safe-home .sample-drawer__grid--swatches{grid-template-columns:repeat(2,1fr)}
}
.safe-home .detail__frame{position:relative;background:var(--surface-sunk);border-radius:var(--radius);overflow:hidden;aspect-ratio:16/10}
.safe-home .detail__frame img{width:100%;height:100%;object-fit:cover}
.safe-home .detail__cap{padding-top:12px}
.safe-home .detail__cap p{margin:0;color:var(--text-dim);font-size:15.5px}
.safe-home .detail__cap p + p{margin-top:8px}
.safe-home .detail__cap .detail__more{margin-top:10px}
.safe-home .keys{margin:10px 0 0;padding:0;list-style:none;counter-reset:key;display:grid;gap:6px;font-size:15px}
.safe-home .keys li{counter-increment:key;display:flex;gap:10px;align-items:center}
.safe-home .keys li::before{content:counter(key);flex:none;width:24px;height:24px;border-radius:50%;background:var(--surface-ink);color:var(--text-on-ink);display:grid;place-items:center;font-size:12px;font-weight:700}
.safe-home .dot{position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;border-radius:50%;background:var(--surface-ink);color:var(--text-on-ink);font-size:12px;font-weight:700;display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface-raised)}

/* ---------- closing ---------- */
.safe-home .closing{background:var(--surface-ink);color:var(--text-on-ink);padding:clamp(56px,10vw,128px) 0}
.safe-home .closing__title{margin:0;max-width:18ch;font-size:clamp(34px,7vw,80px);line-height:1.04;font-weight:760;letter-spacing:-.015em}

/* ---------- tablet and up ---------- */
@media (min-width:640px){
  .safe-home .explorer.is-enhanced .places{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:visible;padding:0;gap:8px}
  .safe-home .explorer.is-enhanced .place{border-radius:var(--radius)}
  .safe-home .explorer.is-enhanced .place__btn{white-space:normal;padding:8px 10px;height:100%}
}
@media (min-width:768px){
  .safe-home .safe__list{grid-template-columns:repeat(4,1fr)}
  .safe-home .safe__item{padding:24px 18px 22px;border-bottom:0;border-right:1px solid var(--line)}
  .safe-home .safe__item:nth-child(odd),.safe-home .safe__item:nth-child(even){padding:24px 18px 22px}
  .safe-home .safe__item:first-child{padding-left:0}
  .safe-home .safe__item:last-child{border-right:0}
  .safe-home .stage{margin:0}
  .safe-home .stage__frame{border-radius:var(--radius)}
  .safe-home .stage__cap{padding-left:0;padding-right:0}
  .safe-home .places{grid-template-columns:1fr 1fr}
  .safe-home .close__grid{grid-template-columns:1fr 1fr}
  .safe-home .detail--wide{grid-column:1 / -1}
  .safe-home .pin{width:32px;height:32px;font-size:14px}
}
@media (min-width:1024px){
  .safe-home .explorer.is-enhanced{grid-template-columns:minmax(0,1.55fr) minmax(330px,1fr);gap:clamp(20px,2.4vw,32px);align-items:start}
  .safe-home .explorer.is-enhanced .explorer__stage{position:sticky;top:86px}
  .safe-home .explorer.is-enhanced .places{grid-template-columns:repeat(2,minmax(0,1fr))}
  .safe-home .explorer.is-enhanced .place:last-child:nth-child(odd){grid-column:1 / -1}
}
@media (min-width:1100px){
  .safe-home .places{grid-template-columns:repeat(3,1fr)}
  .safe-home .detail--wide{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:32px;align-items:start}
  .safe-home .detail--wide .detail__cap{padding-top:0}
}
@media (prefers-reduced-motion:reduce){
  .safe-home *,.safe-home *::before,.safe-home *::after{transition:none !important;animation:none !important}
}
