* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --paper: #f8f5ef;
    --soft: #f1ebe0;
    --ink: #11100f;
    --muted: #33465d;
    --green: #62715f;
    --line: rgba(17, 16, 15, 0.34);
    --soft-line: rgba(17, 16, 15, 0.13);
    --shadow: 7px 7px 0 rgba(17, 16, 15, 0.11);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    background:
        repeating-linear-gradient(0deg, rgba(17, 16, 15, 0.018) 0 1px, transparent 1px 12px),
        radial-gradient(circle at 82% 10%, rgba(98, 113, 95, 0.14), transparent 26%),
        var(--paper);
}

a {
    color: inherit;
}

.saffarma-page {
    width: min(1440px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 0 38px;
}

.paper-header {
    position: relative;
    padding: 12px 0 26px;
    text-align: center;
    border-bottom: 4px double var(--ink);
}

.back-btn {
    position: absolute;
    left: 0;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ink);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    text-decoration: none;
    font-family: "Cinzel", serif;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 4px 4px 0 rgba(17, 16, 15, 0.16);
}

.paper-kicker,
.section-label,
.tag-cloud,
.index-list span,
.project-tags {
    font-family: "Cinzel", serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.paper-kicker {
    display: inline-block;
    padding: 4px 14px;
    color: var(--muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.paper-header h1 {
    margin-top: 22px;
    font-family: "Playfair Display", Didot, Georgia, serif;
        font-size: clamp(3.5rem, 3vw, 10rem);
    font-weight: 900;
    line-height: 0.78;
    letter-spacing: 0;
}

.paper-rule {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: min(900px, 78%);
    margin: 10px auto 5px;
}

.paper-rule span {
    height: 1px;
    background: var(--ink);
}

.paper-rule i {
    font-style: normal;
    font-size: 1.5rem;
}

.paper-header p {
    font-size: clamp(0.8rem, 1.4vw, 3.6rem);
    font-style: italic;
    font-weight: 600;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(420px, 1.35fr) minmax(280px, 0.9fr);
    gap: 28px;
    padding: 34px 0;
    border-bottom: 4px double var(--ink);
}

.editorial-card,
.visual-dossier,
.security-panel,
.metric-card,
.story-section,
.feature-card,
.media-card,
.note-panel {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid var(--line);
}

.editorial-card,
.security-panel {
    padding: 24px;
}

.section-label {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.drop-copy {
    margin-bottom: 18px;
    font-size: 1.46rem;
    font-weight: 700;
    line-height: 1.18;
}

.drop-copy span {
    float: left;
    padding: 8px 9px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 5rem;
    line-height: 0.72;
}

.editorial-card p:not(.drop-copy) {
    margin-bottom: 22px;
    font-size: 1.22rem;
    line-height: 1.34;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.62rem;
}

.tag-cloud span {
    padding: 6px 9px;
    border: 1px solid var(--soft-line);
    background: rgba(255, 255, 255, 0.58);
}

.visual-dossier {
    overflow: hidden;
    box-shadow: var(--shadow);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(241, 235, 224, 0.86);
}

.window-bar span {
    width: 10px;
    height: 10px;
    border: 1px solid var(--ink);
    border-radius: 50%;
}


.i-star {
    position: relative;
    display: inline-block;
}

.i-star::after {
    content: "*";
    position: absolute;
    left: 50%;
    top: -0.6em;
    transform: translateX(-50%);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.3em;
    line-height: 1;
}


.sitting-visual {
    min-height: 438px;
    background: url("../images/saffarmaBg.png") center / contain no-repeat;
}


.lords-visual {
    background-image: url("../images/lordsBg.png");
    background-size: contain;
    background-color: #eee8dd;
}

.travel-visual {
    background-image: url("../images/travelBg.png");
    background-size: contain;
    background-color: #eee8dd;
}

.food-visual {
    background-image: url("../images/foodBg.png");
    background-size: contain;
    background-color: #eee8dd;
}

.dossier-note {
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
}

.security-panel h1,
.story-copy h2,
.section-title h2 {
    font-family: "Playfair Display", Georgia, serif;
    text-transform: uppercase;
    line-height: 0.95;
}

.security-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 2.6vw, 3rem);
}

.index-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.index-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--soft-line);
    font-size: 1.12rem;
    font-weight: 700;
}

.index-list span {
    color: var(--green);
    font-size: 0.72rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    padding: 28px 0 0;
}

.metric-card {
    padding: 22px;
    box-shadow: 4px 4px 0 rgba(17, 16, 15, 0.08);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-family: "Cinzel", serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.story-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 32px;
    padding: 28px;
}

.story-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 3.4vw, 4rem);
}

.story-copy p {
    max-width: 860px;
    margin-bottom: 14px;
    font-size: 1.18rem;
    line-height: 1.5;
}

.approach-card {
    border-left: 5px solid var(--green);
    padding: 18px;
    background: rgba(255, 255, 255, 0.52);
}

.approach-card h3 {
    margin-bottom: 12px;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    text-transform: uppercase;
}

.approach-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.approach-card li {
    padding: 7px 10px;
    border: 1px solid var(--soft-line);
    background: rgba(248, 245, 239, 0.8);
    font-weight: 700;
}

.feature-section,
.media-section {
    margin-top: 34px;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.section-title h2 {
    font-size: clamp(2rem, 3vw, 3.5rem);
}

.feature-grid,
.media-grid {
    display: grid;
    gap: 16px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    padding: 22px;
}

.feature-card i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--paper);
    background: var(--ink);
}

.feature-card h3 {
    margin-bottom: 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.45;
}

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

.media-card {
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(17, 16, 15, 0.08);
}

.media-card video,
.media-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #151515;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.media-card img {
    object-fit: contain;
    padding: 10px;
    background: rgba(255, 255, 255, 0.68);
}

.media-body {
    padding: 16px;
}

.media-body h3 {
    margin-bottom: 10px;
    font-family: "Cinzel", serif;
    font-size: 0.98rem;
    text-transform: uppercase;
}

.media-body p {
    margin-bottom: 12px;
    font-size: 0.96rem;
    line-height: 1.45;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
}

.note-panel {
    margin-top: 34px;
    padding: 22px;
    border-style: dashed;
    font-size: 1.06rem;
    line-height: 1.55;
}

.footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: rgba(17, 16, 15, 0.62);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
    font-size: 1.18rem;
}

@media (max-width: 1120px) {
    .hero-grid,
    .story-section {
        grid-template-columns: 1fr;
    }

    .sitting-visual {
        min-height: 520px;
        background-size: contain;
        background-color: #eee8dd;
    }

    .metrics-grid,
    .feature-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .saffarma-page {
        width: min(100% - 22px, 440px);
        padding-top: 62px;
    }

    .paper-header {
        padding-top: 38px;
    }

    .back-btn {
        top: 10px;
    }

    .paper-kicker {
        max-width: 240px;
        line-height: 1.5;
    }

    .paper-header h1 {
        font-size: clamp(3.2rem, 17vw, 5.7rem);
    }

    .paper-header p {
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .paper-rule {
        width: 92%;
        gap: 12px;
        margin: 20px auto 18px;
    }

    .hero-grid {
        gap: 20px;
        padding: 24px 0;
    }

    .editorial-card,
    .security-panel,
    .story-section,
    .feature-card {
        padding: 18px 16px 20px;
    }

    .sitting-visual {
        min-height: 380px;
    }

    .metrics-grid,
    .feature-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .section-title h2 {
        margin-top: 8px;
        font-size: 2.2rem;
    }

    .footer-line {
        align-items: flex-start;
        flex-direction: column;
    }
}
