:root {
  --black: #06070a;
  --ink: #101827;
  --blue: #00d4ff;
  --orange: #f59b00;
  --white: #ffffff;
  --soft: #f5f7fb;
  --muted: #6b7280;
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 212, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #050608 0 32rem, var(--soft) 32rem);
  color: var(--ink);
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(6, 7, 10, 0.78);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  font-weight: 900;
}

.brand span {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #001014;
}

nav {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

main,
footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.9;
}

.hero p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-panel {
  display: grid;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.hero-panel strong {
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 2rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 0.32fr);
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  padding: 1rem;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.05);
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 900;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.memory-card,
.empty-state {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.05);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.memory-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #e5e7eb;
}

.memory-card div {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
}

.memory-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.memory-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.memory-card a {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

footer strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero,
  .toolbar,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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