﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #050608;
    --panel: #0b0d12;
    --panel-soft: #0f1118;
    --muted: #aeb3c0;
    --text: #f5f6f8;
    --accent: #e34545;
    --accent-2: #ff7b54;
    --border: #1a1d25;
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    --radius: 12px;
    --spacing: clamp(18px, 2vw, 26px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(227, 69, 69, 0.05), transparent 32%), var(--bg);
    color: var(--text);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--accent-2);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: absolute;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    z-index: 120;
}

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: rgba(5, 6, 8, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.22em;
    font-size: 0.98rem;
    text-transform: uppercase;
}

.logo:hover {
    color: var(--accent-2);
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid transparent;
}

.nav-list a.is-active,
.nav-list a[aria-current="page"] {
    color: var(--text);
    border-color: rgba(227, 69, 69, 0.35);
    background: rgba(227, 69, 69, 0.12);
}

.nav-list a:hover {
    color: var(--text);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang-switch .divider {
    color: var(--muted);
}

.lang-switch a {
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.lang-switch a.is-active {
    color: var(--text);
    border-color: rgba(227, 69, 69, 0.35);
    background: rgba(227, 69, 69, 0.12);
}

.lang-switch a[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-box {
    display: grid;
    gap: 4px;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.nav-toggle-text {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* Buttons & links */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-2);
}

.text-link:hover {
    color: #fff;
}

/* Sections */
main {
    padding-bottom: 80px;
}

section {
    padding: clamp(58px, 8vw, 98px) 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 580px;
}

.section-alt {
    background: linear-gradient(180deg, #080a10 0%, #06070c 100%);
    border-block: 1px solid var(--border);
}

/* Hero */
.hero {
    padding: clamp(80px, 12vw, 130px) 0 clamp(60px, 9vw, 110px);
    background: radial-gradient(circle at 20% 20%, rgba(227, 69, 69, 0.08), transparent 38%),
                radial-gradient(circle at 80% 10%, rgba(255, 123, 84, 0.08), transparent 32%),
                var(--bg);
}

.hero-inner {
    display: grid;
    gap: clamp(30px, 5vw, 50px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
    color: var(--accent-2);
    font-size: 0.85rem;
}

.hero h1 {
    margin: 10px 0 16px;
    font-size: clamp(2.4rem, 4vw, 3.7rem);
    line-height: 1.1;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 10px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.placeholder {
    border: 1px dashed #2a2f3b;
    background: linear-gradient(140deg, rgba(227, 69, 69, 0.08), rgba(255, 123, 84, 0.05));
    color: var(--muted);
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    border-radius: var(--radius);
}

/* Cards & grids */
.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(227, 69, 69, 0.15);
    color: var(--accent-2);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.grid-2 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-layout {
    display: grid;
    gap: clamp(22px, 4vw, 32px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.panel {
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
}

.panel p:last-child {
    margin-bottom: 0;
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Book cards */
.book-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.book-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.2s ease;
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 69, 69, 0.45);
}

.book-cover {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
}

.book-cover img,
.book-cover .placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.book-card h3 {
    margin: 0;
}

.book-card p {
    margin: 0;
    color: var(--muted);
}

/* About */
.split {
    display: grid;
    gap: clamp(22px, 4vw, 32px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-list li {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-weight: 600;
}

/* Contact */
form {
    display: grid;
    gap: 12px;
}

label {
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    background: #0e1016;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(227, 69, 69, 0.6);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: #080a0e;
    border-top: 1px solid var(--border);
}

.footer-inner {
    padding: 26px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-brand {
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-meta {
    text-align: right;
}

.footer-inner p {
    margin: 4px 0;
    color: var(--muted);
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.25s ease;
    }

    .site-nav.is-open {
        max-height: 420px;
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        padding: 16px 22px 22px;
    }

    .nav-list a {
        width: 100%;
    }

    .lang-switch {
        padding: 0 22px 16px;
        margin: 0;
        justify-content: flex-start;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}
