@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080807;
  --bg-2: #12130f;
  --bg-3: #1b1d16;
  --ink: #f4efe4;
  --muted: #c8c0b0;
  --gold: #e4b53a;
  --gold-2: #f0d078;
  --gold-ink: #1a1508;
  --olive: #8ea84a;
  --olive-deep: #3f5220;
  --olive-dark: #2a3816;
  --line: color-mix(in srgb, var(--gold) 28%, transparent);
  --danger: #e7a090;
  --ok: #c5dd8e;
  --header: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: Vazirmatn, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, color-mix(in srgb, var(--olive-deep) 55%, transparent), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 450;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, a { touch-action: manipulation; }
button, .btn, .chip, .menu, .langs button {
  user-select: none;
  -webkit-user-select: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { transform: none; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand img { width: 40px; height: 40px; }

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}
.wordmark span { display: block; letter-spacing: 0.22em; font-size: 0.92em; }

.nav-links { display: none; gap: 1.25rem; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.langs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.langs button {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  min-width: 44px;
  min-height: 36px;
  padding: 0 0.7rem;
  font: inherit;
  cursor: pointer;
}
.langs button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 120ms var(--ease), background 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0.3rem 0.9rem; font-size: 0.95rem; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }

.menu {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.menu span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
}

.drawer {
  display: none;
  padding: 0.4rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.drawer.open { display: grid; }
.drawer a {
  min-height: 48px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.drawer .btn { margin-top: 0.4rem; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header) - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: auto -8% -12% auto;
  width: min(520px, 90vw);
  opacity: 0.09;
  pointer-events: none;
}
html[dir="ltr"] .hero-bg { inset: auto auto -12% -8%; }
.hero-bg img { width: 100%; animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  gap: 1.5rem;
  align-content: center;
  align-items: center;
  padding: 2.5rem 0 3rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.hero-mark { order: -1; }
.hero-mark img { width: 104px; height: auto; }
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}
.display {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.lead { color: var(--muted); max-width: 42rem; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.stripes {
  height: 22px;
  background:
    linear-gradient(var(--olive-deep), var(--olive-deep)) 0 0 / 100% 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 12px / 100% 3px no-repeat,
    linear-gradient(var(--olive-dark), var(--olive-dark)) 0 17px / 100% 5px no-repeat;
}

.section { padding: 4.5rem 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.4rem; max-width: 20ch; }

.cats, .steps, .cards {
  display: grid;
  gap: 0.9rem;
}
.cat, .step, .card, .person, .panel {
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.cat, .card { text-decoration: none; display: block; color: inherit; }
.cat .glyph, .frame .glyph {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.cat h3, .step h3, .card h3, .person h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.cat p, .step p, .card p, .person p, .panel p { color: var(--muted); }
.step .n {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.mt { margin-top: 1.15rem; }
.card .frame + .card-top { margin-top: 0.85rem; }
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.card h3 { color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.2rem; }
.chip {
  min-height: 44px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.chip[aria-current="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}
.badge.ok { color: var(--ok); }
.badge.no { color: var(--danger); }

.price { font-size: 1.25rem; color: var(--gold); margin: 0.4rem 0 0.8rem; }

.product {
  display: grid;
  gap: 1.4rem;
  padding-top: 1.5rem;
}
.frame {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; background: var(--bg); }
.frame .glyph { width: 96px; height: 96px; margin: 0; }
.thumbs { display: flex; gap: 0.45rem; margin-top: 0.6rem; }
.thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

dl { display: grid; gap: 0.55rem; margin: 1rem 0; }
dl div { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; align-items: baseline; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  text-decoration: none;
  margin-top: 1.2rem;
}

.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0.4rem 0 0.8rem; }
.prose h2 { font-size: 1.45rem; margin: 1.6rem 0 0.6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.2rem 0 0.4rem; }
.prose p, .prose li { color: var(--muted); }
.prose .lead, .prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-inline-start: 3px solid var(--gold);
  background: var(--bg-2);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}
html[dir="ltr"] .prose blockquote { border-radius: 12px 0 0 12px; }
.prose a { color: var(--gold); }
.cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.people { display: grid; gap: 0.9rem; }
.person a { color: var(--gold); text-decoration: none; }
.person .role { color: var(--gold); font-size: 0.92rem; }

.sheet { padding: 2rem 0 3rem; }
.boot { height: 40vh; }

.site-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.footer-grid {
  display: grid;
  gap: 1.6rem;
  padding: 2.2rem 0 1rem;
}
.footer-grid h2 { font-size: 1rem; color: var(--gold); margin-bottom: 0.4rem; }
.footer-grid p { color: var(--muted); }
.footer-grid a { color: var(--ink); }
.copyright {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}
.noscript { padding: 1rem 0 2rem; }

@media (min-width: 720px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .product { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu, .drawer, .drawer.open { display: none; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; padding: 4rem 0 4.5rem; }
  .hero-mark { order: 0; justify-self: end; }
  .hero-mark img { width: min(320px, 36vw); }
  .cards { grid-template-columns: 1fr 1fr 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-2); }
  .btn-line:hover, .chip:hover, .cat:hover, .card:hover { border-color: var(--gold); }
  .nav-links a:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 959px) {
  .nav .btn-sm { display: none; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 0.95rem; letter-spacing: 0.08em; }
}
