/* Film Party public site. RTL-first, mobile-first, no framework. */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0b1a;
  --bg-alt: #161127;
  --surface: #1f1836;
  --text: #f3f4f8;
  --muted: #b3b6c7;
  --brand: #9275ff;
  --brand-strong: #7c5cf0;
  --accent: #9be6d6;
  --radius: 16px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.9;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}

.narrow {
  max-width: 760px;
}

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(14 11 26 / 0.92);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.site-footer {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.site-footer p {
  margin: 0;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-strong);
}

.btn:focus-visible,
.link-secondary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-small {
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.btn-note,
.coming-soon {
  color: var(--muted);
  font-size: 0.95rem;
}

.coming-soon {
  margin: 0;
}

/* Hero */

.hero {
  padding-block: 3rem 4rem;
  background: radial-gradient(ellipse at 80% 0%, #2a1b5c 0%, var(--bg) 70%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 36em;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(32vw, 128px);
}

/* Sections */

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p,
.steps p {
  color: var(--muted);
  margin: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 3.5rem;
}

.steps li::before {
  content: counter(step, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  padding-block: 1.25rem;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item p {
  color: var(--muted);
  margin: 0;
}

.cta {
  text-align: center;
}

.cta .actions {
  justify-content: center;
}

.link-secondary {
  font-size: 0.95rem;
}

.error-page {
  min-height: 60vh;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 5rem 6rem;
  }

  .hero-grid {
    grid-template-columns: 3fr 2fr;
  }

  .hero-art img {
    width: 280px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav > a:not(.btn) {
  color: var(--text);
  text-decoration: none;
}

.site-nav > a:not(.btn):hover {
  color: var(--accent);
}

/* Blog */

.post {
  padding-block: 2.5rem 3.5rem;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumbs a,
.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover,
.post-card h2 a:hover {
  color: var(--accent);
}

.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.post-body h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.post-body h3,
.post-body h4 {
  margin-top: 1.75rem;
}

.post-body ul,
.post-body ol {
  padding-inline-start: 1.5rem;
  margin: 0 0 1rem;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  border-inline-start: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 8px;
}

.post-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-body th,
.post-body td {
  border: 1px solid rgb(255 255 255 / 0.12);
  padding: 0.5rem 0.75rem;
  text-align: start;
}

.post-body th {
  background: var(--surface);
}

.post-body img,
.post-body video {
  max-width: 100%;
  height: auto;
}

.post-faq {
  margin-top: 3rem;
}

.post-back {
  margin-top: 2.5rem;
}

.draft-banner {
  background: #f5b64a;
  color: #1a1206;
  font-weight: 700;
  padding-block: 0.6rem;
}

.post-cards {
  margin-top: 2rem;
}

.post-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.post-card p:last-child {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.page-number {
  color: var(--muted);
  font-size: 0.6em;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .post-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-cover {
  margin: 0 0 2rem;
}

.post-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.post-body figure {
  margin: 1.75rem 0;
}

.post-body figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.post-body video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
}

.post-body audio {
  display: block;
  width: 100%;
}
