@font-face {
  font-family: 'Breton';
  src: url('../assets/fonts/Breton.woff2') format('opentype');
  font-weight: normal; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'other';
  src: url('../assets/fonts/Machine.otf') format('opentype');
  font-weight: normal; font-style: normal; font-display: block;
  unicode-range: U+0020-0025, U+0027-002C, U+002E-00FF;
}

:root {
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-editorial: 'Breton', sans-serif;
  --accent-red: #ff1e00;
  --accent-red-hover: #ff3c24;
  --bg-dark: #0a0a0a;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.25);
  --text-main: #f0f0f0;
  --text-dim: rgba(255, 255, 255, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  scrollbar-width: none;
  overflow: hidden;
}
html::-webkit-scrollbar {
  display: none;
}

body.blog-page {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.other-accent {
  font-family: 'other', sans-serif;
}

/* Ambient canvas background & vignette (matches /about and /contact) */
.info-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.info-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0) 25%, rgba(10, 10, 10, 0) 75%, rgba(10, 10, 10, 0.35) 100%);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  pointer-events: none;
}

/* Pinned top-left Page Title (matches /about, /work, /contact) */
.page-title {
  position: fixed;
  top: 3rem;
  left: 3rem;
  z-index: 10000;
  font-family: 'Breton', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  line-height: 1.2;
  text-decoration: none;
  cursor: default;
  opacity: 0;
}

/* Pinned top-right Back button (matches /about and /contact) */
.back-btn {
  position: fixed;
  top: 3rem;
  right: 3rem;
  z-index: 100;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
}

/* Interactive letter flip hover animation */
.chr-hover {
  display: inline-flex;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ch-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.ch-top, .ch-bot {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1), color 0.3s ease;
  transition-delay: calc(var(--i) * 28ms);
}
.ch-bot {
  position: absolute;
  top: 100%;
  left: 0;
}
.chr-hover:hover .ch-top {
  transform: translateY(-100%);
}
.chr-hover:hover .ch-bot {
  transform: translateY(-100%);
}
.chr-hover:hover .ch-top,
.chr-hover:hover .ch-bot {
  color: rgba(255, 255, 255, 0.95);
}

/* Main Split Grid (identical grid geometry to /about) */
.info-main {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: clamp(6rem, 12vh, 9rem) clamp(2rem, 6vw, 6rem) clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  opacity: 0;
  pointer-events: none;
}
.info-main.ready {
  pointer-events: auto;
}

/* Left Column (Simplified Editorial Sidebar) */
.info-left {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-self: center;
}

/* Sidebar Section & Topics */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-section-title {
  font-family: 'other', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.sidebar-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sidebar-topic-pill {
  font-family: 'other', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-topic-pill:hover {
  background: rgba(255, 30, 0, 0.08);
  border-color: var(--accent-red);
  color: #ffffff;
}
.sidebar-topic-pill.active {
  background: rgba(255, 30, 0, 0.15);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* Sidebar Author Note */
.sidebar-author-note {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sidebar-note-label {
  font-family: 'other', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sidebar-note-copy {
  font-family: 'Breton', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}
.sidebar-note-copy strong {
  color: #ffffff;
  font-weight: 400;
}

/* Sidebar Substack Dispatch Box */
.sidebar-substack-box {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-substack-box .corner-bracket {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgba(255, 255, 255, 0.5);
  border-style: solid;
  pointer-events: none;
}
.sidebar-substack-box .corner-bracket.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.sidebar-substack-box .corner-bracket.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.sidebar-substack-box .corner-bracket.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.sidebar-substack-box .corner-bracket.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.sidebar-substack-head {
  font-family: 'other', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-red);
  font-weight: 600;
}
.sidebar-substack-copy {
  font-family: 'Breton', sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}
.sidebar-substack-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'other', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.sidebar-substack-link:hover {
  background: rgba(255, 30, 0, 0.12);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-1px);
}

.info-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 5;
  pointer-events: none;
}
.frame-corner::before,
.frame-corner::after {
  content: '';
  position: absolute;
  background: #fff;
}
.frame-corner::before {
  width: 1px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.frame-corner::after {
  height: 1px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.frame-corner.tl { top: 8px; left: 8px; }
.frame-corner.tr { top: 8px; right: 8px; }
.frame-corner.bl { bottom: 8px; left: 8px; }
.frame-corner.br { bottom: 8px; right: 8px; }

.info-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.55rem;
}
.info-meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.info-meta-value {
  font-family: 'Breton', sans-serif;
  font-size: 0.95rem;
  color: #f0f0f0;
  text-align: right;
}

.blog-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  width: 100%;
  transition: border-color 0.2s ease;
}
.blog-search-box:focus-within {
  border-color: var(--accent-red);
}
.blog-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.82rem;
  width: 100%;
  font-family: inherit;
}
.blog-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Right Column (Scrollable Articles Stream) */
.info-right.blog-right {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vh, 1.8rem);
  align-self: center;
  max-width: 980px;
  width: 100%;
}

.info-headline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.info-name {
  font-family: 'Breton', sans-serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #f0f0f0;
}
.info-role {
  font-family: 'Breton', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  max-width: 44rem;
}

/* Category Filter Pills */
.blog-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.5rem;
}
.blog-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-highlight);
}
.blog-cat-pill.active {
  background: rgba(255, 30, 0, 0.15);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* Featured Article Hero Card */
.blog-featured-card {
  position: relative;
  background: rgba(12, 12, 16, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}
.blog-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-red);
}
.blog-featured-card:hover {
  background: rgba(18, 18, 22, 0.88);
  border-color: rgba(255, 30, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-badge-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.featured-pill {
  font-family: 'other', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent-red);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  font-weight: 600;
}
.featured-meta {
  font-family: 'other', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.featured-title {
  font-family: 'Breton', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff;
}
.featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.featured-title a:hover {
  color: #ff6a4f;
}

.featured-excerpt {
  font-family: 'Breton', sans-serif;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52rem;
}

.featured-footer {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
}

.featured-read-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0.6rem 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: #f0f0f0;
  text-decoration: none;
  font-family: 'other', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
}
.featured-read-btn:hover {
  background: rgba(255, 30, 0, 0.12);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 30, 0, 0.25);
}
.featured-read-btn .corner-bracket {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgba(255, 255, 255, 0.6);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.featured-read-btn:hover .corner-bracket {
  border-color: var(--accent-red);
}
.featured-read-btn .corner-bracket.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.featured-read-btn .corner-bracket.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.featured-read-btn .corner-bracket.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.featured-read-btn .corner-bracket.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.remaining-section-header {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.remaining-label {
  font-family: 'other', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Articles Stream with Sleek Native Scrollbar */
.blog-stream {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-height: calc(100vh - clamp(14rem, 24vh, 18rem));
  overflow-y: auto;
  padding-right: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 30, 0, 0.4) transparent;
}
.blog-stream::-webkit-scrollbar {
  width: 4px;
}
.blog-stream::-webkit-scrollbar-track {
  background: transparent;
}
.blog-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 30, 0, 0.35);
  border-radius: 4px;
}
.blog-stream::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Article Card */
.blog-card {
  position: relative;
  background: rgba(12, 12, 16, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-red);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  transform-origin: bottom;
}
.blog-card:hover {
  background: rgba(18, 18, 22, 0.88);
  border-color: rgba(255, 30, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.blog-card:hover::before {
  transform: scaleY(1);
}

.blog-card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card-category {
  color: var(--accent-red);
  font-weight: 600;
}

.blog-card-title {
  font-family: 'Breton', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: #ffffff;
}

.blog-card-excerpt {
  font-family: 'Breton', sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.blog-tag-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
}
.blog-card-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
  color: var(--accent-red);
}

/* Bottom Bar (matches /about) */
.info-bottom {
  position: fixed;
  bottom: 2rem;
  left: 3rem;
  right: 3rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
}
.info-mail {
  font-size: 0.9rem;
}
.info-version {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   ARTICLE READER VIEW (/blog/:slug)
   ========================================= */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-red);
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(255, 30, 0, 0.8);
}

/* Split Layout for Article Reader (matches /about, /contact, /blog) */
.info-main.reader-layout {
  padding: clamp(5.2rem, 9.5vh, 7.5rem) clamp(2rem, 4.5vw, 5rem) clamp(2.5rem, 5vh, 4rem);
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  height: 100vh;
}

.info-left.reader-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-self: center;
  width: 100%;
}

.info-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 4px;
}

.info-right.reader-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - clamp(7rem, 13vh, 10rem));
  width: 100%;
  align-self: center;
}

/* Translucent Dark Grey Reading Plate (Wider canvas with visible WebGL background animation) */
.reader-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 16, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reader-card-wrapper .frame-corner {
  display: block;
}
.reader-card-wrapper .frame-corner.tl { top: 10px; left: 10px; }
.reader-card-wrapper .frame-corner.tr { top: 10px; right: 10px; }
.reader-card-wrapper .frame-corner.bl { bottom: 10px; left: 10px; }
.reader-card-wrapper .frame-corner.br { bottom: 10px; right: 10px; }

/* Increased Reader Width & Optimal Reading Padding */
.reader-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 2.2rem clamp(2rem, 3.8vw, 4rem) 6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 30, 0, 0.4) transparent;
}
.reader-scroll-container::-webkit-scrollbar {
  width: 5px;
}
.reader-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 30, 0, 0.35);
  border-radius: 4px;
}
.reader-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

.reader-meta-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text-dim);
}
.reader-category {
  color: var(--accent-red);
  font-weight: 600;
}
.reader-sep {
  opacity: 0.4;
}

.reader-headline {
  font-family: 'Breton', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.reader-excerpt-callout {
  font-family: 'Breton', sans-serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-red);
  font-style: italic;
}

.reader-author-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}
.reader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-highlight);
}
.reader-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}
.reader-author-role {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.reader-cover-wrap {
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #111;
}
.reader-cover {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Rendered Article Typography */
.article-content {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  line-height: 1.85;
  color: #e5e7eb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.article-content h2,
.article-content h3,
.article-content h4 {
  transition: color 0.3s ease, transform 0.3s ease;
  scroll-margin-top: 1.5rem;
}
@keyframes headingTargetPulse {
  0% { color: var(--accent-red); transform: translateX(6px); }
  60% { color: var(--accent-red); }
  100% { color: #ffffff; transform: translateX(0); }
}
.heading-target-active {
  animation: headingTargetPulse 0.9s ease-out;
}
.article-content h2 {
  font-family: 'Breton', sans-serif;
  font-size: 1.75rem;
  font-weight: 300;
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}
.article-content p {
  margin-bottom: 1.4rem;
}
.article-content a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.25rem 1.75rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-red);
  border-radius: 0 8px 8px 0;
  color: #e0e0e0;
  font-style: italic;
  font-size: 1.08rem;
}
.article-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
  display: block;
}

/* Code Blocks with Syntax Chrome & Copy Button */
.code-block-wrap {
  position: relative;
  margin: 2rem 0;
  background: #0f0f11;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
.copy-code-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-highlight);
}
.article-content pre {
  margin: 0;
  padding: 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #f3f4f6;
  background: transparent;
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12rem 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #f87171;
}
.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
}

/* Discussion CTA Box */
.conversion-cta-box {
  background: linear-gradient(135deg, rgba(255, 30, 0, 0.08) 0%, rgba(255, 30, 0, 0.02) 100%);
  border: 1px solid rgba(255, 30, 0, 0.25);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.cta-title {
  font-family: 'Breton', sans-serif;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.cta-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.cta-btn {
  background: var(--accent-red);
  color: #ffffff;
  padding: 0.75rem 1.45rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 30, 0, 0.3);
}
.cta-btn:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
}

/* End of Article Navigation (Back to Blogs Button) */
.reader-end-nav {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.reader-back-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding: 0.75rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  color: #f0f0f0;
  text-decoration: none;
  font-family: 'other', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
}

.reader-back-all-btn:hover {
  background: rgba(255, 30, 0, 0.12);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 30, 0, 0.25);
}

.reader-back-all-btn .corner-bracket {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: rgba(255, 255, 255, 0.6);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.reader-back-all-btn:hover .corner-bracket {
  border-color: var(--accent-red);
}

.reader-back-all-btn .corner-bracket.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.reader-back-all-btn .corner-bracket.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.reader-back-all-btn .corner-bracket.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.reader-back-all-btn .corner-bracket.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.reader-back-all-btn .btn-arrow {
  color: var(--accent-red);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.reader-back-all-btn:hover .btn-arrow {
  transform: translateX(-3px);
}

/* Responsive (matches /about) */
@media (max-width: 960px) {
  .info-main {
    grid-template-columns: 1fr;
    padding: clamp(5rem, 10vh, 7rem) 1.5rem 5rem;
    gap: 1.5rem;
    align-content: start;
    overflow-y: auto;
  }
  .info-photo-wrap {
    max-height: 35vh;
  }
  .blog-stream {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .info-bottom {
    left: 1.5rem;
    right: 1.5rem;
  }
  .page-title, .back-btn {
    top: 1.5rem;
  }
  .page-title {
    left: 1.5rem;
  }
  .back-btn {
    right: 1.5rem;
  }
  .info-main.reader-layout {
    grid-template-columns: 1fr;
    height: 100vh;
    padding: clamp(4.5rem, 8vh, 6rem) clamp(1rem, 3.5vw, 1.75rem) 4rem;
    gap: 1.5rem;
    align-content: start;
    overflow-y: auto;
  }
  .info-left.reader-sidebar {
    width: 100%;
    max-width: 100%;
    align-self: auto;
  }
  .reader-sidebar .info-photo-wrap,
  .info-photo-wrap {
    max-height: 240px;
  }
  .info-right.reader-right {
    height: auto;
    max-height: none;
    align-self: auto;
  }
  .reader-card-wrapper {
    height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 6px;
    background: rgba(12, 12, 16, 0.58);
  }
  .reader-scroll-container {
    height: auto;
    max-height: none;
    overflow-y: visible;
    padding: 1.5rem clamp(1.15rem, 3.5vw, 2rem) 3.5rem;
  }
  .reader-end-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
