/* Wyeclo design tokens — shared by the portal (Hub) and every blog (vps-blogs).
   Fonts are the self-hosted files already used by the Hub; the CSP allows only 'self'. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../../hub/sales/fonts/inter-latin.260c81a4759b.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../../hub/sales/fonts/playfair-display-latin.ef05b30d6e5c.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500 700; font-display: swap; src: url("../../hub/sales/fonts/playfair-display-italic-latin.2175449f9d44.woff2") format("woff2"); }

:root {
  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.83rem, 0.81rem + 0.12vw, 0.90rem);
  --step-0: clamp(1.00rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.12rem + 0.30vw, 1.35rem);
  --step-2: clamp(1.40rem, 1.29rem + 0.55vw, 1.72rem);
  --step-3: clamp(1.68rem, 1.48rem + 1.00vw, 2.25rem);
  --step-4: clamp(2.00rem, 1.68rem + 1.60vw, 3.00rem);
  --step-5: clamp(2.40rem, 1.86rem + 2.70vw, 4.10rem);
  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-text: 1.65;
  --measure: 68ch;

  /* Colour (WCAG AA on --paper) */
  --ink: #15171a;
  --ink-soft: #3a3f45;
  --muted: #5f656c;
  --rule: #e3dfd6;
  --rule-strong: #cfc9bd;
  --paper: #fbfaf7;
  --paper-deep: #f2efe8;
  --surface: #ffffff;
  --focus: #1a56c9;
  --accent: #23272b;
  --accent-strong: #0f1113;
  --accent-soft: #ecebe7;
  --on-accent: #ffffff;

  /* Space (4px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
  --page-max: 76rem;

  /* Shape and motion */
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --shadow-soft: 0 1px 2px rgba(21, 23, 26, 0.04), 0 8px 24px rgba(21, 23, 26, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 180ms;
}

/* Blog palettes (BlogInstance.presentation.theme). */
[data-theme="sage"]  { --accent: #2f5b4f; --accent-strong: #1d3d34; --accent-soft: #e4ede8; }
[data-theme="ocean"] { --accent: #24527a; --accent-strong: #163755; --accent-soft: #e3ecf4; }
[data-theme="clay"]  { --accent: #9a4b2f; --accent-strong: #6c321e; --accent-soft: #f5e8e1; }
[data-theme="plum"]  { --accent: #6b3a64; --accent-strong: #4a2645; --accent-soft: #f0e6ee; }
[data-theme="ink"]   { --accent: #1f2a44; --accent-strong: #121a2d; --accent-soft: #e6e8ee; }

/* Section tones (BlogCategoryPage.tone). */
.tone-sage  { --tone: #2f5b4f; --tone-soft: #e4ede8; }
.tone-ocean { --tone: #24527a; --tone-soft: #e3ecf4; }
.tone-clay  { --tone: #9a4b2f; --tone-soft: #f5e8e1; }
.tone-sun   { --tone: #7a5c0f; --tone-soft: #f6efd9; }
.tone-plum  { --tone: #6b3a64; --tone-soft: #f0e6ee; }
.tone-stone { --tone: #4f5359; --tone-soft: #ebeae6; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: var(--leading-tight); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); }

.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;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 50;
  padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--paper);
  border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.container { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-text); font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* Language switcher: native <details>, no JavaScript. */
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); background: var(--surface);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: ""; width: 0.45em; height: 0.45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 30; min-width: 15rem;
  list-style: none; padding: var(--space-2); background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
}
.lang__menu a {
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); text-decoration: none; font-size: var(--step--1);
}
.lang__menu a:hover { background: var(--paper-deep); }
.lang__menu a[aria-current="true"] { font-weight: 700; }
.lang__region { color: var(--muted); font-size: var(--step--2); }

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