/* StarSync site. Tokens come from the bot's own chart images:
   services/report/chart_image.py (INK, BACKGROUND, MUTED, LINE) and
   services/report/lines_image.py (Sun colour). Logical properties only, so
   the same file serves left-to-right and right-to-left pages. */
@font-face { font-family: Vazirmatn; font-weight: 100 900; font-display: swap;
  src: url(/fonts/vazirmatn-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-weight: 100 900; font-display: swap;
  src: url(/fonts/vazirmatn-latin.woff2) format('woff2');
  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+2212; }

:root {
  --night: #221e18;      /* chart_image.INK (34,30,24) */
  --night-2: #2c271f;    /* INK lifted a step, for the page glow */
  --paper: #faf7f1;      /* chart_image.BACKGROUND (250,247,241) */
  --muted: #a89f8b;      /* chart_image.MUTED (140,131,113), lightened for contrast on --night */
  --gold: #db8e26;       /* lines_image Sun (219,142,38) */
  --line: rgba(250, 247, 241, .16);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(rgba(250, 247, 241, .08) 1px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(90% 50% at 50% 0, var(--night-2), var(--night) 70%),
    var(--night);
  color: var(--paper);
  font: 1.0625rem/1.6 var(--sans);
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
html[lang="fa"] body { font-family: Vazirmatn, Tahoma, var(--sans); line-height: 1.9; }

.brand, main, footer { inline-size: min(40rem, 100%); margin-inline: auto; padding-inline: 1rem; }
.brand { padding-block: 1.25rem 0; }
.brand a { font: 700 1.1rem var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
html[lang="fa"] .brand a { font-family: Vazirmatn, Tahoma, sans-serif; letter-spacing: 0; }
main { flex: 1; padding-block: 2rem 3rem; }

h1 { font: 700 2.25rem/1.15 var(--serif); margin-block-end: 1.25rem; text-align: start; }
html[lang="fa"] h1 { font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.5; }
p { margin-block-end: 1rem; text-align: start; max-inline-size: 36rem; }
a { color: var(--gold); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

.hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); letter-spacing: .02em; }
.lede { font-size: 1.2rem; }
.small { color: var(--muted); font-size: .9rem; }
.cta {
  display: flex; align-items: center; justify-content: center;
  min-block-size: 4rem; padding-inline: 1.5rem; margin-block: 1.75rem 1rem;
  border-radius: 1rem; background: var(--gold); color: var(--night);
  font: 700 1.3rem var(--sans); text-decoration: none; text-align: center;
}
html[lang="fa"] .cta { font-family: Vazirmatn, Tahoma, sans-serif; }
.cta:hover { background: var(--paper); }
@media (min-width: 40rem) { .cta { display: inline-flex; } }

footer { border-block-start: 1px solid var(--line); padding-block: 1.25rem 2rem; margin-block-start: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold); }
bdi { unicode-bidi: isolate; }
