:root{
  --bg0: #0A1628;
  --bg1: #0C1825;
  --card: #0E1B2E;
  --card2: #142137;
  --stroke: #1E3352;
  --text: #E8EDF5;
  --muted: #7A8A9E;
  --muted2: rgba(122, 138, 158, 0.7);
  --teal: #00D9FF;
  --teal2: #00C9B7;
  --shadow: 0 24px 80px rgba(3, 10, 24, 0.65);
  --radius: 18px;
  --radius2: 24px;
  --max: 980px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 50% 10%, rgba(0, 217, 255, 0.16), transparent 60%),
    radial-gradient(900px 650px at 70% 20%, rgba(0, 201, 183, 0.14), transparent 55%),
    radial-gradient(900px 650px at 30% 70%, rgba(20, 33, 55, 0.45), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{ color: var(--text); text-decoration:none; }
a:hover{ opacity:.9; text-decoration:underline; }

.page{
  min-height:100%;
  display:flex;
  justify-content:center;
}
.shell{
  width:100%;
  max-width: var(--max);
  padding: 46px 20px 64px;
}

/* Top hero */
.hero{
  border-radius: var(--radius2);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  backdrop-filter: blur(10px);
}

.hero-small{
  padding: 24px 22px;
}

.hero-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.brand-row{
  display:flex;
  align-items:flex-start;   /* key change */
  justify-content:center;   /* centers the whole group */
  gap:14px;
}

.avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  overflow:hidden;
  border:1px solid rgba(30, 51, 82, 0.7);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  margin-top: 2px;          /* optical alignment */
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%; /* better face framing */
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-top:2px;
}

.brand-name{
  font-size: 32px;
  letter-spacing: .2px;
  font-weight: 700;
  line-height:1.05;
}
.brand-name .accent{
  color: var(--teal);
}
.brand-sub{
  font-size: 13px;
  color: var(--muted);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.4);
  background: rgba(0, 217, 255, 0.12);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.hero-center{
  text-align:center;
  padding: 28px 10px 8px;
}

.h1{
  margin: 10px 0 10px;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: .4px;
}
.h1 .accent{ color: var(--teal); }

.lead{
  margin: 0 auto 14px;
  max-width: 680px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: .1px;
}
.micro{
  margin: 0 auto 18px;
  max-width: 680px;
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .1px;
}

.cta-row{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(14, 27, 46, 0.8);
  color: var(--text);
  cursor:pointer;
  font-weight: 600;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  border: 1px solid rgba(0, 217, 255, 0.65);
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #021018;
  box-shadow: 0 18px 45px rgba(0, 217, 255, 0.2);
}
.btn-primary:hover{ filter: brightness(1.02); }

.nav-row{
  margin-top: 18px;
  display:flex;
  justify-content:center;
  gap: 10px;
  color: var(--muted2);
  font-size: 13px;
}
.nav-link{
  color: var(--muted);
}
.nav-link.active{
  color: var(--text);
  opacity: 1;
}
.nav-separator{ opacity:.35; }

/* Cards/sections */
.section{
  margin-top: 22px;
  display:grid;
  gap: 16px;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  padding: 18px 18px;
}

.card-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.lead{
  font-size: 14px;
  color: var(--muted);
}

.card-sub{
  font-size: 13px;
  color: var(--muted);
}

.form-grid{
  display:grid;
  gap: 12px;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
input{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--card2);
  color: var(--text);
  outline: none;
}
input::placeholder{ color: rgba(122, 138, 158, 0.6); }
input:focus{
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.12);
}

.status{
  font-size: 12px;
  color: var(--muted2);
  min-height: 16px;
}

.form-helper{
  margin-top: -6px;  /* tightens the gap right under the button */
  text-align: center;
}

/* Archive list */
.archive-ul{
  list-style:none;
  margin: 0;
  padding: 0;
  display:grid;
  gap: 10px;
}
.archive-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(14, 27, 46, 0.75);
}
.archive-item a{
  color: var(--text);
  font-weight: 600;
}
.archive-meta{
  color: var(--muted2);
  font-size: 12px;
  white-space:nowrap;
}

.small-note{
  font-size: 12px;
  color: var(--muted2);
}

@media (max-width: 760px){
  .h1{ font-size: 44px; }
  .form-row{ grid-template-columns: 1fr; }
  .hero{ padding: 26px 18px; }
}

/* Keep homepage footer reachable: scroll inside the Recent Issues box */
.recent-scroll{
  max-height: 360px;     /* adjust: 320–420 depending on preference */
  overflow-y: auto;
  padding-right: 6px;    /* avoids scrollbar hugging content */
}

/* Optional: nicer scrollbar (WebKit browsers) */
.recent-scroll::-webkit-scrollbar{ width: 8px; }
.recent-scroll::-webkit-scrollbar-thumb{
  background: rgba(30, 51, 82, 0.7);
  border-radius: 999px;
}
.recent-scroll::-webkit-scrollbar-track{
  background: rgba(14, 27, 46, 0.6);
  border-radius: 999px;
}

/* Footer */
.site-footer{
  margin-top: 48px;
  padding: 28px 0 44px;
}

.site-footer .footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer .footer-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-footer .footer-left,
.site-footer .footer-center,
.site-footer .footer-right{
  flex: 1;
}

.site-footer .footer-left{ text-align: left; }
.site-footer .footer-center{ text-align: center; }
.site-footer .footer-right{
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer .footer-kicker{
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}

.site-footer .footer-author{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.site-footer .footer-brand{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.site-footer .footer-brand .accent{
  color: var(--teal);
}

.site-footer .footer-tagline{
  font-size: 14px;
  color: var(--muted2);
}

.site-footer .footer-connect{
  display:inline-block;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 0;
}

.site-footer .footer-social-wrap{
  display:flex;
}

.site-footer .social{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer .social-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--stroke);
  background: rgba(14, 27, 46, 0.8);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

.site-footer .social-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  background: rgba(20, 33, 55, 0.9);
}

.site-footer .social-btn svg{
  width: 18px;
  height: 18px;
  fill: var(--text);
  opacity: .95;
}

@media (max-width: 760px){
  .site-footer{
    padding: 22px 0 36px;
  }
  .site-footer .footer-row{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer .footer-left,
  .site-footer .footer-right{
    text-align: center;
  }
  .site-footer .footer-right{
    flex-direction: column;
    gap: 8px;
  }
  .site-footer .social{
    justify-content: center;
  }
}
