:root {
  --bg-top: #eef3ea;
  --bg-bottom: #d6e3d1;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(255, 255, 255, 0.65);
  --text-strong: #17211b;
  --text-soft: #425448;
  --accent: #295f4e;
  --accent-strong: #173b31;
  --accent-muted: rgba(41, 95, 78, 0.14);
  --shadow: 0 30px 80px rgba(26, 46, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -10rem;
  right: -8rem;
  background: rgba(255, 255, 255, 0.45);
}

body::after {
  bottom: -12rem;
  left: -10rem;
  background: rgba(41, 95, 78, 0.12);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  width: 100%;
  align-items: start;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-copy,
.camera-card {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.intro {
  margin: 1.4rem 0 0;
  max-width: 38ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.camera-card {
  padding: 1rem;
  animation: slide-up 700ms ease;
}

.camera-toolbar,
.camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toolbar-label {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.88rem;
}

.status-pill::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(41, 95, 78, 0.35);
  animation: pulse 1.8s infinite;
}

.image-frame {
  position: relative;
  margin: 1rem 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(23, 59, 49, 0.22), rgba(255, 255, 255, 0.16)),
    #bccbbf;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  justify-content: flex-start;
}

.image-overlay span {
  background: rgba(23, 33, 27, 0.66);
  color: #f6faf4;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.camera-actions {
  padding: 0.15rem 0.25rem 0.1rem;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: #0f2c23;
}

button:active {
  transform: translateY(0);
}

#status-text {
  margin: 0;
  color: var(--text-soft);
  text-align: right;
  font-size: 0.95rem;
}

/* ── Weather card ─────────────────────────────────────────────────────── */

.weather-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.weather-time {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.weather-now {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.weather-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.weather-temp {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-strong);
}

.weather-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-left: auto;
  text-align: right;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.weather-forecast {
  display: flex;
  gap: 0.25rem;
  padding-top: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.weather-forecast::-webkit-scrollbar {
  display: none;
}

.forecast-item {
  flex: 1;
  min-width: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.25rem;
  border-radius: 14px;
  background: var(--accent-muted);
}

.forecast-day {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: capitalize;
}

.forecast-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.forecast-temp {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-strong);
}

.image-frame img {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transition: transform 250ms ease;
}

.lightbox.open img {
  animation: lightbox-in 250ms ease;
}

@keyframes lightbox-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(41, 95, 78, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(41, 95, 78, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(41, 95, 78, 0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-copy {
    align-self: auto;
  }

  .left-col {

  .hero-copy {
    padding: 2rem;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
    padding: 0.5rem 0;
  }

  .hero-copy,
  .camera-card {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 1.4rem;
  }

  .camera-card {
    padding: 0.8rem;
  }

  .camera-toolbar,
  .camera-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  #status-text {
    text-align: left;
  }
}