/* Optional locally licensed Areal; public clones fall back to bundled Inter. */
@font-face {
  font-family: "Inter";
  src: url("/foundry/fonts/inter/Inter-roman.var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/foundry/fonts/inter/Inter-italic.var.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Areal";
  src: url("/foundry/theme/fonts/areal-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Areal";
  src: url("/foundry/theme/fonts/ABCAreal-RegularItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Areal";
  src: url("/foundry/theme/fonts/ABCAreal-MediumItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Areal";
  src: url("/foundry/theme/fonts/ABCAreal-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
/* Libron (OFL, see fonts/libron-OFL.txt): the editorial serif newa.sh sets
   its writing in. Latin subset, as on newa.sh. */
@font-face {
  font-family: "Libron";
  src: url("/foundry/theme/fonts/libron-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libron";
  src: url("/foundry/theme/fonts/libron-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/*
 * newa.sh design language layer.
 *
 * Loaded after every recovered stylesheet. It only swaps visual tokens
 * (color, type, borders, radii, link and button treatment, cursors).
 * Layout geometry, spacing formulas and DOM structure are untouched.
 *
 * Token source: newa.sh (Radix gray scale, Areal 14/21 with -0.09px tracking,
 * Libron for editorial text, hairline gray-4 borders, blue-9 accent). Radii
 * follow its scale: cards 12px (--radius-large), controls 8px (--radius-base).
 */

/* ---------------------------------------------------------------- tokens */

/* Theme tokens. The dark palette is the default look; light applies when
   data-theme="light". Dark uses the newa.sh dark gray scale. */
html:root:not([data-theme="light"]) {
  --newa-bg: #111111;
  --newa-fg: #eeeeee;
  --newa-muted: #8a8a8a;
  --newa-subtle: #6e6e6e;
  --newa-border: #2a2a2a;
  --newa-border-strong: #3a3a3a;
  --newa-surface: #191919;
  --newa-surface-2: #222222;
  --newa-accent: #1d9bf0;
  --newa-accent-rgb: 29 155 240;
  --newa-selection: rgba(29, 155, 240, 0.28);
  --newa-dot: #222222;
  --text-shadow: rgba(238, 238, 238, 0.18);
  --bg-black: rgba(17, 17, 17, 0.92);
  --shadow: #000000;
  color-scheme: dark;
}

/* Light: newa.sh light gray scale. html:root outranks the foundry's own
   [data-theme="light"] palette. */
html:root {
  --newa-bg: #fcfcfc;
  --newa-fg: #202020;
  --newa-muted: #6e6e6e;
  --newa-subtle: #8d8d8d;
  --newa-border: #e8e8e8;
  --newa-border-strong: #d9d9d9;
  --newa-surface: #f9f9f9;
  --newa-surface-2: #f0f0f0;
  --newa-accent: #1d9bf0;
  --newa-accent-rgb: 29 155 240;
  --newa-selection: rgba(29, 155, 240, 0.18);
  --newa-dot: #e0e0e0;
  --newa-radius: 12px;
  --newa-radius-sm: 8px;
  --newa-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--newa-border);
  --newa-ease: cubic-bezier(0.455, 0.19, 0, 0.985);
  --bounce-light: rgba(255, 255, 255, 0.3);
  --shadow: #000000;
  --timing-fn: cubic-bezier(0.455, 0.19, 0, 0.985);

  --color-black: var(--newa-bg);
  --color-white: var(--newa-fg);
  --color-lighter-gray: var(--newa-muted);
  --color-gray: var(--newa-subtle);
  --color-dark-gray: var(--newa-border);
  --color-darker-gray: var(--newa-surface-2);
  --color-darkest-gray: var(--newa-surface);
  --color-orange: var(--newa-accent);
  --color-orange-rgb: var(--newa-accent-rgb);
  --toastify-color-light: var(--newa-accent);
  --toastify-color-dark: var(--newa-accent);
  --text-shadow: rgba(0, 0, 0, 0.12);
  --bg-black: rgba(252, 252, 252, 0.9);

  --font-body: "Areal", "Inter", var(--font-system), sans-serif;
  --font-jb-mono: "Areal", "Inter", var(--font-system), sans-serif;
  --font-serif: "Libron", Georgia, serif;

  --cursor-pointer: pointer;
  --cursor-default: default;
  --cursor-text: text;

  color-scheme: light;
}

/* ------------------------------------------------------------ base text */

html {
  letter-spacing: -0.09px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html body {
  background-color: var(--newa-bg);
  color: var(--newa-fg);
}

/* Fallback selection colors (pink, as on newa.sh) until the marker highlight
   (theme/selection-marker.js) takes over. */
html:root {
  --selection-background: #37172f;
  --selection-foreground: #ff8dcc;
}
html[data-theme="light"] {
  --selection-background: #fee9f5;
  --selection-foreground: #c2298a;
}
html body *::selection {
  color: var(--selection-foreground);
  background-color: var(--selection-background);
}
html.selection-marker-ready body *::selection {
  color: currentColor;
  background-color: transparent;
}
html.selection-marker-ready body *::-moz-selection {
  color: currentColor;
  background-color: transparent;
}

html,
html[data-theme="light"] {
  scrollbar-color: var(--newa-border-strong) transparent;
}
html ::-webkit-scrollbar-thumb {
  background: var(--newa-border-strong);
  border-radius: 999px;
}
html ::-webkit-scrollbar-track {
  background: transparent;
}

/* Former uppercase mono UI labels become sentence-case Areal. */
html .button_button___eDCW,
html .coupon-toast_toast__SeHIa,
html .faq_container__zrFQk span,
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_questions__TN0Gr .faq_mobile-answer__DkZm8,
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_answers__NGmZW,
html .sidebar_sidebar__v92FL .sidebar_legal__LYr9M :is(a, li, span),
html .sidebar_sidebar__v92FL .sidebar_mail__l5wxO :is(a, li, span),
html .sidebar_sidebar__v92FL .sidebar_socials__PHMm3 :is(a, li, span),
html .sidebar_sidebar__v92FL .sidebar_themes__V_h_H :is(a, li, span),
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw :is(a, li, span),
html .sidebar_sidebar__v92FL .sidebar_typefaces-heading__Bktaz,
html .sidebar_sidebar__v92FL .sidebar_mobile-menu-button___AtFP span,
html .hero_hero-container__YtSWd p,
html .footer_links__dhVl_,
html .footer_links__dhVl_ .footer_typefaces__YbOls button,
html .footer_mobile-menu__wFpns,
html .footer_cr-mobile__sFaTH,
html .toolbar_config-bar__M52TI :is(a, button, span),
html .toolbar_font-name__3i4jp .toolbar_select__H6so8,
html .eula_container__nXPyB,
html .font-glyphs_container__kAmap .font-glyphs_heading__7cJcv,
html .hero_font-data__soA13 .hero_description__dqBS8 .hero_marquee__fs48c span,
html .hero_font-data__soA13 .hero_details__K4JP8,
html .checkout_summary__oCWLj ul > li,
html .checkout_flow__6qd5c fieldset,
html .checkout_flow__6qd5c :is(.checkout_country-select__7QagE, input),
html .checkout_flow__6qd5c :is(.checkout_country-select__7QagE, input)::placeholder,
html .checkout_license__uzQwj,
html .checkout_license-name__Um5RJ,
html .checkout_eula-container__KfEif,
html .checkout_form-footer__IXK9Y .checkout_encrypted__NMa30,
html .container-grid_back-link__sGWH3 {
  text-transform: none;
  letter-spacing: -0.09px;
  font-feature-settings: normal;
}

/* Sidebar "Typefaces" heading is bold. */
html .sidebar_sidebar__v92FL .sidebar_typefaces-heading__Bktaz {
  font-weight: 700;
}
/* Source labels "support" and "MENU" read as sentence case. */
html .sidebar_sidebar__v92FL .sidebar_mail__l5wxO > span,
html .sidebar_sidebar__v92FL .sidebar_mobile-menu-button___AtFP span:first-child {
  display: inline-block;
  text-transform: lowercase;
}
html .sidebar_sidebar__v92FL .sidebar_mail__l5wxO > span::first-letter,
html .sidebar_sidebar__v92FL .sidebar_mobile-menu-button___AtFP span:first-child::first-letter {
  text-transform: uppercase;
}
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw .sidebar_variants-number__7jl6p {
  font-weight: 400;
  color: var(--newa-subtle);
  font-variant-numeric: tabular-nums;
}

/* Secondary text uses the newa muted tone. */
html .sidebar_sidebar__v92FL :is(.sidebar_legal__LYr9M, .sidebar_socials__PHMm3, .sidebar_mail__l5wxO, .sidebar_themes__V_h_H):before,
html .footer_links__dhVl_ :is(.footer_legal__7eumW, .footer_socials___tGMi, .footer_mail__6Uc35):before {
  color: var(--newa-subtle);
}

/* Editorial serif: Libron, as newa.sh sets its writing. */
html .hero_font-data__soA13 .hero_description__dqBS8 > p,
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_questions__TN0Gr .faq_question__NXi7h {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- logo */

html svg[fill="var(--color-orange)"],
html svg[fill="var(--color-orange)"] path,
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg:not(.foundry-sun) path {
  fill: var(--newa-fg);
}
html .eula_container__nXPyB [stroke="#1d9bf0"] {
  stroke: var(--newa-muted);
}
html .eula_container__nXPyB [fill="#1d9bf0"] {
  fill: var(--newa-border-strong);
}

/* Sun mark + "Foundry" wordmark (sidebar). The sun is animated by sun-logo.js. */
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry .foundry-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-size: max(18px, 1.1vw);
  line-height: 1;
  color: var(--newa-fg);
  white-space: nowrap;
}
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun {
  font-size: max(20px, 1.3vw);
  width: 2.1em;
  height: 2.1em;
  flex: none;
  margin: -0.55em 0 -0.55em -0.35em;
  pointer-events: none;
}
/* The recovered sidebar CSS fills every heading svg path with the accent;
   keep the sun's own colors (silhouette yellow, outline/face near-black). */
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun path[fill="#030c03"],
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun polygon[fill="#030c03"] {
  fill: #030c03;
}
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun polygon[fill="#ffb700"] {
  fill: #ffb700;
}
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun path,
html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun polygon {
  transition: none;
}
html .foundry-word {
  font-family: "Areal", "Inter", var(--font-system), sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}
@media (max-width: 900px) {
  html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry .foundry-logo {
    font-size: 5vw;
  }
  html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry svg.foundry-sun {
    font-size: 5vw;
  }
}

/* --------------------------------------------------------------- links */

/* Sidebar typeface entries: plain text rows instead of boxed chips. */
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw li span {
  border-color: transparent !important;
  transition: color 300ms ease;
}
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw a {
  transition: color 300ms ease;
}
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw a:hover,
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw a:hover span {
  color: var(--newa-muted);
}
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw .sidebar_is-current-path__E24ng a,
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw .sidebar_is-current-path__E24ng span {
  color: var(--newa-fg);
  font-weight: 500;
}

/* Calm underline: static hairline, no marching dashes, muted hover. */
html :is(.sidebar_sidebar__v92FL, .footer_links__dhVl_, .faq_answers__NGmZW, .hero_copyright__6Wr5Z, .toolbar_modes__loNtu, .font-display_uppercaser__ZHYbz, .font-details_container__Q1ypq, .checkout_flow__6qd5c) :is(a, button)::after {
  border-bottom-color: var(--newa-border-strong) !important;
}
html :is(.sidebar_sidebar__v92FL, .footer_links__dhVl_, .faq_answers__NGmZW, .hero_copyright__6Wr5Z, .toolbar_modes__loNtu, .font-display_uppercaser__ZHYbz, .font-details_container__Q1ypq, .checkout_flow__6qd5c) :is(a, button):hover::after {
  width: 100% !important;
  border-bottom: 1px solid var(--newa-fg) !important;
  -webkit-animation: none !important;
  animation: none !important;
}
html :is(.sidebar_legal__LYr9M, .sidebar_socials__PHMm3, .sidebar_mail__l5wxO, .footer_links__dhVl_, .faq_answers__NGmZW, .hero_copyright__6Wr5Z, .font-details_container__Q1ypq) a:hover,
html .checkout_flow__6qd5c .checkout_eula__9hbzZ:hover,
html .container-grid_back-link__sGWH3:hover {
  color: var(--newa-accent) !important;
}

/* -------------------------------------------------------------- buttons */

html .button_button___eDCW {
  border: 1px solid var(--newa-border-strong);
  border-radius: 6px;
  padding: 0.12em 0.55em;
  font-weight: 500;
  color: var(--newa-fg);
  background-color: var(--newa-bg);
  transition:
    background-color 0.15s var(--newa-ease),
    border-color 0.15s var(--newa-ease),
    color 0.15s var(--newa-ease);
}
html .button_button___eDCW:hover {
  color: var(--newa-fg);
  border: 1px solid var(--newa-border-strong);
  background-color: var(--newa-surface-2);
}
/* Primary action ("Buy"): solid ink, like newa.sh's filled controls. */
html .button_button--secondary__5e4xH {
  color: var(--newa-bg);
  border: 1px solid var(--newa-fg);
  background-color: var(--newa-fg);
}
html .button_button--secondary__5e4xH:hover {
  color: var(--newa-bg);
  border: 1px solid var(--newa-fg);
  background-color: var(--newa-fg);
  opacity: 0.85;
}
html .button_button--with-padding___NIO0 {
  border-radius: var(--newa-radius-sm);
}

html .font-display_font-display__tap2I .font-display_explore-buttons-mobile__9Kg2Z .font-display_explore-button__EKwAe {
  border-radius: var(--newa-radius-sm);
  border-color: var(--newa-border-strong);
  background-color: var(--newa-bg);
}
html .font-display_font-display__tap2I .font-display_explore-buttons-mobile__9Kg2Z .font-display_buy-button__JcDSp {
  border-radius: var(--newa-radius-sm);
  border-color: var(--newa-fg);
  color: var(--newa-bg);
  background-color: var(--newa-fg);
}

/* Theme swatches. */
html :is(.sidebar_themes__V_h_H, .footer_themes__JYyCY) button {
  border-color: var(--newa-border-strong);
  box-shadow: none;
}
html :is(.sidebar_themes__V_h_H, .footer_themes__JYyCY) button:is(.sidebar_is-current-theme__Qzuce, .footer_is-current-theme__5H85b) {
  border-color: var(--newa-bg);
  box-shadow: 0 0 0 1.5px var(--newa-accent);
}

/* ------------------------------------------------------------- surfaces */

/* Specimen cards: soft radius and hairline border. */
html .font-display_font-display__tap2I {
  border-color: var(--newa-border);
  border-radius: var(--newa-radius);
  background-color: var(--newa-bg);
}
html .toolbar_config-bar__M52TI {
  background-color: var(--newa-surface) !important;
  border-bottom-color: var(--newa-border) !important;
}

/* Homepage hero: same crop as the specimen cards, all four corners.
   The original bleeds off the right edge (its container has no right
   padding); inset it by the same gutter the cards use so edges align. */
html .hero_container-3d__dDCzS {
  border-radius: var(--newa-radius);
  margin-right: max(24px, 1.25vw);
  /* The element has an inline width: 100%, so the override needs !important. */
  width: auto !important;
}
@media (max-width: 900px) {
  html .hero_container-3d__dDCzS {
    margin-right: 0;
    width: 100% !important;
  }
}

/* Brand wash over the 3D scene: a light blue-9 tint, no blur (blurring a
   crisp render just reads as low resolution; the grain below does the softening).
   The container already clips (overflow: hidden), so the veil follows its
   rounded corners. Pointer events pass through to the canvas. */
html .hero_container-3d__dDCzS {
  position: relative;
}
html .hero_container-3d__dDCzS::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(var(--newa-accent-rgb) / 0.14);
}
/* Film grain on top of the wash: static monochrome fractal noise, tiled. */
html .hero_container-3d__dDCzS::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
  opacity: 0.28;
}

/* Font-editor lens over the 3D letters (theme/hero-fx.js). Sits above the
   wash and grain; the shader draws the editor view inside the same circle. */
html .hero-lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgb(var(--newa-accent-rgb) / 0.7);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35);
  opacity: 0;
}
html .hero-lens > span {
  position: absolute;
  left: 100%;
  top: 100%;
  margin: 2px 0 0 2px;
  padding: 3px 5px;
  border-radius: 3px;
  white-space: nowrap;
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgb(var(--newa-accent-rgb) / 0.9);
}
@media (hover: none) {
  html .hero-lens > span {
    display: none;
  }
}

/* Font detail hero: clip the background image to the same box as the cards,
   so its intrinsic size can't push the hero past the cards' right edge. */
html .hero_hero-image__DWoxn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}
html .hero_hero-image__DWoxn img.hero_bg__d_xHl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Font detail heroes, images, glyph preview. */
html .hero_hero-image__DWoxn,
html .hero_container__KSWwF .hero_custom-hero__eWXzG canvas,
html .image-block_container__JGwMj img,
html .font-glyphs_container__kAmap .font-glyphs_preview__Sw0I6 .font-glyphs_previewBoxContainer__JoSs8 {
  border-color: var(--newa-border);
  border-radius: var(--newa-radius);
}
html .image-block_container__JGwMj.image-block_without-borders__1SiEE img {
  border-radius: 0;
}
html .hero_font-data__soA13 {
  --dark-cl-gradient: var(--newa-bg);
  --light-cl-gradient: color-mix(in srgb, var(--newa-bg) 74%, transparent);
}

/* FAQ: hairline rows, ink on hover instead of an accent flash. */
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_questions__TN0Gr .faq_question__NXi7h {
  color: var(--newa-muted);
  border-top-color: var(--newa-border);
}
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_questions__TN0Gr .faq_question__NXi7h:last-child {
  border-bottom-color: var(--newa-border);
}
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_questions__TN0Gr .faq_question__NXi7h:is(:hover, .faq_is-active__Fk28U) {
  color: var(--newa-fg);
  border-color: var(--newa-border-strong);
}
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_questions__TN0Gr .faq_question__NXi7h:is(:hover, .faq_is-active__Fk28U) + .faq_question__NXi7h {
  border-top-color: var(--newa-border-strong);
}
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_answers__NGmZW .faq_q___WeJO {
  color: var(--newa-fg);
  font-weight: 500;
}
html .faq_container__zrFQk .faq_q-and-a__ygEx_ .faq_answers__NGmZW {
  color: var(--newa-muted);
}
html .faq_container__zrFQk .faq_title__L1l9k {
  border-bottom-color: var(--newa-border);
  font-weight: 500;
}

/* Toast. */
html .coupon-toast_toast__SeHIa {
  background: color-mix(in srgb, var(--newa-bg) 85%, transparent);
  color: var(--newa-fg);
  border: 1px solid var(--newa-border);
  border-radius: var(--newa-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------- checkout */

html .checkout_license__uzQwj {
  border-color: var(--newa-border);
  border-radius: var(--newa-radius);
}
html .checkout_flow__6qd5c :is(.checkout_stripe-input__jTYx1, input, select) {
  border-color: var(--newa-border-strong);
  border-radius: var(--newa-radius-sm);
  background-color: var(--newa-bg);
}
html .checkout_flow__6qd5c :is(input, select):focus {
  outline: none;
  border-color: var(--newa-accent);
  box-shadow: 0 0 0 3px var(--newa-selection);
}
html .checkout_summary__oCWLj ul > li .checkout_placeholder__4YvCI {
  border-bottom: 1px solid var(--newa-border);
}

/* ------------------------------------------------------------------ EULA */

html .eula_container__nXPyB {
  line-height: 1.5;
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html .button_button___eDCW,
  html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw a {
    transition: none;
  }
}

html .eula_container__nXPyB .eula_content__IK0sL .eula_qa__kYjNk .eula_q__QXJDK {
  color: var(--newa-fg);
  font-weight: 500;
}
html .eula_container__nXPyB .eula_content__IK0sL .eula_qa__kYjNk .eula_a__Vy5Ks {
  color: var(--newa-muted);
}

/* -------------------------------------------------- typeface detail heroes */

@font-face {
  font-family: "Hero Scriptorium";
  src: url(/foundry/theme/fonts/Scriptorium-Regular.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Hero Venturous";
  src: url(/foundry/theme/fonts/Venturous-Variable.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Hero Cumulo";
  src: url(/foundry/theme/fonts/Cumulo-Color.woff2) format("woff2");
  font-display: swap;
}

html .newa-hero {
  position: relative;
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--newa-surface);
  border: 1px solid var(--newa-border);
  border-radius: var(--newa-radius);
  color: var(--newa-fg);
  font-size: clamp(56px, 11.5vw, 220px);
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
}
html .newa-hero--scriptorium {
  font-family: "Hero Scriptorium", serif;
}
html .newa-hero--venturous {
  font-family: "Hero Venturous", sans-serif;
  font-weight: 800;
}
html .newa-hero--cumulo {
  font-family: "Hero Cumulo", sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #3b9eff 0%, #8bc9ff 100%);
  border-color: transparent;
}

/* The sunlit background and pull cord replace the old swatch row. */
html .sidebar_themes__V_h_H,
html .footer_themes__JYyCY {
  display: none !important;
}

/* No dot grids: the recovered dotted backgrounds and their hover masks are removed. */
html [class*="dotted-div_div"] {
  background-image: none !important;
}
html [class*="dotted-div_mask"] {
  display: none !important;
}

/* Areal only: the recovered body-level font variables still name JetBrains Mono. */
html body,
html body * {
  --font-jb-mono: "Areal", "Inter", var(--font-system), sans-serif;
  --font-serif: "Libron", Georgia, serif;
  --font-body: "Areal", "Inter", var(--font-system), sans-serif;
}

/* Native cursors: the recovered theme sets crosshair cursor images on these variables. */
html,
html[data-theme],
html body,
html body * {
  --cursor-pointer: pointer;
  --cursor-default: default;
  --cursor-text: text;
}

/* Sidebar sections: no ↳ markers, content sits flush with the left edge. */
html .sidebar_sidebar__v92FL :is(.sidebar_legal__LYr9M, .sidebar_mail__l5wxO, .sidebar_socials__PHMm3, .sidebar_themes__V_h_H, .sidebar_typefaces__eTItw):before {
  content: none;
}
html .sidebar_sidebar__v92FL :is(.sidebar_legal__LYr9M, .sidebar_mail__l5wxO, .sidebar_socials__PHMm3, .sidebar_themes__V_h_H, .sidebar_typefaces__eTItw) {
  padding-left: 0;
}
@media (max-width: 900px) {
  html .sidebar_sidebar__v92FL .sidebar_typefaces-heading__Bktaz {
    padding-left: 0;
  }
}

/* No scrolling marquee strip. */
html [class*="hero_marquee"] {
  display: none !important;
}

/* Narrower sidebar now that its content sits flush left. */
html,
html[data-theme],
html body,
html body * {
  --sidebar-width: max(210px, 13vw);
  /* No orange anywhere: the recovered accent variable is newa.sh's sky blue. */
  --color-orange: var(--newa-accent);
  --color-orange-rgb: var(--newa-accent-rgb);
}

/* ------------------------------------------------------- candy CTA buttons
 * Ported from the glossy blue "Quick Chat" hero button on newa.sh
 * (portfolio commit 3eba0896, still used by CaseStudyButton): radial gel
 * fill, blue glow, inner top highlight and a 1px sheen line.
 * Applied to main CTAs only: Download, mobile Download, checkout submit. */
html :is(
  .button_button--secondary__5e4xH,
  .font-display_font-display__tap2I .font-display_explore-buttons-mobile__9Kg2Z .font-display_buy-button__JcDSp,
  .checkout_submit-button__Ht7Fi
) {
  position: relative;
  border: 1px solid #54a1fd;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  background: radial-gradient(95% 60% at 50% 75%, #005fd6 0%, #209bff 100%);
  box-shadow:
    0 4px 48px -12px #1187ff,
    inset 0 1px 8px -4px #ffffff;
  transition: all 200ms ease-out;
  user-select: none;
}
html :is(
  .button_button--secondary__5e4xH,
  .font-display_font-display__tap2I .font-display_explore-buttons-mobile__9Kg2Z .font-display_buy-button__JcDSp,
  .checkout_submit-button__Ht7Fi
)::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 10%;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}
html :is(
  .button_button--secondary__5e4xH,
  .font-display_font-display__tap2I .font-display_explore-buttons-mobile__9Kg2Z .font-display_buy-button__JcDSp,
  .checkout_submit-button__Ht7Fi
):hover {
  color: #fff;
  border: 1px solid #54a1fd;
  background: radial-gradient(95% 60% at 50% 75%, #005fd6 0%, #209bff 100%);
  opacity: 1;
  filter: brightness(1.1);
}
html :is(
  .button_button--secondary__5e4xH,
  .font-display_font-display__tap2I .font-display_explore-buttons-mobile__9Kg2Z .font-display_buy-button__JcDSp,
  .checkout_submit-button__Ht7Fi
):active {
  transform: scale(0.95) rotate(1deg);
}

/* Desktop Download CTA (hero info row): the recovered button has ~0.3em padding
   and an 18px line box, so it read as a thin chip next to the two-line
   description and spec columns. Give it a real hit area, match the row's 14px
   type, and center it on the row. */
@media (min-width: 901px) {
  html .hero_buy-link__ny_xd:not(.hero_button-mobile__vbEGW) {
    /* Top-align with the spec text, nudged to center on its two lines. */
    align-self: start;
    margin-top: 4px;
  }
  html .hero_buy-link__ny_xd:not(.hero_button-mobile__vbEGW) .hero_button__zFWKg {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
  }
}

/* ------------------------------------------------------ variant dropdowns
 * The typeface variant picker (react-select, classNamePrefix "select"),
 * restyled after newa.sh's command palette: --bg panel, hairline border,
 * 12px radius, soft layered shadow (frosted in dark), 8px rounded rows with
 * a gray-3 hover fill, and a quiet check on the current variant instead of
 * an accent-colored label. Selectors are scoped (and use !important where the
 * recovered toolbar CSS does) so they outrank toolbar_select's own rules. */
/* The recovered `all: unset` drops react-select's position: relative, which
   made the menu's top resolve against the whole card. Restore it on desktop;
   mobile keeps the recovered full-width sheet placement. */
@media (min-width: 901px) {
  html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 {
    position: relative;
  }
  html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu {
    top: calc(100% + 8px);
  }
}
/* Room for the longest variant name ("Venturous ExtraBold", ~135px) plus the
   chevron. The recovered layout caps this column at 130px between 901px and
   1280px; wider screens already get max(240px, 12.5vw), mobile is unchanged. */
@media (min-width: 901px) and (max-width: 1280px) {
  html body .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .toolbar_font-name__3i4jp,
  html body .font-display_font-display__tap2I .toolbar_font-data__yjOxZ .font-display_font-name__QuYmA {
    width: 170px;
    max-width: 170px;
    flex: none;
  }
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__value-container {
  flex: 0 1 auto;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__single-value {
  max-width: none;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control {
  flex-wrap: nowrap;
  gap: 6px;
  cursor: pointer;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control > svg {
  display: none;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control div {
  color: var(--newa-fg);
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control:hover div {
  color: var(--newa-fg);
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control::after {
  content: "";
  order: 99;
  flex: none;
  width: 12px;
  height: 12px;
  background-color: var(--newa-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control:hover::after,
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control--menu-is-open::after {
  background-color: var(--newa-fg);
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__control--menu-is-open::after {
  transform: rotate(180deg);
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu {
  width: auto;
  min-width: 200px;
  margin-top: 0;
  padding: 0 !important;
  overflow: hidden;
  color: var(--newa-fg);
  background: var(--newa-bg);
  border: 1px solid var(--newa-border);
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transform-origin: top left;
  animation: newa-menu-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
html:not([data-theme="light"]) body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu {
  background: rgba(20, 20, 20, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu .select__menu-list {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 6px !important;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu .select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--newa-fg) !important;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu .select__option:hover,
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu .select__option--is-focused {
  color: var(--newa-fg) !important;
  background-color: var(--newa-surface-2) !important;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu .select__option--is-selected {
  font-weight: 500;
  text-shadow: none;
}
html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu .select__option--is-selected::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background-color: var(--newa-fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes newa-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .toolbar_font-name__3i4jp .toolbar_select__H6so8 .select__menu {
    animation: none;
  }
}

/* Intro loader: the newa.sh sun marks the initial loading state. */
html :is(.entrance_container___MnNs, .entrance-placeholder) {
  /* !important: the placeholder sets its background inline. */
  background: var(--newa-bg) url(/foundry/theme/sun.svg) center / 72px 72px no-repeat !important;
}
html :is(.entrance_container___MnNs, .entrance-placeholder) video {
  visibility: hidden;
}

/* ------------------------------------------------ font card hover controls
 * Homepage font cards: the top row keeps only the name and the CTAs. Meta
 * (styles / glyphs) and the case + mode controls move into frosted pills on
 * the bottom edge of the specimen, shown on hover or keyboard focus. Touch
 * screens show them all the time. The card (dotted-div) is position:relative
 * and the toolbar is static, so absolute children anchor to the card. */
@media (min-width: 901px) {
  html body .font-display_font-display__tap2I :is(
    .toolbar_styles-glyphs__HMpVv,
    .font-display_uppercaser__ZHYbz,
    .toolbar_modes__loNtu
  ) {
    position: absolute;
    bottom: 16px;
    z-index: 3;
    display: flex !important;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    height: 30px;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    color: var(--newa-muted);
    background: color-mix(in srgb, var(--newa-bg) 82%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--newa-border);
    border-radius: 999px;
    box-shadow: none;
    text-shadow: none;
    transition:
      opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html body .font-display_font-display__tap2I :is(
    .toolbar_styles-glyphs__HMpVv,
    .font-display_uppercaser__ZHYbz,
    .toolbar_modes__loNtu
  ) > * {
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: none;
  }
  /* Case and mode switchers: segmented controls. A hairline track with soft
     corners; the current option sits on a quiet gray chip, the others are
     plain muted labels. No underlines. */
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) {
    gap: 2px;
    padding: 0 3px !important;
    border-radius: 9px;
  }
  html body .font-display_font-display__tap2I .font-display_uppercaser__ZHYbz {
    left: 16px;
  }
  html body .font-display_font-display__tap2I .font-display_uppercaser__ZHYbz button {
    width: 36px;
  }
  html body .font-display_font-display__tap2I .toolbar_modes__loNtu {
    /* 16 gutter + case track (2 × 36 segments, 2 gap, 6 padding, 2 border) + 8 */
    left: calc(16px + 82px + 8px);
  }
  html body .font-display_font-display__tap2I .toolbar_modes__loNtu svg {
    width: 16px;
    height: 16px;
    margin: 0 3px 0 5px !important;
  }
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 8px !important;
    border-radius: 6px;
    font-weight: 450;
    letter-spacing: -0.09px;
    color: var(--newa-muted) !important;
    background-color: transparent;
    transition:
      background-color 0.15s var(--newa-ease),
      color 0.15s var(--newa-ease);
  }
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) button::after {
    display: none !important;
  }
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) button:hover {
    color: var(--newa-fg) !important;
  }
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) button:is([data-active="true"], .toolbar_active__vPuh1) {
    color: var(--newa-fg) !important;
    background-color: var(--newa-surface-2);
  }
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) button:focus-visible {
    outline: 2px solid var(--newa-accent);
    outline-offset: 1px;
  }
  html body .font-display_font-display__tap2I .toolbar_styles-glyphs__HMpVv {
    right: 16px;
  }
  html body .font-display_font-display__tap2I .toolbar_styles-glyphs__HMpVv .toolbar_glyphs__ZEX1w {
    display: inline !important;
  }
  html body .font-display_font-display__tap2I .toolbar_styles-glyphs__HMpVv .toolbar_glyphs__ZEX1w::before {
    content: "·";
    margin-right: 10px;
    color: var(--newa-border-strong);
  }
  html body .font-display_font-display__tap2I :is(.font-display_uppercaser__ZHYbz, .toolbar_modes__loNtu) :is(button, button::after) {
    font-size: 13px;
  }
}
@media (min-width: 901px) and (hover: hover) {
  html body .font-display_font-display__tap2I :is(
    .toolbar_styles-glyphs__HMpVv,
    .font-display_uppercaser__ZHYbz,
    .toolbar_modes__loNtu
  ) {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
  }
  html body .font-display_font-display__tap2I:is(:hover, :focus-within) :is(
    .toolbar_styles-glyphs__HMpVv,
    .font-display_uppercaser__ZHYbz,
    .toolbar_modes__loNtu
  ) {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  html body .font-display_font-display__tap2I :is(
    .toolbar_styles-glyphs__HMpVv,
    .font-display_uppercaser__ZHYbz,
    .toolbar_modes__loNtu
  ) {
    transform: none !important;
  }
}

/* Mode dial (NWmodeIcon in chunks/916-…js): orbit, one stop per mode, and a
   bead that springs to the current stop and sends a ring out as it lands. */
html .newa-mode-icon {
  display: block;
  flex: none;
  overflow: visible;
  color: var(--newa-fg);
}
html .newa-mode-icon :is(circle, g) {
  transform-box: view-box;
  transform-origin: 8px 8px;
}
html .newa-mode-icon__track {
  stroke: currentColor;
  stroke-opacity: 0.2;
  stroke-width: 1.5;
  transition: stroke-opacity 0.3s var(--newa-ease);
}
html .newa-mode-icon__stop {
  display: none;
  fill: currentColor;
  fill-opacity: 0.3;
}
html .newa-mode-icon__hand {
  transform: rotate(var(--nw-turn, 0deg));
  transition: transform 0.75s cubic-bezier(0.34, 1.4, 0.5, 1);
}
html .newa-mode-icon__bead {
  fill: currentColor;
}
html .newa-mode-icon__pulse {
  display: none;
  fill: none;
  stroke: var(--newa-accent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: newa-mode-pulse 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
}
html .toolbar_modes__loNtu:hover .newa-mode-icon__track {
  stroke-opacity: 0.3;
}
@keyframes newa-mode-pulse {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}
@keyframes newa-mode-orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html .newa-mode-icon__hand {
    transition: none;
  }
  html .newa-mode-icon__pulse,
  html .toolbar_modes__loNtu:hover .newa-mode-icon__track {
    animation: none;
  }
}

/* ------------------------------------------------ per-font Mode 2 effects */
/* Layers come from NWclouds / NWstone in chunks/916-…js. */

html {
  --newa-rubric: #b3261e;
  --newa-stone-1: #8a8a8a;
  --newa-stone-2: #6e6e6e;
  --newa-stone-3: #545454;
  --newa-stone-shadow: rgba(0, 0, 0, 0.22);
}
html:not([data-theme="light"]) {
  --newa-rubric: #f0705f;
  --newa-stone-shadow: rgba(0, 0, 0, 0.55);
}

/* Cumulo: rings are drawn on a canvas behind the word, from the solid
   cut of the font so the outlines follow every puff. */
@font-face {
  font-family: "Newa Cumulo Solid";
  src: url(/foundry/theme/fonts/Cumulo-Solid.woff2) format("woff2");
  font-display: block;
}
html .newa-mode2 {
  position: relative;
}
html .newa-cloud-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Venturous: textured stone face over a stepped extrusion. */
html .newa-stone-side {
  color: var(--newa-stone-1);
}
html .newa-stone-face {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .19 0 0 0 0 .19 0 0 0 0 .19 0 0 0 .6 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .5 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23m%29'/%3E%3C/svg%3E"),
    linear-gradient(165deg, #d6d6d6 0%, #bababa 55%, #a6a6a6 100%);
  background-size: 220px 220px, 600px 600px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Venturous Mode 3: only the hover weight change; no colour shift or glow. */
html .newa-mode3--venturous [class*="textarea_mode-3-container"] span {
  color: var(--color-white) !important;
  text-shadow: none !important;
  transform: none !important;
  font-stretch: normal !important;
  transition: font-weight 0.25s !important;
}

/* Custom Mode 2 effects may spill past the text area; only the card's own
   rounded edge clips them. */
html .newa-mode2,
html .newa-stone-side {
  overflow: visible !important;
}

/* Scriptorium: the pen writes on a canvas; the live text stays in place
   (transparent) to give the canvas its glyph positions. Ligatures are off so
   every character keeps its own glyph box. */
html .newa-mode2--scriptorium {
  font-variant-ligatures: none;
}
html .newa-script-host {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  caret-color: transparent;
}
html .newa-script-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 3D hero card: a sky for the paper-white letters (newa.sh's hero banner
   gradient by day, navy by night). The canvas draws over it. */
html .hero_container-3d__dDCzS {
  background: linear-gradient(to bottom, color-mix(in srgb, #1d9bf0, white 45%), #1d9bf0);
  transition: background 0.6s ease;
}
html:not([data-theme="light"]) .hero_container-3d__dDCzS {
  background: linear-gradient(to bottom, #070b16, #111a2e 70%, #16223a);
}

/* Generated still heroes. */
html .newa-hero--image {
  display: block;
  padding: 0;
}
html .newa-hero--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------ mode transitions
 * The specimen container carries data-nw-phase ("out" while the old mode
 * exits, "in" once the new one is mounted), data-nw-from and data-nw-to
 * (see NWoutMs in chunks/916-…js). No switch fades the word out:
 *
 * Mode 1 -> a font's own Mode 2: the live text never leaves. Its fill fades
 *   to transparent, uncovering the stone (Venturous) or clearing the page for
 *   the pen (Scriptorium); Cumulo's rings sweep out around it.
 * Leaving that Mode 2: the same in reverse. The fill fades back over the
 *   stone while it sinks, or under the ink as the canvas fades; Cumulo's
 *   rings draw back into the word. The swap then lands on identical pixels.
 * Mode 3 (Venturous): its letters sit exactly on the Mode 1 text at base
 *   weight, so the layers trade places unseen. Going in, the Mode 1 text
 *   stays up until the variable font is ready; coming out, any swollen
 *   letters settle to base weight first.
 */
html .newa-stone-face,
html .newa-script-host {
  transition:
    color 0.4s ease,
    -webkit-text-fill-color 0.4s ease;
}
html .newa-script-host {
  transition-duration: 0.2s;
}
/* An animation, not the transition: arriving from Mode 3 the host was
   display: none, and a transition has nothing to start from. */
html .newa-stone-face {
  animation: newa-stone-in 0.4s ease;
}
@keyframes newa-stone-in {
  from {
    -webkit-text-fill-color: var(--color-white);
  }
}
html [data-nw-phase="out"] :is(.newa-stone-face, .newa-script-host) {
  -webkit-text-fill-color: var(--color-white);
  transition-duration: 0.3s;
  animation: none;
}
html [data-nw-phase="out"] .newa-script-host {
  transition-duration: 0.22s;
}
html [data-nw-phase="out"] .newa-script-canvas {
  opacity: 0;
  transition: opacity 0.24s ease;
}
html [data-nw-phase="out"][data-nw-from="3"] [class*="textarea_mode-3-container"] span {
  --add: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  html .newa-stone-face,
  html .newa-script-host {
    transition: none;
    animation: none;
  }
}

/* ------------------------------------------------------------ top header
 * Desktop: the left rail becomes a header row. Logo + wordmark sit top-left,
 * typeface links top-right. The rail's Online/Social/Contact blocks are
 * dropped here because the footer already carries the same links.
 * At 900px and below the recovered mobile bar + menu is left as is. */
@media (min-width: 901px) {
  html,
  html[data-theme],
  html body,
  html body * {
    --sidebar-width: 0px;
    --newa-header-h: max(56px, 3.5vw);
  }
  html #__next {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  html .sidebar_sidebar-outer__ltxOQ {
    width: 100%;
  }
  html .sidebar_sidebar__v92FL {
    position: relative;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: max(24px, 2vw);
    height: var(--newa-header-h);
    padding: 0 max(24px, 1.25vw);
  }
  html .sidebar_sidebar__v92FL > * {
    align-self: center;
  }
  html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry,
  html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry > a {
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
    line-height: 1;
  }
  html .sidebar_sidebar__v92FL .sidebar_heading__wF4ry {
    grid-column: 1;
    justify-self: start;
  }
  html .sidebar_sidebar__v92FL .sidebar_bottom-part__GievM {
    display: none;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw {
    display: flex;
    align-items: center;
    grid-column: 2;
    justify-self: center;
    gap: max(4px, 0.25vw);
    /* Beats the recovered :not(:last-child) margin-bottom. */
    margin: 0 !important;
    padding: 0;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw .sidebar_typefaces-heading__Bktaz {
    display: none;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw li {
    display: inline-flex;
    align-items: baseline;
    margin: 0 !important;
  }
}

/* The font page's hero container pads its top by 24px on top of the header's
   own bottom space, so the nav had ~42px below it against 18px above.
   Dropping it makes the gap under the logo match the gap above. */
@media (min-width: 901px) {
  html .container_container__uMoBM.hero_container__KSWwF {
    padding-top: 0;
  }
}

/* ----------------------------------------------------- sticky header veil
 * Ported from newa.sh's .site-nav-veil: the header sticks to the top and an
 * edge-to-edge veil of the page colour feathers into the page along an eased
 * curve (no visible band where it starts or stops). The veil is a painted
 * gradient, not a backdrop blur, so fast scroll reversals never re-sample the
 * moving page. Unlike newa.sh it is always fully on, not scroll-driven. The
 * recovered CSS sets `body #sidebar { position: relative }`, hence the id selector. */
@media (min-width: 901px) {
  html body #sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    isolation: isolate;
    pointer-events: none;
    --veil-feather: 48px;
  }
  html body #sidebar > * {
    pointer-events: auto;
  }
  html body #sidebar::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    /* Overscan above so the edge never shows, and below for the feather. */
    top: -32px;
    bottom: calc(var(--veil-feather) * -1);
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
        background: linear-gradient(
      to bottom,
      var(--newa-bg) calc(100% - var(--veil-feather)),
      color-mix(in srgb, var(--newa-bg) 98.7%, transparent) calc(100% - var(--veil-feather) * 0.919),
      color-mix(in srgb, var(--newa-bg) 95.1%, transparent) calc(100% - var(--veil-feather) * 0.845),
      color-mix(in srgb, var(--newa-bg) 89.6%, transparent) calc(100% - var(--veil-feather) * 0.775),
      color-mix(in srgb, var(--newa-bg) 82.5%, transparent) calc(100% - var(--veil-feather) * 0.71),
      color-mix(in srgb, var(--newa-bg) 74.1%, transparent) calc(100% - var(--veil-feather) * 0.647),
      color-mix(in srgb, var(--newa-bg) 64.8%, transparent) calc(100% - var(--veil-feather) * 0.588),
      color-mix(in srgb, var(--newa-bg) 55%, transparent) calc(100% - var(--veil-feather) * 0.529),
      color-mix(in srgb, var(--newa-bg) 45%, transparent) calc(100% - var(--veil-feather) * 0.471),
      color-mix(in srgb, var(--newa-bg) 35.2%, transparent) calc(100% - var(--veil-feather) * 0.412),
      color-mix(in srgb, var(--newa-bg) 25.9%, transparent) calc(100% - var(--veil-feather) * 0.353),
      color-mix(in srgb, var(--newa-bg) 17.5%, transparent) calc(100% - var(--veil-feather) * 0.29),
      color-mix(in srgb, var(--newa-bg) 10.4%, transparent) calc(100% - var(--veil-feather) * 0.225),
      color-mix(in srgb, var(--newa-bg) 4.9%, transparent) calc(100% - var(--veil-feather) * 0.155),
      color-mix(in srgb, var(--newa-bg) 1.3%, transparent) calc(100% - var(--veil-feather) * 0.081),
      transparent 100%
    );
  }
}

/* --------------------------------------------------- pinned Download CTA
 * On desktop the description/specs row no longer sticks. theme/cta-pin.js
 * floats a copy of the Download button above the sticky header (the real one
 * is trapped in <main>'s stacking context, under the header); as it rises it
 * pushes the X / GitHub icons up out of the header and pins in their place. */
@media (min-width: 901px) {
  html .hero_font-data__soA13 {
    position: relative;
    top: auto;
  }
  /* Outranks the in-row button's margin-top (".hero_buy-link…:not(…)"). */
  html body a.newa-cta-float.hero_buy-link__ny_xd {
    position: fixed;
    top: 0;
    z-index: 95;
    margin: 0;
    display: flex;
    will-change: transform;
  }
  html body a.newa-cta-float.hero_buy-link__ny_xd[hidden] {
    display: none;
  }
  html body .newa-social {
    will-change: transform;
  }
}

/* Homepage first screen: header, 3D hero and the description/attribution
 * row all fit the viewport on load. The hero drops its fixed 1.82 aspect
 * box and takes whatever height is left; the canvas follows its container. */
@media (min-width: 901px) {
  /* The element carries an inline display: block, and the router swaps it
     to display: none when leaving the homepage; only override the former. */
  html .hero_hero-container__YtSWd:not([style*="none"]) {
    display: flex !important;
  }
  html .hero_hero-container__YtSWd {
    flex-direction: column;
    height: calc(100svh - var(--newa-header-h));
    min-height: 480px;
    padding-top: 0;
    padding-bottom: max(16px, 1vw);
  }
  html .hero_hero-container__YtSWd .hero_container-3d__dDCzS {
    flex: 1 1 auto;
    min-height: 0;
  }
  html .hero_container-3d__dDCzS .aspect-box_aspect-box__1V85f {
    aspect-ratio: auto;
    height: 100%;
  }
  html .hero_container-3d__dDCzS .aspect-box_aspect-box__1V85f::before {
    content: none;
  }
  html .hero_hero-container__YtSWd .hero_hero-details__5JmoR {
    flex: none;
    margin-top: max(14px, 0.9vw);
  }
}

/* Social icons (X, GitHub), top-right of the desktop header. */
.newa-social {
  display: none;
}
@media (min-width: 901px) {
  .newa-social {
    /* Fixed so it stays with the sticky header, and above its veil (z 80). */
    position: fixed;
    top: 0;
    right: max(24px, 1.25vw);
    height: var(--newa-header-h, max(56px, 3.5vw));
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 90;
    color: var(--newa-fg);
  }
  .newa-social a {
    display: inline-flex;
    color: inherit;
    opacity: 0.85;
    transition: opacity 300ms ease, color 300ms ease;
  }
  .newa-social a:hover,
  .newa-social a:focus-visible {
    color: var(--newa-accent);
    opacity: 1;
  }
  .newa-social svg {
    width: 20px;
    height: 20px;
  }
}

/* Homepage description on a single line, with the attribution kept on the
 * right of the same row. The type scales down on narrower desktops so the line
 * never overflows. Mobile keeps the wrapped paragraph. */
@media (min-width: 901px) {
  html .hero_hero-container__YtSWd .hero_hero-details__5JmoR {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: baseline;
  }
  html .hero_hero-container__YtSWd .hero_hero-details__5JmoR .hero_main-text__c0XVP {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
    white-space: nowrap;
    font-size: min(1em, 0.86vw);
  }
  html .hero_hero-container__YtSWd .hero_hero-details__5JmoR .hero_slogan__6kVrm:empty {
    display: none;
  }
  html .hero_hero-container__YtSWd .hero_hero-details__5JmoR .hero_copyright__6Wr5Z {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    white-space: nowrap;
  }
}

/* Scriptorium hero: the title sits centred in white over the photo. */
html .newa-hero__title {
  position: absolute;
  inset: 0;
  /* Above the live scene that scenes/index.js mounts over the still. */
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  pointer-events: none;
}
html .newa-hero__title--scriptorium {
  font-family: "Hero Scriptorium", serif;
  letter-spacing: 0.04em;
}
/* Once the live scene has set the title's letters in its cavern
   (scenes/scriptorium.js), the heading stays for reading but not for sight. */
html .newa-hero__title {
  transition: opacity 0.5s ease;
}
html .newa-hero:has(> .newa-scene.is-ready[data-letters]) .newa-hero__title {
  opacity: 0;
}

/* ------------------------------------------------------------ footer banner
 * Ported from newa.sh's FooterBanner (theme/footer.js builds it). Like the
 * work page there, it spans the page's content width, sitting in the same
 * gutters as the hero card, rather than newa.sh's 40rem reading column. Card
 * heights, link spacing and the watermark size follow the original's
 * breakpoints; the corner radius matches the Foundry's cards. */
.newa-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 64px;
  padding: 0 max(24px, 1.25vw) max(24px, 1.25vw);
  box-sizing: border-box;
}
.newa-footer-banner {
  position: relative;
  width: 100%;
}
.newa-footer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 176px;
  overflow: hidden;
  border-radius: var(--newa-radius);
  /* Keeps the mask and rounded clip on the GPU with the shaders. */
  isolation: isolate;
}
.newa-footer-light,
.newa-footer-night,
.newa-footer-water {
  position: absolute;
  inset: -40px 0;
  z-index: 0;
  transform: translateY(calc((var(--scroll-progress, 0.5) - 0.5) * 50px));
  will-change: transform;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.newa-footer-light {
  background: #1d9bf0;
}
.newa-footer-water {
  pointer-events: none;
}
.newa-footer-water-inner {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.newa-footer-water-inner.is-drawn {
  opacity: 1;
}
.newa-footer-night {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background-color: #02000a;
  background-image:
    radial-gradient(circle at top right, rgba(121, 68, 154, 0.25), transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(41, 196, 255, 0.15), transparent 70%);
}
.newa-footer-night::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, #02000a, transparent 30%);
}
.newa-footer-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Opacity stays on the canvas: a faded wrapper would isolate the blend. */
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.newa-footer-rays.is-drawn {
  opacity: 1;
}
/* Dark theme: the night sky with rays replaces the water. */
html:not([data-theme="light"]) .newa-footer-light,
html:not([data-theme="light"]) .newa-footer-water {
  opacity: 0;
}
html:not([data-theme="light"]) .newa-footer-night {
  opacity: 1;
  pointer-events: auto;
}
.newa-footer-mark {
  position: absolute;
  bottom: -4px;
  left: 50%;
  z-index: 10;
  width: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-align: center;
  color: #fff;
  font-size: 12vw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0.85;
}
/* Progressive blur: theme/footer.js stacks copies of the mark and gives each
   its blur and mask band; here they only share the mark's box. */
.newa-footer-mark span {
  position: relative;
  display: block;
}
.newa-footer-mark span + span {
  position: absolute;
  inset: 0;
}
/* Links sit outside the mask so they keep full strength. */
.newa-footer-links {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 56px 16px 0;
}
.newa-footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #fff;
  opacity: 0.6;
  transition: opacity 300ms ease-in-out;
}
.newa-footer-links a:hover,
.newa-footer-links a:focus-visible {
  opacity: 1;
}
.newa-footer-links a::after {
  content: none !important;
}
@media (min-width: 640px) {
  .newa-footer-card {
    height: 192px;
  }
  .newa-footer-mark {
    font-size: 10vw;
  }
  .newa-footer-links {
    gap: 32px;
    padding-top: 72px;
  }
}
/* From 768px the banner scales with its own width, but as a shallow band
   rather than newa.sh's 592px-column proportions blown up: at page width
   those made the card over half a viewport tall with the icons adrift. The
   md sizes (208px card, 6rem mark) are the floor and both sizes are capped.
   The social row is centred between the card's top edge and the mark's
   x-height line (0.8em above the mark's bottom edge), not its tallest
   glyphs: the row sits over the lowercase run, between the @ and the i dots,
   so that line is the edge the eye measures the gap from. */
@media (min-width: 768px) {
  .newa-footer-banner {
    container-type: inline-size;
    --footer-height: clamp(208px, 21cqi, 336px);
    --footer-mark: clamp(6rem, 14cqi, 14rem);
    --footer-icon: clamp(24px, 2cqi, 32px);
  }
  .newa-footer-card {
    height: var(--footer-height);
  }
  .newa-footer-mark {
    font-size: var(--footer-mark);
  }
  .newa-footer-links {
    gap: clamp(24px, 2.2cqi, 36px);
    /* 4px: the mark's bottom offset. 16px: the links' own padding. */
    padding-top: calc(
      (var(--footer-height) + 4px - 0.8 * var(--footer-mark) - var(--footer-icon) - 16px) / 2
    );
  }
  .newa-footer-links svg {
    width: var(--footer-icon);
    height: auto;
    flex-shrink: 0;
  }
}
/* Mobile: static backdrops only, as on newa.sh. */
@media (max-width: 767px) {
  .newa-footer-water,
  .newa-footer-night {
    display: none;
  }
  html:not([data-theme="light"]) .newa-footer-light {
    opacity: 1;
    background: #02000a;
  }
}
@media (prefers-reduced-motion: reduce) {
  .newa-footer-light,
  .newa-footer-night,
  .newa-footer-water {
    transform: none;
  }
}

/* ------------------------------------------------------ adjustable testers
 * Font detail pages. The toolbar is two rows: what the tester is (style name
 * plus its role) with the alignment and case switches on the right, then the
 * three sliders, each named in words. Every control lives in the toolbar; the
 * hover pills on the bottom edge belong to the homepage cards only. */
html body .font-display_isAdjustable__51Ij2 .newa-tester-role {
  font-size: 14px;
  letter-spacing: -0.09px;
  color: var(--newa-muted);
  white-space: nowrap;
}
@media (min-width: 901px) {
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI {
    --tester-control-gap: 8px;
    --tester-pair-gap: 12px;
    --tester-group-gap: 24px;
    container-type: inline-size;
    height: auto;
    padding: 0 16px;
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_font-data__yjOxZ {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tester-control-gap) var(--tester-pair-gap);
    width: 100%;
    padding: 10px 0;
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_font-data__yjOxZ :is(.font-display_font-name__QuYmA, .toolbar_font-name__3i4jp) {
    flex: none;
    width: auto !important;
    max-width: none !important;
    font-weight: 500;
  }
  html body .font-display_isAdjustable__51Ij2 .font-display_justifier__JYYSU {
    margin-left: auto !important;
  }

  /* Alignment and case: one segmented-control style, always visible. */
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz) {
    position: relative;
    inset: auto;
    margin: 0;
    flex-shrink: 0;
    isolation: isolate;
    display: flex !important;
    align-items: center;
    gap: 2px;
    box-sizing: border-box;
    height: 30px;
    padding: 0 3px !important;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--newa-border);
    border-radius: 9px;
  }
  /* One persistent chip preserves continuity between the two options. */
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz)::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 3px;
    top: 50%;
    width: 36px;
    height: 22px;
    margin-top: -11px;
    border-radius: 6px;
    background: var(--newa-surface-2);
    pointer-events: none;
    transform: translateX(0);
    transition: transform 420ms cubic-bezier(0.22, 1.15, 0.36, 1);
    transition-timing-function: linear(0, 0.15 8%, 0.46 18%, 0.77 29%, 0.97 40%, 1.045 51%, 1.047 60%, 1.026 73%, 1.006 87%, 1);
  }
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz):has(button:nth-child(2)[data-active="true"])::before {
    transform: translateX(38px);
  }
  @media (prefers-reduced-motion: reduce) {
    html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz)::before {
      transition: none;
    }
  }
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz) button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 22px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 450;
    letter-spacing: -0.09px;
    color: var(--newa-muted) !important;
    background-color: transparent;
    opacity: 1;
    transition: color 0.15s var(--newa-ease);
  }
  html body .font-display_isAdjustable__51Ij2 .font-display_justifier__JYYSU button svg line {
    stroke: currentColor;
  }
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz) button:hover {
    color: var(--newa-fg) !important;
  }
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz) button[data-active="true"] {
    color: var(--newa-fg) !important;
    background-color: transparent;
  }
  html body .font-display_isAdjustable__51Ij2 :is(.font-display_justifier__JYYSU, .font-display_uppercaser__ZHYbz) button:focus-visible {
    outline: 2px solid var(--newa-accent);
    outline-offset: 1px;
  }

  /* Sliders: label, filled/unfilled track, value. */
  html body .font-display_isAdjustable__51Ij2 .newa-tester-sliders {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tester-group-gap);
  }
  /* Only a sufficiently wide toolbar puts the sliders beside the switches.
     The extra pair gap makes that group boundary 24px, like slider groups. */
  @container (min-width: 1280px) {
    html body .font-display_isAdjustable__51Ij2.font-display_expanded__P1cTU .newa-tester-sliders {
      flex-basis: 780px;
      max-width: 780px;
      margin-left: calc(var(--tester-group-gap) - var(--tester-pair-gap));
    }
  }
  /* One left and right edge for the whole card: style name, slider labels,
     sample text start on the same line, and the last slider value
     ends under the case switch. The select's own inset and the sample's
     viewport-scaled inline padding are cancelled to get there. */
  html body .font-display_isAdjustable__51Ij2 .toolbar_font-data__yjOxZ .toolbar_font-name__3i4jp {
    margin-left: -8px;
  }
  html body .font-display_isAdjustable__51Ij2 .textarea_container__dWyxO {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .newa-tester-sliders .toolbar_slider-container__DLNtd {
    display: flex;
    align-items: center;
    gap: var(--tester-control-gap);
    min-width: 0;
    padding: 0 !important;
  }
  html body .font-display_isAdjustable__51Ij2 .newa-slider-label {
    flex: none;
    font-size: 13px;
    letter-spacing: -0.09px;
    white-space: nowrap;
    color: var(--newa-muted);
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .newa-tester-sliders .toolbar_slider-input__xhhg1 {
    flex: 1 1 0;
    width: auto;
    min-width: 36px;
    height: 28px;
    margin: 0;
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .newa-tester-sliders .toolbar_track__ksVK4 {
    height: 4px;
    border-radius: 2px;
    background-color: var(--newa-border-strong);
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .newa-tester-sliders .toolbar_range__85_Gi {
    border-radius: 2px;
    background-color: var(--newa-fg);
  }
  html body .font-display_isAdjustable__51Ij2 .newa-slider-thumb {
    display: block;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border-radius: 0;
    background: transparent;
    border: 0;
    outline: none;
  }
  /* Keyboard focus subtly thickens the track instead of outlining the thumb. */
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .newa-tester-sliders .toolbar_slider-input__xhhg1:has(.newa-slider-thumb:focus-visible) .toolbar_track__ksVK4 {
    height: 6px;
  }
  html body .font-display_isAdjustable__51Ij2 .toolbar_config-bar__M52TI .toolbar_font-data__yjOxZ .newa-tester-sliders .toolbar_font-size__TdoVj {
    flex: none;
    width: auto;
    padding: 0;
    white-space: nowrap;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: end;
  }
}

/* Editable sample focus styling. */
html body .font-display_isAdjustable__51Ij2 .textarea_container__dWyxO {
  position: relative;
}
html body .font-display_isAdjustable__51Ij2 .textarea_textarea__W2lC8 {
  caret-color: var(--newa-accent);
  outline: none;
}
html body .font-display_isAdjustable__51Ij2 {
  transition: border-color 0.15s var(--newa-ease);
}
html body .font-display_isAdjustable__51Ij2:has(.textarea_textarea__W2lC8:focus) {
  border-color: var(--newa-border-strong);
}

/* Header links share one box for selected, hover, and keyboard states. */
@media (min-width: 901px) {
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw {
    gap: 6px;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw li {
    align-items: center;
    padding: 0;
    height: auto;
    background: none;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--newa-fg);
    transition: background-color 0.15s var(--newa-ease), color 300ms ease;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw li a span {
    display: block;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: none !important;
    color: inherit;
    font-weight: 500;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw li:is(.sidebar_is-current-path__E24ng, :hover) a,
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw li a:focus-visible {
    background-color: var(--newa-surface-2);
  }
}

/* Keep the transition on the resting state so hover-in and hover-out both fade.
   Labels have their own color rules, so they need their own transition too. */
html .sidebar_sidebar__v92FL :is(a, button),
html .sidebar_sidebar__v92FL :is(a, button) span {
  transition: color 300ms ease, background-color 150ms var(--newa-ease);
}

/* Brand-blue feedback for header links and controls, including mobile menu items. */
html .sidebar_sidebar__v92FL :is(a, button):is(:hover, :focus-visible),
html .sidebar_sidebar__v92FL :is(a, button):is(:hover, :focus-visible) span,
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw a:is(:hover, :focus-visible),
html .sidebar_sidebar__v92FL .sidebar_typefaces__eTItw a:is(:hover, :focus-visible) span {
  color: var(--newa-accent);
}

@media (min-width: 901px) {
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw.newa-nav-spring {
    isolation: isolate;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw.newa-nav-spring::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: 0;
    top: 50%;
    height: 30px;
    width: var(--nav-pill-width, 0px);
    transform: translate(var(--nav-pill-x, 0px), -50%);
    border-radius: 8px;
    background: var(--newa-surface-2);
    opacity: var(--nav-pill-opacity, 0);
    transition: opacity 120ms ease;
  }
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw.newa-nav-spring li:is(.sidebar_is-current-path__E24ng, :hover) a,
  html .sidebar_sidebar__v92FL > .sidebar_typefaces__eTItw.newa-nav-spring li a:focus-visible {
    background: transparent;
  }
}

/* ------------------------------------------------------- theme switching
 * Light/dark switch (theme/theme-switch.js), as on newa.sh. Surfaces carry
 * their own transition timings (300ms, 1s) and canvases redraw at once, so a
 * plain flip settles unevenly. The switch cancels those transitions so the new
 * theme lands at once, then one root snapshot of the new page fades over the
 * old. A switch made while scrolling, under reduced motion or in WebKit only
 * snaps. */
/* Root only: a named snapshot is painted in isolation, so its backdrop blur
   and translucent edges would show the old picture through the new. */
html.theme-switching * {
  view-transition-name: none;
}
html.theme-switching::view-transition-group(root),
html.theme-switching::view-transition-old(root) {
  animation: none;
}
html.theme-switching::view-transition-new(root) {
  animation: newa-theme-crossfade 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
  mix-blend-mode: normal;
}
@keyframes newa-theme-crossfade {
  from { opacity: 0; }
}

/* ------------------------------------------------------- footer controls
 * newa.sh's footer row: interface sounds and the theme switch, under the
 * banner on the right. System appears only when mounted at newa.sh, where the
 * shared preference can hold it (theme/theme-switch.js). */
.newa-footer-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  color: var(--newa-muted);
}
.newa-footer-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--newa-surface);
}
.newa-footer-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 24px: the smallest pointer target WCAG 2.5.8 allows. */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.newa-footer-switch button:hover,
.newa-footer-switch button:focus-visible {
  color: var(--newa-accent);
}
.newa-footer-switch button:focus-visible {
  outline: 2px solid var(--newa-accent);
  outline-offset: 1px;
}
.newa-footer-switch button[aria-pressed="true"] {
  background: var(--newa-border);
  color: var(--newa-fg);
}
.newa-footer-switch svg {
  width: 13px;
  height: 13px;
}
