:root { --teal:var(--cyan); --gold:var(--amber); --bg:var(--paper); }
body,html {background:var(--paper);color:var(--ink)}
.site-header {background:color-mix(in srgb,var(--paper) 94%,transparent);gap:1.2rem}
.header-actions{gap:.65rem}.site-nav{gap:1rem}
.theme-toggle {border:1px solid var(--line);border-radius:2px;background:var(--panel);color:var(--muted);padding:.6rem .8rem;font-size:.7rem;white-space:nowrap;cursor:pointer;min-height:36px}
.theme-toggle:hover{color:var(--ink);border-color:var(--muted)}
.button--signal,.header-join:hover {color:var(--accent-ink)}
.home-hero__lede,.home-grid__copy,.principle p,.latest-list,.story-card p {color:var(--muted)}
.site-footer{display:grid;grid-template-columns:1fr auto;gap:2rem;margin-top:5rem;padding-top:2rem;padding-bottom:2rem;border-top:1px solid var(--line)}
.site-footer p{font-size:.8rem;color:var(--muted)}
.site-footer>div:first-child{text-align:left}.site-footer p{text-align:left;margin-top:.5rem}
.site-footer nav{display:flex;gap:1rem;flex-wrap:wrap;align-content:start;justify-content:end;font-size:.75rem}
.site-footer .discovery{grid-column:1/-1;display:flex;gap:1.25rem;flex-wrap:wrap;padding-top:1rem;border-top:1px solid var(--line);font-size:.68rem;color:var(--dim)}
.site-footer a:hover{color:var(--signal)}
.account-menu,.mobile-menu,.community-dialog,.community-modal,.community-form,.account-panel,.community-status {background:var(--panel);color:var(--ink);border-color:var(--line)}
.header-sign-in,.community-section button,.account-page button,.community-section textarea{background:var(--panel);color:var(--ink);border-color:var(--line)}
.header-sign-in .community-icon{color:var(--violet)}
.header-actions .header-join{color:var(--accent-ink)}
.feed-tools{background:color-mix(in srgb,var(--paper) 96%,transparent)}
.source-balance,.news-photo,.news-photo--thumb,.share-dialog{background:var(--panel);color:var(--ink);border-color:var(--line)}
.story-card__summary,.story-analysis p,.story-analysis li,.news-photo figcaption{color:var(--muted)}
.news-photo figcaption a{color:var(--ink)}
.filter-grid{box-shadow:var(--shadow)}.filter-grid button:hover,.share-dialog button{background:var(--panel-strong);color:var(--ink);border-color:var(--line)}
.interaction-bar .interaction-action{background:var(--panel);border-color:var(--line)}
.interaction-action--upvote{--action-color:var(--signal)}.interaction-action--save{--action-color:var(--gold)}.interaction-action--comments{--action-color:var(--violet)}.interaction-action--share{--action-color:var(--teal)}
.interaction-bar .interaction-action:hover,.interaction-bar .interaction-action[aria-pressed="true"]{background:var(--panel-strong)}
.comments-heading__count{color:var(--violet);border-color:var(--line)}
.account-menu__item:hover,.account-menu__item:focus-visible{background:var(--panel-strong);color:var(--ink)}
input,textarea,select{font:inherit;color:var(--ink);background:var(--panel);border-color:var(--line)}
textarea:focus-visible,select:focus-visible,summary:focus-visible {outline:2px solid var(--signal);outline-offset:4px}
[hidden]{display:none!important}
:root[data-theme="light"] .hero-wordmark img{filter:drop-shadow(0 2px 1px #20202022)}
:root[data-theme="light"] .home-hero__lede,:root[data-theme="light"] .story-title,:root[data-theme="light"] .article-body,:root[data-theme="light"] .story-summary{color:var(--ink)}
:root[data-theme="light"] .news-toolbar,:root[data-theme="light"] .news-search,:root[data-theme="light"] .news-card,:root[data-theme="light"] .story-article,:root[data-theme="light"] .community-comment,:root[data-theme="light"] .account-card {background:var(--panel);color:var(--ink);border-color:var(--line)}
@media(max-width:1050px){.site-nav{display:none}.site-header{grid-template-columns:1fr auto auto;gap:.65rem}.header-actions{gap:.4rem}.site-footer{grid-template-columns:1fr}.site-footer nav{justify-content:start}}
@media(max-width:600px){.header-actions .header-join{display:none}.brand{font-size:.61rem;gap:.4rem}.brand__mark{width:1.65rem;height:1.65rem}.theme-toggle{font-size:.63rem;padding:.5rem .6rem}.site-header{padding-inline:1rem}.header-sign-in span{display:none}.header-sign-in .community-icon{display:block}.header-sign-in{min-width:2.1rem}.site-footer .discovery{gap:.85rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* One shared header, with appearance controls inside its menu. */
.site-header{grid-template-columns:auto 1fr auto auto}
.site-nav{justify-content:center}
.menu-toggle{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;padding:0;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);cursor:pointer}
.menu-toggle i,.menu-toggle i::before,.menu-toggle i::after{display:block;width:16px;height:1.5px;background:currentColor;content:"";transition:transform .18s ease}
.menu-toggle i::before{transform:translateY(-5px)}
.menu-toggle i::after{transform:translateY(3.5px)}
.menu-toggle[aria-expanded="true"] i{transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] i::before{transform:rotate(90deg)}
.menu-toggle[aria-expanded="true"] i::after{display:none}
.mobile-menu{display:grid;position:absolute;top:calc(100% + .6rem);right:var(--gutter);left:auto;width:min(340px,calc(100vw - 2rem));height:auto;max-height:calc(100svh - var(--header-h) - 2rem);overflow-y:auto;padding:.7rem;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);align-content:start;z-index:90}
.mobile-menu a,.mobile-menu .theme-toggle{display:flex;align-items:center;gap:.7rem;min-height:44px;padding:.7rem .85rem;border:0;border-radius:7px;font-size:.85rem;font-weight:500;text-transform:none;letter-spacing:0;color:var(--ink);background:transparent}
.mobile-menu a::before{display:none}
.mobile-menu a:hover,.mobile-menu .theme-toggle:hover{background:var(--panel-strong)}
.mobile-menu .theme-toggle{margin-top:.5rem;border-top:1px solid var(--line);border-radius:0;text-align:left;color:var(--muted)}
.discord-icon{width:20px;height:20px;flex:none}
.header-join,[data-server-join]{display:inline-flex;align-items:center;justify-content:center;gap:.55rem}
.header-sign-in{display:flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;border-radius:9px}
.header-sign-in .community-icon{width:22px;height:22px}
.hero-wordmark .wordmark-light{display:none}
:root[data-theme="light"] .hero-wordmark .wordmark-dark{display:none}
:root[data-theme="light"] .hero-wordmark .wordmark-light{display:block;filter:none}
/* A single footer with quiet, clearly grouped columns. */
.site-footer{grid-template-columns:1.4fr repeat(4,1fr);align-items:start;gap:2rem;padding-block:2.5rem;text-transform:none;letter-spacing:0}
.site-footer .footer-brand{display:block}
.site-footer .footer-brand p{display:block;font-size:.83rem;line-height:1.6;margin-top:.8rem;color:var(--muted)}
.site-footer .footer-column{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.65rem;font-size:.8rem}
.site-footer .footer-column h2{font-size:.67rem;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--ink);margin:0 0 .3rem}
.site-footer .footer-column a{color:var(--muted);line-height:1.6}
.site-footer .footer-column a:hover{color:var(--signal)}
.site-footer .footer-discovery a{font-size:.75rem;color:var(--dim)}
.account-privacy{padding-block:3rem;border-top:1px solid var(--line)}
.account-privacy>p{max-width:70ch;color:var(--muted)}
.account-privacy .privacy-grid{margin-top:2rem}
.account-tools{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}
.account-tools .hub-actions{margin-block:1.5rem}
@media(min-width:1101px){body.menu-open{overflow:auto}}
@media(max-width:1100px){.site-header{grid-template-columns:1fr auto auto}.site-nav{display:none}.site-footer{grid-template-columns:repeat(4,1fr)}.site-footer .footer-brand{grid-column:1/-1}.mobile-menu{right:1rem}}
@media(max-width:600px){.header-actions .header-join{display:inline-flex;padding:.55rem .65rem;font-size:.7rem}.site-header{gap:.5rem}.site-footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1rem}.site-footer .footer-brand{grid-column:1/-1}.header-actions{gap:.4rem}.menu-toggle,.header-sign-in{width:36px;min-width:36px;height:36px}.brand{font-size:.6rem}}

.site-footer{grid-template-columns:repeat(4,minmax(0,1fr))}
.site-footer .footer-brand{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:1.25rem}
.site-footer .footer-brand p{margin:0;white-space:nowrap}
@media(max-width:600px){.site-footer{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer .footer-brand{gap:.75rem}.site-footer .footer-brand .brand{font-size:.62rem;white-space:nowrap}.site-footer .footer-brand p{font-size:.68rem;letter-spacing:0}}
