@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #050505;
    --bg-alt: #0d0d10;
    --surface: rgba(20, 20, 23, 0.9);
    --surface-strong: #141418;
    --text: #f5f1ea;
    --muted: #a3a0a8;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #f1d9c8;
    --accent-2: #86a58e;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #000;
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 5, 0.76);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav a {
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    color: var(--muted);
    border: 1px solid transparent;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current='page'] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
    transform: translateY(-1px);
}

.site-main {
    width: 100%;
    flex: 1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
    z-index: 20;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.site-footer {
    padding: 1.6rem 0 2.2rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    flex-wrap: wrap;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    line-height: 0.95;
    font-weight: 600;
}

h1 {
    font-size: clamp(3.6rem, 8vw, 6.8rem);
    max-width: 8.2ch;
    letter-spacing: -0.04em;
}

@media (max-width: 980px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        max-width: 10ch;
    }
}

@media (max-width: 640px) {
    .container,
    .header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: clamp(3rem, 19vw, 4.8rem);
    }

    .nav a {
        padding: 0.6rem 0.85rem;
    }

    .back-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}