/* ===========================================================================
   Base: reset, body, links, focus, utilities, the shared button system.
   =========================================================================== */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 64px)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{
  margin:0;
  background:var(--cream);
  color:var(--text);
  font-family:var(--font-text);
  font-size:var(--fs-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
img,svg,video{max-width:100%;height:auto}
img{display:block}
/* WordPress chrome is not ours: keep the reset off the admin bar */
#wpadminbar img{max-width:none}
a{color:var(--red-deep);text-underline-offset:3px}
a:hover{color:var(--red)}
p{margin:0 0 1em}
h1,h2,h3,h4,h5,h6{margin:0 0 .5em;line-height:1.1}
button{font:inherit}
::selection{background:var(--saffron);color:var(--ink)}

/* Every inline SVG icon gets a size. An unsized <svg> in a flex row grows to
   fill the line box — a 60px glyph beside 14px text. */
.ico{width:1em;height:1em;flex:none;display:inline-block;vertical-align:-.14em}
.mi{width:56px;height:56px;flex:none;display:block}
.mi .f{fill:currentColor;stroke:none}

/* ------------------------------------------------------------------ focus */
/* Keep the outline; never swap it for a soft ring. */
:focus-visible{outline:3px solid var(--red-deep);outline-offset:3px;border-radius:4px}
/* a red ring vanishes on red and on espresso — light ring on dark grounds */
.promo-bar :focus-visible,
.site-header :focus-visible,
.drawer :focus-visible,
.site-footer :focus-visible,
.callbar :focus-visible,
body .elementor .sec-red :focus-visible,
body .elementor .sec-ink :focus-visible,
body .elementor .sec-green :focus-visible,
body .elementor .page-hero :focus-visible{outline-color:var(--saffron)}

.skip-link{
  position:absolute;left:12px;top:-60px;z-index:1000;
  background:var(--ink);color:var(--on-dark);
  padding:.7rem 1rem;border-radius:var(--r-xs);
  font-family:var(--font-cond);font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  text-decoration:none;transition:top .2s var(--ease);
}
.skip-link:focus{top:12px;color:var(--on-dark)}
.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}
#main:focus{outline:none}

.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}

/* --------------------------------------------------------------- buttons */
/* One system for every button the theme draws itself (chrome, shortcodes,
   HTML widgets). The Elementor button widget is mapped onto the same look in
   30-elementor.css. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  min-height:50px;padding:.8rem 1.4rem;
  border:2px solid transparent;border-radius:var(--r-sm);
  font-family:var(--font-cond);font-size:1.02rem;font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;line-height:1;
  text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:transform .18s var(--ease),background-color .18s var(--ease),
             color .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.btn .ico{font-size:1.15em}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn-red{background:var(--red);color:var(--white);box-shadow:var(--shadow-red)}
.btn-red:hover{background:var(--red-hot);color:var(--white)}
.btn-white{background:var(--white);color:var(--red-deep)}
.btn-white:hover{background:var(--paper);color:var(--red)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.btn-ghost:hover{border-color:var(--ink);color:var(--ink)}
.btn-ghost-light{background:transparent;color:var(--on-dark);border-color:rgba(255,246,227,.55)}
.btn-ghost-light:hover{border-color:var(--white);color:var(--white);background:rgba(255,255,255,.06)}
.btn-sm{min-height:40px;padding:.55rem 1rem;font-size:.9rem}
.btn-block{width:100%}

/* The web-code chip: tap to copy. */
.code-chip{
  display:inline-flex;align-items:center;gap:.45rem;
  font-family:var(--font-cond);font-weight:600;font-size:.88rem;letter-spacing:.12em;
  padding:.32rem .6rem .32rem .7rem;border-radius:var(--r-xs);
  border:2px dashed currentColor;background:transparent;color:inherit;cursor:pointer;
  line-height:1.1;
}
.code-chip .ico{font-size:1rem}
.code-chip.is-copied{border-style:solid}
.code-chip-t{font:inherit;letter-spacing:inherit}

/* ----------------------------------------------------------------- prose */
.prose{max-width:min(70ch,100%)}
.prose h2{font-family:var(--font-display);font-weight:400;font-size:var(--fs-h3);color:var(--red-deep);margin-top:1.6em}
.prose a{color:var(--red-deep)}
.prose img{border-radius:var(--r-sm);margin-block:1.5rem}

.page-head{
  background:var(--red) var(--pat-doodle);
  color:var(--white);padding:clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.page-head h1{font-family:var(--font-display);font-weight:400;font-size:var(--fs-h1);
  line-height:var(--lh-display);margin:0;color:var(--white)}
.page-eyebrow{font-family:var(--font-script);font-size:var(--fs-kicker);color:var(--saffron-light);margin:0 0 .3rem}
.page-lede{font-size:var(--fs-lede);line-height:1.55;color:rgba(255,255,255,.9);max-width:60ch;margin:.9rem 0 0}
.content-wrap{padding:var(--section-y-tight) 0}

.post-grid{list-style:none;margin:0;padding:0;display:grid;gap:var(--pbg-gap);
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.post-card{background:var(--white);border-radius:var(--r);padding:1.5rem;box-shadow:var(--shadow-1)}
.post-card h2{font-family:var(--font-display);font-weight:400;font-size:1.4rem;margin:.3rem 0 .6rem}
.post-card h2 a{color:var(--ink);text-decoration:none}
.post-card h2 a:hover{color:var(--red)}
.post-meta{font-family:var(--font-cond);font-size:var(--fs-label);letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted)}
.pagination{margin-top:2.5rem}
.pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap}
.pagination .page-numbers{display:inline-grid;place-items:center;min-width:44px;height:44px;
  padding:0 .8rem;border-radius:var(--r-xs);background:var(--white);color:var(--ink);text-decoration:none;
  font-family:var(--font-cond);font-weight:600}
.pagination .page-numbers.current{background:var(--red);color:var(--white)}

.search-form{display:flex;gap:.5rem;max-width:520px}
.search-form label{flex:1}
.search-form .search-field{width:100%;min-height:50px;padding:.7rem 1rem;border-radius:var(--r-sm);
  border:2px solid var(--line-strong);background:var(--white);font:inherit;color:var(--text)}
.search-form .search-submit{min-height:50px;padding:0 1.3rem;border:0;border-radius:var(--r-sm);
  background:var(--red);color:var(--white);font-family:var(--font-cond);font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;cursor:pointer}

.notfound{text-align:center;padding:var(--section-y) 0}
.notfound .nf-num{font-family:var(--font-display);font-size:clamp(6rem, 3rem + 12vw, 12rem);
  line-height:.9;color:var(--red)}
.notfound p{max-width:46ch;margin:1rem auto 2rem}
.notfound .nf-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
