/* Self-hosted Latin subsets (OFL, see assets/fonts). No third-party font requests.
   Sora sets titles and prices, Manrope everything else: the owner's picks of 2026-11.
   Both files are preloaded in inc/setup.php; keep those URLs in step with these. */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
/* Arial (Liberation Sans on Linux) scaled to Sora's width at weight 600, so the swap
   barely reflows a title. Value measured on the home headlines. */
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  size-adjust: 109%;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* The chat root emitted after .ar-site does not inherit these tokens or resets.
   "Teal Ink": true neutral greys carry the page; the logo's own teal (hue 170)
   is reserved for action and emphasis, with warm amber as a small second accent.
   Three grounds per scheme (bg, band, deep) give alternating sections a visible
   edge; the teal brand band is the same in both schemes. */
.ar-site {
  --ar-bg: #0e0e0e;
  --ar-band: #1a1a1a;
  --ar-deep: #060606;
  --ar-surface: #212121;
  --ar-surface-raised: #2a2a2a;
  --ar-surface-accent: #15332e;
  --ar-text: #f2f2f2;
  --ar-muted: #a6a6a6;
  --ar-accent: #4fc1ac;
  --ar-accent-strong: #7ed3c3;
  --ar-warm: #f0b252;
  --ar-on-warm: #1f1404;
  --ar-line: #2e2e2e;
  --ar-focus: #7ed3c3;
  --ar-form-bg: #212121;
  --ar-field-bg: #161616;
  --ar-field-hover: #1c1c1c;
  --ar-field-line: #707070;
  --ar-field-text: #f2f2f2;
  --ar-field-placeholder: #a6a6a6;
  --ar-field-scheme: dark;
  --ar-button-text: #04201a;
  --ar-button-hover: #7ed3c3;
  --ar-disabled-bg: #2e2e2e;
  --ar-disabled-text: #c4c4c4;
  --ar-notice-bg: #15332e;
  --ar-error: #ffb4a8;
  --ar-brand: #0c5a4f;
  --ar-on-brand: #ffffff;
  --ar-on-brand-muted: #c2e0d9;
  --ar-art-bg: #161616;
  --ar-shadow: 0 1px 0 #ffffff0a inset, 0 24px 48px -24px #00000099;
  --ar-header-height: 84px;
  --ar-radius: 6px;
  --ar-radius-lg: 10px;
  /* One corner tightens like a speech bubble: the brand's single recurring shape. */
  --ar-bubble: 14px 14px 14px 4px;
  --ar-container: 1136px;
  --ar-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ar-font-heading: "Sora", "Sora Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ar-tracking-display: -.045em;
  --ar-tracking-title: -.04em;
  --ar-tracking-head: -.028em;
  --ar-gutter: clamp(20px, 4vw, 48px);
  --ar-gap: clamp(20px, 3vw, 40px);
  color-scheme: dark;
  color: var(--ar-text);
  background: var(--ar-bg);
  font: 400 17px/1.55 var(--ar-font-body);
  font-variant-numeric: lining-nums;
  text-align: left;
  overflow-wrap: break-word;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ar-site[data-ar-color-scheme="light"] {
  --ar-bg: #f7f7f7;
  --ar-band: #ececec;
  --ar-deep: #e2e2e2;
  --ar-surface: #ffffff;
  --ar-surface-raised: #efefef;
  --ar-surface-accent: #e1f0ec;
  --ar-text: #111111;
  --ar-muted: #5b5b5b;
  --ar-accent: #0b7a68;
  --ar-accent-strong: #08695a;
  --ar-warm: #e9a23b;
  --ar-on-warm: #1f1404;
  --ar-line: #dedede;
  --ar-focus: #0b7a68;
  --ar-form-bg: #ffffff;
  --ar-field-bg: #f4f4f4;
  --ar-field-hover: #ebebeb;
  --ar-field-line: #7a7a7a;
  --ar-field-text: #111111;
  --ar-field-placeholder: #5b5b5b;
  --ar-field-scheme: light;
  --ar-button-text: #ffffff;
  --ar-button-hover: #08604f;
  --ar-disabled-bg: #e6e6e6;
  --ar-disabled-text: #5b5b5b;
  --ar-notice-bg: #e1f0ec;
  --ar-error: #a3271c;
  --ar-art-bg: #ededed;
  --ar-shadow: 0 1px 2px #1111110d, 0 24px 48px -28px #1111113d;
  color-scheme: light;
}
/* Section tones re-declare the palette locally, so every component inside them
   (text, buttons, cards, focus rings) follows without per-component overrides.
   Deep is the one neutral contrast band (dark in the dark scheme, a darker
   light grey in the light scheme, see the override below); brand is the one
   teal band, also worn by the recommended pricing plan in both schemes. */
.ar-site [data-ar-tone="band"] { background: var(--ar-band); }
.ar-site [data-ar-tone="deep"],
.ar-site .ar-footer {
  --ar-bg: var(--ar-deep);
  --ar-surface: #1d1d1d;
  --ar-surface-raised: #272727;
  --ar-surface-accent: #15332e;
  --ar-text: #f2f2f2;
  --ar-muted: #a6a6a6;
  --ar-accent: #4fc1ac;
  --ar-accent-strong: #7ed3c3;
  --ar-line: #2e2e2e;
  --ar-focus: #7ed3c3;
  --ar-field-line: #707070;
  --ar-button-text: #04201a;
  --ar-button-hover: #7ed3c3;
  --ar-art-bg: #161616;
  color-scheme: dark;
  background: var(--ar-deep);
  color: var(--ar-text);
}
/* In the light scheme deep is the deepest light ground, not a dark island: the
   home process band and the footer stay light like the rest of the page. */
.ar-site[data-ar-color-scheme="light"] [data-ar-tone="deep"],
.ar-site[data-ar-color-scheme="light"] .ar-footer {
  --ar-surface: #ffffff;
  --ar-surface-raised: #f4f4f4;
  --ar-surface-accent: #d6ebe5;
  --ar-text: #111111;
  --ar-muted: #4f4f4f;
  --ar-accent: #0b7a68;
  --ar-accent-strong: #08695a;
  --ar-line: #c9c9c9;
  --ar-focus: #0b7a68;
  --ar-field-line: #7a7a7a;
  --ar-button-text: #ffffff;
  --ar-button-hover: #08604f;
  --ar-art-bg: #ededed;
  color-scheme: light;
}
.ar-site [data-ar-tone="brand"],
.ar-site .ar-tone-brand {
  --ar-bg: var(--ar-brand);
  --ar-surface: #13695d;
  --ar-surface-raised: #13695d;
  --ar-surface-accent: #1a7a6c;
  --ar-text: var(--ar-on-brand);
  --ar-muted: var(--ar-on-brand-muted);
  --ar-accent: #ffffff;
  --ar-accent-strong: #ffffff;
  --ar-line: #2b7569;
  --ar-focus: #ffffff;
  --ar-field-line: #c2e0d9;
  --ar-button-text: #0c5a4f;
  --ar-button-hover: #e3f1ee;
  --ar-art-bg: #0a4d44;
  color-scheme: dark;
  background: var(--ar-brand);
  color: var(--ar-text);
}
.ar-site,
.ar-site *,
.ar-site *::before,
.ar-site *::after { box-sizing: border-box; }
.ar-site [hidden] { display: none !important; }
.ar-site :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.ar-site :where(ul, ol) { padding: 0; list-style: none; }
.ar-site :where(h1, h2, h3, h4, h5, h6) {
  color: inherit;
  font-family: var(--ar-font-heading);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: var(--ar-tracking-title);
  text-wrap: balance;
}
.ar-site h1, .ar-site .ar-h1 { font-size: clamp(34px, 4.8vw, 61px); letter-spacing: var(--ar-tracking-display); line-height: 1.04; }
.ar-site .ar-display { font-size: clamp(40px, 6.500vw, 83px); line-height: 1; }
.ar-site h2, .ar-site .ar-h2 { font-size: clamp(27px, 3.300vw, 42px); }
.ar-site h3, .ar-site .ar-h3 { font-size: clamp(20px, 1.900vw, 24px); line-height: 1.16; letter-spacing: var(--ar-tracking-head); }
.ar-site h4, .ar-site .ar-h4 { font-size: 18px; line-height: 1.25; letter-spacing: var(--ar-tracking-head); }
.ar-site :where(a) { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.ar-site :where(a:hover) { text-decoration: none; }
.ar-site :where(img, video, svg) { max-width: 100%; vertical-align: middle; }
.ar-site :where(img, video) { height: auto; }
.ar-site :where(button, input, textarea, select) { font: inherit; color: inherit; }
.ar-site :where(button, input, textarea, select, fieldset) { border: 0; box-shadow: none; }
.ar-site :where(button) { background: none; padding: 0; }
.ar-site :where(button, input[type="submit"], summary) { cursor: pointer; }
.ar-site :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--ar-focus); outline-offset: 3px; }
.ar-site :is(a, button, input, textarea, select, summary, [tabindex]):focus:not(:focus-visible) { outline: none; }
.ar-site :where([id]) { scroll-margin-top: 104px; }
.ar-site .ar-container { width: min(var(--ar-container), calc(100% - var(--ar-gutter) * 2)); margin-inline: auto; }
.ar-site .ar-section { padding-block: clamp(56px, 7vw, 92px); }
.ar-site .ar-section--top { padding-top: clamp(40px, 5vw, 68px); }
.ar-site .ar-section--small { padding-block: clamp(44px, 5vw, 64px); }
.ar-site .ar-section--flush { padding-top: 0; }
.ar-site .ar-eyebrow { font-size: 15px; font-weight: 600; color: var(--ar-accent-strong); margin-bottom: 14px; }
.ar-site .ar-lead { color: var(--ar-muted); font-size: clamp(17px, 1.500vw, 20px); line-height: 1.5; text-wrap: pretty; }
.ar-site .ar-small { font-size: 14px; color: var(--ar-muted); }
.ar-site .ar-narrow { max-width: 620px; }
.ar-site .ar-reading { max-width: 800px; }
.ar-site .ar-nowrap { white-space: nowrap; }
.ar-site .ar-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ar-site .ar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ar-site .ar-page-heading { display: grid; gap: 14px; margin-bottom: 40px; max-width: 800px; }

.ar-site .ar-button,
.ar-site .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ar-accent);
  color: var(--ar-button-text);
  font: 600 16px/1.25 var(--ar-font-body);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color .15s ease-out, transform .1s ease-out;
}
.ar-site :is(.ar-button, .wp-block-button__link):active { transform: scale(.98); }
.ar-site .ar-button:hover,
.ar-site .wp-block-button__link:hover { background: var(--ar-button-hover); color: var(--ar-button-text); }
.ar-site .ar-button--secondary { background: var(--ar-surface-raised); color: var(--ar-text); }
.ar-site .ar-button--secondary:hover { background: var(--ar-line); color: var(--ar-text); }
.ar-site .ar-button--link { background: none; color: var(--ar-text); padding-inline: 12px; }
.ar-site .ar-button--link:hover { background: none; color: var(--ar-text); text-decoration: underline; }
.ar-site .ar-button--small { min-height: 40px; padding: 8px 16px; font-size: 14.500px; }
.ar-site .ar-text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ar-accent-strong); text-decoration: none; }
.ar-site .ar-text-link:hover { text-decoration: underline; }
.ar-site .ar-text-link .ar-icon { width: 18px; height: 18px; }
.ar-site .ar-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ar-site .ar-skip-link { position: absolute; top: 8px; left: 8px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--ar-accent); color: var(--ar-button-text); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.ar-site .ar-skip-link:focus { transform: translateY(0); }
.ar-site .ar-main:focus { outline: none; }

/* The header: a capsule floating over the page, echoing the chat input. */
.ar-site .ar-header { position: sticky; top: calc(12px + var(--wp-admin--admin-bar--height, 0px)); z-index: 40; display: flex; justify-content: center; padding: 12px var(--ar-gutter) 0; pointer-events: none; }
.ar-site .ar-header__inner { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(960px, 100%); min-height: 56px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--ar-surface); box-shadow: var(--ar-shadow); }
.ar-site .ar-brand { display: inline-flex; align-items: center; gap: 9px; font: 600 17px/1 var(--ar-font-heading); letter-spacing: var(--ar-tracking-head); text-decoration: none; color: var(--ar-text); white-space: nowrap; }
.ar-site .ar-logo { width: 26px; height: 26px; flex: none; }
.ar-site .ar-nav ul { display: flex; gap: 24px; }
.ar-site .ar-nav ul a { font-size: 15px; font-weight: 500; color: var(--ar-muted); text-decoration: none; transition: color .15s ease-out; }
.ar-site .ar-nav ul a:hover,
.ar-site .ar-nav ul a[aria-current="page"] { color: var(--ar-text); }
.ar-site .ar-nav__cta { display: none; }
.ar-site .ar-header__tools { display: flex; align-items: center; gap: 8px; }
.ar-site .ar-color-toggle,
.ar-site .ar-menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ar-surface-raised); color: var(--ar-text); }
.ar-site .ar-color-toggle svg,
.ar-site .ar-menu-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ar-site .ar-color-toggle__sun { display: none; }
.ar-site[data-ar-color-scheme="light"] .ar-color-toggle__moon { display: none; }
.ar-site[data-ar-color-scheme="light"] .ar-color-toggle__sun { display: block; }

/* Closing band and footer, on every page. */
.ar-site .ar-closing { padding-block: clamp(72px, 10vw, 136px); }
.ar-site .ar-closing__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 36px); text-align: center; }
.ar-site .ar-closing h2 { max-width: 15em; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; text-wrap: balance; }
.ar-site .ar-closing .ar-actions { justify-content: center; }
.ar-site .ar-footer { padding-block: clamp(44px, 5vw, 64px) 36px; }
.ar-site .ar-footer__grid { display: grid; grid-template-columns: 4fr repeat(4, 2fr); gap: 32px; }
.ar-site .ar-footer__support { display: grid; gap: 10px; align-content: start; font-size: 14.500px; color: var(--ar-muted); }
.ar-site .ar-footer__support .ar-brand { margin-bottom: 8px; }
.ar-site .ar-footer__email { color: var(--ar-accent-strong); text-decoration: none; }
.ar-site .ar-footer__email:hover { text-decoration: underline; }
.ar-site .ar-footer__column h2 { font: 600 14.500px/1.4 var(--ar-font-body); letter-spacing: 0; margin-bottom: 10px; }
.ar-site .ar-footer__column ul { display: grid; gap: 8px; }
.ar-site .ar-footer__column a { font-size: 14.500px; color: var(--ar-muted); text-decoration: none; }
.ar-site .ar-footer__column a:hover { color: var(--ar-text); }
.ar-site .ar-social-mark { display: none; }
.ar-site .ar-footer__legal { margin-top: 44px; font-size: 13px; line-height: 1.5; color: var(--ar-muted); }
.ar-site .ar-footer__legal h2 { font: 600 13px/1.5 var(--ar-font-body); letter-spacing: 0; color: var(--ar-text); margin-bottom: 6px; }
.ar-site .ar-footer__legal ul { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.ar-site .ar-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ar-site .ar-footer__legal a:hover { color: var(--ar-text); }
.ar-site .ar-footer__legal p { margin-top: 14px; }

/* Text from the editor: articles, Privacy, Termini, generic pages. */
.ar-site .ar-prose { font-size: 17px; line-height: 1.68; overflow-wrap: break-word; }
.ar-site .ar-prose :where(p, ul, ol, blockquote, figure, table, pre, dl) { margin-bottom: 18px; }
.ar-site .ar-prose :where(ul, ol) { padding-left: 22px; list-style: disc; }
.ar-site .ar-prose ol { list-style: decimal; }
.ar-site .ar-prose li { margin-bottom: 8px; }
.ar-site .ar-prose :where(h2, h3, h4) { margin: 40px 0 12px; }
.ar-site .ar-prose > :first-child { margin-top: 0; }
.ar-site .ar-prose h2 { font-size: clamp(22px, 2.200vw, 28px); line-height: 1.16; }
.ar-site .ar-prose h3 { font-size: clamp(20px, 1.900vw, 24px); }
.ar-site .ar-prose :where(strong, b) { font-weight: 700; }
.ar-site .ar-prose a:not(:where(.ar-button, .wp-element-button, .wp-block-button__link)) { color: var(--ar-accent-strong); text-decoration: underline; } /* Explicit: WordPress global styles reset it on some sites. */
.ar-site .ar-prose :where(blockquote, pre) { padding: 20px; background: var(--ar-surface-raised); border-radius: var(--ar-radius); }
.ar-site .ar-prose img { border-radius: var(--ar-radius); }

.ar-site .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.ar-site .nav-links :where(a, .page-numbers) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--ar-surface-raised); text-decoration: none; }
.ar-site .nav-links .current { background: var(--ar-accent); color: var(--ar-button-text); }
.ar-site .ar-search-form label { display: block; font-size: 14px; color: var(--ar-muted); margin-bottom: 8px; }
.ar-site .ar-search-form__controls { display: flex; gap: 10px; max-width: 620px; }
.ar-site .ar-search-form input { flex: 1; border: 0; min-width: 0; min-height: 48px; padding: 10px 16px; border-radius: var(--ar-radius); background: var(--ar-field-bg); color: var(--ar-field-text); color-scheme: var(--ar-field-scheme); }
.ar-site .ar-comments { margin-top: 56px; }

@media (max-width: 980px) {
  .ar-site .ar-header__inner { padding-left: 16px; }
  .ar-site .ar-header__cta { display: none; }
  .ar-site .ar-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 16px; padding: 16px; border-radius: var(--ar-radius-lg); background: var(--ar-surface); box-shadow: var(--ar-shadow); }
  .ar-site .ar-nav ul { display: grid; gap: 0; }
  .ar-site .ar-nav ul a { display: block; padding: 10px 4px; font-size: 18px; color: var(--ar-text); }
  .ar-site .ar-nav__cta { display: inline-flex; }
}
@media (max-width: 760px) {
  .ar-site .ar-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .ar-site .ar-footer__support { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-site *, .ar-site *::before, .ar-site *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* iubenda's "your preferences" button: bottom-left, because the chat launcher lives bottom-right. */
html body .iubenda-tp-btn[data-tp-float][data-tp-float="bottom-right"]:not(#ar):not(#ar) { right: auto !important; left: 0 !important; margin: 16px !important; }
