/* Site stylesheet. No third-party requests: the brand font is self-hosted and every other
   script falls back to the system fonts. Logical properties keep the layout correct in
   right-to-left languages. Colors are the Quirel tokens from brand/tokens/tokens.css
   (brand/cores.md, P3), with the same light, dark and high-contrast values as the app;
   contrast pairs are measured by site/test/contrast.ts. */
:root {
  --bg: #FDFAF6;              /* background */
  --surface: #FFFFFF;         /* surface */
  --text: #211911;            /* textPrimary */
  --muted: #665849;           /* textSecondary */
  --link: #774A08;            /* primaryText */
  --primary: #7F4E07;         /* primary */
  --on-primary: #FFFFFF;      /* onPrimary */
  --rule: #FCDFC2;            /* accent, used for decorative hairlines and the file note */
  --on-rule: #211911;         /* onAccent */
  --border: #8B7661;          /* border, for controls that carry meaning */
  --sheet: #7F4E07;           /* symbol sheet on a light background (brand/cores.md, 4) */
  --tab: #B98A52;             /* symbol tab on a light background */
  --radius: 10px;
  /* Brand font Commissioner (brand/tipografia.md) for Latin and Cyrillic text; scripts it
     does not cover (Arabic, Thai, Japanese, Chinese, Korean) fall through to the system
     stack, which on Apple devices is SF and is never hosted here. */
  --font: Commissioner, "Commissioner Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120F0C;
    --surface: #1E1A15;
    --text: #F5F1EC;
    --muted: #BAAFA4;
    --link: #EBB16C;
    --primary: #EBB16C;
    --on-primary: #120F0C;
    --rule: #523717;
    --on-rule: #F5F1EC;
    --border: #897764;
    --sheet: #FDF6E8;
    --tab: #DFC29C;
  }
}
@media (prefers-contrast: more) {
  :root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --text: #000000;
    --muted: #3E3328;
    --link: #563406;
    --primary: #563406;
    --on-primary: #FFFFFF;
    --rule: #FAE4CC;
    --on-rule: #000000;
    --border: #5C4935;
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #120F0C;
    --text: #FFFFFF;
    --muted: #D4CCC3;
    --link: #F7C790;
    --primary: #F7C790;
    --on-primary: #000000;
    --rule: #3E290F;
    --on-rule: #FFFFFF;
    --border: #B4A18E;
  }
}
/* Self-hosted WOFF2 subsets made by site/build/fonts.py (wght 400 to 700, FLAR 0 to 60); the
   build rewrites these URLs to content-hashed names. */
@font-face {
  font-family: Commissioner;
  src: url("/assets/fonts/commissioner-latin.0efa9c5f89.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Commissioner;
  src: url("/assets/fonts/commissioner-ext.0248de8ea8.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-024F, U+0259, U+0300-0309, U+0323, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Commissioner;
  src: url("/assets/fonts/commissioner-cyrillic.f4d01ba0bd.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Local fallback sized like Commissioner Regular (metrics printed by fonts.py), so the swap
   does not shift the layout. */
@font-face {
  font-family: "Commissioner Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 104.76%;
  ascent-override: 97.08%;
  descent-override: 19.66%;
  line-gap-override: 0%;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
/* Type scale with at least 1.25 between levels (body 17 px). Headings use the flair axis of
   the wordmark: the stems open at the terminal like a fold. */
h1, h2, h3 { line-height: 1.25; font-weight: 600; font-variation-settings: "FLAR" 60; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
.skip {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-start: -3rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { inset-block-start: 0.5rem; }
.top, main, .foot { max-inline-size: 62rem; margin-inline: auto; padding-inline: 1.25rem; }
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
}
/* The logo never flips in right-to-left pages; it only moves to the start edge. */
.brand { display: inline-flex; margin-inline-end: auto; min-block-size: 44px; align-items: center; }
.brand img { display: block; }
.nav { display: flex; gap: 1.25rem; }
.nav a, .lang summary { display: inline-block; min-block-size: 44px; line-height: 44px; }
.lang { position: relative; }
.lang summary { cursor: pointer; color: var(--link); }
.icon { vertical-align: -0.2em; margin-inline-end: 0.35rem; }
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  z-index: 5;
  margin-block: 0.25rem 0;
  margin-inline: 0;
  padding: 0.5rem;
  list-style: none;
  min-inline-size: 13rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lang li a { display: block; padding: 0.5rem 0.75rem; min-block-size: 44px; border-radius: 6px; }
.lang a[aria-current] { font-weight: 700; }
main { padding-block: 1.5rem 3rem; }
/* Hero: the symbol, the name and the value line side by side, then the promise. Text stays
   aligned to the start edge; nothing is centered. */
.lockup { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; }
.symbol { grid-row: span 2; display: block; }
.symbol .sheet { fill: var(--sheet); }
.symbol .tab { fill: var(--tab); stroke: var(--tab); transform-box: fill-box; transform-origin: 0% 50%; }
.name { margin: 0; font-weight: 600; font-size: 1.6rem; font-variation-settings: "FLAR" 60; }
.tagline { margin: 0; color: var(--muted); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-block: 1.5rem 0.75rem; max-inline-size: 20ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-inline-size: 40rem; }
.store { margin-block: 1.5rem; font-weight: 600; }
.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  min-block-size: 44px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
  text-decoration: none;
}
/* Benefits read like pages kept in order: numbered by the list itself, a hairline between
   them, title and text side by side when wide. */
.benefits { padding: 0; margin: 0; list-style: none; }
.benefits li { display: grid; gap: 0.25rem 2rem; padding-block: 1.1rem; border-block-start: 2px solid var(--rule); }
.benefits h3 { margin: 0; }
.benefits p { margin: 0; color: var(--muted); }
@media (min-width: 48rem) { .benefits li { grid-template-columns: 16rem 1fr; } }
.note { margin-block-start: 2.5rem; }
/* "Your file is yours": the one block on the accent fill, like a paper tab in a folder. */
.file { padding: 0.25rem 1.5rem 0.75rem; background: var(--rule); color: var(--on-rule); border-start-end-radius: 28px; border-end-start-radius: var(--radius); }
.file a { color: var(--on-rule); }
.where { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 48rem) { .where { grid-template-columns: 1fr 1fr; } }
.where div { padding: 0.25rem 1rem; border-inline-start: 3px solid var(--primary); }
.where dt { font-weight: 700; }
.where dd { margin-block: 0.25rem 0; margin-inline: 0; }
.cta { margin-block-start: 2.5rem; font-weight: 600; }
.doc { max-inline-size: 46rem; }
.doc h2 { margin-block-start: 2rem; }
.legal-version, .legal-notice { color: var(--muted); font-size: 0.95rem; }
.langs { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; list-style: none; }
.langs a { display: inline-block; min-block-size: 44px; line-height: 44px; }
.foot { padding-block: 1.5rem 2.5rem; border-block-start: 2px solid var(--rule); color: var(--muted); font-size: 0.95rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; margin-block: 0 0.75rem; list-style: none; }
.foot a { display: inline-block; min-block-size: 44px; line-height: 44px; }
/* The single orchestrated moment (brand/movimento.md, token "fold"): on load the tab of the
   symbol turns once on its fold and comes back, 450 ms. Only when the visitor has not asked
   for reduced motion; otherwise the symbol simply stands still. */
@media (prefers-reduced-motion: no-preference) {
  .symbol .tab { animation: fold 0.45s cubic-bezier(0.3, 1.2, 0.4, 1) 0.2s both; }
  @keyframes fold { 50% { transform: scaleX(0.55); } }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
