/* IROMUSIC mirror — trimmed copy of the iromusic.live design system (landing/assets/css/site.css).
 * Only the rules these pages use: fonts, tokens, base, header, page hero, glass card, buttons,
 * link pills, footer. Self-hosted fonts, no CDN, no backdrop blur. */

/* ── fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Vazirmatn-Regular.woff2") format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/Vazirmatn-Medium.woff2") format('woff2');
}

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --color-bg: #161826;
  --color-bg-deep: #10111b;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-divider: color-mix(in srgb, #e9e9ed 12%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;

  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;

  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: clamp(20px, 2.2vw, 24px);
  --text-3xl: clamp(30px, 4.4vw, 44px);

  --radius-pill: 999px;
  --wrap: 820px;
  --gutter: clamp(16px, 5vw, 48px);

  --glass-fill: linear-gradient(180deg, rgb(255 255 255 / .08) 0%, rgb(255 255 255 / .03) 100%);
  --glass-fill-strong: linear-gradient(180deg, rgb(255 255 255 / .12) 0%, rgb(255 255 255 / .05) 100%);
  --glass-fill-tint: linear-gradient(180deg, color-mix(in srgb, var(--color-accent-600) 80%, var(--color-accent-700)) 0%, var(--color-accent-700) 100%);
  --glass-edge: rgb(255 255 255 / .14);
  --glass-edge-soft: rgb(255 255 255 / .08);
  --glass-edge-hover: rgb(255 255 255 / .28);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / .12);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -1px 0 rgb(255 255 255 / .03), 0 20px 40px -24px rgb(0 0 0 / .8);
  --glass-radius: 24px;
  --ease-glass: cubic-bezier(.2, .7, .2, 1);
}

/* Vazirmatn leads on Persian pages, Inter everywhere else. */
:root:lang(fa),
[lang="fa"] {
  --font-heading: "Vazirmatn", "Inter", system-ui, sans-serif;
  --font-body: "Vazirmatn", "Inter", system-ui, sans-serif;
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 560px at 50% -12%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%) no-repeat,
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%) fixed;
  background-color: var(--color-bg-deep);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }

h1, h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-neutral-100);
  text-wrap: balance;
}
/* Letter-spacing breaks Persian joining; Persian also needs taller lines. */
:lang(fa) :is(h1, h2) { letter-spacing: 0; line-height: 1.45; font-weight: 500; }

p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }

a { color: var(--color-accent-300); text-decoration: none; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--color-accent-200); text-decoration: underline; } }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-300); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--color-accent) 40%, transparent); }

.small { font-size: var(--text-sm); line-height: 1.55; color: var(--color-neutral-400); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
}
:lang(fa) .eyebrow { font-size: 13px; letter-spacing: 0; }

/* ── skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: 8px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* ── header (glass bar, no blur) ────────────────────────────────────────── */
.site-header {
  width: min(calc(100% - 24px), calc(var(--wrap) + 32px));
  margin: 12px auto 0;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-pill);
  background: var(--glass-fill), color-mix(in srgb, var(--color-bg) 92%, transparent);
  box-shadow: var(--glass-shadow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 60px;
  max-width: none;
  padding-inline: var(--space-2) var(--space-1);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--color-neutral-100);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
}
:lang(fa) .logo { letter-spacing: 0; font-size: 16px; font-weight: 500; }
.logo__mark { color: var(--color-accent-400); flex: none; }
@media (hover: hover) { .logo:hover { color: var(--color-neutral-100); text-decoration: none; } }

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-2);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  box-shadow: var(--glass-highlight);
  font-family: "Inter", "Vazirmatn", system-ui, sans-serif;
  font-size: 13px;
  color: var(--color-neutral-200);
}
.lang-switch:lang(fa) { font-family: "Vazirmatn", system-ui, sans-serif; }
@media (hover: hover) { .lang-switch:hover { border-color: var(--glass-edge-hover); color: var(--color-neutral-100); text-decoration: none; } }

/* ── page hero ──────────────────────────────────────────────────────────── */
.page-hero { padding-block: var(--space-8) var(--space-4); }
.page-hero__title {
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
:lang(fa) .page-hero__title { line-height: 1.4; letter-spacing: 0; }
.page-hero__sub {
  margin: var(--space-2) 0 0;
  max-width: 60ch;
  font-size: var(--text-lg);
  color: var(--color-neutral-400);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* ── cards ──────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-3);
  padding-bottom: var(--space-6);
}
.glass-card {
  padding: var(--space-4);
  border: 1px solid var(--glass-edge-soft);
  border-radius: var(--glass-radius);
  background: var(--glass-fill);
  box-shadow: var(--glass-highlight);
}
.glass-card > :first-child { margin-top: 0; }
.glass-card > :last-child { margin-bottom: 0; }
.card-title { margin: 0 0 var(--space-1); font-size: var(--text-xl); line-height: 1.3; }
.glass-card p { margin: 0 0 var(--space-2); color: var(--color-neutral-300); }
@media (max-width: 640px) { .glass-card { padding: var(--space-3); border-radius: 20px; } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  box-shadow: var(--glass-highlight);
  color: var(--color-neutral-100);
  font: inherit;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease-glass);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--glass-fill-tint);
  border-color: rgb(255 255 255 / .2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .24), 0 10px 24px -14px color-mix(in srgb, var(--color-accent) 80%, transparent);
  color: #fff;
}
.btn-secondary { background: var(--glass-fill-strong); }
.btn-lg { min-height: 52px; padding-inline: 28px; font-size: 16px; }
@media (hover: hover) {
  .btn:hover { border-color: var(--glass-edge-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
}

/* ── link pills ─────────────────────────────────────────────────────────── */
.related-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: var(--space-2);
  border: 1px solid var(--glass-edge-soft);
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  box-shadow: var(--glass-highlight);
  font-size: var(--text-sm);
  color: var(--color-neutral-200);
}
.related-links .handle { color: var(--color-neutral-500); }
@media (hover: hover) { .related-links a:hover { border-color: var(--glass-edge-hover); color: var(--color-neutral-100); text-decoration: none; } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: 13px;
  color: var(--color-neutral-500);
}
.site-footer p { margin: 0 0 var(--space-1); }
.site-footer a { color: var(--color-neutral-400); }
@media (hover: hover) { .site-footer a:hover { color: var(--color-neutral-100); } }

/* ── fallbacks ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header, .glass-card, .lang-switch, .btn, .btn-secondary, .related-links a { background: var(--color-surface); }
  .btn-primary { background: var(--color-accent-700); }
  .site-header, .glass-card, .lang-switch, .btn, .related-links a { border-color: rgb(255 255 255 / .5); }
  .small, .page-hero__sub { color: var(--color-neutral-300); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── page sections (SEO/AEO content blocks) ────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.toc { margin-top: var(--space-4); }
.sections { display: grid; gap: var(--space-3); padding-bottom: var(--space-6); }
.sections > section { scroll-margin-top: 16px; }
.sections .glass-card p { line-height: 1.85; }
:lang(en) .sections .glass-card p { line-height: 1.65; }
.sub-title { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-lg); font-weight: 600; color: var(--color-neutral-100); line-height: 1.4; }
:lang(fa) .sub-title { font-weight: 500; }
.table-wrap { overflow-x: auto; margin: var(--space-2) 0; border: 1px solid var(--glass-edge-soft); border-radius: 16px; }
.facts { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.facts th, .facts td { padding: 12px var(--space-2); text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-divider); }
.facts thead th { color: var(--color-neutral-400); font-weight: 500; font-size: 13px; }
.facts tbody th { color: var(--color-neutral-100); font-weight: 600; white-space: nowrap; font-family: "Inter", system-ui, sans-serif; }
.facts td { color: var(--color-neutral-300); }
.facts tbody tr:last-child th, .facts tbody tr:last-child td { border-bottom: 0; }
.faq h3 { margin: var(--space-3) 0 var(--space-1); font-size: var(--text-md); font-weight: 600; line-height: 1.5; color: var(--color-neutral-100); }
:lang(fa) .faq h3 { font-weight: 500; }
.faq .card-title + h3 { margin-top: var(--space-2); }
.faq h3 + p { margin: 0 0 var(--space-1); }
.glass-card a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-accent-300) 40%, transparent); }
.glass-card .related-links a, .glass-card .btn { text-decoration: none; }
time { white-space: nowrap; }
@media (max-width: 640px) { .facts tbody th { white-space: normal; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .table-wrap { border-color: rgb(255 255 255 / .5); }
  .facts td { color: var(--color-neutral-200); }
}
