/* css/style.css */
:root {
    --bg: #f7f3ee;
    --bg-alt: #f0e9e1;
    --paper: #faf6f1;
    --text: #3d342c;
    --text-soft: #6b5e54;
    --accent: #c9a992;
    --accent-dark: #a88870;
    --border: #e0d5c8;
    --shadow: rgba(61, 52, 44, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    background-image: radial-gradient(#e8dfd6 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 40px 0 20px;
    text-align: center;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.logo {
    margin-bottom: 10px;
}

.logo img {
    max-height: 60px;
}

.logo-text.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--accent-dark);
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2.8rem;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 20px;
}

.main-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
}

/* Main */
main {
    padding: 50px 0 80px;
    min-height: 60vh;
}

.hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.presentation {
    font-size: 1.15rem;
    color: var(--text);
}

/* Cards / Sections */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    bottom: 20px;
    width: 12px;
    background: repeating-linear-gradient(
        #d4c4b5,
        #d4c4b5 2px,
        transparent 2px,
        transparent 6px
    );
    border-radius: 2px;
    opacity: 0.6;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    font-size: 1.4rem;
}

.card a.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.card a.btn:hover {
    background: var(--accent-dark);
}

/* Articles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background: var(--paper);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.article-item h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}

.article-item a {
    color: var(--accent-dark);
    text-decoration: none;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background: var(--bg-alt);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-soft);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.socials a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 1.3em;
}

/* Admin styles */
.admin-wrap {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.admin-nav {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 16px;
    background: var(--bg-alt);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
}

form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

form input[type="text"],
form input[type="url"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

form textarea {
    min-height: 120px;
}

form button, .btn {
    background: var(--accent-dark);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
}

form button:hover, .btn:hover {
    background: #8a6d58;
}

.alert {
    padding: 12px;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .site-title { font-size: 2.2rem; }
    .main-nav { gap: 12px; }
}
