:root {
  --night: #061522;
  --navy: #0b2235;
  --panel: #123249;
  --panel-dark: #0b2436;
  --brass: #d6ad5c;
  --brass-light: #f0d38a;
  --sea: #51b8b0;
  --foam: #eef6f2;
  --mist: #a9bdc8;
  --line: rgba(214, 173, 92, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(81,184,176,.14), transparent 28rem),
    linear-gradient(180deg, #071724, #040c13);
}

a {
  color: inherit;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 20, 32, 0.86);
}

.topbar,
.hero,
main,
.footer-inner {
  width: min(1180px, calc(100% - 28px));
  margin: auto;
}

.topbar {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.brand {
  color: var(--brass-light);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  text-decoration: none;
}

nav a:hover {
  color: var(--foam);
  border-color: var(--brass);
}

.hero {
  padding: 42px 0 58px;
  text-align: center;
}

.hero-mark {
  margin-bottom: 12px;
  color: var(--brass-light);
  font-size: 2.4rem;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
}

.hero p {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--mist);
  font-size: 1.1rem;
  line-height: 1.6;
}

main {
  padding: 34px 0 70px;
}

.controls {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
}

.searchbox {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(169,189,200,.3);
  border-radius: 10px;
  color: var(--foam);
  background: rgba(16,45,66,.78);
  font-size: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  background: rgba(16,45,66,.78);
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #07141f;
  background: var(--brass-light);
}

.section-title {
  margin: 0 0 18px;
  color: var(--brass-light);
  font-family: Georgia, "Times New Roman", serif;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.camera-card {
  min-height: 280px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(214,173,92,.24);
  border-radius: 15px;
  background:
    linear-gradient(145deg, var(--panel), var(--panel-dark));
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

.camera-card h2 {
  margin: 14px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.location {
  color: var(--brass-light);
  font-size: 0.85rem;
  font-weight: bold;
}

.description {
  flex: 1;
  color: var(--mist);
  line-height: 1.55;
}

.status {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status.live {
  color: #d7fff7;
  border: 1px solid rgba(81,184,176,.5);
  background: rgba(41,151,132,.22);
}

.status.wanted {
  color: #ffe1d6;
  border: 1px solid rgba(216,120,98,.4);
  background: rgba(216,120,98,.17);
}

.tags {
  margin: 0 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 8px;
  border-radius: 7px;
  color: #cce3e4;
  border: 1px solid rgba(81,184,176,.2);
  background: rgba(81,184,176,.1);
  font-size: 0.75rem;
}

.open-camera,
.unavailable {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 9px;
  font-weight: bold;
  text-decoration: none;
}

.open-camera {
  color: #07141f;
  background: linear-gradient(var(--brass-light), var(--brass));
}

.unavailable {
  color: #9eb0b9;
  border: 1px dashed rgba(169,189,200,.3);
}

.notice {
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--sea);
  border-radius: 8px;
  color: var(--mist);
  background: rgba(16,45,66,.58);
  line-height: 1.55;
}

.empty {
  grid-column: 1 / -1;
  padding: 38px 20px;
  text-align: center;
  color: var(--mist);
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(2,10,16,.75);
}

.footer-inner {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #8197a3;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 590px) {
  .topbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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