:root {
  --ink: #10221c;
  --ink-soft: #243c34;
  --paper: #f3efe6;
  --paper-2: #e8e1d2;
  --emerald: #0f6b4c;
  --emerald-deep: #083d2d;
  --brass: #b8893a;
  --brass-light: #d4af6a;
  --sand: #f7f2e8;
  --mist: rgba(16, 34, 28, 0.08);
  --line: rgba(16, 34, 28, 0.14);
  --white: #fffdf8;
  --danger: #8b2e2e;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(8, 40, 30, 0.18);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 137, 58, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 107, 76, 0.16), transparent 50%),
    linear-gradient(180deg, #efe8da 0%, var(--paper) 35%, #ebe4d6 100%);
  line-height: 1.85;
  font-size: 1.05rem;
}

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

a {
  color: var(--emerald-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brass);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--sand);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: 0.02em;
  color: var(--emerald-deep);
  text-decoration: none;
}

.brand span {
  color: var(--brass);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--emerald);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--brass) 0%, #9a6d28 100%);
  color: #1a1205;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(154, 109, 40, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: #1a1205;
  box-shadow: 0 14px 30px rgba(154, 109, 40, 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--emerald-deep);
  border: 1.5px solid var(--emerald);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(15, 107, 76, 0.08);
  color: var(--emerald-deep);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--sand);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 30, 24, 0.25) 0%, rgba(8, 30, 24, 0.55) 42%, rgba(8, 30, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 40, 30, 0.55), transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3.5rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.15s;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.28s;
}

.hero p {
  max-width: 38rem;
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
  color: rgba(247, 242, 232, 0.9);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.42s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.55s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
  color: var(--emerald-deep);
}

.section-head p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: var(--emerald-deep);
  margin: 2.4rem 0 0.9rem;
  scroll-margin-top: 5rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-inline-start: 1.2rem;
}

.figure {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure figcaption {
  padding: 0.75rem 1rem;
  background: var(--emerald-deep);
  color: rgba(247, 242, 232, 0.88);
  font-size: 0.9rem;
}

.cta-band {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 107, 76, 0.95), rgba(8, 61, 45, 0.98)),
    var(--emerald-deep);
  color: var(--sand);
  display: grid;
  gap: 1rem;
  align-items: center;
}

.cta-band h2,
.cta-band h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--sand);
}

.cta-band p {
  margin: 0;
  color: rgba(247, 242, 232, 0.9);
}

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

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-link .card-body {
  padding: 1.1rem 1.15rem 1.3rem;
}

.card-link h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--emerald-deep);
}

.card-link p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 0.8rem;
  color: var(--emerald-deep);
  max-width: 18ch;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  text-decoration: none;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  background: var(--emerald-deep);
  color: rgba(247, 242, 232, 0.86);
}

.site-footer a {
  color: var(--brass-light);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  color: var(--sand);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.disclaimer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 242, 232, 0.15);
  font-size: 0.88rem;
  color: rgba(247, 242, 232, 0.7);
}

.toc {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-family: var(--font-body);
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.toc a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .grid-cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.4rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .grid-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

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