/* Persian Cross */

@font-face { font-family: "Vazirmatn RD FD"; src: url("../fonts/Vazirmatn-RD-FD-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn RD FD"; src: url("../fonts/Vazirmatn-RD-FD-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn RD FD"; src: url("../fonts/Vazirmatn-RD-FD-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4ede2;
  --bg-2: #ece2d2;
  --surface: #fbf7f0;
  --ink: #1b2533;
  --ink-2: #4c5563;
  --muted: #7b7468;
  --line: #ddd0bb;
  --navy: #1f334d;
  --navy-2: #15253a;
  --gold: #c99a52;
  --gold-2: #e2b574;
  --gold-ink: #8a6327;
  --teal: #1f6064;
  --danger: #a23b2a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 37, 51, .06), 0 12px 32px -12px rgba(27, 37, 51, .18);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 1180px;
  color-scheme: light;
}
.lang-fa { --font: "Vazirmatn RD FD", Tahoma, sans-serif; --display: "Vazirmatn RD FD", Tahoma, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1826;
    --bg-2: #132033;
    --surface: #17263b;
    --ink: #f1e9dc;
    --ink-2: #c9c0b1;
    --muted: #9a9283;
    --line: #2a3a52;
    --gold-ink: #e2b574;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.75;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.lang-fa body, body.lang-fa { line-height: 1.95; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
.lang-fa h1, .lang-fa h2, .lang-fa h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .preset-grid .dl.js-only { display: inline-flex !important; }
.js .size-bar.js-only { display: grid !important; }
.js .link-btn.js-only { display: inline-block !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-alt { font-size: 12px; color: var(--muted); }
.menu { display: flex; align-items: center; flex: 1; gap: 16px; margin-inline-start: 20px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.lang-flags { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-flags a { display: block; border-radius: 4px; line-height: 0; opacity: .5; transition: opacity .2s ease, transform .2s ease; }
.lang-flags a:hover { opacity: 1; transform: translateY(-1px); }
.lang-flags a[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.lang-flags img { width: 30px; height: 20px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .header-row { min-height: 60px; gap: 12px; }
  .brand-alt { display: none; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .bars { display: grid; gap: 4px; width: 20px; }
  .bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu {
    position: absolute; inset-inline: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(27, 37, 51, .35);
  }
  .js .menu:not(.is-open) { display: none; }
  .nav { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 17px; border-radius: 12px; }
  .lang-flags { margin-inline-start: auto; gap: 10px; }
  html { scroll-padding-top: 76px; }
}
.site-header { position: sticky; }


/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 40%, color-mix(in srgb, var(--gold-2) 26%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%);
}
.lang-fa .hero::before { transform: scaleX(-1); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.kicker { color: var(--gold-ink); font-weight: 500; letter-spacing: .08em; font-size: 14px; margin-bottom: 12px; }
.lang-en .kicker { letter-spacing: 0; font-family: "Vazirmatn RD FD", Tahoma, sans-serif; }
.lang-fa .kicker { text-transform: uppercase; }
h1 { font-size: clamp(40px, 6.4vw, 76px); margin-bottom: 20px; }
.h1-name { white-space: nowrap; }
.h1-alt { color: var(--gold-ink); }
.h1-sep { display: inline-block; width: 1px; height: .8em; background: currentColor; opacity: .18; margin-inline: .38em; vertical-align: -.04em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.hero-art { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-art img { position: relative; width: 100%; filter: drop-shadow(0 30px 40px rgba(27, 37, 51, .28)); animation: rise 900ms cubic-bezier(.2, .7, .2, 1) both; }
.halo {
  position: absolute; inset: 8%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gold) 22%, transparent) 0 1deg, transparent 1deg 15deg);
  mask: radial-gradient(circle, transparent 38%, #000 40%, #000 66%, transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 66%, transparent 70%);
  animation: spin 120s linear infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(78%, 380px); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1; padding: 15px 24px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 51, 77, .7), inset 0 0 0 1px rgba(226, 181, 116, .35); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--gold-2); color: #1b2533; box-shadow: none; }
  .btn-primary:hover { background: #ecc58a; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--ink-2); }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.note { color: var(--ink-2); background: var(--bg-2); border-radius: 12px; padding: 12px 16px; }
.status { min-height: 1.75em; margin-top: 12px; font-size: 14px; color: var(--teal); }
.status.is-error { color: var(--danger); }
@media (prefers-color-scheme: dark) { .status { color: #7fc7c0; } .status.is-error { color: #f09a85; } }

/* ---------- size control ---------- */
.size-bar {
  grid-template-columns: auto auto 1fr; align-items: center; gap: 10px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px;
}
.size-bar > label { font-weight: 500; }
.size-bar .hint { grid-column: 1 / -1; margin: 0; }
.size-input { display: inline-flex; align-items: center; gap: 8px; }
.size-input input {
  width: 7.5em; font: inherit; font-variant-numeric: tabular-nums; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); direction: ltr; text-align: center;
}
.unit { color: var(--muted); font-size: 14px; }
.square { color: var(--muted); font-size: 13px; padding-inline-start: 6px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { background: var(--gold-2); color: #1b2533; border-color: var(--gold-2); } }
@media (max-width: 760px) { .size-bar { grid-template-columns: 1fr; } }

/* ---------- presets ---------- */
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .preset-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .preset-grid { grid-template-columns: 1fr; } }
.preset {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.preset:hover { transform: translateY(-3px); }
.preset-art {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; margin-bottom: 14px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--gold-2) 22%, var(--bg)) 0, var(--bg) 70%);
}
.preset-art img { width: 82%; filter: drop-shadow(0 12px 18px rgba(27, 37, 51, .22)); }
.preset h3 { font-size: 18px; margin-bottom: 12px; }
.lang-en .preset h3 { font-family: var(--font); font-weight: 500; }
.dl-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dl {
  display: inline-flex; align-items: center; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 10px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.dl:hover { border-color: var(--gold); color: var(--gold-ink); }
.link-btn { margin-top: 12px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--gold-ink); cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }

/* ---------- studio ---------- */
.studio-section { background: linear-gradient(var(--bg-2), var(--bg)); }
.studio { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.stage {
  margin: 0; position: sticky; top: 88px; aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow);
  background-color: #fff;
  background-image: conic-gradient(#e9e4dc 25%, #fff 0 50%, #e9e4dc 0 75%, #fff 0);
  background-size: 28px 28px;
}
.stage[data-bg="solid"] { background-image: none; }
.stage-inner { width: 100%; height: 100%; display: grid; place-items: center; }
.stage-inner svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .stage { position: relative; top: 0; max-width: 520px; width: 100%; margin-inline: auto; } }

.controls { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); }
.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field legend, .field-label { display: block; font-weight: 500; margin-bottom: 10px; padding: 0; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field.two { grid-template-columns: 1fr; } }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; color: var(--ink-2); user-select: none; }
.segmented.small label { padding: 6px 12px; font-size: 14px; }
.segmented input:checked + label { background: var(--navy); color: #fff; box-shadow: 0 4px 12px -6px rgba(31, 51, 77, .8); }
.segmented input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .segmented input:checked + label { background: var(--gold-2); color: #1b2533; } }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line); position: relative;
}
.swatch::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 3px solid #e2b574; }
.swatch-navy { background: #1f334d; }
.swatch-green { background: #2f5234; }
.swatch-burgundy { background: #741f14; }
.swatch-stone { background: #dcc3a4; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); }

.colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 22px; }
.colour-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.colour-row[hidden] { display: none; }
.colour-row label { font-size: 14px; }
input[type="color"] {
  -webkit-appearance: none; appearance: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px;
  background: none; cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.15); border-radius: 10px; }
input[type="color"]::-moz-color-swatch { border: 1px solid rgba(0,0,0,.15); border-radius: 10px; }
input[type="color"]:disabled { opacity: .35; cursor: not-allowed; }
.hex {
  width: 6.2em; font: 13px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; padding: 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-transform: lowercase;
}
.bg-row { display: flex; align-items: center; gap: 12px; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- teaser ---------- */
.teaser-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.teaser h2 { font-size: clamp(28px, 3.6vw, 42px); }
.teaser p { font-size: 18px; color: var(--ink-2); }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; gap: 8px; } }
.arrow-link { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .2s ease; }
.lang-fa .arrow-link::after { content: "←"; }
.arrow-link:hover::after { transform: translateX(4px); }
.lang-fa .arrow-link:hover::after { transform: translateX(-4px); }

/* ---------- article (philosophy) ---------- */
.article-hero { padding: clamp(48px, 7vw, 88px) 0 24px; }
.article-hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 16em; }
.article { padding-bottom: clamp(56px, 8vw, 104px); }
.prose { max-width: 42em; font-size: 18px; }
.prose > p:first-of-type { font-size: clamp(19px, 1.8vw, 22px); color: var(--ink); }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 2.2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose .answer {
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
  border-radius: 12px; padding: 16px 20px;
}
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--gold);
  font-family: var(--display); font-size: 1.15em; color: var(--ink);
}
.prose blockquote cite { display: block; font-family: var(--font); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.construction { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 4vw, 40px); }
.construction svg { width: min(100%, 440px); margin-inline: auto; }
.sources { font-size: 15px; padding-inline-start: 1.2em; }
.sources li { margin-bottom: .6em; }
.sources a { word-break: break-word; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 14px; background: var(--surface); }
.toc a:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-row p { margin: 0; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--gold-ink); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 0; }
.nf img { width: 120px; margin: 0 auto 24px; opacity: .9; }

/* range */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--gold-ink); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--gold-ink); }
.lang-en .kicker { text-align: left; }
.sources { font-family: "Vazirmatn", system-ui, sans-serif; }
.hex { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.lang-fa .kicker { text-align: right; }

/* ---------- verse card ---------- */
.verse {
  position: relative; margin: 1.8em 0 2.2em; padding: 26px 28px 20px; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--gold-2) 16%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: var(--shadow);
}
.verse::before {
  content: ""; position: absolute; inset-block: 18px; inset-inline-start: 0; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--gold-2), var(--gold));
}
.verse blockquote { margin: 0; padding: 0; border: 0; font-family: var(--display); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.85; color: var(--ink); }
.lang-fa .verse blockquote { font-family: var(--font); font-weight: 500; }
.verse blockquote p { margin: 0; color: var(--ink); }
.verse figcaption { margin-top: 14px; text-align: start; }
.verse figcaption a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  text-decoration: none; color: var(--gold-ink); background: color-mix(in srgb, var(--gold-2) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.verse figcaption a:hover { background: color-mix(in srgb, var(--gold-2) 30%, transparent); }
.verse .ver { color: var(--muted); font-weight: 400; padding-inline-start: 8px; border-inline-start: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.verse .ext { font-size: 12px; }
.ref { unicode-bidi: isolate; direction: ltr; display: inline-block; }
.prose h3 { font-size: clamp(20px, 2.2vw, 24px); margin-top: 1.8em; }
.meaning-intro { color: var(--ink); }

/* Illustrated symbol figures */
.symbol-fig { margin: 1.4em auto 1.6em; max-width: 340px; text-align: center; }
.symbol-fig svg { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-sizing: border-box; }
.symbol-fig figcaption { margin-top: .6em; font-size: .9rem; color: var(--muted); }
.sym-veil { fill: var(--surface); opacity: .84; }
.sym-line { fill: none; stroke: var(--gold-ink); stroke-width: 1.6; opacity: .9; }
.sym-arrow { stroke: var(--gold-ink); stroke-width: 2.4; fill: none; }
.sym-head { fill: var(--gold-ink); }
.sym-dot { fill: none; stroke: #c0392b; stroke-width: 2.2; }
.sym-ring { fill: none; stroke: var(--gold-ink); stroke-width: 2.2; stroke-dasharray: 4 3; }
.sym-label { fill: var(--ink); font-size: 15px; font-weight: 700; font-family: inherit; }
.sym-num { fill: var(--ink); font-size: 14px; font-weight: 700; font-family: inherit; }
.sym-num-s { font-size: 9px; }

.prose .symbol-fig { margin: 2em auto; }
.lang-fa .hero h1 { font-size: clamp(28px, 4.4vw, 56px); }
@media (max-width: 420px) { .lang-fa .hero h1 { font-size: 7.4vw; } }

.credit .ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; margin-inline: .1em; }
.ico-heart { fill: #c0392b; }
.ico-cross { fill: var(--gold-ink); }
.lang-flags { gap: 14px; }
@media (max-width: 860px) { .lang-flags { gap: 16px; } }
.field-label[for="studio-size"] { margin-bottom: 16px; }
.size-input + .chips { margin-top: 12px; }
.lang-fa .hero h1 { white-space: nowrap; font-size: clamp(22px, 3.4vw, 48px); }
@media (max-width: 980px) { .lang-fa .hero h1 { font-size: 6.2vw; } }
