/* ── REFLECTIONZ · 01 — Detaching from the Noise ──
   Pure black / red / dim white. Iosevka monospace (self-hosted via
   /css/fonts.css). Keeps the original Reflectionz darkmode identity while
   wearing the standard site shell (site-header, side-dock, footer). */

:root {
  /* Reflectionz palette — pure black, red, dim white */
  --black: #000000;
  --black-soft: #0A0A0A;
  --black-lift: #111111;
  --black-card: #161616;
  --black-border: #222222;

  --red: #CC2222;
  --red-bright: #E03333;
  --red-dim: rgba(204, 34, 34, 0.7);
  --red-glow: rgba(204, 34, 34, 0.15);
  --red-faint: rgba(204, 34, 34, 0.08);

  --white: #F0EDE8;
  --white-soft: rgba(240, 237, 232, 0.85);
  --white-dim: rgba(240, 237, 232, 0.55);
  --white-ghost: rgba(240, 237, 232, 0.25);

  --line: rgba(240, 237, 232, 0.08);
  --line-red: rgba(204, 34, 34, 0.25);

  --mono: 'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--white);
  background: var(--black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Article ── */
article {
  --serif: var(--mono);
  --sans: var(--mono);
  font-family: var(--mono);
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

/* ── Entry Header ── */
.entry-header { margin-bottom: 56px; animation: fadeIn 0.8s ease-out; }

.entry-series {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-series::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-red);
}

.entry-num {
  font-family: var(--mono);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 600;
  color: var(--red);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  opacity: 0.12;
  user-select: none;
  position: absolute;
  right: 0;
  top: 0;
}

.entry-header-inner { position: relative; }

.entry-title {
  font-family: var(--mono);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.entry-title .red { color: var(--red); }

.entry-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.entry-date::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--red-dim);
}

.entry-lead {
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  color: var(--white-soft);
  font-style: italic;
  padding: 20px 24px;
  border-left: 2px solid var(--red);
  background: var(--red-faint);
  border-radius: 0 6px 6px 0;
}

/* ── Body prose ── */
.prose { margin-top: 48px; animation: fadeIn 0.8s ease-out 0.15s backwards; }

.prose p {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.88;
  color: var(--white-soft);
}

.prose p strong { color: var(--white); font-weight: 600; }
.prose p .red { color: var(--red-bright); font-weight: 600; }
.prose p .caps { color: var(--red-bright); font-weight: 600; letter-spacing: 0.06em; }

/* ── Section Heading ── */
.prose h2 {
  font-family: var(--mono);
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 56px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.prose h2::before { content: '//'; opacity: 0.5; font-weight: 400; }
.prose h2::after { content: ''; flex: 1; height: 1px; background: var(--line-red); opacity: 0.5; }

/* ── Pull quote ── */
.pullquote {
  margin: 44px 0;
  padding: 28px 28px 28px 32px;
  border-left: 3px solid var(--red);
  background: var(--red-faint);
  border-radius: 0 6px 6px 0;
  font-family: var(--mono);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--white);
  position: relative;
}

.pullquote::before {
  content: '"';
  position: absolute;
  top: 6px;
  left: 14px;
  font-size: 52px;
  color: var(--red);
  opacity: 0.35;
  font-family: var(--mono);
  line-height: 1;
  font-style: normal;
}

/* ── Emphasis block ── */
.emphasis-block {
  margin: 36px 0;
  padding: 22px 24px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--white-dim);
}

.emphasis-block .label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-dim);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.emphasis-block p { margin: 0; font-size: 14px; color: var(--white-soft); }
.emphasis-block strong { color: var(--white); font-weight: 600; }

/* ── "own that shit" highlight ── */
.own-it {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--black-lift);
  border-top: 1px solid var(--red-dim);
  border-bottom: 1px solid var(--red-dim);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-soft);
}

.own-it strong { color: var(--white); font-weight: 600; }
.own-it .red { color: var(--red-bright); font-weight: 600; }

/* ── Sign-off ── */
.signoff {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.9;
}

.signoff-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
}

.signoff-name .red { color: var(--red); }

/* ── Post pager: tint the shared (post-header.css) component red ── */
.post-pager { border-top-color: var(--line-red); }
.post-pager-eyebrow { color: var(--red) !important; }
a.post-pager-item:hover {
  border-color: var(--red-dim);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.45),
    0 0 32px var(--red-glow);
}

/* ── Footer (standard dark site footer) ── */
footer {
  background: #060606;
  border-top: 1px solid var(--black-border);
  padding: 2.5rem 3rem 2rem;
  text-align: center;
}
.footer-logo-img { width: 44px; height: auto; margin: 0 auto 0.6rem; display: block; opacity: 0.8; filter: drop-shadow(0 0 6px rgba(204,34,34,0.25)); }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: 0.78rem; color: var(--white-ghost); font-style: italic; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: var(--white-dim); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--red); }
.footer-coffee-link { color: #f4b400 !important; }
.footer-coffee-link:hover { color: var(--red) !important; }
.footer-bottom { font-size: 0.7rem; color: var(--white-ghost); border-top: 1px solid var(--black-border); padding-top: 1.2rem; }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--black-border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── SIDE DOCK (site-standard, shared across all posts) ── */
.side-dock { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 0.4rem; background: rgba(8,4,4,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(204,34,34,0.22); border-radius: 18px; padding: 0.65rem 0.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 28px rgba(204,34,34,0.06); }
.dock-item { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; text-decoration: none; color: rgba(240,237,232,0.45); transform-origin: right center; transition: color 0.22s ease, background 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease; outline: none; }
.dock-item::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(ellipse at center, rgba(204,34,34,0.30) 0%, transparent 72%); opacity: 0; transition: opacity 0.25s ease; }
.dock-item:hover::before, .dock-item.active::before { opacity: 1; }
.dock-item:hover { color: var(--red-bright); background: rgba(204,34,34,0.12); transform: scale(1.18); box-shadow: 0 0 22px rgba(204,34,34,0.45), 0 0 9px rgba(204,34,34,0.3), 0 4px 14px rgba(0,0,0,0.4); }
.dock-item:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.dock-item.active { color: var(--red-bright); background: rgba(204,34,34,0.08); box-shadow: 0 0 12px rgba(204,34,34,0.22); }
.dock-item.active::after { content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 7px rgba(224,51,51,0.9); }
.dock-icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.dock-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(8px); background: rgba(8,4,4,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--white); font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.26rem 0.62rem; border-radius: 6px; border: 1px solid rgba(204,34,34,0.28); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.45); }
.dock-item:hover .dock-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ── Canopy glass ambience ── */
#canopy-glass {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 40px), 1160px);
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(204,34,34,.04) 20%, rgba(224,51,51,.06) 50%, rgba(204,34,34,.04) 80%, rgba(0,0,0,0) 100%);
  border-left: 1px solid rgba(204,34,34,.06);
  border-right: 1px solid rgba(204,34,34,.06);
  pointer-events: none;
  z-index: 0;
}

nav, article, main, header, footer { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .side-dock { right: 0.55rem; padding: 0.5rem 0.35rem; gap: 0.3rem; border-radius: 14px; }
  .dock-item { width: 36px; height: 36px; border-radius: 10px; }
  .dock-item:hover { transform: scale(1.1); }
  .dock-icon { width: 17px; height: 17px; }
  .dock-label { display: none; }
  .dock-item.active::after { width: 3px; height: 3px; bottom: 2px; }
  #canopy-glass { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .dock-item:hover { transform: none; box-shadow: none; background: none; }
  .dock-item:hover::before { opacity: 0; }
}

@media (max-width: 640px) {
  article { padding: 40px 22px 80px; }
  footer { padding: 2.5rem 1.25rem 2rem; padding-right: 70px; }
  .entry-title { font-size: 26px; }
  .entry-num { font-size: 80px; }
  .prose h2 { font-size: 16px; }
  .pullquote { font-size: 15px; padding: 22px 22px 22px 28px; }
}
