/* Homepage polish: quiet surfaces, clearer hierarchy and readable metadata. */
body {
  --bg: #0b0e13;
  --text: #edf1f6;
  --muted: #a5afbf;
  --accent: #8fc4ff;
  --surface-solid: #141a23;
  background: var(--bg);
}
body::before { display: none; animation: none; }
::selection { background: #8fc4ff; color: #101722; }
header { background: #0b0e13; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
header nav a { color: #a5afbf; }
header nav a.active, header nav a:hover { color: #f3f6fa; background: #192330; }
main .home-hero {
  display: block;
  padding: 42px 40px 30px;
  margin-top: 24px;
  margin-bottom: 42px;
  text-align: left;
  border: 1px solid #29313d;
  border-radius: 20px;
  background: #141a23;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}
main .home-hero::before,
main .home-hero-btn-main::after { display: none; animation: none; }
main .home-hero h1 {
  max-width: 1050px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.16;
  letter-spacing: -.025em;
  color: #f3f6fa;
  background: none;
  -webkit-text-fill-color: currentColor;
  hyphens: none;
  overflow-wrap: normal;
}
main .home-hero p { margin-left: 0; margin-right: 0; font-size: 16px; line-height: 1.65; }
main .home-hero .home-hero-lead { max-width: 700px; margin-bottom: 24px; hyphens: none; overflow-wrap: normal; }
main .home-hero-cta { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
main .home-hero-btn { border-radius: 12px; min-height: 48px; padding: 12px 20px; transition: background-color .18s, border-color .18s, color .18s; }
main .home-hero-btn:hover,
main .home-hero-btn:active { transform: none; box-shadow: none; }
main .home-hero-btn-main {
  background: #8fc4ff;
  color: #102033;
  border: 1px solid #8fc4ff;
  box-shadow: none;
}
main .home-hero-btn-main:hover { background: #afd6ff; color: #102033; }
main .home-hero-btn-ghost { background: transparent; border-color: #3b4656; color: #e2e8f0; }
main .home-hero-btn-ghost:hover { background: #202b39; border-color: #66768b; }
main .home-hero-note { display: block; margin-top: 16px; color: #a5afbf; line-height: 1.6; }
main .home-about {
  max-width: none;
  margin: 24px 0 0;
  border: 0;
  border-top: 1px solid #303a48;
  border-radius: 0;
  background: none;
}
main .home-about summary { padding: 17px 0 0; min-height: 48px; color: #c5cfdd; }
main .home-about-body { padding: 18px 0 0; }
main .home-about-body p, main .home-about-list { color: #aeb9c8; }
main .home-hero.home-hero-member { margin-top: 28px; }
main .news-section-hd { margin-bottom: 20px; animation: none; }
main .news-section-ttl { font-size: 28px; letter-spacing: -.02em; }
main .news-grid { gap: 24px; }
main .news-card-wrap:nth-child(n) { animation: none; opacity: 1; transform: none; }
main .news-card {
  border-color: #29313d;
  border-radius: 16px;
  background: #141a23;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
main .news-card:active { transform: none; }
main .news-card-cover { background: #10151d; }
main .news-card-cover::after { display: none; background: none; }
main .news-card-cover img { transform: none; transition: none; }
main .news-card-body { padding: 20px; }
main .news-card-title { font-size: 17px; line-height: 1.5; color: #edf1f6; margin-bottom: 18px; }
main .news-card-reactions { gap: 8px; border-color: #2c3542; padding-top: 14px; }
main .react-btn { color: #c0cad8; background: #1c2532; border-color: #374355; }
main .react-btn.disabled { opacity: 1; color: #aab7c9; background: transparent; border-color: #323d4c; }
main .views-pill, main .comments-pill { color: #aebacc; }
main .news-card-date-badge { background: #111821; color: #e3eaf4; border-color: #3a4759; backdrop-filter: none; }
main .news-card-fresh-badge { animation: none; background: #243d53; color: #c2e3ff; border-color: #466580; backdrop-filter: none; }
main :is(a, button, summary):focus-visible, header a:focus-visible {
  outline: 3px solid #8fc4ff;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  main .news-card:hover { transform: translateY(-3px); border-color: #66788e; box-shadow: 0 10px 28px #0003; }
  main .news-card:hover .news-card-cover img { transform: none; }
}
@media (max-width: 720px) {
  main .home-hero { padding: 28px 24px 22px; margin-top: 16px; margin-bottom: 30px; }
  main .home-hero h1 { font-size: clamp(27px, 5.5vw, 36px); }
  main .home-hero p { font-size: 15px; }
  main .home-hero-btn { padding: 12px 16px; }
  main .news-grid { gap: 18px; }
  main .news-card-body { padding: 18px; }
  main .news-section-ttl { font-size: 25px; }
}
@media (max-width: 420px) {
  main .home-hero { padding: 24px 20px 20px; }
  main .home-hero-cta { gap: 8px; }
  main .home-hero-cta > .home-hero-btn-main { width: 100%; justify-content: center; }
  main .home-hero-btn-ghost { flex: 1; justify-content: center; padding: 11px 10px; }
  main .news-card-title { font-size: 16px; }
}
@media (pointer: coarse) {
  main .react-btn { min-height: 44px; padding: 8px 12px; }
}
/* Keep the short head-unit layout compact without inheriting the old hero grid. */
@media (min-width: 900px) and (max-width: 1100px) and (max-height: 700px) {
  main .home-hero { padding: 22px 24px; margin-top: 12px; margin-bottom: 24px; }
  main .home-hero h1 { font-size: 28px; margin-bottom: 12px; }
  main .home-hero .home-hero-lead { margin-bottom: 16px; }
  main .home-about { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main *, main *::before, main *::after { animation: none !important; transition: none !important; }
}
