@font-face {
  font-family: 'Museo Sans';
  src: url('../nc_assets/fonts/museo-sans-300-webfont.woff') format('woff');
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'Museo Sans';
  src: url('../nc_assets/fonts/museo-sans-500-webfont.woff') format('woff');
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: 'Museo Sans';
  src: url('../nc_assets/fonts/museo-sans-700-webfont.woff') format('woff');
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #e9e0d2;
  --ink-soft: #cabda9;
  --ink-muted: #998d7c;
  --bg-main: #090d12;
  --bg-deep: #0c1218;
  --bg-panel: #111923;
  --line: rgba(233, 224, 210, 0.18);
  --accent: #ff6b35;
  --accent-2: #ffb243;
  --mint: #6dd3c4;
  --danger: #ff5f6d;
  --radius: 18px;
  --shadow: 0 28px 60px rgba(2, 4, 7, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Museo Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-family: 'Iowan Old Style', 'Baskerville', 'Times New Roman', serif;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.muted {
  color: var(--ink-muted);
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(220, 207, 185, 0.23);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: rgba(15, 22, 32, 0.74);
  padding: 0.66rem 0.78rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 178, 67, 0.26);
  border-color: rgba(255, 178, 67, 0.7);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.62rem 1.12rem;
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  border-color: rgba(255, 178, 67, 0.34);
  background: linear-gradient(130deg, #ff6b35 0%, #ff8f37 52%, #ffb243 100%);
  box-shadow: 0 14px 30px rgba(255, 120, 49, 0.35);
}

.btn-secondary {
  color: var(--ink);
  border-color: rgba(224, 212, 193, 0.3);
  background: rgba(13, 21, 30, 0.66);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: rgba(224, 212, 193, 0.2);
  background: rgba(13, 21, 30, 0.38);
}

.btn-danger {
  color: #ffe1e6;
  border-color: rgba(255, 95, 109, 0.48);
  background: rgba(153, 42, 54, 0.34);
}

.flash {
  padding: 14px 16px;
  font-weight: 700;
}

.flash-success {
  color: #c8ffe6;
  background: rgba(30, 100, 80, 0.28);
  border-color: rgba(76, 201, 162, 0.35);
}

.flash-warning {
  color: #ffe7be;
  background: rgba(131, 84, 20, 0.36);
  border-color: rgba(255, 194, 89, 0.4);
}

.flash-error {
  color: #ffd7dc;
  background: rgba(138, 39, 56, 0.33);
  border-color: rgba(255, 103, 123, 0.42);
}

/* Public Site */
.public-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 7%, rgba(255, 129, 62, 0.2), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(100, 214, 221, 0.12), transparent 30%),
    linear-gradient(180deg, #0b1016 0%, #0a0f15 56%, #090d12 100%);
}

.site-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 12vw, 140px) 0 clamp(64px, 9vw, 106px);
  border-bottom: 1px solid rgba(233, 224, 210, 0.14);
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 110, 53, 0.22), transparent 42%),
    radial-gradient(circle at 84% 34%, rgba(255, 201, 124, 0.16), transparent 38%),
    radial-gradient(circle at 56% 88%, rgba(109, 211, 196, 0.12), transparent 46%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 2px,
      transparent 3px
    );
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.site-hero .kicker {
  color: var(--accent-2);
}

.site-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 7vw, 5.65rem);
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.tagline {
  margin-top: 14px;
  max-width: 55ch;
  font-size: clamp(1.02rem, 2vw, 1.42rem);
  color: #f0e7d7;
}

.intro {
  margin-top: 12px;
  max-width: 62ch;
  color: #bdb09f;
}

.main-content {
  padding-block: 24px 48px;
  display: grid;
  gap: 20px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.4rem);
}

.not-found,
.empty-state {
  padding: 30px;
  background: linear-gradient(145deg, rgba(14, 24, 36, 0.85), rgba(10, 15, 23, 0.88));
  text-align: center;
}

.empty-state h3,
.not-found h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.empty-state p,
.not-found p {
  color: var(--ink-soft);
}

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

.album-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(13, 20, 30, 0.9), rgba(12, 18, 28, 0.72));
  transition: transform 0.25s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.album-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(4, 7, 11, 0.72) 100%);
  pointer-events: none;
}

.album-card:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  border-color: rgba(255, 178, 67, 0.35);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.55);
}

.album-link {
  text-decoration: none;
  display: grid;
}

.album-card img,
.album-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.album-placeholder {
  display: grid;
  place-items: center;
  color: #ecdcc5;
  background:
    linear-gradient(130deg, #303e4d 0%, #263241 52%, #1e2833 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 12px);
  font-weight: 700;
}

.album-card-meta {
  position: relative;
  z-index: 1;
  padding: 15px;
}

.album-card-meta h3 {
  margin-bottom: 5px;
  font-size: 1.22rem;
}

.album-card-meta p {
  color: #c8b69b;
}

.album-header {
  background: linear-gradient(130deg, rgba(16, 27, 41, 0.88), rgba(10, 15, 23, 0.86));
  border-color: rgba(255, 178, 67, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}

.album-header h2 {
  font-size: clamp(1.55rem, 3.7vw, 2.6rem);
  margin-bottom: 6px;
}

.masonry-grid {
  column-count: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.9);
  transform: translateY(8px);
  animation: card-in 0.55s ease forwards;
}

.photo-button {
  border: 0;
  display: block;
  width: 100%;
  padding: 0;
  background: #000;
  cursor: zoom-in;
}

.photo-button img {
  width: 100%;
  display: block;
  transition: transform 0.25s ease, filter 0.2s ease;
}

.photo-button:hover img {
  transform: scale(1.03);
  filter: contrast(1.06) saturate(1.06);
}

.masonry-item figcaption {
  padding: 10px 12px;
  color: #d1c4b0;
  font-size: 0.9rem;
}

.site-footer {
  padding: 12px 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #a8987f;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 150, 122, 0.5);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 10, 0.92);
}

.lightbox.open {
  display: grid;
}

.lightbox-image {
  width: auto;
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  margin-top: 12px;
  color: #f1e7d7;
  text-align: center;
  max-width: min(90vw, 900px);
}

.lightbox button {
  position: fixed;
  border: 1px solid rgba(241, 231, 215, 0.36);
  color: #f9f0e1;
  background: rgba(0, 0, 0, 0.4);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(255, 178, 67, 0.2);
}

.lightbox-close {
  top: 14px;
  right: 14px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 150, 79, 0.23), transparent 26%),
    radial-gradient(circle at 88% 7%, rgba(109, 211, 196, 0.14), transparent 26%),
    linear-gradient(180deg, #0f1620 0%, #0b121a 100%);
}

.admin-wrap {
  width: min(1220px, 95vw);
  margin: 24px auto 48px;
  display: grid;
  gap: 16px;
}

.admin-wrap.narrow {
  width: min(690px, 92vw);
  margin-top: 56px;
}

.admin-header {
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(20, 31, 44, 0.96), rgba(12, 20, 30, 0.92)),
    radial-gradient(circle at 14% 26%, rgba(255, 107, 53, 0.25), transparent 42%);
}

.admin-header .kicker {
  color: var(--accent-2);
}

.admin-header h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  margin-bottom: 8px;
}

.admin-header p {
  color: #ccc0ac;
}

.admin-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.top-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.bottom-grid {
  grid-template-columns: minmax(300px, 410px) 1fr;
}

.admin-grid .card,
.admin-wrap > .card {
  background: linear-gradient(170deg, rgba(15, 23, 34, 0.92), rgba(10, 16, 25, 0.88));
  padding: 18px;
}

.admin-grid .card h2,
.admin-wrap > .card h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.album-list {
  display: grid;
  gap: 10px;
}

.album-row {
  border: 1px solid rgba(233, 224, 210, 0.16);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: rgba(10, 17, 26, 0.75);
}

.album-row.active {
  border-color: rgba(255, 178, 67, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 67, 0.2);
}

.album-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.album-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.photo-admin-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(233, 224, 210, 0.14);
  background: rgba(9, 15, 23, 0.86);
}

.photo-admin-card.cover {
  border-color: rgba(255, 178, 67, 0.58);
  box-shadow: 0 16px 34px rgba(255, 127, 57, 0.22);
}

.photo-admin-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-admin-card form {
  padding: 10px;
}

.photo-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .masonry-grid {
    column-count: 2;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-row {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .masonry-grid {
    column-count: 1;
  }

  .album-header {
    flex-direction: column;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-row-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .photo-admin-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
