:root {
  --bg: #0b0f14;
  --surface: #141a22;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #2b3441;
  --link: #93c5fd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #0e131a 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(780px, calc(100vw - 28px));
  margin: 32px auto;
  padding: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topnav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.topnav a {
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
}

main {
  padding: 26px 28px 8px;
}

.about,
.posts,
.single-note {
  max-width: 620px;
}

.about h1,
.posts h1,
.posts h2,
.single-note h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  letter-spacing: -0.01em;
  line-height: 1.06;
  font-weight: 500;
}

.about h1 {
  font-size: clamp(34px, 7vw, 58px);
}

.byline {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.posts {
  margin-top: 34px;
}

.posts h2,
.posts h1 {
  font-size: clamp(26px, 4.5vw, 36px);
}

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

.post-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #111823;
}

.post-date {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-copy {
  margin: 6px 0 0;
  font-size: 16px;
  color: #e5e7eb;
}

.post-copy a {
  transition: color 0.2s ease;
}

.post-copy a:hover {
  color: var(--link);
}

.empty {
  margin-top: 12px;
  color: var(--muted);
}

.single-note h1 {
  margin-top: 8px;
  font-size: clamp(30px, 7vw, 48px);
}

.content {
  margin-top: 16px;
}

.content p {
  margin: 0 0 10px;
  font-size: 18px;
  color: #e5e7eb;
}

.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.content a,
.back-link {
  color: var(--link);
}

.site-footer {
  margin: 18px 28px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .page-shell {
    margin: 10px auto;
    width: calc(100vw - 12px);
    border-radius: 14px;
  }

  .topbar {
    padding: 16px 16px;
  }

  main {
    padding: 18px 16px 6px;
  }

  .site-footer {
    margin: 14px 16px 0;
  }

  .content p,
  .post-copy {
    font-size: 16px;
  }
}
