/**
 * Theme Name: Amarenov
 * Template: customizr
 * Description: Custom theme for amarenov website
 * Version: 0.1.0
 * Author: Grégory Obanos
 */

@font-face {
    font-family: 'Raleway';
    src: url('fonts/raleway/Raleway-Regular.woff2') format('woff2'),
         url('fonts/raleway/Raleway-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Revive 80 Signature';
    src: url('fonts/revive80/Revive80-Signature.woff2') format('woff2'),
         url('fonts/revive80/Revive80-Signature.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 16pt;
}

@media screen and (max-width: 1600px) {
    html, body { font-size: 11pt; }
}

@media screen and (max-width: 1024px) {
    html, body { font-size: 12pt; }
}

@media screen and (max-width: 680px) {
    html, body { font-size: 8pt; }
}

@media screen and (max-width: 450px) {
    html, body { font-size: 6pt; }
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('img/header.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
}

header .logo {
    background-image: url('img/logo-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 2580/1550;
    height: 15rem;
    opacity: 0.8;
    align-self: stretch;
}

header .title {
    position: relative;
}

header h1 {
    color: #fffbf5;
    font-family: "Raleway", arial, sans-serif;
    font-size: 5.5rem;
    font-weight: normal;
    letter-spacing: -0.2rem;
    text-align: center;
    line-height: 1em;
    margin: 0.8rem 0.8rem 6.1rem;
}

header h2 {
    position: absolute;
    bottom: 0;
    right: 1.2rem;
    color: #fffbf5;
    font-family: "Revive 80 Signature", arial, sans-serif;
    font-size: 5rem;
    font-weight: normal;
    transform-origin: bottom left;
    transform: rotate(-15deg);
    margin: 0;
}

header .title-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
}

@media screen and (max-width: 1024px) {
    header .title-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Navigation ── */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    padding: 0.9rem 2rem;
    background: rgba(20, 15, 10, 0.72);
    backdrop-filter: blur(6px);
}

.site-nav a {
    color: #fffbf5;
    text-decoration: none;
    font-family: "Raleway", arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 1;
}

body.admin-bar .site-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-nav {
        top: 46px;
    }
}

/* ── Sections ── */

.page-section {
    scroll-margin-top: 3.5rem;
    background: #eee4db;
}

.page-section:nth-child(odd) {
    background: #fffbf5;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* ── News feed ── */

.news-feed .section-content {
    max-width: 1100px;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e0d5c5;
}

.news-item:last-child {
    border-bottom: none;
}

.news-thumb img {
    width: 180px;
    height: 130px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-body time {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.news-body h3 {
    margin: 0 0 0.4rem;
    font-family: "Raleway", arial, sans-serif;
    font-weight: normal;
}

@media screen and (max-width: 680px) {
    .news-item {
        flex-direction: column;
    }

    .news-thumb img {
        width: 100%;
        height: 200px;
    }
}
