:root {
  --bg: #f4ead8;
  --bg-elev: #fff8ec;
  --fg: #2a1810;
  --muted: #7a6452;
  --gold: #b8862b;
  --gold-soft: #e8c97a;
  --line: rgba(42, 24, 16, 0.1);
  --hero-veil: rgba(20, 12, 8, 0.45);
  --shadow: 0 18px 50px rgba(42, 24, 16, 0.12);
}
html.dark {
  --bg: #120c08;
  --bg-elev: #1c140e;
  --fg: #f3e6d4;
  --muted: #b9a28a;
  --gold: #e0b15a;
  --gold-soft: #f0d59a;
  --line: rgba(224, 177, 90, 0.16);
  --hero-veil: rgba(8, 5, 3, 0.55);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Vazirmatn", sans-serif; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.header-inner, .footer-bottom, .section-head, .header-actions, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-inner { padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.logo strong { display: block; }
.logo em { display: block; font-family: "Cormorant Garamond", serif; font-style: normal; letter-spacing: 0.28em; font-size: 11px; color: var(--muted); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--fg); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg); cursor: pointer; position: relative; }
.cart span { position: absolute; top: -4px; left: -4px; background: var(--gold); color: #2a1810; border-radius: 999px; font-size: 10px; min-width: 16px; padding: 1px 4px; }
.nav-toggle { display: none; }
.hero { position: relative; min-height: 92vh; overflow: hidden; }
.hero-media, .hero-frame, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame { opacity: 0; transition: opacity 1.6s ease; animation: ken 18s ease-in-out infinite; }
.hero-frame.is-active { opacity: 1; }
.hero-video { opacity: 0; }
.hero-video.is-on { opacity: 1; }
.hero-veil { position: absolute; inset: 0; background: var(--hero-veil); }
.hero-media::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); }
.hero-copy { position: relative; z-index: 2; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 80px; color: #f6ead8; }
.hero-copy h1 { font-size: clamp(48px, 8vw, 84px); margin: 0; }
.hero-copy p { max-width: 36rem; line-height: 2; font-size: 18px; color: rgba(240, 226, 204, 0.92); }
.en-kicker { font-family: "Cormorant Garamond", serif; letter-spacing: 0.35em; text-transform: uppercase; color: #e8c97a !important; }
@keyframes ken {
  0%, 100% { transform: scale(1.04); }
  50% { transform: scale(1.14) translate(-1.5%, -1%); }
}
.float-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.floater { position: absolute; animation: float-loop var(--dur, 16s) ease-in-out infinite; animation-delay: var(--delay, 0s); filter: drop-shadow(0 18px 18px rgba(0,0,0,.35)); }
@keyframes float-loop {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(32px, -22px) rotate(10deg); }
  50% { transform: translate(-8px, -42px) rotate(-4deg); }
  75% { transform: translate(-30px, -12px) rotate(8deg); }
}
.steam { position: absolute; width: 70px; height: 180px; background: radial-gradient(circle, rgba(255,248,236,.28), transparent 70%); filter: blur(16px); animation: steam 7s ease-in-out infinite; pointer-events: none; }
.s1 { bottom: 28%; right: 38%; }
.s2 { bottom: 32%; right: 46%; animation-delay: -2.4s; }
.s3 { bottom: 30%; left: 42%; animation-delay: -4.1s; }
@keyframes steam {
  0%, 100% { opacity: .15; transform: translateY(20px) scaleX(.8); }
  50% { opacity: .45; transform: translateY(-40px) scaleX(1.15); }
}
.section { padding: 64px 0; }
.section h1, .section h2, .article-page h1 { margin-top: 8px; }
.gold { color: var(--gold); font-size: 14px; }
.muted { color: var(--muted); line-height: 2; }
.lead { max-width: 42rem; }
.card, .empty, .form { background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 24px; padding: 24px; }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card h3 { margin: 0 0 8px; }
.card.media { padding: 0; overflow: hidden; }
.card.media img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card.media div { padding: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair img { height: 260px; width: 100%; object-fit: cover; border-radius: 24px; }
.pair img:last-child { margin-top: 32px; }
.empty { text-align: center; padding: 56px 24px; }
.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gold-line.short { width: 128px; margin: 0 auto 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.btn.gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #2a1810; }
.btn.ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-elev) 80%, transparent); color: var(--fg); }
.btn.light { color: #f6ead8; border-color: rgba(246,234,216,.3); background: transparent; }
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer-grid h2 { font-size: 14px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); margin: 8px 0; font-size: 14px; }
.footer-bottom { padding: 18px 0; font-size: 12px; color: var(--muted); }
.en { font-family: "Cormorant Garamond", serif; letter-spacing: .2em; }
.article-page { padding: 56px 0 80px; max-width: 760px; }
.article-page .wide, .player video, .form video { width: 100%; border-radius: 24px; margin: 24px 0; }
.player { background: #000; border-radius: 24px; overflow: hidden; }
.player video { margin: 0; aspect-ratio: 16/9; }
.prose { line-height: 2; }
.prose h2 { margin: 28px 0 10px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form textarea, .form select { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 14px; padding: 12px 14px; font-family: inherit; }
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--gold) 25%, transparent); border-color: var(--gold); }
.check { display: flex !important; align-items: center; gap: 8px; }
.ok { color: #166534; }
.err { color: #991b1b; }
.hint { background: var(--bg); border-radius: 16px; padding: 16px; font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.studio-main { padding: 40px 0 80px; }
.studio-main h1 { margin-bottom: 24px; }
.stat { font-size: 42px; display: block; margin-top: 8px; }
.list { display: grid; gap: 12px; margin-top: 20px; }
.narrow { max-width: 420px; margin: 40px auto; }
pre { white-space: pre-wrap; background: var(--bg); padding: 16px; border-radius: 16px; }
@media (max-width: 900px) {
  .cards.three, .cards.two, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 72px; right: 16px; left: 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 8px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .pair img:last-child { margin-top: 0; }
}
