@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&family=Poppins:wght@400;500;600;700&display=swap');
:root {
  --brand: #194b4b;
  --brand-hover: #0f3636;
  --brand-light: #edf5f5;
  --brand-wash: rgba(25, 75, 75, 0.08);
  --brand-wash-strong: rgba(25, 75, 75, 0.14);
  --accent: #64cdcd;
  --accent-hover: #4fb8b8;
  --accent-light: #e8f8f8;
  --accent-wash: rgba(100, 205, 205, 0.12);
  --ink: #333333;
  --ink-secondary: #444444;
  --muted: #666666;
  --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: #f4f7f6;
}
* { box-sizing: border-box; margin: 0; }
body { min-width: 320px; min-height: 100vh; color: var(--ink); }
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 500px; background: linear-gradient(135deg, rgba(25,75,75,0.05) 0%, rgba(100,205,205,0.04) 40%, transparent 70%); pointer-events: none; z-index: -1; }
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(--accent-wash); }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(244, 247, 246, 0.85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--surface-border); min-height: var(--nav-height); }
.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: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; 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: 16px; }
.navbar__links { display: flex; align-items: center; gap: 4px; }
.navbar__link { font-size: 0.85rem; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: var(--radius-sm); transition: color 150ms ease; }
.navbar__link:hover { color: var(--brand); }
.navbar__social { display: flex; align-items: center; gap: 4px; }
.navbar__social-link { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--muted); transition: color 150ms ease; }
.navbar__social-link:hover { color: var(--brand); }
@media (max-width: 640px) { .navbar__links { display: none; } }

/* 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(--accent-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; }

/* Hero (home page) */
.hero-home { padding: 56px 24px 48px; }
.hero-home__inner { width: min(100%, var(--max-width)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-home__text h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 16px; color: var(--ink); }
.hero-home__text h1 span { color: var(--accent); }
.hero-home__text p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; max-width: 480px; margin-bottom: 24px; }
.hero-home__stats { display: flex; gap: 32px; }
.hero-home__stat { display: flex; flex-direction: column; }
.hero-home__stat strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--brand); line-height: 1; }
.hero-home__stat span { font-size: 0.82rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.hero-home__mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3; }
.hero-home__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.hero-home__mosaic img:first-child { grid-row: 1 / 3; border-radius: var(--radius-lg); }

/* Footer */
.site-footer { border-top: 1px solid var(--surface-border); padding: 32px 24px; margin-top: auto; }
.site-footer__inner { width: min(100%, var(--max-width)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: var(--brand); }
.site-footer__brand svg { width: 24px; height: 24px; }
.site-footer__copy { color: var(--faint); font-size: 0.82rem; }

@media (max-width: 768px) {
  .hero-home__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-home__mosaic { max-width: 400px; }
  .hero-home { padding: 36px 24px 32px; }
}

/* 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; background: transparent; border: none; box-shadow: none; padding: 0; backdrop-filter: none; }
.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(--accent); box-shadow: 0 0 0 3px var(--accent-wash); outline: none; }

/* Album Grid */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.album-grid .album-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.album-grid .album-card:first-child .album-card__image img { aspect-ratio: auto; height: 100%; min-height: 280px; }
.album-grid .album-card:first-child .album-card__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.album-grid .album-card:first-child h2 { font-size: 1.6rem; }
.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(--accent-wash); color: var(--brand); font-size: 0.78rem; font-weight: 500; }

/* Asset Grid (masonry) */
.asset-grid { columns: 3 280px; column-gap: 20px; }
.asset-card { margin-bottom: 20px; break-inside: avoid; 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%; 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(25, 75, 75, 0.25); }
.primary-button:hover { background: var(--brand-hover); box-shadow: 0 4px 12px rgba(25, 75, 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; justify-content: 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; }

/* Favorites toggle */
.fav-toggle { gap: 6px; color: var(--muted); }
.fav-toggle svg { color: #ef4444; }
.fav-toggle--active { background: rgba(239, 68, 68, 0.08); border-color: #ef4444; color: #ef4444; }

/* Asset card image wrap */
.asset-card__image-wrap { position: relative; cursor: pointer; overflow: hidden; }
.asset-card__image-wrap img { width: 100%; object-fit: cover; transition: transform 300ms ease; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.asset-card__image-wrap:hover img { transform: scale(1.03); }
.asset-card__hover-overlay { position: absolute; inset: 0; background: rgba(25,75,75,0.3); display: grid; place-items: center; opacity: 0; transition: opacity 200ms ease; color: #fff; }
.asset-card__image-wrap:hover .asset-card__hover-overlay { opacity: 1; }
.asset-card__heart-badge { position: absolute; top: 8px; right: 8px; color: #ef4444; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,10,10,0.92); backdrop-filter: blur(8px); display: grid; place-items: center; }
.lightbox__content { width: min(100%, 1100px); max-height: 100vh; display: flex; flex-direction: column; padding: 16px; }
.lightbox__topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 4px 16px; flex-shrink: 0; }
.lightbox__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lightbox__counter { color: rgba(255,255,255,0.5); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.lightbox__title { color: #fff; font-size: 1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lightbox__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: none; cursor: pointer; transition: all 150ms ease; }
.lightbox__btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.lightbox__heart--active { color: #ef4444; }
.lightbox__heart--active:hover { color: #dc2626; }
.lightbox__image-wrap { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; }
.lightbox__image { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; user-select: none; pointer-events: none; -webkit-user-drag: none; }
.lightbox__image-guard { position: absolute; inset: 0; z-index: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; background: rgba(0,0,0,0.5); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; transition: all 150ms ease; z-index: 2; }
.lightbox__nav:hover { background: rgba(0,0,0,0.7); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__caption { color: rgba(255,255,255,0.6); font-size: 0.88rem; text-align: center; margin: 12px 0 0; flex-shrink: 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; } .album-grid .album-card:first-child { grid-template-columns: 1fr; } .album-grid .album-card:first-child .album-card__image img { min-height: auto; aspect-ratio: 3/2; } }
