/* Wexesto. site.css
   One stylesheet for every page. Nothing loads from another host.
   Cards are index cards with a tab; heavy near-black bars are the structural rules;
   the edge figure's rectangle, triangle and arc are the source of every mark. */

:root {
  --ground: #ECF0F2;
  --card: #FBFCFC;
  --ink: #14191D;
  --muted: #556370;
  --line: #C4CDD4;
  --green: #2E9E36;
  --green-deep: #237A2A;
  --slab: Rockwell, "Rockwell Nova", "American Typewriter", "Roboto Slab", "DejaVu Serif", Georgia, serif;
  --sans: Seravek, "Gill Sans Nova", "Gill Sans", Ubuntu, Calibri, "DejaVu Sans", "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 84rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
img, svg { max-width: 100%; }
svg { display: block; width: 100%; height: auto; }

a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wx-skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--card);
  font-size: 0.875rem;
}
.wx-skip:focus { top: 0.75rem; }

.wx-wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Type ---------- */

.wx-tab-label,
.wx-card__tab {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wx-statement {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.wx-title {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  text-wrap: balance;
}

.wx-h2 {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.625rem);
  line-height: 1.15;
  text-wrap: balance;
}

.wx-q {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.wx-price {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.25rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.wx-price small { font-family: var(--sans); font-weight: 500; font-size: 0.875rem; color: var(--muted); margin-left: 0.35rem; }

.wx-lead { font-size: 1.25rem; line-height: 1.5; max-width: 40ch; }
.wx-meta { font-size: 0.875rem; color: var(--muted); }
.wx-prose { max-width: 62ch; }
.wx-prose p + p { margin-top: 0.9em; }
.wx-sign { margin-top: 1.25rem; font-family: var(--slab); font-weight: 700; }

/* ---------- Header ---------- */

.wx-topbar { height: 0.5rem; background: var(--ink); }

.wx-header { position: relative; z-index: 50; }
.wx-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.wx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wx-mark { width: 1.6rem; height: 1.6rem; flex: none; }

.wx-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.wx-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.wx-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  bottom: 0.3rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--green);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}
.wx-nav a:hover::after,
.wx-nav a[aria-current="page"]::after { transform: scale(1); }
.wx-nav a[aria-current="page"] { color: var(--ink); }

.wx-menu { display: none; position: relative; }
.wx-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wx-menu__toggle::-webkit-details-marker { display: none; }
.wx-menu__toggle::marker { content: ""; }
.wx-menu__toggle .wx-chev { width: 0.9rem; transform: rotate(90deg); transition: transform 0.2s var(--ease); }
.wx-menu[open] .wx-menu__toggle .wx-chev { transform: rotate(-90deg); }
.wx-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(18rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.5rem 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-top-width: 0.5rem;
}
.wx-menu__panel ul { list-style: none; }
.wx-menu__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.wx-menu__panel a:hover { transform: translateX(4px); color: var(--green-deep); }
.wx-menu__panel a[aria-current="page"] { color: var(--green-deep); }
.wx-js .wx-menu__panel { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.wx-js .wx-menu.is-open .wx-menu__panel { opacity: 1; transform: none; }

.wx-chev { display: inline-block; width: 0.85em; height: 0.85em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; vertical-align: -0.08em; }

/* ---------- Bars and grid ---------- */

.wx-bar {
  position: relative;
  height: 0.5rem;
  margin-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--ink);
}
.wx-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green);
  transform: translateY(-50%);
}
.wx-bar--plain::before { display: none; }

.wx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 1.5rem;
  align-items: start;
}

.wx-section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.wx-section-head .wx-tab-label { color: var(--muted); }
.wx-section-head .wx-h2 { margin-top: 0.45rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.wx-section-head p:last-child:not(.wx-tab-label) { margin-top: 0.7rem; max-width: 56ch; color: var(--muted); }

/* ---------- Index cards ---------- */

.wx-card {
  position: relative;
  min-width: 0;
  margin-top: 1.9rem;
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}
.wx-card__tab {
  position: absolute;
  left: -1px;
  bottom: calc(100% + 3px);
  padding: 0.38rem 0.85rem 0.3rem;
  background: var(--ink);
  color: var(--card);
  white-space: nowrap;
}
.wx-card__tab--green { background: var(--green); color: var(--ink); }
.wx-card__tab--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-bottom: 0; }
.wx-card > * + * { margin-top: 0.85rem; }
.wx-card .wx-h2 + p { margin-top: 0.6rem; }
.wx-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.wx-card--long { border-top-color: var(--green); border-top-width: 0.5rem; }

.wx-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.1rem;
  transition: gap 0.2s var(--ease);
}
.wx-more:hover { gap: 0.75rem; }

.wx-list { list-style: none; }
.wx-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  border-top: 1px solid var(--line);
}
.wx-list li:last-child { border-bottom: 1px solid var(--line); }
.wx-list + .wx-card__foot { border-top: 0; padding-top: 0; }
.wx-deck__panels .wx-card > p,
.wx-deck__panels .wx-list { max-width: 44rem; }
.wx-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ink);
}
.wx-list strong { font-weight: 700; }

.wx-rows { list-style: none; }
.wx-rows li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.wx-rows li:first-child { border-top: 1px solid var(--line); }
.wx-rows span:last-child { margin-left: auto; font-family: var(--slab); font-weight: 700; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.wx-rows .is-off span:last-child { font-family: var(--sans); font-weight: 400; color: var(--muted); }

/* ---------- Hero ---------- */

.wx-hero { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.wx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
.wx-hero__text .wx-tab-label { color: var(--muted); }
.wx-hero__text .wx-statement { margin-top: 1rem; }
.wx-hero__promise { margin-top: 1.4rem; font-size: 1.25rem; line-height: 1.45; max-width: 36ch; }
.wx-hero__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 1.25rem; font-weight: 600; }
.wx-fig { margin-top: 1.9rem; padding: 1rem 1rem 0.9rem; }
.wx-fig figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Questions and the card index ---------- */

.wx-q-card .wx-q { margin-top: 0.1rem; }
.wx-q-card p { font-size: 1.125rem; }

/* ---------- Strips: snapping horizontal rows ---------- */

.wx-strip { position: relative; }
.wx-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.wx-strip__controls { display: flex; align-items: center; gap: 0.6rem; }
html:not(.wx-js) .wx-strip__controls { display: none; }
.wx-strip__btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.wx-strip__btn:hover { background: var(--ink); color: var(--card); }
.wx-strip__btn[disabled] { opacity: 0.35; cursor: default; background: var(--card); color: var(--ink); }
.wx-strip__btn--prev .wx-chev { transform: rotate(180deg); }
.wx-strip__count { min-width: 4.5rem; text-align: center; font-family: var(--slab); font-weight: 700; font-variant-numeric: tabular-nums; }

.wx-strip__track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 19rem);
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 0.25rem 0.25rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.wx-strip__item { scroll-snap-align: start; min-width: 0; }
.wx-strip__item .wx-card { height: calc(100% - 1.9rem); display: flex; flex-direction: column; }
.wx-strip__item .wx-card__foot { margin-top: auto; }
.wx-strip__item svg { margin-top: 0.4rem; }

.wx-rail {
  position: relative;
  height: 0.5rem;
  margin-top: 0.25rem;
  background: var(--ink);
}
html:not(.wx-js) .wx-rail { display: none; }
.wx-rail__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--green);
  transform: translate(0, -50%);
  transition: left 0.3s var(--ease);
}

/* ---------- Thermometer, wax by snow temperature ---------- */

.wx-thermo {
  position: relative;
  height: 0.75rem;
  margin-top: 0.6rem;
  background: var(--ground);
  border: 1px solid var(--ink);
}
.wx-thermo__band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: var(--width);
  background: var(--green);
}
/* The bar runs from minus 20 to plus 5, so zero sits at 80 percent. */
.wx-thermo::before,
.wx-thermo::after { content: ""; position: absolute; top: -0.25rem; bottom: -0.25rem; width: 1px; background: var(--ink); z-index: 1; }
.wx-thermo::before { left: 40%; }
.wx-thermo::after { left: 80%; }
.wx-thermo__scale { position: relative; height: 1.1rem; margin-top: 0.35rem; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wx-thermo__scale span { position: absolute; top: 0; left: var(--at); transform: translateX(-50%); white-space: nowrap; }
.wx-thermo__scale span:first-child { transform: none; }

/* ---------- Tab deck (tuning) ---------- */

.wx-deck__tabs { display: none; }
.wx-js .wx-deck__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: -1px;
}
.wx-deck__tab {
  padding: 0.55rem 1rem 0.45rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--ground);
  color: var(--ink);
  font: 600 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.wx-deck__tab[aria-selected="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.wx-deck__panels > .wx-card + .wx-card { margin-top: 3.25rem; }
.wx-js .wx-deck__panels > .wx-card { margin-top: 0; }
.wx-js .wx-deck__panels > .wx-card .wx-card__tab { display: none; }
.wx-js .wx-deck__panels > .wx-card[hidden] { display: none; }
.wx-js .wx-deck__panels > .wx-card.is-entering { animation: wx-lift 0.18s var(--ease); }
@keyframes wx-lift { from { transform: translateY(0.5rem); } to { transform: none; } }

.wx-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; }

/* ---------- Contact ---------- */

.wx-email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(1.5rem, 0.4rem + 5.6vw, 4.25rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-decoration-thickness: 4px;
}

/* ---------- Next block and footer ---------- */

.wx-next { margin-top: clamp(3rem, 7vw, 5rem); }
.wx-next .wx-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.wx-next .wx-card > * + * { margin-top: 0; }
.wx-next__links { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.wx-next__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  text-decoration: none;
  transition: padding 0.2s var(--ease);
}
.wx-next__links li:last-child a { border-bottom: 1px solid var(--line); }
.wx-next__links a:hover { padding-left: 0.5rem; }
.wx-next__links .wx-chev { width: 1.1rem; height: 1.1rem; color: var(--green-deep); }
.wx-next__mark { width: 4.5rem; height: 4.5rem; }
.wx-map { display: block; width: 100%; max-width: 22rem; margin-inline: auto; }
@media (max-width: 43.99rem) { .wx-next__mark { display: none; } }

.wx-footer { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--ink); color: var(--ground); }
.wx-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.wx-footer a { color: var(--ground); }
.wx-footer__name { font-family: var(--slab); font-weight: 700; font-size: 1.6rem; text-decoration: none; }
.wx-footer__head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA7B2; margin-bottom: 0.6rem; }
.wx-footer__list { list-style: none; }
.wx-footer__list a { display: inline-block; padding: 0.25rem 0; text-decoration: none; }
.wx-footer__list a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.wx-footer__list a[aria-current="page"] { font-weight: 700; }
.wx-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid #36414A;
  font-size: 0.8125rem;
  color: #9AA7B2;
}
.wx-footer__base::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  background: var(--green);
  align-self: center;
  order: -1;
  display: none;
}

/* ---------- Wider screens ---------- */

@media (min-width: 44rem) {
  .wx-strip__track { grid-auto-columns: minmax(16rem, 19rem); }
  .wx-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-next .wx-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .wx-footer__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .wx-footer__base { grid-column: 1 / -1; }
}

@media (min-width: 62rem) {
  .wx-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  /* Spans set only the end, so a start class can sit beside them. */
  .wx-span-3 { grid-column-end: span 3; }
  .wx-span-4 { grid-column-end: span 4; }
  .wx-span-5 { grid-column-end: span 5; }
  .wx-span-6 { grid-column-end: span 6; }
  .wx-span-7 { grid-column-end: span 7; }
  .wx-span-8 { grid-column-end: span 8; }
  .wx-span-12 { grid-column-end: span 12; }
  .wx-start-2 { grid-column-start: 2; }
  .wx-start-3 { grid-column-start: 3; }
  .wx-offset-1 { margin-top: calc(1.9rem + 1rem); }
  .wx-offset-2 { margin-top: calc(1.9rem + 2rem); }
  .wx-offset-3 { margin-top: calc(1.9rem + 3.25rem); }

  .wx-card--long .wx-prose { columns: 2; column-gap: 3rem; max-width: none; }
  .wx-card--long .wx-prose p { break-inside: avoid; }

  .wx-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .wx-hero__text { grid-column: 1 / span 6; padding-top: 2.4rem; }
  .wx-hero__fig { grid-column: 7 / span 6; align-self: center; }
  .wx-hero { min-height: min(82vh, 52rem); display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 43.99rem) {
  .wx-nav { display: none; }
  .wx-menu { display: block; }
  .wx-header__row { padding-block: 0.8rem; }
  .wx-brand { font-size: 1.3rem; }
  .wx-fig svg { max-height: 14rem; }
  .wx-hero__fig text { font-size: 17px; }
  .wx-deck__tab { padding-inline: 0.6rem; letter-spacing: 0.04em; }
  .wx-strip__head { align-items: start; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .wx-strip__track { scroll-behavior: auto; }
}

@media print {
  .wx-menu, .wx-strip__controls, .wx-rail, .wx-skip { display: none !important; }
}
