/* ============================================================
   Freedom Spaces Records — стили сайта
   Палитра: тёплый почти-чёрный + медный акцент
   Шрифты: Fraunces italic (артисты/альбомы) / Work Sans (текст) / IBM Plex Mono (метаданные)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500;1,9..144,600&family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #EDE7DD;
    --ink-soft: #C9C0B2;
    --muted: #8A8073;
    --bg: #14120F;
    --bg-raised: #1C1913;
    --card: #201C16;
    --copper: #C98A4B;
    --copper-soft: #7A5230;
    --line: #322C22;
    --line-soft: #26221B;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius-sm: 5px;
    --radius-md: 12px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--copper-soft); }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

/* ---------------- Header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 18, 15, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 21px;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.brand span { color: var(--copper); font-style: normal; }

/* ---------------- Hero ---------------- */

.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero-glow {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 138, 75, 0.14), rgba(201, 138, 75, 0) 68%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
    font-size: 44px;
    line-height: 1.18;
    margin: 20px 0 22px;
    font-style: italic;
}
.hero-desc {
    font-size: 16.5px;
    color: var(--ink-soft);
    max-width: 68ch;
}
.hero-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
    letter-spacing: 0.02em;
}

/* ---------------- Artist grid ---------------- */

section { padding: 20px 0 80px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 26px; font-style: italic; margin-top: 12px; }

.artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.artist-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: block;
}
.artist-card:hover { border-color: var(--copper-soft); transform: translateY(-2px); }
.artist-cover {
    aspect-ratio: 1;
    background: var(--bg-raised);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.artist-cover img { width: 100%; height: 100%; object-fit: cover; }
.artist-cover .placeholder {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.artist-info { padding: 18px 20px 22px; }
.artist-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    margin-bottom: 6px;
}
.artist-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

.empty-note {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13.5px;
    padding: 30px 0;
}

/* ---------------- Artist page ---------------- */

.artist-header { padding: 56px 0 40px; border-bottom: 1px solid var(--line-soft); }
.back-link {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 26px;
}
.back-link:hover { color: var(--copper); }
.artist-header h1 { font-size: 38px; font-style: italic; margin-top: 14px; }
.artist-bio { color: var(--ink-soft); max-width: 68ch; margin-top: 16px; font-size: 15.5px; }

.album-list { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }
.album-row {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.album-cover {
    width: 84px;
    height: 84px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-raised);
    flex-shrink: 0;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 4px;
}
.album-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.btn-download {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    background: var(--copper);
    color: var(--bg);
    padding: 11px 22px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.btn-download:hover { background: #DDA164; }

/* ---------------- Footer ---------------- */

.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 32px 0;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    font-family: var(--font-mono);
}

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

.admin-wrap { max-width: 960px; margin: 0 auto; padding: 50px 24px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; margin-bottom: 26px; }
.admin-card h2 { font-size: 19px; font-style: italic; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.admin-table th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; color: var(--muted); }
.field-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    margin-bottom: 8px;
}
input[type="text"], input[type="number"], input[type="url"], input[type="password"], textarea, select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    margin-bottom: 18px;
}
textarea { min-height: 90px; resize: vertical; }
.btn-primary {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14.5px;
    background: var(--copper);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}
.btn-small { font-size: 13px; padding: 8px 16px; background: none; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); cursor: pointer; }
.btn-danger { color: #C97B6D; }
.login-box { max-width: 380px; margin: 130px auto; }

/* ---------------- Responsive ---------------- */

@media (max-width: 820px) {
    .artist-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 32px; }
    .album-row { grid-template-columns: 60px 1fr; }
    .btn-download { grid-column: 1 / -1; text-align: center; }
    .album-cover { width: 60px; height: 60px; }
}
@media (max-width: 520px) {
    .artist-grid { grid-template-columns: 1fr 1fr; }
}
