@charset "UTF-8";
/* Self-hosted Persian fonts.
   Lalezar — Copyright 2015 The Lalezar Project Authors, SIL OFL 1.1
   Noto Nastaliq Urdu — Copyright 2022 The Noto Project Authors, SIL OFL 1.1
   Vazirmatn — Copyright 2015 The Vazirmatn Project Authors, SIL OFL 1.1
   Licenses: assets/fonts/LICENSE-*.txt */

@font-face {
    font-family: "Lalezar";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/lalezar-arabic.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: "Lalezar";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/lalezar-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Nastaliq Urdu";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/noto-nastaliq-urdu-arabic.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: "Noto Nastaliq Urdu";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/noto-nastaliq-urdu-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/vazirmatn-arabic.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/vazirmatn-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --paper: #f6eee1;
    --paper-soft: #fdf8ef;
    --white: #ffffff;
    --ink: #2d2119;
    --muted: #7e6a58;
    --saffron: #d98b2b;
    --saffron-deep: #b86b12;
    --rose: #c65d6e;
    --pistachio: #7d9460;
    --line: rgba(66, 43, 27, 0.14);
    --line-strong: rgba(66, 43, 27, 0.24);
    --shadow: 0 36px 80px -66px rgba(45, 33, 25, 0.6);
    --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
    --nastaliq: "Noto Nastaliq Urdu", "Lalezar", Georgia, serif;
    --body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

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

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100svh;
    color: var(--ink);
    background:
        radial-gradient(780px 520px at 88% -6%, rgba(217, 139, 43, 0.18), transparent 64%),
        radial-gradient(680px 460px at 2% 104%, rgba(198, 93, 110, 0.1), transparent 66%),
        radial-gradient(600px 400px at 100% 100%, rgba(125, 148, 96, 0.1), transparent 66%),
        var(--paper);
    font-family: var(--body);
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(58, 38, 22, 0.5) 0.7px, transparent 0.8px);
    background-size: 17px 17px;
    opacity: 0.075;
}

::selection {
    background: rgba(217, 139, 43, 0.28);
    color: var(--ink);
}

h1,
h2,
p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    -webkit-user-drag: none;
    user-select: none;
}

svg {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
    border-radius: 8px;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
}

/* Header */

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: clamp(20px, 3.6vh, 34px) clamp(14px, 2.4vh, 20px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 6px;
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 8px 18px -14px rgba(45, 33, 25, 0.5);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand-name {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 400;
}

.brand-sub {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.head-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: var(--muted);
    background: rgba(255, 253, 248, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.74rem;
    line-height: 1;
}

.head-dot {
    width: 7px;
    height: 7px;
    background: var(--pistachio);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(125, 148, 96, 0.14);
}

/* Hero */

.hero {
    position: relative;
    padding-block: clamp(22px, 4vh, 46px) clamp(18px, 3vh, 30px);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--saffron-deep);
    font-family: var(--display);
    font-size: 0.92rem;
    line-height: 1;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: clamp(22px, 5vw, 44px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--saffron));
    opacity: 0.55;
}

.eyebrow::after {
    transform: scaleX(-1);
}

.hero h1 {
    padding-block: 0.06em 0.3em;
    font-family: var(--nastaliq);
    font-size: clamp(2.9rem, 6.6vw, 5.3rem);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: 0;
    overflow: visible;
}

.hero h1 em {
    font-style: normal;
    color: var(--saffron-deep);
}

.lede {
    max-width: 38rem;
    margin-inline: auto;
    color: var(--muted);
    font-size: clamp(0.94rem, 0.9rem + 0.18vw, 1.05rem);
    line-height: 2.1;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.ornament::before,
.ornament::after {
    content: "";
    width: clamp(30px, 7vw, 64px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong));
}

.ornament::after {
    transform: scaleX(-1);
}

.ornament span {
    width: 7px;
    height: 7px;
    background: var(--saffron);
    border-radius: 1.5px;
    box-shadow: 0 0 0 4px rgba(217, 139, 43, 0.12);
    transform: rotate(45deg);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
}

.meta-dot {
    width: 3px;
    height: 3px;
    background: var(--saffron);
    border-radius: 50%;
    opacity: 0.7;
}

/* Gallery */

.gallery {
    position: relative;
    margin-top: clamp(4px, 1vh, 12px);
    padding: clamp(16px, 2.6vw, 30px);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(251, 246, 236, 0.8));
    border: 1px solid var(--line);
    border-radius: clamp(22px, 2.4vw, 32px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gallery-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(12px, 2vh, 18px);
}

.section-label {
    font-family: var(--display);
    font-size: clamp(1.35rem, 1.2rem + 0.55vw, 1.7rem);
    font-weight: 400;
    line-height: 1.3;
}

.section-note {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.8;
}

.counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 14px;
    color: var(--saffron-deep);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--display);
    font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.55rem);
    line-height: 1;
    white-space: nowrap;
}

.counter-sep,
.counter-total {
    color: var(--muted);
    font-size: 0.72em;
    opacity: 0.7;
}

.viewer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px);
    direction: ltr;
}

.nav {
    display: grid;
    place-items: center;
    width: clamp(36px, 3.4vw, 46px);
    height: clamp(36px, 3.4vw, 46px);
    padding: 0;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 20px -18px rgba(45, 33, 25, 0.7);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav svg {
    width: 52%;
    height: 52%;
}

.nav:hover {
    color: var(--saffron-deep);
    background: var(--white);
    border-color: rgba(184, 107, 18, 0.42);
    transform: scale(1.04);
}

.nav:active {
    transform: scale(0.96);
}

.viewport {
    display: flex;
    aspect-ratio: 2.45 / 1;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: clamp(14px, 1.6vw, 20px);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.viewport::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: var(--white);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slide img {
    width: 100%;
    height: 100%;
    padding: clamp(10px, 1.8vw, 24px);
    object-fit: contain;
}

.gallery-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(16px, 2.4vw, 32px);
    margin-top: clamp(16px, 2.4vh, 22px);
}

.slide-copy {
    min-width: 0;
}

.slide-copy.is-in {
    animation: caption-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes caption-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
}

.slide-index {
    color: var(--saffron-deep);
    font-family: var(--display);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.slide-copy h2 {
    margin-top: 1px;
    font-family: var(--display);
    font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.35;
}

.slide-text {
    max-width: 33rem;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 2;
}

.thumbs {
    display: flex;
    gap: clamp(5px, 0.6vw, 8px);
    max-width: 100%;
    padding: 3px;
    overflow-x: auto;
    direction: ltr;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbs::-webkit-scrollbar {
    display: none;
}

.thumb {
    flex: 0 0 clamp(52px, 5vw, 68px);
    aspect-ratio: 2.3;
    padding: 2px;
    overflow: hidden;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb:hover {
    opacity: 1;
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.thumb.is-active {
    border-color: var(--saffron);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -10px rgba(184, 107, 18, 0.9);
}

/* Footer */

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: clamp(18px, 3vh, 28px) clamp(22px, 3.4vh, 34px);
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.7;
}

.foot-note {
    color: var(--saffron-deep);
    font-family: var(--display);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

/* Responsive */

@media (max-width: 980px) {
    .page {
        width: calc(100% - 44px);
    }

    .hero h1 {
        font-size: clamp(2.9rem, 8vw, 4.9rem);
    }
}

@media (max-width: 760px) {
    .page {
        width: calc(100% - 36px);
    }

    .head-note {
        display: none;
    }

    .hero {
        padding-block: 26px 28px;
    }

    .gallery-foot {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 14px;
    }

    .thumbs {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .viewer {
        position: relative;
        display: block;
    }

    .viewport {
        width: 100%;
    }

    .nav {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-50%);
    }

    .nav:hover {
        transform: translateY(-50%) scale(1.04);
    }

    .nav:active {
        transform: translateY(-50%) scale(0.96);
    }

    .nav-next {
        left: 9px;
    }

    .nav-prev {
        right: 9px;
    }

    .viewport {
        aspect-ratio: 2.18 / 1;
    }

    .slide img {
        padding: 10px;
    }

    .thumbs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        overflow: visible;
    }

    .thumb {
        width: 100%;
        aspect-ratio: 2.1;
    }
}

@media (max-width: 560px) {
    .page {
        width: calc(100% - 26px);
    }

    .site-head {
        padding-block: 16px 12px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 1.32rem;
    }

    .brand-sub {
        font-size: 0.64rem;
    }

    .hero {
        padding-block: 22px 24px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 12.5vw, 3.5rem);
        line-height: 1.45;
    }

    .lede {
        font-size: 0.91rem;
        line-height: 2;
    }

    .hero-meta {
        font-size: 0.68rem;
    }

    .gallery {
        padding: 13px;
        border-radius: 22px;
    }

    .section-label {
        font-size: 1.3rem;
    }

    .section-note {
        font-size: 0.72rem;
    }

    .counter {
        padding: 4px 11px;
        font-size: 1.25rem;
    }

    .slide-copy h2 {
        font-size: 1.3rem;
    }

    .slide-text {
        font-size: 0.81rem;
    }

    .foot {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .brand-sub {
        display: none;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-meta {
        font-size: 0.63rem;
    }

    .viewport {
        aspect-ratio: 1.95 / 1;
    }

    .thumb {
        aspect-ratio: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
