html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff9f0 0%, #f4efe7 100%);
  color: #2d241c;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.eyebrow {
  margin-bottom: .35rem;
  color: #9a5b23;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-banner {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0 2.25rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(114, 79, 45, 0.15);
  border-radius: 1.5rem;
  background: rgba(255, 251, 245, 0.88);
  box-shadow: 0 24px 70px rgba(84, 54, 28, 0.12);
}

.hero-copy h1 {
  margin: 0;
  color: #4a2f1b;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.hero-intro {
  max-width: 34rem;
  margin: 1rem 0 1.1rem;
  color: #6f5845;
  font-size: 1.05rem;
}

.goat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.goat-tags span {
  padding: .55rem .75rem;
  border: 1px solid rgba(154, 91, 35, 0.16);
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.9);
  color: #65472f;
}

.social-link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin-top: 1rem;
  color: #6b4423;
  font-weight: 600;
  text-decoration: none;
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.social-link:hover {
  color: #9a5b23;
}

.hero-gallery {
  position: relative;
  min-height: 260px;
}

.hero-photo {
  overflow: hidden;
  margin: 0;
  border: 6px solid white;
  border-radius: 1.25rem;
  box-shadow: 0 18px 36px rgba(64, 42, 24, 0.18);
}

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

.hero-photo-main {
  width: min(100%, 460px);
  height: 250px;
  margin-left: auto;
}

.hero-photo-secondary {
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: min(48%, 220px);
  height: 160px;
}

.stream-intro {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

.stream-intro h2 {
  margin: 0;
  color: #4a2f1b;
}

.stream-intro p {
  max-width: 28rem;
  margin: 0;
  color: #725b48;
}

.maintenance-toggle {
  padding: .28rem .55rem;
  border: 1px solid rgba(114, 79, 45, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.76);
  color: #6b4423;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
}

.maintenance-toggle:hover {
  border-color: #9a5b23;
  color: #9a5b23;
}

.maintenance-message {
  width: min(100%, 760px);
  margin: 0 auto 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(154, 91, 35, 0.18);
  border-radius: 1rem;
  background: rgba(255, 244, 224, 0.95);
  box-shadow: 0 18px 48px rgba(84, 54, 28, 0.12);
}

.maintenance-message h2 {
  margin: 0;
  color: #4a2f1b;
}

.maintenance-message p:last-child {
  margin: .45rem 0 0;
  color: #725b48;
}

.camera-viewer {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.camera-picker-heading {
  width: min(100%, 760px);
}

.camera-picker-heading p {
  margin-bottom: 0;
}

.camera-picker-heading p:last-child {
  margin-top: .2rem;
  color: #725b48;
}

.camera-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  width: min(100%, 760px);
}

.camera-tab {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: .7rem 1rem;
  border: 1px solid rgba(114, 79, 45, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.76);
  color: #6b4423;
  font-weight: 600;
}

.viewer-count {
  color: #806953;
  font-size: .82rem;
  font-weight: 600;
}

.camera-tab .viewer-count {
  padding: .18rem .45rem;
  border-radius: 999px;
  background: rgba(128, 105, 83, 0.12);
}

.camera-tab.is-active .viewer-count {
  color: #fff4df;
  background: rgba(255, 250, 242, 0.18);
}

.viewer-count-panel {
  margin-top: .2rem;
}

.camera-tab.is-active {
  border-color: #9a5b23;
  background: #9a5b23;
  color: #fffaf2;
}

.camera-panel {
  display: none;
}

.camera-panel.is-active {
  display: block;
  width: min(100%, 760px);
}

.camera-card,
.empty-state {
  overflow: hidden;
  border: 1px solid rgba(114, 79, 45, 0.15);
  border-radius: 1rem;
  background: rgba(255, 252, 247, 0.95);
  box-shadow: 0 18px 48px rgba(84, 54, 28, 0.12);
}

.camera-card {
  padding: 1rem;
}

.camera-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.camera-heading h2 {
  margin: 0;
  color: #4a2f1b;
  font-size: 1.15rem;
}

.camera-heading p,
.camera-description {
  margin: .2rem 0 0;
  color: #806953;
}

.camera-frame {
  display: none;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: .8rem;
  background: #22170f;
}

.camera-frame.is-active {
  display: block;
}

.camera-description {
  margin-top: .85rem;
}

.empty-state {
  padding: 1rem;
}

.footer {
  border-top: 1px solid rgba(114, 79, 45, 0.15);
}

.footer-inner {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  padding-block: .85rem;
}

@media (min-width: 900px) {
  .hero-banner {
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  }
}

@media (max-width: 700px) {
  .hero-gallery {
    min-height: auto;
  }

  .hero-photo-main {
    height: 220px;
  }

  .hero-photo-secondary {
    position: static;
    width: 55%;
    height: 140px;
    margin-top: .8rem;
  }

  .stream-intro {
    display: block;
  }

  .stream-intro p {
    margin-top: .5rem;
  }
}
