/* ===========================================================================
   Base: reset, type, links, focus, and the button and label vocabulary the
   PHP-rendered components (header, footer, reviews, map, forms) share with
   the Elementor widgets in 30-elementor.css.
   =========================================================================== */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 24px)}
body{
  margin:0;background:var(--paper);color:var(--text);
  font-family:var(--font-text);font-size:var(--fs-body);font-weight:400;line-height:1.68;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;overflow-x:clip;
}
main{display:block;background:var(--paper)}
main:focus{outline:none}
img,svg,video{max-width:100%;height:auto}
img{border-style:none}
picture{display:contents}
figure{margin:0}
p{margin:0 0 1.1em}
h1,h2,h3,h4,h5,h6{margin:0 0 .5em;font-family:var(--font-display);font-stretch:var(--wide);font-weight:800;line-height:1.05;color:inherit}
ul,ol{margin:0 0 1.1em;padding-left:1.25em}
a{color:var(--blue);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--blue-hi)}
/* An Elementor kit's "Theme Style" sets a font, a case and a margin on bare
   a / p / h1–h6 at (0,1,1). `html .bem x` is (0,1,2): it wins that tie on any
   site, and any component rule with a class still wins over it. */
html .bem a{font-family:inherit;text-transform:inherit}
html .bem p{margin-block-end:1.1em}
html .bem h1,html .bem h2,html .bem h3,html .bem h4,html .bem h5,html .bem h6{text-transform:none;letter-spacing:normal}
button{font:inherit}
hr{border:0;height:1px;background:var(--line);margin:2rem 0}
table{border-collapse:collapse;width:100%}
::selection{background:var(--flame);color:var(--navy)}

/* An unsized inline SVG in a flex row grows to fill it: every icon gets a
   base size, so a missing component rule is slightly wrong, never enormous. */
.bem .ico{width:1em;height:1em;flex:none;display:inline-block;vertical-align:-.125em}

/* --------------------------------------------------------------- focus */
/* Keep the outline; style :focus-visible. Blue on light grounds, flame on
   every dark one (header over a hero, heroes, footer, drawer, dark bands). */
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:2px}
.bem .bem-el-topbar :focus-visible,.bem.has-hero .site-header:not(.is-scrolled) :focus-visible,
.bem :is(.hero,.page-hero,.page-head,.sec-blue,.sec-navy,.sec-seasons,.bem-el-ctaband,.bem-el-footer,.bem-el-footer-bottom,.drawer-panel) :focus-visible{outline-color:var(--flame)}

.bem .skip-link{
  position:fixed;left:1rem;top:-100px;z-index:1000;
  background:var(--flame);color:var(--navy);padding:.7rem 1.1rem;border-radius:var(--r-sm);
  font-weight:700;font-size:1rem;text-decoration:none;
}
.bem .skip-link:focus{top:1rem}
.bem .screen-reader-text{
  position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

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

/* --------------------------------------------------------------- buttons */
/* .btn is the PHP components' button; Elementor buttons get the same look
   through 30-elementor.css. Ember is the one primary action. */
.bem .btn{
  --b-bg:var(--ember-btn);--b-fg:var(--white);--b-bd:var(--ember-btn);
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:52px;padding:.75rem 1.5rem;border:2px solid var(--b-bd);border-radius:var(--pill);
  background:var(--b-bg);color:var(--b-fg);
  font-family:var(--font-text);font-size:1.02rem;font-weight:700;letter-spacing:.005em;line-height:1.1;
  text-decoration:none;cursor:pointer;position:relative;
  transition:background-color .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease),transform .2s var(--ease),box-shadow .2s var(--ease);
}
.bem .btn:hover{color:var(--b-fg);transform:translateY(-1px)}
.bem .btn .ico{width:1.15em;height:1.15em}
.bem .btn-ember{box-shadow:var(--shadow-ember)}
.bem .btn-ember:hover{--b-bg:var(--ember-lo);--b-bd:var(--ember-lo)}
.bem .btn-blue{--b-bg:var(--blue);--b-bd:var(--blue);box-shadow:var(--shadow-blue)}
.bem .btn-blue:hover{--b-bg:var(--blue-hi);--b-bd:var(--blue-hi)}
.bem .btn-outline{--b-bg:var(--white);--b-fg:var(--blue);--b-bd:var(--line-strong)}
.bem .btn-outline:hover{--b-bd:var(--blue);color:var(--blue)}
.bem .btn-ghost{--b-bg:rgba(255,255,255,.08);--b-fg:var(--white);--b-bd:rgba(255,255,255,.5)}
.bem .btn-ghost:hover{--b-bg:rgba(255,255,255,.16);--b-bd:var(--white);color:var(--white)}

/* a text link with a drawn arrow */
.bem .link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.98rem;font-weight:700;color:var(--blue);text-decoration:none;
}
.bem .link-arrow::after{content:"";width:1.3em;height:2px;border-radius:2px;background:var(--ember);transition:width .25s var(--ease)}
.bem .link-arrow:hover{color:var(--blue-hi)}
.bem .link-arrow:hover::after{width:2.1em}

/* the label: mono caps after a short thermal line */
.bem .kick{
  display:inline-flex;align-items:center;gap:.7rem;margin:0 0 .9rem;
  font-family:var(--font-mono);font-size:var(--fs-kicker);font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--blue);
}
.bem .kick::before{content:"";width:26px;height:3px;border-radius:3px;background:var(--ember);flex:none}

/* ---------------------------------------------------------- generic page */
/* posts, search and the 404: the same night ground as every page hero */
.bem .page-head{
  position:relative;isolation:isolate;overflow:hidden;
  padding:calc(var(--header-h) + var(--topbar-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(3rem, 2rem + 3vw, 4.75rem);
  background:var(--navy);
  background-color:var(--navy);color:var(--on-dark);
}
.bem .page-head::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.75;pointer-events:none;
  background:url("../img/pat-isotherm.svg") center / cover no-repeat}
.bem .page-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--ember)}
.bem .page-head .kick{color:var(--flame)}
.bem .page-head h1{font-size:var(--fs-h1);font-weight:800;line-height:1.02;color:var(--white);margin:0;max-width:22ch;text-wrap:balance}
.bem .page-head-lede{margin:1.2rem 0 0;max-width:56ch;color:var(--on-dark-2);font-size:var(--fs-lede)}
.bem .page-head-btns{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.8rem 0 0}
.bem .content-wrap{padding:var(--section-y) 0;background:var(--paper)}
.bem .prose{max-width:min(72ch,100%);margin-inline:auto;color:var(--text-2)}
.bem .prose h2{font-size:clamp(1.55rem, 1.3rem + 1vw, 2.1rem);color:var(--text);margin:2.4rem 0 .8rem}
.bem .prose h3{font-size:1.3rem;color:var(--text);margin-top:1.8rem}
.bem .prose strong{color:var(--text)}
.bem .prose img{border-radius:var(--r)}
.bem .prose a{color:var(--blue);font-weight:600}
.bem .prose ul{padding:0;list-style:none}
.bem .prose ul li{position:relative;padding-left:1.6rem;margin-bottom:.55rem}
.bem .prose ul li::before{content:"";position:absolute;left:0;top:.62em;width:10px;height:10px;border-radius:50%;border:2px solid var(--ember)}
.bem .prose blockquote{margin:1.6rem 0;padding:.4rem 0 .4rem 1.4rem;border-left:3px solid var(--ember);font-size:1.2rem;color:var(--text)}

/* posts list (blog index / search) */
.bem .post-list{display:grid;gap:1.25rem;max-width:860px;margin-inline:auto;padding:0;list-style:none}
.bem .post-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:1.6rem 1.8rem;box-shadow:var(--shadow-1)}
.bem .post-card h2{font-size:1.45rem;margin:0 0 .35rem}
.bem .post-card h2 a{color:var(--text);text-decoration:none}
.bem .post-card h2 a:hover{color:var(--blue)}
.bem .post-meta{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:.7rem}
.bem .pager{display:flex;justify-content:center;gap:.5rem;margin-top:2.5rem}
.bem .pager .page-numbers{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 .7rem;border:1px solid var(--line-strong);border-radius:var(--pill);color:var(--text);text-decoration:none}
.bem .pager .page-numbers.current{background:var(--blue);border-color:var(--blue);color:var(--white)}

/* forms (search, comments) */
input[type=text],input[type=email],input[type=tel],input[type=search],input[type=number],input[type=url],input[type=password],select,textarea{
  width:100%;min-height:50px;padding:.65rem 1rem;border:1px solid var(--line-strong);border-radius:var(--r-sm);
  background:#F2F6FC;color:var(--text);font:inherit;font-size:1rem;
}
textarea{min-height:120px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue);background:var(--white)}
.bem .search-form{display:flex;gap:.6rem;max-width:520px;margin:0 auto 2rem}
.bem .search-form label{flex:1}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}
