@import url('visuals.css');
/* Shared static navigation and page layouts; the existing dark/lime identity stays. */
.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line); }
.site-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-source { color: var(--muted); font: 12px/1.5 "DM Mono", monospace; text-decoration: none; }
.site-source:hover { color: var(--acid); }
.site-header ul, .site-footer ul { list-style: none; padding: 0; margin: 0; }
.desktop-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { display: block; min-height: 44px; padding: 14px 0; color: #aeb6be; text-decoration: none; font: 12px/1.4 "DM Mono", monospace; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--acid); border-color: var(--acid); }
.mobile-menu { display: none; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 14px 20px; background: var(--acid); color: #08090d; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 24px; }
.breadcrumbs { padding-top: 26px; color: #98a2ac; font: 11px/1.7 "DM Mono", monospace; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #59636e; }
.breadcrumbs a { color: #aeb6be; text-decoration: none; }
.breadcrumbs a:hover { color: var(--acid); }
.breadcrumbs [aria-current] { color: var(--text); }
.page-intro { padding: 78px 0 54px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(42px, 6.5vw, 88px); line-height: 1.04; max-width: 1000px; letter-spacing: -.055em; margin: 26px 0; text-wrap: balance; }
.page-intro > p:last-child { color: #aeb6be; font-size: 18px; line-height: 1.8; max-width: 760px; }
.section-page > .band, .section-page > .arch, .section-page > .progress,
.section-page > .ecosystem, .section-page > .people, .section-page > .activity,
.section-page > .updates, .section-page > .blogtease { padding-top: 70px; padding-bottom: 80px; }
.section-page .head { gap: 40px; margin-bottom: 50px; }
.section-page .head > * { min-width: 0; }
.section-page h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.section-page .layer { flex-wrap: wrap; padding-top: 24px; gap: 12px; }
.section-page .layer small { display: block; position: static; flex-basis: 100%; line-height: 1.7; overflow-wrap: anywhere; }
.section-page .layer strong { min-width: 0; }
.section-page .layer span { line-height: 1.7; }
.section-page .peoplegrid { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
.section-page .peoplegrid p { min-height: 0; }
.section-page .peoplegrid h3, .section-page .feeditem a { overflow-wrap: anywhere; }
.section-page .posts { gap: 0; }
.section-page .post { min-height: 320px; }
.section-page .post footer { gap: 16px; flex-wrap: wrap; margin-top: 28px; line-height: 1.7; }
.page-directory { padding: 64px 0 80px; }
.page-directory h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.05em; margin: 24px 0 40px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #10151b, #0b0e12); padding: 28px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.portal-card:hover { border-color: #6f9940; transform: translateY(-3px); }
.portal-card > span { color: var(--acid); font: 10px/1.5 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.portal-card h3 { font-size: 25px; line-height: 1.25; letter-spacing: -.025em; margin: 25px 0 14px; }
.portal-card p { color: #98a2ac; font-size: 14px; line-height: 1.8; margin: 0 0 28px; }
.portal-card > b { display: flex; justify-content: space-between; margin-top: auto; color: var(--acid); font: 11px/1.6 "DM Mono", monospace; }
.site-header ~ main > .hero { min-height: 0; padding-top: 80px; padding-bottom: 38px; }
.site-header ~ main > .cta { padding-top: 60px; padding-bottom: 90px; }
.site-header ~ main > .hero .scroll { display: none; }
.site-footer { height: auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; padding: 44px 0; color: #98a2ac; }
.site-footer p { font: 12px/1.8 "DM Mono", monospace; margin: 16px 0 0; }
.site-footer nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 24px; }
.site-footer nav a { display: inline-block; min-height: 40px; padding: 10px 0; font: 12px/1.6 "DM Mono", monospace; color: #aeb6be; }
.site-footer nav a:hover { color: var(--acid); text-decoration: underline; }
.site-footer .site-colophon { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 0; color: #98a2ac; }
.recovery { display: flex; flex-wrap: wrap; gap: 16px; padding: 44px 0 100px; }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; border-top: 1px solid var(--line); }
  .mobile-menu summary { display: flex; justify-content: space-between; cursor: pointer; padding: 16px 0; min-height: 52px; color: var(--text); font: 13px/1.5 "DM Mono", monospace; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { color: var(--acid); }
  .mobile-menu[open] summary span { transform: rotate(45deg); }
  .mobile-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding-bottom: 18px; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .page-intro { padding-top: 50px; padding-bottom: 30px; }
  .page-intro > p:last-child { font-size: 16px; }
  .portal-grid { grid-template-columns: 1fr; }
  .site-topbar { min-height: 72px; gap: 12px; }
  .site-source { font-size: 10px; }
  .section-page > .band, .section-page > .arch, .section-page > .progress,
  .section-page > .ecosystem, .section-page > .people, .section-page > .activity,
  .section-page > .updates, .section-page > .blogtease { padding-top: 45px; padding-bottom: 50px; }
  .site-footer nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-page .peoplegrid { grid-template-columns: 1fr; }
  .page-directory { padding-top: 32px; }
  .portal-card { padding: 24px; }
  .site-header ~ main > .hero { padding-top: 54px; }
  .site-header ~ main > .hero h1 { font-size: clamp(44px, 12vw, 58px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
