:root {
    --bg: #faf6f0;
    --bg-alt: #f0e9dd;
    --ink: #211d19;
    --muted: #7a7167;
    --line: #e3dac9;
    --accent: #b5652f;
    --accent-dark: #8f4d23;
    --danger: #a3392a;
    --radius: 6px;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Copy-protection deterrent on public pages only — admin needs normal drag/select on thumbnails */
body:not(.admin-body) img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons & links */

.btn-solid, .btn-outline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
}

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

.btn-outline {
    border: 1.5px solid var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.text-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--accent);
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.section-eyebrow-centered {
    text-align: center;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    background: var(--bg);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

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

/* Hero */

.hero {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg) 70%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 600;
    margin: 0 0 18px;
    line-height: 1.1;
}

.hero-lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 480px;
    margin: 0 0 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-photo {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About teaser (homepage) */

.about-teaser {
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
}

.about-teaser-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: center;
}

.about-teaser-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.about-teaser-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-teaser-text p:not(.section-eyebrow) {
    font-size: 17px;
    color: var(--ink);
    margin: 0 0 16px;
    max-width: 620px;
}

.page-title {
    font-size: 30px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.breadcrumb {
    color: var(--muted);
    font-size: 13px;
    margin-top: 24px;
}

.album-description {
    color: var(--muted);
    max-width: 640px;
    font-size: 16px;
}

.empty-state {
    color: var(--muted);
    padding: 40px 0;
}

/* Awards section */

.awards-section {
    background: #191512 url("/assets/images/award-bg-overlay.png") no-repeat center right;
    background-size: contain;
    color: #fff;
    padding: 90px 24px;
    text-align: center;
    margin-bottom: 60px;
}

.awards-inner {
    max-width: 900px;
}

.awards-icon {
    width: 50px;
    margin: 0 auto 20px;
}

.awards-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.awards-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 14px;
}

.awards-sub {
    margin: 0;
    color: #cbc2b5;
    font-size: 15px;
    font-family: var(--font-body);
}

.awards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
}

.award-item {
    position: relative;
    width: 220px;
    height: 200px;
    flex-shrink: 0;
    background: url("/assets/images/award-bg-w.png") no-repeat center center;
    background-size: contain;
}

.award-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    padding: 0 44px;
    font-family: var(--font-body);
}

@media (max-width: 600px) {
    .awards-section { padding: 60px 16px; }
    .awards-section h2 { font-size: 27px; }
    .award-item { width: 180px; height: 164px; }
    .award-text { font-size: 13px; padding: 0 34px; }
}

/* Album grid (public) */

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    margin: 24px 0 60px;
}

.album-card {
    display: block;
}

.album-cover {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.04);
}

.album-cover-placeholder {
    width: 100%;
    height: 100%;
}

.album-card-title {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.album-card-count {
    font-size: 13px;
    color: var(--muted);
}

.see-all {
    text-align: center;
    margin: 40px 0 60px;
}

.see-all a {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

/* Photo grid (album view) */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 24px 0 60px;
}

.photo-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-thumb:hover img {
    transform: scale(1.05);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 40px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 12px;
    line-height: 1;
}

.lightbox-close {
    top: 12px;
    right: 20px;
}

.lightbox-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Contacts */

.contacts-block p {
    font-size: 18px;
}

.contacts-block a:hover {
    color: var(--accent);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 60px;
    padding: 28px 0;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-contacts a:hover {
    color: var(--accent);
}

.footer-copy {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-photo { order: -1; max-width: 380px; margin: 0 auto; }
    .hero-text { text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .about-teaser-inner { grid-template-columns: 1fr; text-align: center; }
    .about-teaser-photo { margin: 0 auto; }
    .about-teaser-text p:not(.section-eyebrow) { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 36px; }
    .site-header .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- Admin ---------- */

.admin-body {
    background: var(--bg-alt);
    font-family: var(--font-body);
}

.admin-login {
    max-width: 320px;
    margin: 120px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-login h1 {
    font-size: 18px;
    margin: 0 0 16px;
}

.admin-login form,
.album-info-form,
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-login label,
.album-info-form label,
.upload-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}

input[type="text"],
input[type="password"],
textarea {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    background: var(--ink);
    color: #fff;
}

button:hover {
    opacity: 0.85;
}

.btn-danger {
    background: var(--danger);
}

.btn-mini {
    font-size: 12px;
    padding: 4px 8px;
}

.btn-link {
    background: none;
    color: var(--ink);
    text-decoration: underline;
    padding: 0;
}

.admin-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-topbar h1 {
    font-size: 20px;
    margin: 0;
    font-family: var(--font-body);
}

.form-notice {
    background: #eaf1e4;
    border: 1px solid #c3d9b4;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
}

.form-error {
    background: #fbeae6;
    border: 1px solid #e9bcac;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
}

.inline-form {
    display: flex;
    gap: 8px;
    margin: 20px 0 28px;
}

.inline-form input {
    flex: 1;
}

.admin-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-album-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-album-cover {
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    display: block;
}

.admin-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-album-info {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}

.admin-album-card form {
    padding: 0 12px 12px;
}

.admin-album-card .btn-danger {
    width: 100%;
}

.album-info-form,
.upload-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    max-width: 560px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.admin-photo-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: grab;
}

.admin-photo-card.dragging {
    opacity: 0.4;
}

.admin-photo-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.admin-photo-actions {
    padding: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-photo-actions form {
    display: inline;
}

.cover-badge {
    font-size: 12px;
    background: var(--accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius);
}

.btn-featured-on {
    background: var(--accent-dark);
}
