/* Variable font */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn[wght].woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0600-06FF, U+0750-077F, U+08A0-08FF;
}

.frontoffice-shell {
    font-family: "Vazirmatn", "Inter", Arial, sans-serif;
    --mud-palette-primary: #c9a675;
    --mud-palette-primary-rgb: 201, 166, 117;
    --mud-palette-secondary: #6a4f3b;
    --mud-palette-secondary-rgb: 106, 79, 59;
    --mud-palette-background: #0d0d0d;
    --mud-palette-background-grey: #121212;
    --mud-palette-surface: #161616;
    --mud-palette-surface-rgb: 22, 22, 22;
    --mud-palette-text-primary: #ededed;
    --mud-palette-text-secondary: #a0a0a0;
    --mud-palette-divider: rgba(201, 166, 117, 0.18);
}

.rtl,
.frontoffice-shell.rtl {
    --mud-typography: "Vazirmatn", "Inter", Arial, sans-serif;
    --mud-typography-default-family: "Vazirmatn", "Inter", Arial, sans-serif;
    font-family: var(--mud-typography);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(106, 79, 59, 0.18), transparent 28%),
        linear-gradient(180deg, #050505 0%, #0d0d0d 35%, #11111a 100%);
    color: #ededed;
    font-family: "Vazirmatn", "Inter", Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
}

.frontoffice-shell .mud-typography,
.frontoffice-shell .mud-link,
.frontoffice-shell .mud-alert-message,
.frontoffice-shell .mud-chip-content {
    color: var(--mud-palette-text-primary);
}

.rtl,
.rtl .mud-typography,
.rtl .mud-input,
.rtl .mud-input-slot,
.rtl .mud-button-root,
.rtl .mud-button-label,
.rtl .mud-alert-message,
.rtl .mud-chip-content,
.rtl .mud-list-item-text,
.rtl .mud-select-input,
.rtl .mud-dialog-title,
.frontoffice-shell.rtl,
.frontoffice-shell.rtl .mud-typography,
.frontoffice-shell.rtl .mud-input,
.frontoffice-shell.rtl .mud-input-slot,
.frontoffice-shell.rtl .mud-button-root,
.frontoffice-shell.rtl .mud-button-label,
.frontoffice-shell.rtl .mud-alert-message,
.frontoffice-shell.rtl .mud-chip-content,
.frontoffice-shell.rtl .mud-list-item-text,
.frontoffice-shell.rtl .mud-select-input,
.frontoffice-shell.rtl .mud-dialog-title {
    font-family: var(--mud-typography) !important;
}

.frontoffice-shell .mud-paper,
.frontoffice-shell .mud-alert,
.frontoffice-shell .mud-chip {
    background: rgba(22, 22, 22, 0.88);
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-primary);
}

.frontoffice-shell .mud-button-root {
    border-radius: 10px;
}

.frontoffice-shell .mud-input-slot,
.frontoffice-shell .mud-input > input {
    color: var(--mud-palette-text-primary);
}

.site-shell {
    min-height: 100vh;
}

.site-header,
.site-footer {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0 1rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.site-brand-logo,
.site-footer-logo {
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(201, 166, 117, 0.15));
}

.site-brand-logo {
    width: 52px;
    height: 52px;
}

.site-footer-logo {
    width: 44px;
    height: 44px;
}

.site-brand-copy,
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.site-brand-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.ltr .site-brand-name,
.ltr .site-footer-heading {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.rtl .site-brand-name,
.rtl .site-footer-heading {
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-brand-tagline,
.site-footer-copy,
.site-footer-meta {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.7rem;
    flex-wrap: wrap;
}

.site-nav-link,
.site-nav-button,
.site-language-switch,
.site-footer-pill,
.site-button {
    border: 1px solid rgba(201, 166, 117, 0.18);
    background: rgba(255, 255, 255, 0.02);
    color: #ededed;
    border-radius: 10px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.site-nav-link,
.site-nav-button,
.site-language-switch {
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-nav-link:hover,
.site-nav-button:hover,
.site-language-switch:hover,
.site-footer-pill:hover,
.site-button:hover {
    border-color: rgba(201, 166, 117, 0.42);
    background: rgba(201, 166, 117, 0.08);
    transform: translateY(-1px);
}

.site-nav-link-subtle {
    color: #c7c7c7;
}

.site-nav-form {
    margin: 0;
}

.site-nav-button,
.site-language-switch {
    font-family: inherit;
    cursor: pointer;
}

.site-language-switch {
    min-width: 62px;
}

.site-main {
    position: relative;
    z-index: 0;
}

.landing-page {
    width: 100%;
}

.hero-section {
    position: relative;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0 2rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(12, 12, 12, 0.60), rgba(17, 20, 28, 0.61)),
        url("/images/river-c.png") no-repeat;
    background-position: right bottom, center;
    background-size: auto, 100%;
    border: 1px solid rgba(201, 166, 117, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 3.5rem;
}

.hero-logo-frame {
    display: grid;
    place-items: center;
    min-height: 340px;
    border-radius: 14px;
    background: radial-gradient(circle at center, rgba(201, 166, 117, 0.12), rgba(255, 255, 255, 0.01) 62%);
    border: 1px solid rgba(201, 166, 117, 0.1);
}

.hero-logo {
    width: min(280px, 100%);
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(201, 166, 117, 0.18));
}

.hero-copy {
    max-width: 640px;
}

.section-eyebrow {
    margin: 0 0 0.75rem;
    color: #c9a675;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.ltr .hero-title,
.ltr .section-heading h1,
.ltr .section-heading h2,
.ltr .book-copy h3,
.ltr .update-item h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.hero-title {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 0.95;
}

.hero-tagline {
    margin: 1rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: #d8cab5;
}

.hero-body,
.section-copy p,
.section-lead,
.book-summary,
.newsletter-note,
.update-item p,
.book-note {
    color: #b7b7b7;
    line-height: 1.8;
}

.hero-body {
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hero-language-note {
    color: #a0a0a0;
    font-size: 0.92rem;
}

.site-section {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.site-section-surface {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(18, 18, 24, 0.88));
    border: 1px solid rgba(201, 166, 117, 0.1);
    padding: 3rem;
}

.site-section-centered {
    text-align: center;
}

.section-heading {
    max-width: 42rem;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600;
}

.section-lead {
    max-width: 46rem;
    margin: 1rem 0 0;
}

.section-copy {
    max-width: 48rem;
}

.book-list,
.updates-list {
    display: grid;
    gap: 1.35rem;
    margin-top: 2rem;
}

.book-card {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(201, 166, 117, 0.12);
}

.book-card:hover {
    border-color: rgba(201, 166, 117, 0.28);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.book-cover {
    display: block;
    min-height: 270px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 191, 128, 0.12), rgba(0, 0, 0, 0.08)),
        linear-gradient(160deg, rgba(201, 166, 117, 0.28), rgba(10, 10, 10, 0.94));
    border: 1px solid rgba(255, 210, 162, 0.16);
}

.book-cover-image {
    width: 100%;
    height: 100%;
    min-height: 270px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.book-volume {
    margin: 0;
    color: #c9a675;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.book-copy h3,
.update-item h3 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
}

.book-tagline {
    margin: 0.5rem 0 0;
    color: #d8cab5;
    font-size: 1.02rem;
}

.book-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.35rem;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.site-button-primary {
    background: linear-gradient(135deg, rgba(201, 166, 117, 0.22), rgba(106, 79, 59, 0.2));
    border-color: rgba(201, 166, 117, 0.34);
}

.site-button-ghost {
    background: transparent;
}

.site-button:disabled,
.site-nav-button:disabled,
.site-language-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.book-note,
.newsletter-note {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.update-item {
    display: grid;
    gap: 0.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(201, 166, 117, 0.12);
}

.update-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.update-date,
.update-link {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.update-date {
    margin: 0;
    color: #c9a675;
}

.update-link {
    color: #d8cab5;
}

.newsletter-copy {
    margin-left: auto;
    margin-right: auto;
}

.newsletter-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    max-width: 720px;
    margin: 2rem auto 0;
}

.newsletter-input {
    min-height: 54px;
    padding: 0 1rem;
    border-radius: 10px;
    border: 1px solid rgba(201, 166, 117, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #ededed;
    font-family: inherit;
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: #7f7f7f;
}

.site-footer {
    display: grid;
    gap: 1.4rem;
    padding: 2rem 0 3rem;
}

.site-footer-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-footer-pill {
    padding: 0.55rem 0.9rem;
    color: #c7c7c7;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.not-found-section {
    min-height: 50vh;
    display: grid;
    place-content: center;
}

.site-loading-bar {
    width: min(1080px, calc(100% - 2rem));
    height: 3px;
    margin: 2rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(201, 166, 117, 0.2), #c9a675, rgba(201, 166, 117, 0.2));
    background-size: 200% 100%;
    animation: site-loading 1.2s linear infinite;
}

.invisible-tab-header .mud-tabs-tabbar {
    display: none;
}

.faq-accordion {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.faq-accordion-item {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    overflow: hidden;
}

.faq-accordion-item summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-accordion-item summary::-webkit-details-marker {
    display: none;
}

.faq-accordion-item summary::after {
    content: "+";
    font-size: 1.2rem;
    line-height: 1;
    color: var(--mud-palette-primary);
}

.faq-accordion-item[open] summary::after {
    content: "-";
}

.faq-accordion-answer {
    padding: 0 1rem 1rem;
    color: var(--mud-palette-text-secondary);
}

.faq-accordion-answer > :first-child {
    margin-top: 0;
}

.faq-accordion-answer > :last-child {
    margin-bottom: 0;
}

@keyframes site-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1100px) {
    .site-header {
        padding-top: 1rem;
        gap: 1rem;
    }

    .site-brand-name,
    .site-footer-heading {
        font-size: 1.45rem;
    }

    .hero-inner {
        grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
        gap: 1.35rem;
        padding: 2.2rem;
    }

    .site-section-surface {
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    .site-header,
    .site-footer,
    .hero-section,
    .site-section {
        width: min(100%, calc(100% - 1.25rem));
    }

    .hero-inner,
    .book-card {
        grid-template-columns: 1fr;
    }

    .hero-inner,
    .site-section-surface {
        padding: 1.35rem;
    }

    .hero-logo-frame {
        min-height: 200px;
    }

    .hero-logo {
        width: min(220px, 100%);
    }

    .book-cover,
    .book-cover-image {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header-actions,
    .site-nav {
        justify-content: flex-start;
    }

    .site-language-switch {
        align-self: flex-start;
    }

    .hero-title {
        font-size: clamp(2.3rem, 10vw, 3.1rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .book-actions .site-button {
        width: 100%;
    }

    .newsletter-box {
        display: grid;
        grid-template-columns: 1fr;
    }

    .newsletter-box .site-button,
    .newsletter-input {
        width: 100%;
    }
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
  outline: none;
  box-shadow: none !important;
}

.centered-content
{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}