/* Wondrwall 2027: shared tokens, type scale and buttons. Loaded on every page by the theme. */

:root {
  --ww-ink: #1c1c28;
  --ww-teal: #1ec1cb;
  --ww-teal-deep: #41908f;
  --ww-teal-soft: #90d3d0;
  --ww-grey: #e6e7e8;
  --ww-light: #f5f5f5;
  --ww-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ww-max: 1245px;
  --ww-gutter: 24px;
}

.wwh, .wwh *, .wwhero, .wwhero *, .wwchat, .wwabout, .wwabout *, .wwstats, .wwstats *, .wwprod, .wwprod * { box-sizing: border-box; }

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

/* Buttons: pill, 44px, Poppins SemiBold 18 */
.ww-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 34px;
  border: 1px solid transparent;
  border-radius: 25px;
  overflow: hidden;
  font: 600 18px/1 var(--ww-font);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.ww-btn:focus-visible { outline: 2px solid var(--ww-teal); outline-offset: 3px; }

/* Filled teal with glow: brightens and glows more on hover */
.ww-btn--primary {
  color: #fff;
  background: linear-gradient(90deg, var(--ww-teal), var(--ww-teal-deep));
  box-shadow: 0 8px 24px rgba(30, 193, 203, 0.35);
}
.ww-btn--primary:hover {
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 10px 32px rgba(30, 193, 203, 0.55);
}

/* Teal outline: hovers to light */
.ww-btn--outline { color: var(--ww-teal); border-color: var(--ww-teal); background: transparent; }
.ww-btn--outline:hover { color: var(--ww-light); border-color: var(--ww-light); }

/* White outline (on dark images): hovers to teal */
.ww-btn--outline-light { color: #fff; border-color: #fff; background: transparent; }
.ww-btn--outline-light:hover { color: var(--ww-teal); border-color: var(--ww-teal); }

/* Ink outline (on light images): hovers to teal */
.ww-btn--outline-dark { color: var(--ww-ink); border-color: var(--ww-ink); background: transparent; }
.ww-btn--outline-dark:hover { color: var(--ww-teal); border-color: var(--ww-teal); }

/* Small (navbar) */
.ww-btn--sm { height: 34px; padding: 0 33px; font-size: 14px; }

@media (max-width: 600px) {
  .ww-btn { height: 42px; padding: 0 26px; font-size: 16px; }
  .ww-btn--sm { height: 34px; padding: 0 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-btn { transition: none; }
}

/* Type scale, shared by every page */
:root {
  --ww-fs-display: clamp(40px, 3.7vw, 56px);   /* page hero headline, SemiBold */
  --ww-fs-lead: clamp(19px, 1.5vw, 23px);      /* hero subline, Medium */
  --ww-fs-h2: clamp(32px, 3.05vw, 46px);       /* section headings, Regular */
  --ww-fs-h3: clamp(20px, 1.6vw, 24px);        /* card titles, SemiBold */
  --ww-fs-body: clamp(14px, 1.06vw, 16px);     /* body copy, Regular */
  --ww-section-pad: clamp(88px, 8vw, 120px);     /* top and bottom padding of a standard section */
}
@media (max-width: 600px) { :root { --ww-fs-display: 34px; --ww-fs-lead: 17px; } }
@media (max-width: 380px) { :root { --ww-fs-display: 30px; --ww-fs-lead: 15.5px; } }
@media (max-width: 340px) { :root { --ww-fs-display: 26px; --ww-fs-lead: 13.5px; } }

/* Balance headings across their lines, so no word is left on its own */
h1, h2, h3 { text-wrap: balance; }

/* Page base */
body { margin: 0; background: var(--ww-ink); color: #fff; font-family: var(--ww-font); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Designed pages (Full width template): sections run edge to edge with no gaps between them */
.ww-full main .wp-block-post-content > * { margin-block: 0; max-width: none; }
.ww-full .wp-site-blocks > * + * { margin-block-start: 0; }

/* Vertical scrolling only. Nothing on the page can push it sideways, and sideways swipes on a
   trackpad or Magic Mouse don't nudge it. Carousels still scroll sideways inside their own tracks. */
html, body { overflow-x: clip; }
html { overscroll-behavior-x: none; }

/* News page, categories and articles: no gaps between sections; the article text sets its own spacing */
.ww-edge .wp-site-blocks > * + * { margin-block-start: 0; }
.ww-edge main.wp-block-group > * { margin-block: 0; max-width: none; }
/* same width as the CTA card at the end of the article (.ww-container) */
.ww-article .ww-article__image { max-width: var(--ww-max); margin: 0 auto clamp(24px, 3vw, 40px); }
.ww-article .ww-article__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ww-article + .wwnl--recent { padding-top: clamp(64px, 6vw, 96px); }

/* the page behind the header search panel doesn't scroll while it is open */
html.wwh-search-open{overflow:hidden}
