/* ── Google Fonts Import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --c-ink:        #0c0f14;
  --c-body:       #1c2128;
  --c-muted:      #4a5568;
  --c-accent:     #2563eb;
  --c-accent-2:   #7c3aed;
  --c-accent-3:   #0ea5e9;
  --c-accent-4:   #db2777;
  --c-bg:         #f8fafc;
  --c-surface:    #eef2f7;
  --c-border:     #cbd5e1;
  --c-highlight:  #dbeafe;

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius:       8px;
  --max-w:        72ch;
  --transition:   0.2s ease;
}

/* ── Base ────────────────────────────────────────────────── */
.entry-content,
.wp-block-post-content,
article .entry-content {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.05vw + 0.6rem, 1.1rem);
  line-height: 1.9;
  color: #1c2128 !important;
  max-width: var(--max-w);
}

/* ── Paragraphs ──────────────────────────────────────────── */
.entry-content p,
.wp-block-post-content p {
  color: #1c2128 !important;
  margin-bottom: 1.5em;
  hyphens: auto;
}

/* Drop cap */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4em;
  line-height: 0.78;
  float: left;
  margin: 0.05em 0.14em 0 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   HEADINGS — each level has its own colour personality
   ════════════════════════════════════════════════════════════ */

/* shared base */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
.wp-block-post-content h1, .wp-block-post-content h2,
.wp-block-post-content h3, .wp-block-post-content h4,
.wp-block-post-content h5, .wp-block-post-content h6 {
  font-family: var(--font-serif) !important;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  position: relative;
}

/* ── H1 — blue-violet-sky gradient + animated shimmer bar ── */
.entry-content h1,
.wp-block-post-content h1 {
  font-size: clamp(2rem, 3.5vw + 0.8rem, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  display: inline-block;
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
  padding-bottom: 0.3em;
}
.entry-content h1::after,
.wp-block-post-content h1::after {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0ea5e9, #2563eb);
  background-size: 250% auto;
  animation: shimmer 3.5s linear infinite;
  margin-top: 0.2em;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

/* ── H2 — deep violet-blue gradient + gradient left pill ─── */
.entry-content h2,
.wp-block-post-content h2 {
  font-size: clamp(1.45rem, 2vw + 0.6rem, 2rem) !important;
  letter-spacing: -0.015em;
  padding-left: 1.1rem;
  background: linear-gradient(120deg, #1d4ed8 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}
.entry-content h2::before,
.wp-block-post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* ── H3 — teal-to-violet gradient + diamond glyph ────────── */
.entry-content h3,
.wp-block-post-content h3 {
  font-size: clamp(1.2rem, 1.4vw + 0.5rem, 1.5rem) !important;
  padding-left: 1.6em;
  background: linear-gradient(120deg, #0369a1 0%, #2563eb 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
  letter-spacing: -0.01em;
}
.entry-content h3::before,
.wp-block-post-content h3::before {
  content: '◈';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── H4 — violet-to-pink CAPS + double arrow prefix ──────── */
.entry-content h4,
.wp-block-post-content h4 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  font-family: var(--font-sans) !important;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding-left: 1.5em;
  margin-top: 2em;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
}
.entry-content h4::before,
.wp-block-post-content h4::before {
  content: '▸▸';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75em;
  letter-spacing: -0.15em;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── H5 — rose-pink uppercase label with dash ────────────── */
.entry-content h5,
.wp-block-post-content h5 {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  font-family: var(--font-sans) !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #be185d !important;
  margin-top: 1.8em;
  padding-left: 1.2em;
}
.entry-content h5::before,
.wp-block-post-content h5::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #f472b6;
  font-weight: 300;
}

/* ── H6 — slate italic with side rule ───────────────────── */
.entry-content h6,
.wp-block-post-content h6 {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  font-family: var(--font-sans) !important;
  font-style: italic;
  color: #64748b !important;
  margin-top: 1.5em;
  padding-left: 0.9em;
  border-left: 2px solid #94a3b8;
}

/* ── Links ───────────────────────────────────────────────── */
.entry-content a {
  color: var(--c-accent) !important;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}
.entry-content a:hover {
  color: var(--c-accent-2) !important;
  text-decoration-color: var(--c-accent-2);
}

/* ── Blockquote ──────────────────────────────────────────── */
.entry-content blockquote {
  position: relative;
  margin: 2.5em 0;
  padding: 1.4em 2em 1.4em 1.6em;
  background: var(--c-highlight);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1em;
  color: #0c0f14 !important;
  line-height: 1.75;
  box-shadow: 0 2px 16px rgba(37,99,235,0.08);
  overflow: visible;
}
.entry-content blockquote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 2.5em;
  color: var(--c-accent);
  opacity: 0.2;
  position: absolute;
  top: 0.1em;
  right: 0.35em;
  line-height: 1;
  pointer-events: none;
}
.entry-content blockquote p { margin: 0 0 0.5em; color: #0c0f14 !important; }
.entry-content blockquote p:last-of-type { margin-bottom: 0; }
.entry-content blockquote cite,
.entry-content blockquote footer {
  display: block;
  margin-top: 0.9em;
  font-size: 0.78em;
  font-style: normal;
  font-family: var(--font-sans);
  color: #4a5568 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.entry-content blockquote cite::before { content: '— '; }

/* ── Horizontal Rule ─────────────────────────────────────── */
.entry-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #0ea5e9, transparent);
  margin: 3em 0;
  border-radius: 2px;
}

/* ── Lists ───────────────────────────────────────────────── */
.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
  color: #1c2128 !important;
}
.entry-content li,
.wp-block-post-content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
  color: #1c2128 !important;
}
.entry-content ul li::marker { color: var(--c-accent-2); }
.entry-content ol {
  list-style: none;
  counter-reset: ol-counter;
  padding-left: 2.5em;
}
.entry-content ol > li {
  counter-increment: ol-counter;
  position: relative;
}
.entry-content ol > li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: -2.4em;
  top: 0.05em;
  font-family: var(--font-sans);
  font-size: 0.75em;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  width: 2em;
  text-align: right;
}
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul { margin-top: 0.4em; margin-bottom: 0.4em; }

/* ── Callout / Info-box (single-cell Table block) ────────── */
.entry-content figure.wp-block-table.is-style-callout,
.entry-content figure.wp-block-table.is-style-callout table {
  box-shadow: none; border-radius: var(--radius);
  overflow: visible; width: 100%; min-width: unset; max-width: 100%;
}
.entry-content figure.wp-block-table.is-style-callout table {
  background: #fffbeb; border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b; margin: 0;
}
.entry-content figure.wp-block-table.is-style-callout tbody tr { border-bottom: none; }
.entry-content figure.wp-block-table.is-style-callout tbody tr:hover { background: transparent; }
.entry-content figure.wp-block-table.is-style-callout tbody td {
  padding: 1em 1.2em; white-space: normal; font-size: 0.95em;
  line-height: 1.7; color: #1c2128 !important; min-width: unset;
}
/* Auto-detect single-cell tables */
.entry-content figure.wp-block-table:has(tbody):not(:has(thead)):not(:has(tfoot)):has(td:only-child) table {
  background: #fffbeb; border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b; box-shadow: none;
  min-width: unset; width: 100%; max-width: 100%;
}
.entry-content figure.wp-block-table:has(tbody):not(:has(thead)):not(:has(tfoot)):has(td:only-child) tbody tr { border-bottom: none; }
.entry-content figure.wp-block-table:has(tbody):not(:has(thead)):not(:has(tfoot)):has(td:only-child) tbody tr:hover { background: transparent; }
.entry-content figure.wp-block-table:has(tbody):not(:has(thead)):not(:has(tfoot)):has(td:only-child) tbody td {
  white-space: normal; padding: 1em 1.2em; font-size: 0.95em;
  line-height: 1.7; min-width: unset;
}

/* ── Tables ──────────────────────────────────────────────── */
.entry-content table {
  border-collapse: collapse;
  margin: 2.5em 0;
  font-family: var(--font-sans);
  font-size: 0.92em;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  max-width: none;
}
.entry-content thead {
  background: linear-gradient(90deg, #1d4ed8, #6d28d9);
  color: #fff;
}
.entry-content thead th {
  padding: 0.85em 1.2em;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78em;
  border: none;
  color: #fff !important;
  white-space: nowrap;
}
.entry-content tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}
.entry-content tbody tr:nth-child(even) { background: var(--c-surface); }
.entry-content tbody tr:hover { background: var(--c-highlight); }
.entry-content tbody td {
  padding: 0.8em 1.2em; color: #1c2128 !important;
  border: none; vertical-align: top; white-space: normal; min-width: 90px;
}
.entry-content tfoot td {
  padding: 0.8em 1.2em; background: var(--c-surface);
  font-weight: 600; font-family: var(--font-sans);
  border-top: 2px solid var(--c-border); color: #0c0f14 !important; white-space: nowrap;
}
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
}
@media (max-width: 640px) {
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Code ────────────────────────────────────────────────── */
.entry-content code {
  font-family: var(--font-mono); font-size: 0.875em;
  background: var(--c-surface); color: var(--c-accent-2) !important;
  padding: 0.15em 0.45em; border-radius: 4px; border: 1px solid var(--c-border);
}
.entry-content pre {
  font-family: var(--font-mono); font-size: 0.875em;
  background: #0c0f14; color: #e2e8f0 !important;
  padding: 1.5em 1.8em; border-radius: var(--radius);
  overflow-x: auto; line-height: 1.7; margin: 2em 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.entry-content pre code { background: none; border: none; color: inherit !important; padding: 0; font-size: 1em; }

/* ── kbd ─────────────────────────────────────────────────── */
.entry-content kbd {
  font-family: var(--font-mono); font-size: 0.82em;
  background: var(--c-surface); color: #0c0f14 !important;
  border: 1px solid var(--c-border); border-bottom-width: 3px;
  border-radius: 4px; padding: 0.1em 0.5em;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* ── Mark ────────────────────────────────────────────────── */
.entry-content mark {
  background: var(--c-highlight); color: #0c0f14 !important;
  padding: 0.05em 0.25em; border-radius: 3px;
}

/* ── Strong & Em ─────────────────────────────────────────── */
.entry-content strong { font-weight: 700; color: #0c0f14 !important; }
.entry-content em { color: #1c2128 !important; }

/* ── Small ───────────────────────────────────────────────── */
.entry-content small { font-family: var(--font-sans); font-size: 0.8em; color: #4a5568 !important; }

/* ── sup / sub ───────────────────────────────────────────── */
.entry-content sup,
.entry-content sub { font-size: 0.72em; font-family: var(--font-sans); color: var(--c-accent) !important; }

/* ── Figure / Figcaption ─────────────────────────────────── */
.entry-content figure { margin: 2.5em 0; }
.entry-content figcaption {
  font-family: var(--font-sans); font-size: 0.82em; color: #4a5568 !important;
  margin-top: 0.6em; text-align: center; font-style: italic; letter-spacing: 0.02em;
}

/* ── Images ──────────────────────────────────────────────── */
.entry-content img { border-radius: var(--radius); max-width: 100%; height: auto; display: block; }

/* ── Definition Lists ────────────────────────────────────── */
.entry-content dl { margin: 1.5em 0; }
.entry-content dt {
  font-family: var(--font-sans); font-weight: 600; color: #0c0f14 !important;
  margin-top: 1em; font-size: 0.95em; letter-spacing: 0.02em;
}
.entry-content dd {
  margin-left: 1.5em; color: #1c2128 !important;
  border-left: 2px solid var(--c-accent); padding-left: 1em; margin-top: 0.3em;
}

/* ── Details / Summary ───────────────────────────────────── */
.entry-content details {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 0.8em 1.2em; margin: 1.5em 0; background: var(--c-surface);
}
.entry-content summary {
  font-family: var(--font-sans); font-weight: 600; cursor: pointer;
  color: #0c0f14 !important; list-style: none; display: flex; align-items: center; gap: 0.5em;
}
.entry-content summary::before { content: '▶'; font-size: 0.65em; color: var(--c-accent); transition: transform var(--transition); }
.entry-content details[open] summary::before { transform: rotate(90deg); }
.entry-content details[open] summary { margin-bottom: 0.8em; }

/* ── Address ─────────────────────────────────────────────── */
.entry-content address {
  font-family: var(--font-sans); font-style: normal; color: #1c2128 !important;
  border-left: 3px solid var(--c-border); padding-left: 1em; margin: 1.5em 0;
}

/* ── WordPress Blocks ────────────────────────────────────── */
.entry-content .wp-block-quote { border-left: none; }
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius); transition: opacity var(--transition), transform var(--transition);
}
.entry-content .wp-block-button__link:hover { opacity: 0.88; transform: translateY(-1px); }
.entry-content .wp-block-pullquote {
  border-top: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent);
  padding: 1.5em 0; margin: 3em 0;
}
.entry-content .wp-block-pullquote blockquote {
  background: none; box-shadow: none; border-left: none;
  padding: 0; font-size: 1.4em; text-align: center;
}
.entry-content .wp-block-pullquote blockquote::before { display: none; }
.entry-content .wp-block-separator {
  border: none; height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, #0ea5e9, transparent);
  margin: 3em auto; max-width: 200px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .entry-content h1 { font-size: 1.9rem !important; }
  .entry-content h2 { font-size: 1.45rem !important; padding-left: 0.9rem; }
  .entry-content h3 { font-size: 1.2rem !important; }
  .entry-content h4 { font-size: 0.88rem !important; }
  .entry-content blockquote { padding: 1.1em 1.4em; font-size: 1em; }
  .entry-content > p:first-of-type::first-letter { font-size: 3em; }
}

/* Dark mode intentionally disabled — site uses light theme only */