* {
  box-sizing: border-box;
}

:root {
  --calmnews-content-width: 850px;
  --calmnews-frame-width: 1100px;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #0b0c10;
  color: #e8e8e8;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 12, 16, 0.92);
  border-bottom: 1px solid #232633;
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  color: #f2f2f2;
  font-family: "Avenir Next", Avenir, system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
}

.brand-name {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.brand-claim {
  color: #f2f4f8;
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.brand:hover .brand-name,
.brand:hover .brand-claim {
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  color: #d7d7d7;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.nav a:hover,
.nav a.primary {
  color: #ffffff;
  background: #1b1f2a;
}

.wrap {
  width: 100%;
  flex: 1 0 auto;
}

.hero {
  padding: 10px 0 24px;
}

.page-shell {
  width: 100%;
  max-width: var(--calmnews-frame-width);
  margin: 0 auto;
  padding: 24px 16px 36px;
  flex: 1 0 auto;
}

.page-frame {
  width: 100%;
  padding: clamp(18px, 3.5vw, 40px) clamp(14px, 8vw, 122px) 32px;
  background: #101927;
  border: 1px solid #263650;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(0,0,0,.34);
}

.page-panel {
  max-width: var(--calmnews-content-width);
  margin: 0 auto;
  background: #13151a;
  border: 1px solid #232633;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.page-panel h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.page-panel h2 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.page-panel p {
  color: #d7d7d7;
  line-height: 1.55;
  margin: 0 0 14px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.source-card {
  background: #0f1116;
  border: 1px solid #232633;
  border-radius: 10px;
  padding: 12px;
  min-height: 104px;
}

.source-card strong {
  display: block;
  margin-bottom: 6px;
}

.source-meta {
  color: #9ba2b4;
  font-size: 13px;
  line-height: 1.4;
}

.text-link {
  color: #9fb4ff;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

footer {
  max-width: var(--calmnews-frame-width);
  margin: 0 auto;
  padding: 0 16px 26px;
  color: #9ba2b4;
  font-size: 13px;
  width: 100%;
  flex: 0 0 auto;
}

.tagline {
  border-top: 1px solid #232633;
  padding-top: 14px;
}

@media (max-width: 720px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand {
    gap: 10px;
    white-space: normal;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-claim {
    font-size: 20px;
  }

  .nav a {
    padding: 7px 8px;
  }

  .page-shell {
    padding: 14px 10px 28px;
  }

  .page-frame {
    border-radius: 14px;
    padding: 12px;
  }

  .page-panel {
    border-radius: 12px;
    padding: 16px;
  }

  .page-panel h1 {
    font-size: 24px;
  }
}
