:root {
  color-scheme: dark;
  color: #edf6ff;
  background: #05070d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #05070d;
  --paper: #0d1424;
  --paper-soft: #111d33;
  --ink: #dceaff;
  --ink-strong: #f6fbff;
  --muted: #98a7bd;
  --muted-strong: #bdcbe0;
  --border: rgba(128, 153, 193, 0.28);
  --border-strong: rgba(117, 207, 255, 0.42);
  --accent: #6f5cff;
  --accent-strong: #9b8cff;
  --cyan: #27d9ef;
  --cyan-soft: rgba(39, 217, 239, 0.14);
  --violet-soft: rgba(111, 92, 255, 0.16);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(180deg, #05070d 0%, #08111f 48%, #05070d 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.banner-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1424;
  box-shadow: var(--shadow);
}

.banner-section::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.08), rgba(5, 7, 13, 0.32));
  content: "";
  pointer-events: none;
}

.hero-banner {
  display: block;
  width: 100%;
  aspect-ratio: 1983 / 793;
  max-height: 390px;
  filter: brightness(0.78) saturate(1.08);
  object-fit: cover;
  object-position: center;
}

.profile-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: -28px 0 18px;
  padding: 34px 30px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 28, 49, 0.96), rgba(10, 27, 43, 0.94)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-avatar {
  display: block;
  width: 128px;
  height: 128px;
  margin-top: -46px;
  border: 4px solid rgba(237, 246, 255, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, #121b30, #0e2a3a);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  object-fit: contain;
  padding: 14px;
}

.profile-copy {
  min-width: 0;
  padding-top: 2px;
}

.network-label,
.profile-hero h1,
.profile-hero p,
.principles-section strong,
.principles-section span,
.feed-section h2,
.feed-section p,
.post-card h3,
.post-card p {
  margin: 0;
}

.network-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-hero h1 {
  max-width: 13ch;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: clamp(2.3rem, 4.4vw, 4.25rem);
  line-height: 1.02;
  text-wrap: balance;
}

.profile-handle {
  margin-top: 12px;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.profile-hero [data-profile-bio] {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.62;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.profile-links a,
[data-verification-status] {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet-soft), var(--cyan-soft));
  color: #dcfaff;
  font-size: 0.86rem;
  font-weight: 780;
  text-decoration: none;
}

.profile-links a:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.principles-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.principles-section article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 20, 36, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.principles-section strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.principles-section span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feed-section,
.follow-section {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 20, 36, 0.94);
  box-shadow: var(--shadow);
}

.follow-section {
  margin-top: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h2 {
  color: var(--ink-strong);
  font-size: 1.2rem;
}

.section-header p {
  margin-top: 5px;
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 12px;
}

.follow-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
}

.follow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.follow-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(128, 153, 193, 0.22);
  border-radius: 8px;
  background: rgba(10, 16, 29, 0.72);
  color: inherit;
  text-decoration: none;
}

.follow-card:hover {
  border-color: var(--cyan);
}

.follow-card strong,
.follow-card span {
  overflow-wrap: anywhere;
}

.follow-card strong {
  color: var(--ink-strong);
  font-size: 0.94rem;
}

.follow-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.post-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 16, 29, 0.82);
}

.post-card h3 {
  color: var(--ink);
  font-size: 0.92rem;
}

.post-card p {
  margin-top: 10px;
  color: #cfddf0;
  font-size: 1.04rem;
  line-height: 1.6;
}

.post-social-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.post-social-summary > strong {
  margin-right: 2px;
  color: var(--ink);
  font-size: 0.82rem;
}

.post-social-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(128, 153, 193, 0.2);
  border-radius: 8px;
  background: rgba(17, 29, 51, 0.8);
  color: #b9caff;
  font-size: 0.82rem;
  font-weight: 760;
}

.social-icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.post-comments {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.post-comment {
  padding: 10px 12px;
  border: 1px solid rgba(128, 153, 193, 0.18);
  border-radius: 8px;
  background: rgba(17, 29, 51, 0.58);
}

.post-comment strong {
  display: block;
  color: var(--ink);
  font-size: 0.8rem;
}

.post-comment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-comment span {
  color: var(--muted);
  font-size: 0.75rem;
}

.post-comment p {
  margin-top: 5px;
  font-size: 0.9rem;
}

.post-card code {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.technical-details {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.technical-details summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.technical-details a {
  display: inline-flex;
  margin: 10px 12px 0 0;
  color: var(--accent-strong);
}

.post-details {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(10, 16, 29, 0.78);
}

@media (max-width: 920px) {
  .principles-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px 12px 36px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: -24px 0 14px;
    padding: 18px 20px 22px;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
    margin-top: -10px;
    padding: 10px;
  }

  .profile-hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .principles-section {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-section,
  .post-card {
    padding: 18px;
  }
}
