:root {
  --ink: #171717;
  --muted: #6e6a63;
  --paper: #f7f3ec;
  --panel: #fffaf1;
  --line: #ded6c9;
  --accent: #a23e2f;
  --accent-dark: #74281f;
  --sage: #697a64;
  --gold: #c8a15a;
  --shadow: 0 18px 50px rgba(26, 24, 21, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid rgba(222, 214, 201, 0.7);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand,
.admin-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-header nav,
.admin-sidebar nav {
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: #39342d;
  font-size: 0.94rem;
}

.hero {
  background-image: url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  min-height: 86vh;
  position: relative;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(13, 12, 10, 0.76), rgba(13, 12, 10, 0.28), rgba(13, 12, 10, 0.08));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: #fffaf1;
  max-width: 780px;
  padding: 28vh clamp(20px, 7vw, 96px) 18vh;
  position: relative;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 7.4rem);
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 740px;
}

.hero p:not(.eyebrow) {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 620px;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

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

.button.light {
  background: #fffaf1;
  color: #171717;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.feature-strip article {
  background: #1f1d19;
  min-height: 240px;
  overflow: hidden;
  position: relative;
}

.feature-strip img {
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  opacity: 0.72;
  width: 100%;
}

.feature-strip div {
  bottom: 22px;
  color: #fff;
  left: 22px;
  position: absolute;
  right: 22px;
}

.feature-strip span,
.feature-strip strong {
  display: block;
}

.feature-strip span {
  color: #e4c987;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.section {
  padding: 92px clamp(18px, 5vw, 72px);
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section h2,
.about-band h2,
.admin-heading h1,
.auth-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin: 0;
}

.album-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.album-filter a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f4940;
  padding: 9px 14px;
}

.album-filter a.active,
.album-filter a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.photo-tile {
  aspect-ratio: 4 / 5;
  background: #24211c;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: zoom-in;
  grid-column: span 4;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.photo-tile:nth-child(6n + 1),
.photo-tile:nth-child(6n + 5) {
  aspect-ratio: 5 / 3.8;
  grid-column: span 8;
}

.photo-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
  width: 100%;
}

.photo-tile:hover img {
  opacity: 0.72;
  transform: scale(1.04);
}

.photo-tile span {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  bottom: 0;
  left: 0;
  padding: 58px 18px 18px;
  position: absolute;
  right: 0;
}

.photo-tile strong,
.photo-tile small {
  display: block;
}

.photo-tile small {
  color: #e9c76d;
  margin-top: 4px;
}

.about-band,
.contact-band {
  align-items: start;
  background: #25231f;
  color: #fffaf1;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  padding: 84px clamp(20px, 7vw, 96px);
}

.about-band p:not(.eyebrow),
.contact-band a {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.55;
  margin: 0;
}

.contact-band {
  background: var(--sage);
  grid-template-columns: 1fr auto;
}

.contact-band p {
  margin: 0;
}

.contact-band a {
  font-weight: 800;
}

.contact-page {
  padding-top: 86px;
}

.contact-hero {
  background: #25231f;
  color: #fffaf1;
  padding: 88px clamp(20px, 7vw, 96px) 64px;
}

.contact-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1;
  margin: 0 0 24px;
  max-width: 980px;
}

.contact-hero p:not(.eyebrow) {
  color: #ddd4c5;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.contact-hero a {
  color: #f1ce75;
  font-weight: 800;
}

.contact-form-wrap {
  padding: 42px clamp(20px, 7vw, 96px) 92px;
}

.contact-form {
  max-width: 760px;
}

.honeypot {
  left: -10000px;
  position: absolute;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  align-items: center;
  background: rgba(10, 9, 8, 0.92);
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  inset: 0;
  padding: clamp(18px, 4vw, 56px);
  position: fixed;
  z-index: 20;
}

.lightbox img {
  border-radius: 8px;
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
}

.lightbox h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.lightbox p {
  color: #d8d0c5;
  line-height: 1.6;
}

.lightbox-close {
  background: #fffaf1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  height: 44px;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 44px;
}

.install-page {
  background: #26231d url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
}

.auth-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: rgba(255, 250, 241, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: auto;
  max-width: 520px;
  padding: clamp(24px, 5vw, 46px);
  width: 100%;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 16px;
}

label {
  color: #3e3931;
  display: grid;
  font-weight: 800;
  gap: 7px;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check-row input {
  min-height: auto;
  width: auto;
}

.notice {
  background: #e6f1df;
  border: 1px solid #b8d3a8;
  border-radius: 6px;
  color: #344c2b;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.notice.error {
  background: #fae7e2;
  border-color: #e5b0a7;
  color: #6f241a;
}

.admin-body {
  background: #f2ede4;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #24211c;
  color: #fffaf1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  padding: 28px;
  position: sticky;
  top: 0;
}

.admin-sidebar nav {
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar nav a,
.logout-link {
  border-radius: 6px;
  color: #dfd5c8;
  padding: 10px 12px;
}

.admin-sidebar nav a:hover,
.logout-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.logout-link {
  margin-top: auto;
}

.admin-main {
  padding: clamp(20px, 4vw, 48px);
}

.admin-heading {
  margin-bottom: 28px;
}

.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}

.stat-grid article,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(29, 27, 24, 0.07);
  padding: 22px;
}

.stat-grid span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.stat-grid p,
.admin-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.admin-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.admin-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.wide-form {
  max-width: 840px;
}

.table-list,
.photo-admin-list {
  display: grid;
  gap: 12px;
}

.table-list article,
.photo-admin-list article {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.table-list article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.table-list span,
.photo-admin-list span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 4px;
}

.photo-admin-list article {
  grid-template-columns: 86px minmax(0, 1fr) auto auto;
}

.photo-admin-list img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 86px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
  padding: 8px;
}

.text-button.danger {
  color: #8f2517;
}

details {
  color: var(--accent);
  font-weight: 800;
}

summary {
  cursor: pointer;
  padding: 8px;
}

.inline-edit {
  background: #f8f2e8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  margin-top: 10px;
  padding: 14px;
  width: min(520px, 70vw);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .site-header nav {
    gap: 12px;
  }

  .feature-strip,
  .about-band,
  .contact-band,
  .lightbox,
  .admin-body,
  .admin-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .photo-tile,
  .photo-tile:nth-child(6n + 1),
  .photo-tile:nth-child(6n + 5) {
    aspect-ratio: 4 / 5;
    grid-column: span 6;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
  }

  .admin-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
  }

  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-content {
    padding-top: 180px;
  }

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

  .photo-tile,
  .photo-tile:nth-child(6n + 1),
  .photo-tile:nth-child(6n + 5) {
    grid-column: auto;
  }

  .photo-admin-list article {
    align-items: start;
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .photo-admin-list form,
  .photo-admin-list details {
    grid-column: span 2;
  }

  .inline-edit {
    width: 100%;
  }
}
