@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Playfair+Display:wght@500;600;700&display=swap');
:root {
  --brand: #2b7a4b;
  --brand-hover: #1f6139;
  --brand-light: #eef7f1;
  --brand-wash: rgba(43, 122, 75, 0.08);
  --brand-wash-strong: rgba(43, 122, 75, 0.14);
  --ink: #1c1917;
  --ink-secondary: #44403c;
  --muted: #78716c;
  --faint: #a8a29e;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(28, 25, 23, 0.07);
  --surface-border-strong: rgba(28, 25, 23, 0.12);
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 30px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(28, 25, 23, 0.10);
  --radius-full: 999px;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 64px;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: #f8faf8;
}
* { box-sizing: border-box; margin: 0; }
body { min-width: 320px; min-height: 100vh; color: var(--ink); }
body, button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: 0; }
::selection { background: var(--brand-wash-strong); }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(248, 250, 248, 0.85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--surface-border); }
.navbar__inner { width: min(100%, var(--max-width)); margin: 0 auto; padding: 0 24px; height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--brand); letter-spacing: -0.01em; transition: color 180ms ease; }
.navbar__brand:hover { color: var(--brand-hover); }
.navbar__brand svg { width: 32px; height: 32px; }
.navbar__actions { display: flex; align-items: center; gap: 12px; }

/* Page Layout */
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-header { padding: 48px 24px 40px; text-align: center; }
.page-header--left { text-align: left; }
.page-header__inner { width: min(100%, var(--max-width)); margin: 0 auto; }
.page-header__kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: var(--radius-full); background: var(--brand-wash); color: var(--brand); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 16px; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-header p { color: var(--muted); font-size: 1.05rem; max-width: 600px; line-height: 1.6; }
.page-header:not(.page-header--left) p { margin: 0 auto; }
.page-header__stats { display: flex; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.page-header--left .page-header__stats { justify-content: flex-start; }
.page-header__stat { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.page-header__stat strong { color: var(--ink-secondary); font-weight: 600; }
.content { width: min(100%, var(--max-width)); margin: 0 auto; padding: 0 24px 80px; display: grid; gap: 24px; flex: 1; }

/* Panels */
.panel { background: var(--surface-raised); backdrop-filter: blur(12px); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }

/* Filters */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-solid); border: 1px solid var(--surface-border-strong); color: var(--ink); font-size: 0.95rem; transition: border-color 180ms ease, box-shadow 180ms ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); outline: none; }

/* Album Grid */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.album-card { background: var(--surface-solid); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform 250ms ease, box-shadow 250ms ease; box-shadow: var(--shadow-sm); }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.album-card__image { overflow: hidden; }
.album-card__image img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform 400ms ease; }
.album-card:hover .album-card__image img { transform: scale(1.03); }
.album-card__body { padding: 20px; display: grid; gap: 10px; }
.album-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.album-card__meta span + span::before { content: "\00B7"; margin-right: 8px; color: var(--faint); }
.album-card h2 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.album-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); background: var(--brand-wash); color: var(--brand); font-size: 0.78rem; font-weight: 500; }

/* Asset Grid */
.asset-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.asset-card { background: var(--surface-solid); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 250ms ease, box-shadow 250ms ease; }
.asset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.asset-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.asset-card__body { padding: 16px; display: grid; gap: 12px; }
.asset-card h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.asset-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Buttons */
.primary-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.92rem; transition: all 180ms ease; white-space: nowrap; border: 0; }
.primary-button { background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgba(43, 122, 75, 0.25); }
.primary-button:hover { background: var(--brand-hover); box-shadow: 0 4px 12px rgba(43, 122, 75, 0.25); transform: translateY(-1px); }
.ghost-button { background: transparent; color: var(--ink-secondary); border: 1px solid var(--surface-border-strong); }
.ghost-button:hover { background: rgba(28, 25, 23, 0.04); }
.actions-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.empty-state { text-align: center; padding: 56px 28px; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin: 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(28, 25, 23, 0.5); backdrop-filter: blur(4px); display: none; place-items: center; padding: 24px; }
.modal-backdrop.is-open { display: grid; }
.modal-card { width: min(100%, 480px); padding: 28px; background: var(--surface-solid); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.modal-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.modal-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.modal-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px; }
.form-grid { display: grid; gap: 16px; }
.error-text { color: var(--danger); font-size: 0.88rem; margin: 0; }
.muted-text { color: var(--muted); font-size: 0.88rem; margin: 0; }

@media (max-width: 920px) { .filters { grid-template-columns: 1fr; } .page-header { padding: 32px 24px 28px; } }
@media (max-width: 640px) { .content { padding-inline: 16px; } .navbar__inner { padding: 0 16px; } .page-header { padding: 24px 16px 20px; } .page-header h1 { font-size: 1.8rem; } .album-grid, .asset-grid { grid-template-columns: 1fr; } }
