:root {
  color-scheme: dark;
  --shell-surface: #222222;
  --surface-base: #151515;
  --surface-card: #1d1d1d;
  --surface-card-soft: #242424;
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.16);
  --text-primary: #f2f2f2;
  --text-secondary: #c9c9c9;
  --text-muted: #999999;
  --accent: #ffffff;
  --content-max: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body { min-height: 100vh; }

a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(34, 34, 34, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-topbar-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 14px 18px 13px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
}

.brand,
a.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  height: 38px;
  line-height: 1;
  color: var(--text-primary);
}

.brand-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand,
a.brand,
.site-nav-link,
a.site-nav-link,
.button,
a.button {
  text-decoration: none;
}

.site-nav {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 34px;
  gap: 8px 10px;
  align-items: stretch;
}

.site-nav-link,
a.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.site-nav-link.is-active,
.site-nav-link[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
}

.site-layout {
  width: min(100%, calc(var(--content-max) + 40px));
  margin: 0 auto;
  padding: 32px 20px 56px;
  flex: 1;
}

.editorial-home,
.legal-shell {
  display: grid;
  gap: 24px;
}

.editorial-hero,
.hero-panel,
.editorial-panel,
.editorial-card,
.legal-panel,
.status-panel,
.info-panel,
.side-panel {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.editorial-hero,
.hero-panel,
.editorial-panel,
.status-panel {
  padding: clamp(26px, 4vw, 46px);
}

.editorial-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.editorial-hero-logo {
  width: 252px;
  height: 252px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.editorial-title,
.status-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 4.3vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy,
.editorial-lead,
.status-copy,
.meta-line,
.footer-note,
.muted,
p,
li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-copy,
.editorial-lead,
.status-copy {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.meta-line,
.footer-note,
.muted { color: var(--text-muted); }

.hero-actions,
.editorial-actions,
.status-actions,
.site-legal-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button,
a.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-weight: 750;
  font-size: 0.93rem;
  line-height: 1;
  cursor: pointer;
}

.button-primary { background: #f2f2f2; color: #171717; border-color: #f2f2f2; }
.button-secondary { background: rgba(255,255,255,0.06); color: var(--text-primary); }

.editorial-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.editorial-card,
.legal-panel,
.card {
  padding: 24px;
}

.editorial-card-wide { grid-column: 1 / -1; }

.editorial-card h2,
.editorial-panel h2,
.legal-panel h2,
.card h2 {
  margin: 10px 0 10px;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.editorial-card p,
.editorial-panel p,
.legal-panel p,
.card p { margin: 10px 0 0; }

.editorial-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  border-bottom: 0;
}

.legal-panel a:not(.button),
.editorial-panel a:not(.button),
.editorial-card a:not(.button),
.status-panel a:not(.button),
.card a:not(.button),
.hero-copy a:not(.button),
.footer-note a:not(.button) {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legal-shell {
  max-width: 900px;
  margin: 0 auto;
}

.legal-panel ul,
.legal-panel ol,
.card ul,
.card ol { padding-left: 1.25rem; }

.site-legal-footer {
  border-top: 1px solid var(--border-subtle);
  background: #181818;
}

.site-legal-footer-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 22px 20px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.site-legal-footer-button { min-height: 36px; font-size: 0.86rem; }
.site-legal-footer-buttons { max-width: 820px; }
.site-legal-footer-meta { margin: 0; color: var(--text-muted); font-size: 0.86rem; }

.share-grid,
.share-grid-single {
  display: grid;
  justify-items: center;
}

.phone-stage { width: min(100%, 430px); }
.phone-stage-share { margin: 0 auto; }
.phone-shell {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 42px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-card);
}
.phone-camera-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #050505;
  z-index: 3;
}
.phone-screen {
  overflow: hidden;
  min-height: 620px;
  border-radius: 32px;
  background: #111;
}
.phone-statusbar,
.feed-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: var(--text-primary);
}
.phone-statusbar { padding-top: 18px; font-size: 0.78rem; }
.phone-statusbar-right { display: inline-flex; gap: 8px; align-items: center; }
.phone-statusbar-pill { width: 20px; height: 10px; border: 1px solid currentColor; border-radius: 999px; }
.feed-appbar { justify-content: flex-start; gap: 9px; border-bottom: 1px solid var(--border-subtle); }
.feed-appbar-logo { width: 22px; height: 22px; }
.feed-appbar-title { font-weight: 800; }
.feed-screen-content { padding: 14px; }
.feed-post-frame,
.post-shell {
  background: #181818;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
}
.post-shell { overflow: hidden; }
.post-header { display: flex; align-items: center; gap: 10px; padding: 14px; }
.avatar,
.avatar-fallback { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #333; display: grid; place-items: center; font-weight: 800; }
.author-meta { min-width: 0; flex: 1; }
.author-name,
.post-date { margin: 0; }
.author-name { color: var(--text-primary); font-weight: 800; line-height: 1.1; }
.post-date { color: var(--text-muted); font-size: 0.78rem; line-height: 1.2; }
.header-more { width: 20px; height: 20px; opacity: .7; }
.post-text { padding: 0 14px 12px; margin: 0; }
.post-media-wrap { background: #0b0b0b; }
.post-media-image,
.post-media-video { width: 100%; max-height: 430px; object-fit: contain; background: #0b0b0b; }
.text-post-panel { min-height: 260px; display: grid; place-items: center; padding: 22px; text-align: center; }
.post-actions { display: flex; gap: 14px; align-items: center; padding: 12px 14px; }
.post-action-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--text-secondary); background: transparent; }
.post-action-button img { width: 22px; height: 22px; }
.post-action-count { font-size: 0.86rem; }
.post-footer-divider { height: 1px; background: var(--border-subtle); }
.phone-bottom-copy { text-align: center; margin-top: 18px; }

.status-panel { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; justify-items: center; text-align: center; }
.loader { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.18); border-top-color: #fff; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { color: var(--text-muted); }
.layout { display: grid; gap: 20px; }

@media (max-width: 860px) {
  .site-topbar-inner { padding: 12px 12px 12px; gap: 10px; }
  .site-nav { width: min(100%, 560px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 34px; gap: 8px; }
  .site-nav-link,
  a.site-nav-link { font-size: 0.78rem; padding: 0 8px; }
  .site-layout { padding: 24px 14px 46px; }
  .editorial-section-grid,
  .editorial-two-columns { grid-template-columns: 1fr; }
  .editorial-card-wide { grid-column: auto; }
}

@media (max-width: 420px) {
  .brand-logo { width: 30px; height: 30px; min-width: 30px; }
  .brand-wordmark { font-size: 1.06rem; }
  .site-nav-link,
  a.site-nav-link { font-size: 0.73rem; }
  .hero-title,
  .editorial-title,
  .status-title { font-size: 2rem; }
}
