:root {
    --asphalt: #16181c;
    --asphalt-light: #1f2228;
    --paper: #eae6dd;
    --amber: #f0a832;
    --red: #c8362b;
    --line: #2c2f36;
    --muted: #8a8a8a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--asphalt);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
}

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

.wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAV ===== */
nav {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.nav-logo {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--amber);
}

.lang-switch {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    gap: 8px;
}

.lang-switch a {
    color: inherit;
    text-decoration: none;
}

.lang-switch .active {
    color: var(--paper);
    border-bottom: 1px solid var(--amber);
}

/* ===== HERO ===== */
.hero {
    padding: 8px 0 36px;
}

.cover-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.cover {
    width: 62%;
    max-width: 280px;
    min-width: 160px;
    border-radius: 2px;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 5.5vw, 1.9rem);
    line-height: 1.35;
    text-align: center;
    margin-bottom: 26px;
}

.cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--amber);
    color: var(--asphalt);
    border-bottom: 3px solid var(--red);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}

/* ===== SECTIONS ===== */
.section {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.wrap > .section:first-of-type {
    border-top: none;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

p {
    color: #b7b7b7;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== TICKET ===== */
.ticket {
    background: var(--paper);
    color: var(--asphalt);
    border-radius: 6px;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 12px;
}

.ticket-body {
    font-family: 'Fraunces', serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--asphalt);
    margin-bottom: 14px;
}

.ticket-stamp {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    border: 1.5px solid var(--red);
    color: var(--red);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 2px;
    transform: rotate(-2deg);
}

/* ===== QUOTES ===== */
.quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--paper);
    border-left: 2px solid var(--amber);
    padding-left: 14px;
    margin-bottom: 20px;
}

.quote:last-child {
    margin-bottom: 0;
}

/* ===== EDITIONS ===== */
.editions-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 16px;
    margin-top: -8px;
}

.editions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.edition-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--asphalt-light);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.edition-card:not(.edition-soon):hover {
    border-color: var(--amber);
    background: #24272e;
    transform: translateY(-2px);
}

.edition-head {
    display: flex;
    align-items: center;
    gap: 7px;
}

.edition-icon {
    display: flex;
    align-items: center;
    color: var(--amber);
    flex-shrink: 0;
}

.edition-icon svg {
    width: 16px;
    height: 16px;
}

.edition-store {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.edition-title {
    font-family: 'Fraunces', serif;
    font-size: 0.92rem;
    color: var(--paper);
    line-height: 1.3;
}

.edition-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.edition-lang {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--asphalt);
    background: var(--amber);
    padding: 2px 7px;
    border-radius: 2px;
}

.edition-cta {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.02em;
}

.edition-platform {
    font-size: 0.7rem;
    color: var(--muted);
}

.edition-soon {
    opacity: 0.5;
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    display: flex;
}

.edition-soon .edition-lang {
    font-size: 1.1rem;
    background: none;
    padding: 0;
}

.edition-soon .edition-title {
    font-size: 0.9rem;
}

/* ===== TELEGRAM ===== */
.tg-card {
    background: var(--asphalt-light);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px;
}

.tg-card p {
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
footer {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 24px 56px;
    border-top: 1px solid var(--line);
}

.legal {
    font-size: 0.72rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.legal a {
    color: #888;
}

.legal-link {
    font-size: 0.78rem;
}

.legal-link a {
    color: var(--amber);
    text-decoration: none;
}

@media (max-width: 420px) {
    .edition-card {
        flex: 1 1 100%;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 860px) {

    nav, .wrap, footer {
        max-width: 1040px;
    }

    .hero {
        display: flex;
        align-items: center;
        gap: 64px;
        padding: 48px 0 64px;
    }

    .cover-wrap {
        flex: 0 0 340px;
        margin-bottom: 0;
    }

    .cover {
        width: 100%;
        max-width: none;
    }

    .hero-text {
        flex: 1;
        text-align: left;
    }

    .hero-tagline {
        text-align: left;
        font-size: clamp(1.9rem, 2.6vw, 2.4rem);
        margin-bottom: 32px;
    }

    .cta-row {
        flex-direction: row;
        max-width: 420px;
    }

    .btn {
        flex: 1;
    }

    .about-excerpt {
        display: flex;
        gap: 56px;
        align-items: flex-start;
    }

    .about-col {
        flex: 1 1 0;
    }

    .excerpt-col {
        flex: 1.3 1 0;
    }

    .edition-card {
        flex: 1 1 calc(25% - 8px);
    }

    .tg-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding: 26px 28px;
    }

    .tg-card p {
        margin-bottom: 0;
        max-width: 46ch;
    }

    .tg-card .btn {
        white-space: nowrap;
    }
}