/* base.css: self-hosted faces (latin + latin-ext, so ș ț ă â î come from the face), reset, page ground, type, layout primitives, reveal recipe. */
@font-face{font-family:'Cinzel';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/cinzel-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/cinzel-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 600;font-display:swap;src:url(../fonts/open-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:300 600;font-display:swap;src:url(../fonts/open-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--ground);color-scheme:dark}
body{margin:0;min-height:100svh;background:var(--ground);color:var(--ink);font-family:var(--font-body);font-size:var(--fs-body);
  font-weight:400;line-height:var(--lh-body);letter-spacing:.01em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;overflow-x:clip}
body[data-ground="deep"],body[data-ground="deep"] .page-ground{background:var(--ground-deep)}
img,video,svg,picture{display:block;max-width:100%}
img{height:auto}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer}
h1,h2,h3,h4,.h1,.h2,.h3{font-family:var(--font-display);font-weight:400;margin:0;letter-spacing:var(--track-display);text-wrap:balance}
h1,.h1{font-size:var(--fs-display);line-height:var(--lh-display)}
h2,.h2{font-size:var(--fs-h2);line-height:var(--lh-h2)}
h3,.h3{font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:.02em}
p{margin:0}
p+p{margin-top:1em}
::selection{background:var(--accent);color:var(--on-accent)}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;left:12px;top:12px;z-index:100;padding:12px 18px;border-radius:var(--r-s);background:var(--ink);color:var(--ground);text-decoration:none;transform:translateY(-200%);transition:transform var(--t-ui) var(--ease-out)}
.skip:focus{transform:none}

/* layout primitives */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);width:100%}
.wrap--narrow{max-width:calc(var(--measure) + 2 * var(--gutter))}
.sec{position:relative}                       /* every content section; rhythm.js sets its margin-top */
.sec:last-of-type{padding-bottom:var(--gap-s)}
.lede{font-size:var(--fs-lede);line-height:var(--lh-lede);font-weight:300;color:var(--ink-muted);max-width:var(--measure)}
.prose{max-width:var(--measure);color:var(--ink-muted)}
.prose p+p{margin-top:1.1em}
.small{font-size:var(--fs-small);letter-spacing:var(--track-small);text-transform:uppercase;color:var(--ink-faint);line-height:1.4}
.muted{color:var(--ink-muted)}
.media{border-radius:var(--r-m);overflow:hidden;background:var(--surface)}
.media img{width:100%;height:100%;object-fit:cover}

/* ---------- house reveal recipe (protected effect 2) ----------
   Scrubbed by scroll position at BOTH edges: blur + rise in from the bottom, blur + rise out at the top, replays every pass.
   site.js writes --rv (0..1) and --rd (+1 entering from below, -1 leaving at the top); IntersectionObserver only
   activates/deactivates the rAF loop, both ways, never unobserve. Siblings stagger by index (0..2). */
.rv,[data-reveal]{--rv:1;--rd:1;opacity:var(--rv);
  transform:translate3d(0,calc((1 - var(--rv)) * 40px * var(--rd)),0);
  filter:blur(calc((1 - clamp(0, (var(--rv) - .3) / .64, 1)) * 8px))}
.rv.rv-done,[data-reveal].rv-done{transform:none;filter:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-rate]{transform:none!important;will-change:auto}
  .rv,[data-reveal]{opacity:1!important;transform:none!important;filter:none!important}
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* ---------- ground grain (DESIGN.md 11.1): inline SVG noise, no image request; heroes paint over it (they keep their approved look) ---------- */
body{position:relative}
body::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:var(--grain-opacity);mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:200px 200px}
main,.site-ftr{position:relative;z-index:1}
