/* ================================================
   CSS Custom Properties
   ================================================ */
:root {
  --accent:       #5b8c86;
  --accent-hover: #4a756f;

  --bg:           #F8F8F6;
  --bg-secondary: #EFEFED;
  --bg-card:      #FFFFFF;
  --text:         #111110;
  --text-secondary: #555552;
  --text-muted:   #999994;
  --border:       #E2E2DF;

  --tile-a:       #5b8c86;
  --tile-a-text:  #FFFFFF;
  --tile-b:       #111110;
  --tile-b-text:  #FFFFFF;
  --tile-c:       #EFEFED;
  --tile-c-text:  #111110;

  --font-sans:    'Space Grotesk', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Fira Code', 'Courier New', monospace;

  --navbar-h:     64px;
  --logo-h:       86px;
  --controls-h:   40px;
  --max-w:        860px;
  --radius:       8px;
  --ease:         200ms ease;
}

[data-theme="dark"] {
  --bg:           #0D0D0C;
  --bg-secondary: #1A1A19;
  --bg-card:      #161615;
  --text:         #EEEEE8;
  --text-secondary: #AAAAAA;
  --text-muted:   #666660;
  --border:       #2A2A28;

  --tile-a:       #5b8c86;
  --tile-a-text:  #FFFFFF;
  --tile-b:       #EEEEE8;
  --tile-b-text:  #0D0D0C;
  --tile-c:       #1A1A19;
  --tile-c-text:  #EEEEE8;
}

/* ================================================
   Reset & Base
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background var(--ease), color var(--ease);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Explicit teal for all content links — overrides Safari's -webkit-link blue */
.page-content a { color: var(--accent); }

/* ================================================
   Navbar
   ================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-h);
  display: flex;
  align-items: stretch;
  overflow: visible;
  padding: 0 1.5rem 0 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
  flex-shrink: 0;
}

.nav-link:hover { color: var(--text); background: var(--bg-secondary); }

.nav-link.active { color: var(--accent); }

.nav-link--linkedin {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ================================================
   Logo Box — hangs below navbar
   ================================================ */
.logo-box {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #5b8c86;
  height: var(--logo-h);
  align-self: flex-start;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  transition: filter var(--ease);
  box-shadow: 0 4px 12px rgba(91, 140, 134, 0.35);
  position: relative;
  z-index: 101;
}

.logo-box:hover { filter: brightness(0.9); }

.logo-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
}

/* ================================================
   Subnav
   ================================================ */
.subnav {
  position: sticky;
  top: var(--navbar-h);
  z-index: 85;
  height: 48px;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 0 1.75rem 0 160px;
  background: var(--accent);
  border-bottom: 1px solid rgba(91, 140, 134, 0.2);
}

.subnav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.subnav-link:hover {
  color: white;
}

.subnav-link.active {
  color: white;
  border-bottom-color: white;
}

/* ================================================
   Controls Bar
   ================================================ */
.controls-bar {
  position: sticky;
  top: var(--navbar-h);
  z-index: 90;
  height: var(--controls-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.75rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 3px;
  margin-right: 1rem;
}

.view-opt {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.22rem 0.7rem;
  border-radius: 4px;
  transition: all var(--ease);
}

.view-opt.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.view-opt:hover:not(.active) { color: var(--text-secondary); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.28rem 0.5rem;
  display: flex;
  align-items: center;
  transition: color var(--ease), border-color var(--ease);
}

.theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

/* ================================================
   Page Content
   ================================================ */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  min-height: calc(100vh - var(--navbar-h) - var(--controls-h));
}

.loading {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5rem 0;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Raw markdown view */
.markdown-raw {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}

/* ================================================
   About — Bio
   ================================================ */
.bio-container {
  max-width: 680px;
  margin: 0 auto 4.5rem;
}

.bio-kicker {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.bio-preview {
  position: relative;
}

.bio-preview.collapsed {
  max-height: 290px;
  overflow: hidden;
}

.bio-preview.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.bio-content {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.88;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
}

.bio-content p          { margin-bottom: 1.5rem; }
.bio-content p:last-child { margin-bottom: 0; }

.bio-content strong { font-weight: 600; }
.bio-content em     { font-style: italic; }

.bio-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bio-expand-btn {
  display: block;
  margin: 1.25rem auto 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 1.4rem;
  transition: all var(--ease);
}

.bio-expand-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ================================================
   About — Stats Grid
   ================================================ */
.stats-section { margin-bottom: 1rem; }

.stats-kicker {
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-tile {
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 136px;
  transition: transform var(--ease);
}

.stat-tile:hover { transform: translateY(-2px); }

.stat-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: contents;
}

.stat-link .stat-tile:hover { transform: translateY(-4px); }

.stat-tile--wide  { grid-column: span 2; }
.stat-tile--full  { grid-column: 1 / -1; min-height: auto; }

.stats-grid--hobbies { grid-template-columns: repeat(2, 1fr); }
.stats-grid--hobbies .stat-tile--full { grid-column: span 2; }

.stat-tile--a    { background: var(--tile-a); color: var(--tile-a-text); }
.stat-tile--b    { background: var(--tile-b); color: var(--tile-b-text); }
.stat-tile--c    { background: var(--tile-c); color: var(--tile-c-text); }
.stat-tile--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-tile--wide .stat-number { font-size: 5.25rem; }

.stat-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.82;
  margin-top: 0.6rem;
}

.stat-tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  padding: 0.5rem 0;
  opacity: 0.88;
}

/* ================================================
   Generic Markdown Page (rendered)
   ================================================ */
.md-content h1 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.md-content h2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.md-content h2:first-of-type { margin-top: 0; }

.md-content h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}

.md-content p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.md-content p strong { color: var(--text); font-weight: 600; }

.md-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color var(--ease);
}
.md-content a:hover { text-decoration-color: var(--accent); }

.md-content ul, .md-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.md-content li {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.md-content li strong { color: var(--text); font-weight: 600; }

.md-content em { font-style: italic; }

.works-section {
  margin-bottom: 3.5rem;
}
.works-section h1 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.md-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.md-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ================================================
   Archives Page
   ================================================ */
.archive-intro {
  max-width: 640px;
  margin: 0 auto 4rem;
}

.archive-intro p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.archive-post-list {
  display: flex;
  flex-direction: column;
}

.archive-post {
  display: grid;
  align-items: start;
  gap: 2.5rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.archive-post:last-child { border-bottom: 1px solid var(--border); }

.archive-post--right { grid-template-columns: 1fr 220px; }
.archive-post--left  { grid-template-columns: 220px 1fr; }
.archive-post--left .post-note { order: -1; }

/* Post body */
.post-header {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-date {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-content {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

.post-content p            { margin-bottom: 1rem; }
.post-content p:last-child { margin-bottom: 0; }
.post-content em           { font-style: italic; }
.post-content strong       { color: var(--text); font-weight: 600; }

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.post-content li {
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text-secondary);
}

.post-content blockquote p {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.post-content blockquote p:last-child { margin-bottom: 0; }

/* Commentary note — base */
.post-note {
  font-size: 0.875rem;
  line-height: 1.65;
  padding: 1.2rem 1.3rem;
  position: sticky;
  top: calc(var(--navbar-h) + var(--controls-h) + 1.5rem);
}

/* Style 1 — sticky note */
.note-sticky {
  background: #FEF9C3;
  border-radius: 2px;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.13), 0 1px 2px rgba(0,0,0,0.08);
  transform: rotate(0.7deg);
  font-family: var(--font-serif);
  font-style: italic;
  color: #5a4200;
}
[data-theme="dark"] .note-sticky {
  background: #2A2500;
  color: #C8A800;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.5);
}

/* Style 2 — word-doc comment */
.note-comment {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  font-family: var(--font-body);
  color: var(--text-secondary);
}
.note-comment::before {
  content: '// note';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

/* Style 3 — torn corner / dog-ear */
.note-torn {
  background: #EDE9FE;
  border-radius: 4px 0 4px 4px;
  font-family: var(--font-serif);
  font-style: italic;
  color: #4338CA;
  position: relative;
}
.note-torn::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent var(--bg) transparent transparent;
}
[data-theme="dark"] .note-torn {
  background: #1E1B4B;
  color: #A5B4FC;
}

/* Style 4 — margin annotation */
.note-margin {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
}

/* Style 5 — blueprint annotation */
.note-blueprint {
  border: 1.5px dashed var(--accent);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--accent);
  line-height: 1.7;
}
.note-blueprint::before {
  content: '↳ annotation';
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

/* Mobile: single column, note below body */
@media (max-width: 600px) {
  .archive-post,
  .archive-post--right,
  .archive-post--left { grid-template-columns: 1fr; }

  .archive-post--left .post-note { order: 1; }

  .post-note { position: static; transform: none !important; }
  .note-torn::after { display: none; }
}

/* ================================================
   E2C (Exposure 2 Closure)
   ================================================ */
.e2c-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.e2c-about {
  max-width: 800px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 1rem;
}

.e2c-about p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.e2c-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.e2c-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: transform var(--ease);
}

.e2c-card:hover {
  transform: scale(1.02);
}

.e2c-card.selected {
  transform: scale(1.1);
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(91, 140, 134, 0.4);
}

.e2c-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.e2c-card-image img,
.e2c-card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e2c-card-year {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.e2c-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeIn 300ms ease;
}

.e2c-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.e2c-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.e2c-content ul,
.e2c-content ol {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
}

.e2c-content ul {
  list-style-type: disc;
}

.e2c-content ol {
  list-style-type: decimal;
}

.e2c-content li {
  margin-bottom: 0.5rem;
}

.e2c-content-body {
  display: flow-root;
}

.e2c-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.e2c-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 200ms ease;
}

.e2c-tab:hover {
  color: var(--text);
}

.e2c-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.e2c-note {
  border-left: 3px solid var(--accent);
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  width: 160px;
  box-sizing: border-box;
  margin: 0 0 1.5rem 0;
}

.e2c-note--right {
  float: right;
  margin-left: 1.5rem;
}

.e2c-note--left {
  float: left;
  margin-right: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Running Chart Styling */
.books-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.books-content {
  margin-bottom: 2rem;
}

.books-image-container {
  margin: 2.5rem 0;
  overflow: hidden;
  border-radius: var(--radius);
  max-height: 500px;
}

.books-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.running-chart-container {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

#runningChart {
  max-height: 400px;
  width: 100%;
}

/* E2C Screenplay Styling */
.e2c-content.screenplay {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.e2c-content.screenplay h1,
.e2c-content.screenplay h2,
.e2c-content.screenplay h3,
.e2c-content.screenplay h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.e2c-content.screenplay h1 {
  font-size: 1.1rem;
  margin-top: 2rem;
}

.e2c-content.screenplay h2 {
  font-size: 1rem;
}

.e2c-content.screenplay h3 {
  font-size: 0.95rem;
}

.e2c-content.screenplay p {
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.e2c-content.screenplay strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.e2c-content.screenplay em {
  font-style: italic;
}

.e2c-content.screenplay blockquote {
  margin: 1rem 0 1rem 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  font-style: italic;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.e2c-content.screenplay table {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 1.5rem 0;
  line-height: 1.5;
}

.e2c-content.screenplay table th,
.e2c-content.screenplay table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
}

.e2c-content.screenplay table th {
  background: var(--bg-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.e2c-content.screenplay ul,
.e2c-content.screenplay ol {
  margin: 1rem 0 1rem 2rem;
  padding-left: 1.5rem;
  font-family: var(--font-mono);
}

.e2c-content.screenplay li {
  margin-bottom: 0.5rem;
}

/* E2C Responsive */
@media (max-width: 800px) {
  .e2c-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .e2c-content-inner {
    grid-template-columns: 1fr;
  }

  .e2c-note {
    grid-column: 1 !important;
    order: 1 !important;
  }
}

@media (max-width: 600px) {
  .e2c-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .e2c-about {
    padding: 1.5rem;
  }

  .e2c-card.selected {
    transform: scale(1.05);
  }

  .e2c-content-inner {
    grid-template-columns: 1fr;
  }

  .e2c-note {
    grid-column: 1 !important;
    order: 1 !important;
    margin-top: 2rem;
  }
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-tile--wide { grid-column: span 2; }

  .logo-box { min-width: 48px; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 0.75rem; }

  .nav-link {
    font-size: 0.62rem;
    padding: 0.4rem 0.55rem;
    letter-spacing: 0.07em;
  }

  .page-content { padding: 2.5rem 1.25rem 4rem; }

  .bio-content { font-size: 1rem; line-height: 1.8; }

  .stat-number { font-size: 3rem; }
  .stat-tile--wide .stat-number { font-size: 4rem; }
}
