/* ============================================
   RHC — THE CX MANIFEST
   Token system
   ============================================ */
:root {
  --purple-deep: #3B0C5E;
  --purple-tint: #EFE7F5;
  --gold: #B9892A;
  --gold-tint: #F3E9D2;
  --cream: #FAF7F2;
  --ink: #211527;
  --ink-soft: #5B4F63;
  --line: #DCD2C8;

  --display: 'Fraunces', serif;
  --body: 'Source Sans 3', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 2px solid var(--purple-deep);
  padding: 28px 6vw 22px;
  background: var(--cream);
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.masthead-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 46px);
  color: var(--purple-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

.masthead-route {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-tagline {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 10px;
  text-transform: uppercase;
}

/* ---------- Manifest entry list ---------- */
.manifest {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 6vw 100px;
}

.manifest-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.manifest-heading h2 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0;
}

.manifest-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.entry {
  display: grid;
  grid-template-columns: 96px 1px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.entry:first-of-type { padding-top: 20px; }

.entry-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  line-height: 1.4;
}

.entry-no span {
  display: block;
  font-size: 26px;
  color: var(--purple-deep);
  font-weight: 600;
}

.entry-stub {
  position: relative;
  background-image: linear-gradient(var(--line) 60%, transparent 0%);
  background-position: top;
  background-size: 1px 8px;
  background-repeat: repeat-y;
}

.entry-stub::before,
.entry-stub::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
}
.entry-stub::before { top: -1px; }
.entry-stub::after { bottom: -1px; }

.entry-title {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.entry-excerpt {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.entry-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gold-tint);
  color: var(--purple-deep);
  padding: 4px 9px;
  border-radius: 3px;
}

/* ---------- Post page ---------- */
.post {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 6vw 100px;
}

.post-back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 28px;
}

.post-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--purple-deep);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.post-meta strong { color: var(--purple-deep); }

.post h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  color: var(--purple-deep);
  line-height: 1.15;
  margin: 0 0 8px;
}

.post .dek {
  font-family: var(--body);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.post h2 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--purple-deep);
  margin: 38px 0 12px;
}

.post p { margin: 0 0 18px; }

.post blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}

.post ul { padding-left: 20px; margin: 0 0 18px; }
.post li { margin-bottom: 8px; }

.post-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.post-footer .brand {
  color: var(--purple-deep);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--purple-deep);
  padding: 24px 6vw;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---------- Focus & motion ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .entry { grid-template-columns: 60px 1px 1fr; gap: 14px; }
  .entry-no span { font-size: 20px; }
}
