/* Cover and The Thread: adapt the approved reference's actual rendered
   typography and 1320px border-box grid. Header remains in normal flow. */
.cover, .thread {
    --cover-serif: Georgia, serif;
    font: 15px/1.6 system-ui, sans-serif;
}
.cover {
    --cover-header-height: var(--header-height, 77px);
    margin: 0;
    min-height: calc(100svh - var(--cover-header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--editorial-cover);
    color: var(--editorial-ivory);
}
.cover__art {
    position: absolute;
    inset: 0 0 0 26%;
    z-index: -1;
    overflow: hidden;
}
.cover__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 50%;
}
.cover__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #143B2E 0%, #143B2Eed 13%, #143B2Eaa 29%, #143B2E30 49%, transparent 68%),
        linear-gradient(0deg, #143B2E 0%, #143B2E00 22%);
    pointer-events: none;
}
.cover__glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, transparent 58%, #bda88a15 58.2%, #bda88a00 78%);
    pointer-events: none;
    z-index: 1;
}
.cover__inner, .cover__foot, .thread__grid, .thread__footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    padding-inline: 28px;
    margin-inline: auto;
}
.cover__inner { padding-block: 46px 72px; margin-block: auto; }
.cover__copy { position: relative; max-width: 680px; width: 57%; z-index: 2; }
.cover__category {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: #D7E5D7;
    margin: 0 0 26px;
    letter-spacing: .015em;
}
.cover h1 {
    max-width: none;
    color: inherit;
    font: 400 clamp(58px, 6.8vw, 111px)/.93 var(--cover-serif);
    letter-spacing: -.043em;
    margin: 0 0 30px;
    overflow-wrap: anywhere;
}
.cover h1 em {
    display: block;
    font: italic 400 1em/.98 var(--cover-serif);
    letter-spacing: -.04em;
}
/* Cyrillic needs a wider title measure, not a wider body-text column.
   Keep the approved two-part headline intact when the viewport permits. */
html:lang(ru) .cover__copy {
    width: 73%;
    max-width: 920px;
}
html:lang(ru) .cover h1 {
    font-size: clamp(58px, 6.1vw, 111px);
    overflow-wrap: normal;
    word-break: normal;
}
html:lang(ru) .cover__art::after {
    background: linear-gradient(90deg, #143B2E 0%, #143B2Eed 13%, #143B2Ebb 29%, #143B2E65 49%, transparent 76%),
        linear-gradient(0deg, #143B2E 0%, #143B2E00 22%);
}
.cover__description {
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
    max-width: 430px;
    color: inherit;
    margin: 0 0 28px;
}
.cover__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
/* Shared ivory action retains its existing appearance in the invitation. */
.cover__primary {
    background: var(--editorial-ivory);
    color: var(--editorial-forest);
    padding: 15px 20px;
    border-radius: 6px;
    text-decoration: none;
}
.cover .cover__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 51px;
    font-size: 14px;
    font-weight: 650;
}
.cover__secondary {
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.cover .cover__primary:hover, .cover__foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cover__actions a:focus-visible, .cover__foot a:focus-visible { outline: 3px solid var(--editorial-ivory); outline-offset: 4px; }
.cover__note { font-size: 12px; line-height: 1.6; color: #D7E5D7; margin: 15px 0 0; }
.cover__foot {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-block: 16px 20px;
    border-top: 1px solid #F3E9D733;
    font-size: 11px;
    color: #E3E5D7;
    letter-spacing: .025em;
    z-index: 2;
}
.cover__foot a { color: inherit; display: flex; gap: 12px; align-items: center; text-decoration: none; }

.thread {
    background: var(--gg-background);
    color: var(--gg-text);
    overflow: clip;
    --thread-connection: 1;
    --thread-factor: 0;
}
.thread__band { background: var(--editorial-cover); color: var(--editorial-ivory); overflow: hidden; }
.thread__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
    align-items: center;
    min-height: 420px;
    padding-block: clamp(32px, 4vw, 64px);
}
.thread__copy { padding: 35px 20px 35px 0; position: relative; z-index: 2; min-width: 0; }
.thread__label { font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: .065em; margin: 0; color: #E3E5D7; }
.thread__copy h2 {
    color: inherit;
    max-width: none;
    font: 400 clamp(40px, 4.6vw, 65px)/.98 var(--cover-serif);
    letter-spacing: -.045em;
    margin: 14px 0;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.thread__copy h2 em { font-weight: 400; }
.thread__message { font-size: 15px; line-height: 1.6; color: #E3E5D7; margin: 0; max-width: none; }
.thread__scene {
    width: 100%;
    aspect-ratio: 1981 / 793;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
}
/* Each mask uses the same full-size artwork so diagonal seams align
   exactly after assembly. A tiny overlap avoids antialiasing gaps. */
.thread__fragment {
    position: absolute;
    inset: 0;
    background-image: url('thread-concept.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: saturate(.88) brightness(.96);
}
.thread__fragment--document {
    clip-path: polygon(0 0, 38.15% 0, 28.15% 100%, 0 100%);
    --thread-shift: calc(-1 * min(50px, 8vw));
}
.thread__fragment--portrait {
    clip-path: polygon(38% 0, 72.15% 0, 62.15% 100%, 28% 100%);
    --thread-shift: 0px;
}
.thread__fragment--place {
    clip-path: polygon(72% 0, 100% 0, 100% 100%, 62% 100%);
    --thread-shift: min(50px, 8vw);
}
.thread__scene::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, #143B2E66 0%, #143B2E18 18%, #143B2E0A 70%, #143B2E26 100%),
        linear-gradient(0deg, #143B2E40 0%, transparent 28%);
    pointer-events: none;
}
.thread__line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: hidden; }
.thread__trail {
    fill: none;
    stroke: var(--editorial-ivory);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px #F3E9D788);
}
.thread__trail--tail { opacity: .25; }
.thread__trail--middle { opacity: .38; }
.thread__trail--head { opacity: .65; }
.thread__dot { fill: #FFF4DC; filter: drop-shadow(0 0 3px #F3E9D7AA); }
.thread__footer { display: flex; align-items: center; justify-content: flex-end; padding-block: 18px 16px; }
.thread__footer-rule { display: block; width: 24%; height: 1px; flex-shrink: 0; background: var(--editorial-sand); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
    html[data-concept-ready] .cover__art img { transform: scale(1.055) translate3d(0, var(--cover-scroll, 0px), 0); transition: transform .65s cubic-bezier(.15, .7, .25, 1); }
    html[data-concept-ready] .thread__fragment { transform: translateX(calc(var(--thread-factor) * var(--thread-shift))); }
    html[data-concept-ready] .thread__footer-rule { transform: scaleX(var(--thread-connection)); }
}
@media (prefers-reduced-motion: reduce) {
    .thread__line { display: none; }
}
@media (max-width: 1120px) {
    .cover { --cover-header-height: var(--header-height, 65px); }
    .cover__inner, .cover__foot, .thread__grid, .thread__footer { padding-inline: 18px; }
    .cover__inner { padding-block: 38px 70px; }
    .cover__copy { width: 65%; }
    .cover h1 { font-size: clamp(54px, 8vw, 86px); }
    .cover__art { left: 18%; }
    .cover__art::after {
        background: linear-gradient(90deg, #143B2E 0%, #143B2Ee8 19%, #143B2E80 45%, transparent 78%),
            linear-gradient(0deg, #143B2E 0%, transparent 20%);
    }
}
@media (min-width: 601px) and (max-width: 1120px) {
    html:lang(ru) .cover__copy { width: 80%; }
    html:lang(ru) .cover h1 { font-size: clamp(38px, 6.4vw, 74px); }
}
@media (max-width: 800px) {
    .thread__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 20px 36px; }
    .thread__copy { padding: 28px 0 18px; }
    .thread__copy h2 { font-size: clamp(42px, 8vw, 64px); margin: 13px 0; }
    .thread__footer { font-size: 11px; }
}
@media (max-width: 600px) {
    .cover { justify-content: flex-start; }
    .cover__inner { padding: 30px 22px 0; margin: 0 auto; }
    .cover__copy { width: 100%; }
    .cover__category { margin-bottom: 20px; font-size: 12px; }
    .cover h1 { font-size: clamp(43px, 11.6vw, 65px); margin-bottom: 20px; }
    .cover__description { font-size: 15px; line-height: 1.55; margin-bottom: 20px; max-width: 350px; }
    .cover__actions { gap: 12px; }
    .cover .cover__primary { font-size: 13px; min-height: 46px; }
    .cover__primary { padding: 12px 15px; }
    .cover__secondary { font-size: 12px; }
    .cover__note { font-size: 11px; margin-top: 12px; }
    .cover__art { position: relative; inset: auto; order: 2; min-height: 240px; width: 100%; flex: 1; margin-top: 6px; z-index: 0; }
    .cover__art img { position: absolute; inset: 0; object-position: 69% center; }
    .cover__art::after { background: linear-gradient(180deg, #143B2E 0%, #143B2E00 30%, #143B2E00 77%, #143B2E 100%); }
    .cover__foot { position: relative; order: 3; gap: 8px; padding: 14px 22px; font-size: 10px; }
}
@media (max-width: 600px) {
    html:lang(ru) .cover__copy { width: 100%; }
    html:lang(ru) .cover h1 { font-size: clamp(29px, 8.8vw, 51px); }
    html:lang(ru) .cover__art::after {
        background: linear-gradient(180deg, #143B2E 0%, #143B2E00 30%, #143B2E00 77%, #143B2E 100%);
    }
}
@media (max-width: 350px) {
    .cover__actions { align-items: flex-start; flex-direction: column; }
    .cover h1 { font-size: 40px; }
}
