:root{
  --bk-bg:#000;
  --bk-text:#f9fafb;
  --bk-muted:#9ca3af;
  --bk-border:#1f2937;
  --bk-red:#e11d48;
  --bk-green:#16a34a;
  --bk-yellow:#f59e0b;
  --bk-accent: var(--bk-red);
}

/* Base */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bk-bg);
  color: var(--bk-text);
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: var(--bk-bg);
  border-bottom: 4px solid var(--bk-accent);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 48px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 14px;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--bk-yellow);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 20px;
}
.hero img {
  max-width: 240px;
  height: auto;
  margin-bottom: 20px;
}
.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.hero p {
  color: var(--bk-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.time-block {
  background: #111;
  border: 2px solid var(--bk-green);
  border-radius: 10px;
  padding: 12px 16px;
}
.time-block:nth-child(1) { border-color: var(--bk-red); }
.time-block:nth-child(2) { border-color: var(--bk-yellow); }
.time-block:nth-child(3) { border-color: var(--bk-green); }
.time-block:nth-child(4) { border-color: var(--bk-red); }
.time-block .num {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  text-align: center;
}
.time-block .lbl {
  font-size: 0.8rem;
  color: var(--bk-muted);
  text-align: center;
}

/* Sections */
section {
  padding: 40px 0;
}
h3 {
  margin-bottom: 12px;
}
.card {
  background: #111;
  border: 1px solid var(--bk-border);
  border-radius: 12px;
  padding: 18px;
}

/* Buttons */
.btn {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.btn.red { background: var(--bk-red); color: #fff; }
.btn.green { background: var(--bk-green); color: #fff; }
.btn.yellow { background: var(--bk-yellow); color: #000; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 10px;
}
.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--bk-border);
  color: var(--bk-muted);
}

.tree {
  text-align: center;
}
.tree .founders {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.tree .person {
  max-width: 180px;
}
.tree .person img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--bk-green);
}
.tree .person p {
  margin-top: 8px;
  font-size: 0.9rem;
}
/* Global: never let images overflow on small screens */
img { max-width: 100%; height: auto; }

/* Mobile tweaks */
@media (max-width: 480px) {
  /* Header logo + title */
  .brand img { height: 36px; }
  .brand h1 { font-size: 1.25rem; }

  /* Hero logo */
  .hero img { max-width: 140px; margin-bottom: 12px; }

  /* Countdown blocks a bit tighter */
  .time-block { padding: 10px 12px; }
  .time-block .num { font-size: 1.3rem; }
  .time-block .lbl { font-size: 0.75rem; }

  /* Gallery: smaller tiles, two per row */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery img { height: 110px; border-radius: 8px; }

  /* Family tree portraits */
  .tree .founders { gap: 16px; }
  .tree .person { max-width: 120px; }
  .tree .person img { border-width: 1.5px; }

  /* Buttons */
  .btn { padding: 10px 12px; font-size: 0.95rem; }
}
