:root {
  --bg: #f6f1ea;
  --bg-deep: #efe3d4;
  --ink: #1f1c1a;
  --muted: #5b4f47;
  --accent: #f36f4a;
  --accent-dark: #d95430;
  --highlight: #2f8f84;
  --card: rgba(255, 255, 255, 0.7);
  --border: rgba(31, 28, 26, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg) 0%, var(--bg-deep) 65%, #e5d0bb 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 12px;
}

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

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.6;
  z-index: 0;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, #ffd7c3, #f36f4a);
  top: -140px;
  right: 10%;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, #b7e7dc, #2f8f84);
  bottom: -200px;
  left: -80px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 1;
}

.hero {
  padding: 40px 6vw 80px;
  position: relative;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border 0.3s ease;
}

.nav-links a:hover {
  border-bottom: 1px solid var(--ink);
}

.admin-link {
  color: var(--highlight);
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 30px rgba(243, 111, 74, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(243, 111, 74, 0.4);
}

.btn.ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.6);
}

main {
  position: relative;
  z-index: 2;
}

.section {
  padding: 70px 6vw;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 45px rgba(31, 28, 26, 0.08);
}

.info-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(31, 28, 26, 0.12);
}

.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.photo-card .meta {
  padding: 12px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-card .name {
  font-weight: 500;
  font-size: 0.95rem;
}

.delete-btn {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
}

.upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  max-width: 620px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.status {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.error {
  color: #b83328;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31, 28, 26, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(85vw, 860px);
  max-height: 70vh;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.footer {
  padding: 24px 6vw 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-body .admin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 50px 6vw;
  position: relative;
  z-index: 2;
}

.admin-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 900px;
}

.admin-form {
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-form {
    grid-template-columns: 1fr;
  }
}
