/* Bylaws box styling */
.bylaws-box {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.13);
  padding: 32px 24px;
  margin: 48px auto 32px auto;
  max-width: 820px;
}
.bylaws-box h1 {
  margin-bottom: 0.7em;
}
.bylaws-box h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.bylaws-box article {
  margin-bottom: 2em;
}
.bylaws-box ul, .bylaws-box ol {
  margin-left: 1.5em;
}
.bylaws-box .updated {
  color: var(--muted);
  font-size: 0.95em;
  margin-top: 2em;
}
:root {
  --bg: #0e1117;
  --panel: #161b22;
  --panel-soft: #1f2630;
  --text: #e6edf3;
  --muted: #9da7b3;
  --gold: #e3b341;
  --gold-strong: #f2c760;
  --border: #30363d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 110;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--gold);
  color: #1f1200;
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 12px;
}

a {
  color: var(--gold-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 2px;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.container {
  width: min(1050px, 92%);
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(10, 14, 19, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  flex: 0 0 auto;
}

.hero-logo {
  display: block;
  width: min(460px, 100%);
  height: auto;
  object-fit: contain;
  margin: 2px 0 16px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.95rem;
}

.nav-link:hover {
  border-color: var(--border);
  background: #1a2028;
}

.nav-link.active {
  border-color: #705216;
  background: #3a2b10;
  color: #ffd980;
}

.hero {
  background: radial-gradient(circle at top right, #2a3350, #111722 55%, #0b0f15 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-home .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-home .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-home .cta-row {
  justify-content: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.lead {
  max-width: 760px;
  color: #cfd8e3;
  margin: 0 0 14px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-primary {
  background: var(--gold);
  color: #1f1200;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  padding: 48px 0;
}

.section-tight-bottom {
  padding-bottom: 8px;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section.alt {
  background: #0b0f14;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid-two {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.feature-card-wrap {
  margin-top: 16px;
}

.named-after-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}

.named-after-thumb {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.daniel-profile-card {
  display: grid;
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 18px;
  align-items: center;
}

.daniel-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.daniel-photo:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.join-grid,
.members-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inline-link {
  font-weight: 600;
}

.section-intro {
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 18px;
}

.member-card {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.member-login-card {
  max-width: 460px;
}

.member-login {
  display: grid;
  gap: 10px;
}

.member-login label {
  font-weight: 600;
}

.member-login input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f141b;
  color: var(--text);
  padding: 10px 12px;
}

.member-login .btn {
  margin-top: 4px;
  justify-self: start;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.note-center {
  text-align: center;
}

.invisible-ink {
  margin-top: 26px;
  color: transparent;
  user-select: text;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.invisible-ink::selection {
  color: var(--gold-strong);
  background: #2a3350;
}

.magic-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.magic-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.magic-spark {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 0 4px rgba(227, 179, 65, 0.22);
  pointer-events: none;
  z-index: 90;
  animation: spark-pop 0.3s ease forwards;
}

.members-reveal {
  animation: members-highlight 1.2s ease;
}

.policy-stack {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.membership-page .section {
  padding: 14px 0;
}

.membership-page .join-grid,
.membership-page .grid-two {
  gap: 10px;
}

.membership-page h2 {
  margin-bottom: 8px;
}

.membership-page .section-intro {
  margin-top: 0;
  margin-bottom: 8px;
}

.membership-page .note {
  margin-top: 8px;
  margin-bottom: 0;
}

.membership-page #join-process {
  padding-bottom: 8px;
}

.membership-page #membership-guidance {
  padding-top: 8px;
}

@keyframes spark-pop {
  from {
    opacity: 0.95;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.1);
  }
}

@keyframes members-highlight {
  0%,
  100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(227, 179, 65, 0.08);
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: #0a0e13;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero-logo {
    width: min(360px, 94%);
    margin-bottom: 16px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav-link {
    white-space: nowrap;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 44px;
  }

  .section {
    padding: 36px 0;
  }

  .card,
  .member-card {
    padding: 16px;
  }

  .daniel-profile-card {
    grid-template-columns: 1fr;
  }

  .daniel-photo {
    max-width: 260px;
  }

  .named-after-card {
    grid-template-columns: 1fr;
  }

  .named-after-thumb {
    max-width: 120px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home .cta-row {
    align-items: center;
  }

  .hero-home .btn {
    min-width: 220px;
  }

  .btn {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-text {
    display: none;
  }

  .hero-logo {
    width: min(280px, 92%);
  }

  body {
    font-size: 15px;
  }

  .container {
    width: 94%;
  }

  .lead {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}