:root {
  --header-height: 74px;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --blue: #2385ff;
  --blue-hover: #4b9cff;
  --border: rgba(255, 255, 255, 0.52);
}

* {
  box-sizing: border-box;
}

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

html {
  background: #080b0e;
}

body {
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.site-header {
  height: var(--header-height);
  padding: 0 clamp(24px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #07090c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 10;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 22px;
  height: 20px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.brand-mark span {
  display: block;
  width: 5px;
  border-radius: 1px;
  background: var(--blue);
}

.brand-mark span:nth-child(1) {
  height: 10px;
}

.brand-mark span:nth-child(2) {
  height: 15px;
}

.brand-mark span:nth-child(3) {
  height: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("../images/slepikas-family-background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 6, 9, 0.63) 0%,
      rgba(3, 6, 9, 0.35) 40%,
      rgba(3, 6, 9, 0.28) 60%,
      rgba(3, 6, 9, 0.58) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 5, 8, 0.10) 0%,
      rgba(2, 5, 8, 0.10) 62%,
      rgba(2, 5, 8, 0.66) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100% - 48px));
  text-align: center;
  transform: translateY(-20px);
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.70rem, 1vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.24em;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.065em;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.25);
}

.tagline {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.38);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.button {
  min-width: 188px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px rgba(35, 133, 255, 0.20);
}

.button-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.button-secondary {
  color: #fff;
  border: 1px solid var(--border);
  background: rgba(7, 10, 14, 0.20);
  backdrop-filter: blur(4px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.78);
}

.hero-footer {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 4vw, 58px);
  right: clamp(24px, 4vw, 58px);
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  font-weight: 600;
}

.hero-footer p {
  margin: 0;
}

.anchor-target {
  position: absolute;
}

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 20px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .hero-content {
    width: min(100% - 32px, 620px);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.3rem);
  }

  .hero-actions {
    width: min(340px, 100%);
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-footer {
    left: 20px;
    right: 20px;
    bottom: 18px;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .site-brand {
    font-size: 0.92rem;
  }

  .site-nav {
    gap: 13px;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .hero-footer p:last-child {
    display: none;
  }
}

/* October portal: quieter primary action */
.button-primary {
  background: rgba(18, 24, 31, 0.58);
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(5px);
}

.button-primary:hover {
  background: rgba(35, 133, 255, 0.32);
  border-color: rgba(93, 164, 255, 0.85);
}


/* ==========================================================
   FAMILY DIRECTORY
   ========================================================== */

.directory-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(35,133,255,.10), transparent 32rem),
    #0a0d11;
}

.directory-page .site-nav a.active {
  color: #fff;
}

.directory-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0 100px;
}

.directory-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

.directory-heading .eyebrow {
  color: #6caeff;
  margin-bottom: 18px;
}

.directory-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.directory-heading > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.66);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

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

.person-tile {
  min-height: 190px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 26px;

  color: #fff;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.035);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

a.person-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(108,174,255,.52);
  background: rgba(35,133,255,.07);
}

.person-initial {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);

  font-size: 1.55rem;
  font-weight: 750;
}

.person-copy h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -.02em;
}

.person-copy p {
  margin: 9px 0 18px;
  color: rgba(255,255,255,.58);
  font-size: .9rem;
}

.person-copy span {
  color: #78b5ff;
  font-size: .82rem;
  font-weight: 700;
}

.future-member {
  opacity: .55;
}

.future-member .person-initial {
  border-style: dashed;
}

@media (max-width: 760px) {
  .directory-shell {
    width: min(100% - 32px, 620px);
    padding-top: 60px;
  }

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

  .person-tile {
    min-height: 160px;
    padding: 24px;
  }
}
