*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
::selection { background: #F4A7C1; color: #262a4f; }

body {
  background: #262a4f;
  color: #D6D3E4;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 18.5px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ─── Nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(38,42,79,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}
.nav-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.nav-breadcrumb .bc-base { color: #726F98; }
.nav-breadcrumb .bc-sep  { color: #4f4d78; }
.nav-breadcrumb .bc-cur  { color: #F4A7C1; }

/* ─── Container ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 36px;
}

/* ─── Masthead ─── */
.page-header {
  padding: 40px 0 28px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #F4A7C1;
  border-radius: 50%;
  flex-shrink: 0;
}
.eyebrow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A29FC0;
}
.eyebrow-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.page-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: #F6F4FB;
  margin: 0;
}
.page-header h1 em {
  font-style: italic;
  color: #F4A7C1;
}
.page-header p {
  margin-top: 14px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: #A29FC0;
}

/* ─── Note stream ─── */
.post-feed {
  padding-bottom: 8px;
}

article.note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 52px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
article.note:first-child {
  margin-top: 0;
  padding-top: 28px;
  border-top: none;
}

/* Meta rail */
.note-meta {
  padding-top: 4px;
}
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244,167,193,0.14);
  color: #F4A7C1;
}
article.note:first-child .tag {
  background: #F4A7C1;
  color: #262a4f;
}
.note-date {
  display: block;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #A29FC0;
  letter-spacing: 0.03em;
}

/* Note body */
.note-body {
  max-width: 680px;
}
.note-body h2 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #F6F4FB;
  margin: 0 0 0 0;
  font-size: clamp(26px, 3vw, 34px);
}
article.note:first-child .note-body h2 {
  font-size: clamp(30px, 3.6vw, 40px);
}
.note-body p {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 18.5px;
  line-height: 1.7;
  color: #D6D3E4;
  text-wrap: pretty;
}
article.note:first-child .note-body p:first-of-type {
  margin-top: 24px;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 32px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #726F98;
}
.footer-inner a {
  color: #A29FC0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  padding-bottom: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner  { padding: 13px 20px; }
  .footer-inner { padding: 30px 20px; }

  article.note {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .note-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 0;
  }
  .note-date { margin-top: 0; }
}
