*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f4efe6;
    line-height: 1.65;
    min-height: 100vh;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    background: #0a0e12;
}

.bg-image {
    position: fixed;
    inset: 0;
    background: url('images/bg-rio.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
    filter: saturate(0.85);
}
.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,14,18,0.55) 0%, rgba(10,14,18,0.78) 55%, rgba(10,14,18,0.92) 100%);
    z-index: -1;
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.4rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 14, 18, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.nav-github {
    color: rgba(244, 239, 230, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.nav-github:hover { color: #f4efe6; }

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0 4rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1.05;
    font-weight: 400;
    color: #f8f4ec;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero-tags {
    font-size: 1rem;
    color: rgba(244, 239, 230, 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}
.hero-tags .dot { color: rgba(244, 239, 230, 0.4); }

.section {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #f4efe6;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.cards { display: grid; gap: 1rem; }
.card {
    display: block;
    padding: 1.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}
.card-title {
    font-family: 'Inter', 'Noto Serif SC', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #f4efe6;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}
.card-meta {
    font-size: 0.85rem;
    color: rgba(244, 239, 230, 0.55);
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.slider-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #f4efe6;
    font-size: 1rem;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: #f4efe6;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    line-height: 1;
    padding-bottom: 3px;
}
.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0e12;
    border-color: #f4efe6;
}
.slider-btn.prev { left: 1.2rem; }
.slider-btn.next { right: 1.2rem; }
.slider-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}
.slider-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(244, 239, 230, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dots button.active {
    background: #f4efe6;
    width: 18px;
    border-radius: 3px;
}

.site-footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
}
.site-footer a {
    color: rgba(244, 239, 230, 0.6);
    text-decoration: none;
    letter-spacing: 0.02em;
    border-bottom: 1px dotted rgba(244, 239, 230, 0.25);
    padding-bottom: 2px;
    transition: color 0.3s ease;
}
.site-footer a:hover { color: #f4efe6; border-bottom-color: #f4efe6; }

@media (max-width: 768px) {
    .nav { padding: 0 1.2rem; }
    main { padding: 0 1.2rem; }
    .hero { padding: 5rem 0 3rem; }
    .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.4rem; }
    .card { padding: 1.2rem 1.4rem; }
    .card-title { font-size: 1.05rem; }
    .slider-btn { width: 36px; height: 36px; font-size: 1.2rem; }
    .slider-btn.prev { left: 0.6rem; }
    .slider-btn.next { right: 0.6rem; }
    .slide figcaption { padding: 1.6rem 1.2rem 1rem; font-size: 0.9rem; }
}
