/* Font faces written by site/build/build.ts from site/tools/fonts/fonts.json. */
@font-face {
  font-family: "Sheerlit Sans";
  src: url("/assets/fonts/sheerlit-sans-latin.1a03cf1ae9.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-024F,U+0259,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303,U+0309,U+0323,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Sheerlit Sans";
  src: url("/assets/fonts/sheerlit-sans-latin.1a03cf1ae9.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-024F,U+0259,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303,U+0309,U+0323,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Sheerlit Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"), local("Arimo-Regular");
  font-weight: 400;
  font-style: normal;
  size-adjust: 92.68%;
  ascent-override: 110.48%;
  descent-override: 43.16%;
  line-gap-override: 0.00%;
}
@font-face {
  font-family: "Sheerlit Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold");
  font-weight: 600;
  font-style: normal;
  size-adjust: 89.04%;
  ascent-override: 115.00%;
  descent-override: 44.92%;
  line-gap-override: 0.00%;
}
/* Site stylesheet of Sheerlit (ADR 0062, docs/plano/site.md, section 5). It is not the sibling
   apps' layer: the page follows the brand idea "a veil of light" (brand/estrategia.md, idea A).
   The hero has the symbol on a plate of fine veil folds, and the veil settles over it once,
   the signature moment of brand/movimento.md; the promise is a ruled statement list, the
   effects are two plain lists (what is included, what the lifetime unlock adds), privacy is
   the one dark band of the page, in the icon's olive and veil colors.

   Logical properties only (margin-inline, inset-inline-start, border-block-end...), so the
   Arabic pages mirror without a single direction rule. Text uses the brand font, Source
   Sans 3 shipped as the renamed subset "Sheerlit Sans" (the build writes its @font-face
   rules at the top of this file from site/tools/fonts/fonts.json), in the weights 400 and
   600 only (brand/tipografia.md). Arabic, Japanese, Chinese and Korean use the reader's
   system font. The Apple system font is never hosted, only reached through system-ui.

   BRAND TOKENS. Every color below is a semantic token of brand/cores.json ($value for
   light, $extensions["technology.alas.appearances"] for dark and high contrast); the names
   after each value are the token paths. The veil band uses the icon tokens (icon.background
   and icon.front in light; brand.3 and the dark icon front in dark). Ratios are measured by
   the contrast gate (site/test/gates/contrast.ts) in light, dark and both high contrast
   modes, report in docs/design/site/. */
:root {
  color-scheme: light dark;
  --color-background: #FDFDFC;        /* semantic.background */
  --color-surface: #FAF9F6;           /* semantic.surface */
  --color-component: #F2F1EC;         /* semantic.component */
  --color-border: #8C897F;            /* semantic.border */
  --color-text: #272520;              /* semantic.textPrimary */
  --color-text-secondary: #666359;    /* semantic.textSecondary */
  --color-brand-text: #6E6424;        /* semantic.brandText */
  --color-brand-solid: #615600;       /* semantic.brandSolid */
  --color-on-brand-solid: #FFFFFF;    /* semantic.onBrandSolid */
  --color-band: #4C4300;              /* icon.background */
  --color-on-band: #FCF6C3;           /* icon.front (the veil) */
  --color-fold-ground: #FBFAF0;       /* scale.brand.2, ground of brand/padroes/veu.svg */
  --color-fold-line: #E7E2BA;         /* scale.brand.5, folds of brand/padroes/veu.svg */
  --color-veil: #FCF6C3;              /* scale.warm.2, the veil that settles */
  --color-symbol: #4C4300;            /* icon.background, square of the symbol */
  --color-on-symbol: #FCF6C3;         /* icon.front, veil "s" of the symbol */
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0F0E0D;
    --color-surface: #151513;
    --color-component: #201F1C;
    --color-border: #716F64;
    --color-text: #EFEDE5;
    --color-text-secondary: #C4C1B6;
    --color-brand-text: #CFC373;
    --color-brand-solid: #D5C665;
    --color-on-brand-solid: #0F0E0D;
    --color-band: #23200C;            /* scale.brand.3, dark */
    --color-on-band: #F4EFC5;         /* icon.front, dark */
    --color-fold-ground: #16150D;     /* scale.brand.2, dark */
    --color-fold-line: #373102;       /* scale.brand.5, dark */
    --color-veil: #F4EFC5;
    /* On a near black page the olive square would vanish: the symbol takes the dark brand
       solid with the "s" cut out in the page color, the one color version of brand/GUIA.md. */
    --color-symbol: #D5C665;          /* semantic.brandSolid, dark */
    --color-on-symbol: #0F0E0D;       /* semantic.background, dark */
  }
}
@media (prefers-contrast: more) {
  :root {
    --color-border: #716F64;
    --color-text: #1A1813;
    --color-text-secondary: #4A483E;
    --color-brand-text: #504913;
    --color-brand-solid: #4C4300;
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --color-background: #090908;
    --color-border: #8F8C81;
    --color-text: #F9F7EF;
    --color-text-secondary: #DBD8CC;
    --color-brand-text: #E4DA91;
    --color-brand-solid: #E4D77F;
    --color-on-brand-solid: #090908;
    --color-band: #111008;            /* scale.brand.2, high contrast dark */
  }
}

/* Type and layout (not colors). The brand family first, then its metric-matched local
   fallback, then the system stack. Motion tokens of brand/movimento.md, proposal A. */
:root {
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Sheerlit Sans", "Sheerlit Sans Fallback", var(--font-system);
  --measure: 38rem;
  --page: 68rem;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --motion-veil: 450ms;
  --motion-veil-easing: cubic-bezier(0.3, 0, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.2; margin-block: 0 1rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-block: 0 0.5rem; }
p { margin-block: 0 1rem; }
strong { font-weight: 600; }
a { color: var(--color-brand-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-brand-text); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  inset-block-start: -4rem;
  padding: 0.6rem 1rem;
  background: var(--color-brand-solid);
  color: var(--color-on-brand-solid);
  z-index: 10;
}
.skip:focus { inset-block-start: 0.75rem; }

.masthead, main, .colophon { max-inline-size: var(--page); margin-inline: auto; padding-inline: var(--gap); }

/* Masthead: the lockup at the start, two links, and a jump to the language list. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-inline-end: auto;
  text-decoration: none;
}
/* The lockup and the hero symbol are inlined from brand/logo (never redrawn, never mirrored).
   Their two fills are swapped for the tokens of the current appearance: the square in the
   band color, the veil "s" in the veil color. The wordmark of the lockup shares the square's
   fill in the file; it takes the text color so it stays legible in dark mode. */
.lockup { display: block; block-size: 2rem; inline-size: auto; }
.lockup path { fill: var(--color-text); }
.lockup path[id="photo"], .symbol path[fill="#4C4300"] { fill: var(--color-symbol); }
.lockup path[id="veil-s"], .symbol path[fill="#FCF6C3"] { fill: var(--color-on-symbol); }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.nav a, .to-languages, .colophon a { display: inline-flex; align-items: center; min-block-size: 44px; }
.icon { flex: none; margin-inline-end: 0.4rem; }

main { padding-block: 1rem 4rem; }

/* Hero: the copy at the start; at the end, the plate of veil folds with the symbol. */
.veil-hero {
  display: grid;
  gap: 2rem var(--gap);
  align-items: center;
  margin-block: 1.5rem 4.5rem;
}
@media (min-width: 52rem) {
  .veil-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.app-name { margin-block: 0 0.5rem; color: var(--color-brand-text); font-weight: 600; font-size: 1.1rem; }
.veil-hero h1 { margin-block: 0 1.25rem; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.8rem); max-inline-size: 14ch; }
.lead { max-inline-size: var(--measure); font-size: 1.2rem; }
.store { margin-block: 1.75rem 0; font-weight: 600; }
.button {
  display: inline-flex;
  align-items: center;
  min-block-size: 48px;
  padding-inline: 1.25rem;
  background: var(--color-brand-solid);
  color: var(--color-on-brand-solid);
  border-radius: 999px;
  text-decoration: none;
}
.plate {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-inline-size: 26rem;
  overflow: hidden;
  border-radius: 2rem;
}
.folds { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.folds-ground { fill: var(--color-fold-ground); }
.folds-line { stroke: var(--color-fold-line); }
.symbol { position: relative; inline-size: 7rem; block-size: 7rem; }
/* The veil settles: a pale layer comes down over the plate once, from the top, and fades as
   it reaches the bottom (brand/movimento.md, token "veil", 0.45 s). Never looped. It is a
   decorative pseudo-element with no text, so it is never a background under text. */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-veil);
  opacity: 0;
  pointer-events: none;
  animation: veil-settles var(--motion-veil) var(--motion-veil-easing) 1 both;
}
@keyframes veil-settles {
  from { opacity: 0.35; transform: translateY(-100%); }
  70% { opacity: 0.35; transform: translateY(0); }
  to { opacity: 0; transform: translateY(0); }
}

/* Promise: three statements under one rule, the title in brand text, no boxes and no icons. */
.promise { margin-block-end: 4.5rem; }
.promise-list { margin: 0; border-block-start: 2px solid var(--color-text); }
.promise-list > div {
  display: grid;
  gap: 0.25rem var(--gap);
  padding-block: 1.1rem;
  border-block-end: 1px solid var(--color-border);
}
@media (min-width: 52rem) {
  .promise-list > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}
.promise-list dt { font-weight: 600; font-size: 1.2rem; color: var(--color-brand-text); }
.promise-list dd { margin: 0; color: var(--color-text-secondary); max-inline-size: var(--measure); }

/* Effects: what is included, then what the lifetime unlock adds, marked by the lock. */
.effects { margin-block-end: 4.5rem; }
.effects-intro { max-inline-size: var(--measure); color: var(--color-text-secondary); }
.effect-columns { display: grid; gap: 2rem var(--gap); margin-block-start: 1.75rem; }
@media (min-width: 52rem) {
  .effect-columns { grid-template-columns: 1fr 1fr; }
}
.effect-group h3 { display: flex; align-items: center; padding-block-end: 0.6rem; border-block-end: 1px solid var(--color-border); }
.effect-group ul { margin: 0; padding: 0; list-style: none; }
.effect-group li { padding-block: 0.55rem; border-block-end: 1px solid var(--color-component); }
.unlock h3 { color: var(--color-brand-text); }

/* Privacy: the one dark band of the page, olive and veil like the app icon. */
.band {
  margin-block-end: 4.5rem;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border-radius: 1.25rem;
  background: var(--color-band);
  color: var(--color-on-band);
}
.band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); max-inline-size: 18ch; }
.band p { margin: 0; max-inline-size: var(--measure); font-size: 1.15rem; }
.band a { color: var(--color-on-band); text-decoration-thickness: 2px; }
.band a:focus-visible { outline-color: var(--color-on-band); }

/* Never: a short plain list, set wider apart than body text. */
.never { margin-block-end: 4.5rem; }
.never-list { margin: 0; padding-inline-start: 1.25rem; }
.never-list li { padding-block: 0.3rem; }
.never-list li::marker { color: var(--color-brand-text); }

/* Closing: why the app exists, then the store call in plain text. */
.closing { max-inline-size: 44rem; }
.closing p { max-inline-size: var(--measure); }
.store-text { font-weight: 600; }

/* Text pages: support, legal documents, delete data, accessibility. */
.doc { max-inline-size: 44rem; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-block: 1rem 1rem; }
.doc h2 { font-size: 1.35rem; margin-block: 2.25rem 0.6rem; }
.doc h3 { margin-block-start: 1.5rem; }
.doc .lead { font-size: 1.15rem; }
.legal-version, .legal-notice { color: var(--color-text-secondary); font-size: 0.95rem; }

/* Colophon: document links, the language list (target of the masthead jump), imprint. */
.colophon {
  display: grid;
  gap: 1.5rem var(--gap);
  padding-block: 2rem 3rem;
  border-block-start: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (min-width: 52rem) {
  .colophon { grid-template-columns: 1fr 1fr; }
  .imprint { grid-column: 1 / -1; }
}
.colophon ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.colophon-languages h2 { display: flex; align-items: center; margin-block: 0 0.25rem; font-size: 1rem; }
.langs a[aria-current] { font-weight: 600; text-decoration-thickness: 2px; }
.imprint { margin: 0; }

/* Writing systems (brand/tipografia.md and docs/plano/IDIOMAS.md, section 3). Japanese,
   Chinese, Korean and Arabic: brand Latin first, then the reader's own system face; no web
   font of those scripts is downloaded. The metric-matched Latin fallback sits right after
   the brand face, as in --font-text, so Latin words in these pages do not reflow. */
:lang(ja) { font-family: "Sheerlit Sans", "Sheerlit Sans Fallback", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(zh-Hans) { font-family: "Sheerlit Sans", "Sheerlit Sans Fallback", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko) { font-family: "Sheerlit Sans", "Sheerlit Sans Fallback", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(ar) { font-family: "Sheerlit Sans", "Sheerlit Sans Fallback", system-ui, -apple-system, "Geeza Pro", "Segoe UI", "Noto Sans Arabic", sans-serif; }
:lang(ja), :lang(zh-Hans), :lang(ko) { font-synthesis: none; letter-spacing: 0; }
:lang(ja) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
/* Taller lines where marks stack (Arabic) or ideographs fill the em. */
body:is(:lang(ar), :lang(ja), :lang(zh-Hans), :lang(ko)) { line-height: 1.75; }
:is(h1, h2, h3):is(:lang(ar), :lang(ja), :lang(zh-Hans), :lang(ko)) { line-height: 1.3; }
/* The language list names every language in its own script, in the system font. */
.langs, .langs * { font-family: var(--font-system); }

/* Higher contrast: the folds go, the plate stays plain. */
@media (prefers-contrast: more) {
  .folds { display: none; }
}

/* Reduced motion: the veil does not come down (the plate is shown as it ends); every
   animation and transition is off, including any added later. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
