:root {
  --bg: #f5f0e6;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-strong: #ffffff;
  --line: rgba(24, 40, 19, 0.09);
  --text: #132112;
  --muted: #536653;
  --brand: #587d42;
  --brand-deep: #2d4d2f;
  --accent: #d8bc78;
  --shadow: 0 20px 40px rgba(20, 31, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(116, 166, 88, 0.12), transparent 35%),
    linear-gradient(180deg, #f8f4ee 0%, #eef5eb 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1100px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.topbar,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.84rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.eyebrow,
.kicker,
.meta-label {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.72rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.status-live {
  background: rgba(87, 141, 71, 0.12);
  color: var(--brand-deep);
  border: 1px solid rgba(87, 141, 71, 0.2);
}

.status-offline {
  background: rgba(124, 135, 130, 0.12);
  color: #4f5b52;
  border: 1px solid rgba(79, 91, 82, 0.2);
}

.recording-dot,
.offline-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
}

.recording-dot {
  background: #d43a3a;
  box-shadow: 0 0 0 0 rgba(212, 58, 58, 0.6);
  animation: pulse-dot 1.5s infinite;
}

.offline-dot {
  background: #7a7f7b;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 58, 58, 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(212, 58, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 58, 58, 0);
  }
}

.content {
  display: grid;
  gap: 1rem;
}

.about-content {
  display: grid;
  gap: 1rem;
}

.about-hero {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
}

.about-copy {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1rem;
}

.about-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.about-copy > p:not(.kicker) {
  max-width: 35rem;
  color: var(--muted);
  line-height: 1.7;
}

.back-link {
  width: fit-content;
  margin-top: 0.5rem;
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.house-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #182119;
}

.house-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.house-photo figcaption {
  padding: 0.75rem 0.9rem;
  color: #c4d0c1;
  background: #182119;
  font-size: 0.78rem;
  line-height: 1.4;
}

.about-facts {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.about-facts-heading h3 {
  margin-top: 0.3rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.fact-list {
  display: grid;
  gap: 0.75rem;
}

.fact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.fact-number {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fact-item h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.fact-item p {
  color: var(--muted);
  line-height: 1.55;
}

.card {
  border-radius: 26px;
  padding: 1rem;
}

.hero {
  display: grid;
  gap: 1rem;
}

.hero-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.hero-copy p:last-child {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
}

.hero-meta > div {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
}

.meta-label {
  display: block;
  margin-bottom: 0.4rem;
}

.stream-panel {
  display: grid;
  gap: 0.9rem;
}

.events-panel {
  display: grid;
  gap: 1rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h3 {
  margin-top: 0.2rem;
}

.event-count {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(88, 125, 66, 0.12);
  color: var(--brand-deep);
  font-weight: 700;
}

.event-list {
  display: grid;
  gap: 0.65rem;
}

.event-item {
  display: flex;
  width: 100%;
  font: inherit;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.38);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.event-item:hover,
.event-item:focus-visible {
  border-color: rgba(88, 125, 66, 0.45);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.event-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-deep);
  color: white;
  font-size: 0.7rem;
}

.event-details {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.event-details span,
.events-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-arrow {
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.clip-modal[hidden] {
  display: none;
}

.clip-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.clip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 12, 0.78);
}

.clip-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: min(92vh, 800px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: #121b14;
  color: #f4f7f3;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.clip-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.clip-dialog .kicker {
  color: #aebbae;
}

.clip-dialog h2 {
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f3;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.clip-player {
  display: block;
  width: 100%;
  max-height: calc(92vh - 6rem);
  border-radius: 12px;
  background: #050805;
}

body.modal-open {
  overflow: hidden;
}

.stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-dot {
  color: #d14343;
  font-size: 1.15rem;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.video-shell {
  position: relative;
  background: #0f160f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  min-height: 260px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08)),
    #1a221b;
}

.offline-state {
  min-height: 260px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.55rem;
  padding: 2rem;
  text-align: center;
  color: #e8eee8;
  background:
    radial-gradient(circle at center, rgba(111, 145, 110, 0.14), transparent 42%),
    #182119;
}

.offline-state strong {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.offline-state p {
  max-width: 28rem;
  color: #aebbae;
  line-height: 1.55;
}

.offline-state-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(174, 187, 174, 0.3);
  border-radius: 50%;
  color: #aebbae;
  font-size: 1.5rem;
  line-height: 1;
}

.stream-overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(15, 22, 15, 0.65);
  color: #f7f9f7;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.8rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.mini-card {
  display: grid;
  gap: 0.5rem;
}

.mini-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.mini-card p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 700px) {
  .page-shell {
    padding-top: 1.25rem;
  }

  .hero {
    grid-template-columns: 1.5fr 0.9fr;
    align-items: center;
  }

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

  .about-hero {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
    padding: 1.25rem;
  }

  .about-facts {
    grid-template-columns: 0.8fr 1.5fr;
    align-items: start;
    padding: 1.25rem;
  }

  .fact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .fact-item {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 1rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.85rem 1rem;
  }

  .brand-wrap {
    gap: 0.7rem;
  }

  .status-pill {
    font-size: 0.72rem;
  }

  .card {
    padding: 0.9rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.78rem;
  }

  .clip-modal {
    padding: 0;
  }

  .clip-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    padding: 0.9rem;
  }

  .clip-dialog-header {
    flex: 0 0 auto;
  }

  .clip-player {
    max-height: none;
  }
}
