/*
Theme Name: Tasneem
Theme URI: https://draftwithtasneem.com
Author: BengalCoder
Author URI: https://bengalcoder.com
Description: Editorial portfolio theme for S.M. Tasneem, rebuilt from the static HTML version. Every section is a dynamic Gutenberg block (block category: Tasneem); prompts live in their own Prompt Library post type.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tasneem
*/

/* ============================================================
   TASNEEM — stylesheet
   All colours live in :root. Change once, whole site follows.
   ============================================================ */

:root {
  --bg:        #d6dde6;
  --bg-soft:   #cdd5e0;
  --ink:       #10161e;
  --ink-dim:   #333d4a;
  --ink-mute:  #4a5563;
  --ink-faint: #6a7480;
  --purple:    #2f5488;
  --purple-dp: #1c2530;
  --purple-hv: #2b3a4d;
  --line:      rgba(74, 109, 156, 0.22);
  --line-soft: rgba(28, 37, 48, 0.10);
  --maxw:      1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 44px;
  position: relative;
  z-index: 1;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-word {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 3.2px;
  font-weight: 500;
}
.logo-icon {
  width: 19px;
  height: 19px;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.2,.8,.3,1);
}
.logo:hover .logo-icon { transform: rotate(-12deg) scale(1.1); }

/* ---------- Header ---------- */
header { padding: 26px 0; position: relative; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.bar-right { display: flex; align-items: center; gap: 30px; }

.quick-links { display: flex; align-items: center; gap: 28px; }
.quick-links a {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}
.quick-links a:hover, .quick-links a.active { color: var(--purple); }

.burger {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.burger span {
  width: 22px; height: 1.5px;
  background: var(--ink-mute);
  display: block;
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1),
              opacity 0.25s ease, background 0.25s ease;
}
.burger:hover span { background: var(--ink); }
.burger.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  background: rgba(214, 221, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 40;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 12px 24px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.menu a:hover, .menu a.active { color: var(--purple); transform: translateX(6px); }
.menu-socials {
  display: flex;
  gap: 26px;
  margin-top: 44px;
  color: var(--ink-faint);
  font-size: 17px;
}
.menu-socials a { color: inherit; font-size: inherit; padding: 0; }
.menu-socials a:hover { color: var(--purple); transform: translateY(-3px); }

main { flex: 1; position: relative; z-index: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2vh;
}

.glow {
  position: absolute;
  top: 4%; left: 50%;
  transform: translateX(-58%);
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,109,156,0.16), transparent 66%);
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

/* Portrait sits centred, bleeding into the page */
.portrait {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  min-width: 360px;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.portrait img {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  object-fit: cover;
  /* face pinned high; name overlaps the chest below */
  object-position: center 18%;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--bg) 0%, rgba(19,18,24,0.5) 12%, transparent 34%,
    transparent 66%, rgba(19,18,24,0.5) 88%, var(--bg) 100%);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(19,18,24,0.35) 0%, transparent 14%,
    transparent 48%, rgba(19,18,24,0.9) 82%, var(--bg) 100%);
}
.portrait .ph {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 1.4px;
}

/* Big name across the middle */
.hero-name {
  position: relative;
  z-index: 4;
  text-align: center;
  width: 100%;
}
.hero-name h1 {
  color: var(--ink);
  font-size: clamp(32px, 5.6vw, 62px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -2.5px;
  text-shadow: 0 6px 40px rgba(19,18,24,0.75);
  margin: 0;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: 18px;
  padding: 0 20px;
}
/* soft dark wash behind the lower text so it always reads */
.hero-copy::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  width: 140vw;
  height: calc(100% + 90px);
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(19,18,24,0.72) 26%,
    rgba(19,18,24,0.92) 60%,
    var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}
.role {
  color: var(--purple);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-bio {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 26px;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-socials {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
  color: var(--ink-faint);
  font-size: 15px;
}
.hero-socials a { color: inherit; text-decoration: none; transition: color 0.25s ease, transform 0.2s ease; }
.hero-socials a:hover { color: var(--purple); transform: translateY(-3px); }

/* ---------- Floating skill chips ---------- */
.chip {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(74, 109, 156, 0.08);
  backdrop-filter: blur(6px);
  color: #a99cb0;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 400;
  padding: 9px 17px;
  border-radius: 30px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.35s cubic-bezier(.2,.8,.3,1),
              background 0.35s cubic-bezier(.2,.8,.3,1),
              color 0.35s ease,
              transform 0.35s cubic-bezier(.2,.8,.3,1),
              box-shadow 0.35s ease,
              letter-spacing 0.35s ease;
  animation: float 6s ease-in-out infinite;
}
.chip i {
  font-size: 13px;
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}
.chip:hover {
  border-color: var(--purple);
  background: rgba(74, 109, 156, 0.34);
  color: #fbeef6;
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 0 0 4px rgba(74,109,156,0.10),
              0 0 30px rgba(74,109,156,0.55),
              0 10px 30px rgba(0,0,0,0.4);
  letter-spacing: 1.8px;
  animation-play-state: paused;
}
.chip:hover i { opacity: 1; width: 13px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.chip:nth-of-type(2n) { animation-delay: -2s; }
.chip:nth-of-type(3n) { animation-delay: -4s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--purple-dp);
  color: #eef2f7;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--purple-dp);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.btn:hover {
  background: var(--purple-hv);
  border-color: var(--purple-hv);
  box-shadow: 0 10px 30px rgba(28,37,48,0.18);
}
.btn:active { transform: scale(0.98); }

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--purple);
}
.btn-line:hover {
  background: rgba(74,109,156,0.16);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(74,109,156,0.28);
}

/* ---------- Page heads ---------- */
.page-head { padding: 48px 0 44px; }
.page-head h1 {
  color: var(--ink);
  font-size: clamp(30px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.page-head h1 .accent { color: var(--purple); }
.lede { color: var(--ink); font-size: 14.5px; max-width: 56ch; }
.page-body { padding-bottom: 90px; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(74,109,156,0.16);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin-bottom: 18px;
}
.card h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ---------- Search ---------- */
.searchbox {
  position: relative;
  max-width: 460px;
  margin-bottom: 26px;
}
.searchbox i {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.25s ease;
}
.searchbox input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 300;
  padding: 13px 46px 13px 44px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.searchbox input { color: var(--ink); }
.searchbox input::placeholder { color: var(--ink-faint); }
/* kill the browser's own clear (X) on every engine, so only our button shows */
.searchbox input {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.searchbox input::-webkit-search-cancel-button,
.searchbox input::-webkit-search-decoration,
.searchbox input::-webkit-search-results-button,
.searchbox input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.searchbox input::-ms-clear,
.searchbox input::-ms-reveal { display: none; width: 0; height: 0; }
.searchbox input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(74,109,156,0.2);
}
.searchbox input:focus ~ i { color: var(--purple); }
.searchbox .clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(74, 109, 156, 0.10);
  border: none;
  border-radius: 50%;
  color: var(--ink-mute);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.searchbox .clear.show { display: flex; }
.searchbox .clear:hover {
  background: rgba(74, 109, 156, 0.22);
  color: var(--purple);
}

.search-count {
  color: var(--ink-faint);
  font-size: 12px;
  margin-bottom: 20px;
}

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.acc-item.open { border-color: var(--line); background: rgba(255,255,255,0.035); }
.acc-item.hide { display: none; }
.acc-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  transition: color 0.25s ease;
}
.acc-head:hover { color: var(--ink); }
.acc-item.open .acc-head { color: var(--purple); font-weight: 400; }
.acc-chev { flex-shrink: 0; font-size: 16px; transition: transform 0.3s ease; }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 24px 24px; }
.acc-item.open .acc-body { display: block; }
.acc-tag {
  display: inline-block;
  background: rgba(74,109,156,0.16);
  color: var(--purple);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.prompt-text {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  margin-bottom: 18px;
}
mark {
  background: rgba(74,109,156,0.22);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 2px;
}

/* ---------- WriteUps ---------- */
.post-card { display: flex; flex-direction: column; text-decoration: none; padding: 0; overflow: hidden; }
.post-thumb {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.35s ease, transform 0.5s ease;
}
.post-card:hover .post-thumb { filter: saturate(1) brightness(1); transform: scale(1.04); }
.post-body { padding: 24px 26px 28px; }
.post-date {
  color: var(--purple);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.post-card h3 { font-size: 16px; margin: 10px 0; line-height: 1.45; }
.post-card p { color: var(--ink-dim); font-size: 13px; line-height: 1.75; }

/* ---------- Reader ---------- */
.article { max-width: 66ch; }
.article h1 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.3; }
.article-meta {
  color: var(--purple);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.article-hero { width: 100%; border-radius: 10px; margin-bottom: 36px; display: block; }
.article-content { color: var(--ink-dim); font-size: 15.5px; line-height: 1.95; }
.article-content p { margin-bottom: 24px; }
.article-content h2 { color: var(--ink); font-size: 21px; font-weight: 500; margin: 42px 0 16px; }
.article-content h3 { color: var(--ink); font-size: 17px; font-weight: 500; margin: 32px 0 12px; }
.article-content a { color: var(--purple); }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 26px 0; display: block; }
.article-content ul, .article-content ol { margin: 0 0 24px 22px; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
  border-left: 2px solid var(--purple);
  padding-left: 22px;
  color: var(--ink);
  margin: 28px 0;
}
.article-content pre {
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.article-content code { font-family: ui-monospace, monospace; font-size: 13px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.25s ease, gap 0.25s ease;
}
.back-link:hover { color: var(--purple); gap: 12px; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  color: var(--ink-dim);
  font-size: 11.5px;
  padding: 5px 13px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.card:hover .tag { border-color: var(--line); color: var(--ink); }

/* ---------- Works ---------- */
.proj-card { display: flex; flex-direction: column; }
.proj-card p { color: var(--ink-dim); font-size: 13px; line-height: 1.8; flex: 1; margin-bottom: 22px; }
.proj-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  color: var(--purple);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  padding: 13px 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 18px rgba(74,109,156,0.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.contact-list { list-style: none; }
.contact-list li { border-bottom: 1px solid var(--line-soft); }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-dim);
  font-size: 13.5px;
  text-decoration: none;
  padding: 17px 0;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.contact-list a:hover { color: var(--purple); padding-left: 6px; }
.contact-list i { font-size: 17px; color: var(--purple); }

/* ---------- Footer ---------- */
footer { padding: 32px 0; position: relative; z-index: 1; }
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.foot small {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.socials { display: flex; gap: 22px; }
.socials a {
  color: var(--ink-faint);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}
.socials a:hover { color: var(--purple); transform: translateY(-3px); }

/* ---------- States ---------- */
.state { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--ink-faint); font-size: 13px; }
.spinner {
  width: 24px; height: 24px;
  border: 1.5px solid var(--line-soft);
  border-top-color: var(--purple);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; margin-top: 46px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .chip { display: none; }
  .portrait { width: 88%; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .quick-links { display: none; }
  .portrait { width: 118%; min-width: 260px; }
  .hero { min-height: 76vh; padding-bottom: 4vh; }
  .hero-name h1 { letter-spacing: -1px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; max-width: 260px; }
  .menu a { font-size: 24px; }
  .lede { margin: 0 auto; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.section { margin-bottom: 64px; }
.section:last-child { margin-bottom: 0; }

.section-title {
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
  position: relative;
  padding: 0 0 30px 26px;
  border-left: 1px solid var(--line-soft);
}
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.tl-item.now::before {
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(74, 109, 156, 0.16);
}

.tl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tl-head h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}
.tl-role {
  color: var(--purple);
  font-size: 13px;
  font-weight: 400;
  margin: 3px 0 0;
}
.tl-desc {
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.8;
  margin: 0;
  max-width: 68ch;
}
.tl-period {
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ---------- Tools ---------- */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(28, 37, 48, 0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  padding: 15px 16px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.tool:hover {
  border-color: var(--purple);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(28, 37, 48, 0.10);
}
.tool i {
  color: var(--purple);
  font-size: 18px;
  flex-shrink: 0;
}
.tool span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool:hover span { color: var(--ink); }

@media (max-width: 640px) {
  .tools { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .tl-head { gap: 6px; }
}

/* ---------- Prompt pager ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}
.page-btn {
  min-width: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--ink);
}
.page-btn.active {
  background: var(--purple-dp);
  border-color: var(--purple-dp);
  color: #eef2f7;
  font-weight: 500;
}
.page-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Request a prompt ---------- */
.request-box {
  margin-top: 54px;
  padding: 30px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(74, 109, 156, 0.03);
  text-align: center;
}
.request-box h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}
.request-box > p {
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 22px;
}
.request-field {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.request-field input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 300;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.request-field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 18px rgba(74,109,156,0.18);
}
.request-field .btn { flex-shrink: 0; }
.request-note {
  color: var(--ink-faint);
  font-size: 12px;
  margin-top: 12px;
  min-height: 16px;
}

@media (max-width: 560px) {
  .request-field { flex-direction: column; }
  .request-field .btn { width: 100%; }
}

/* ---------- Editorial serif headings ---------- */
h1, h2, h3,
.hero-name h1, .page-head h1, .card h3, .section-title,
.tl-head h3, .post-card h3, .article h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0;
}
.page-head h1 { font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); }
.section-title { font-family: 'Poppins', sans-serif; }  /* keep the tiny labels sans */

/* ============================================================
   EDITORIAL HOMEPAGE
   ============================================================ */
body.home-page { }

.editorial-home {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 40px 0 70px;
}
.editorial-about {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.editorial-photo-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  box-shadow: 0 30px 60px rgba(28,37,48,0.18);
}
.editorial-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: grayscale(1) contrast(1.02);
}
.editorial-photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 12px; letter-spacing: 1px;
}
.editorial-kicker {
  color: var(--purple);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.editorial-copy h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 22px;
}
.editorial-text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  max-width: 52ch;
  margin-bottom: 30px;
}
.editorial-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.editorial-button {
  display: inline-block;
  background: var(--ink);
  color: #eef2f7;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.editorial-button:hover {
  background: #2b3a4d;
  box-shadow: 0 10px 26px rgba(28,37,48,0.2);
}
.editorial-button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.editorial-button.ghost:hover {
  background: rgba(74,109,156,0.08);
  border-color: var(--purple);
  box-shadow: none;
}
.editorial-socials {
  display: flex;
  gap: 22px;
  color: var(--ink-faint);
  font-size: 16px;
}
.editorial-socials a { color: inherit; text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
.editorial-socials a:hover { color: var(--purple); transform: translateY(-3px); }

@media (max-width: 860px) {
  .editorial-about { grid-template-columns: 1fr; gap: 34px; }
  .editorial-photo-wrap { max-width: 340px; margin: 0 auto; }
  .editorial-copy { text-align: center; }
  .editorial-text { margin-left: auto; margin-right: auto; }
  .editorial-cta, .editorial-socials { justify-content: center; }
}

/* ---------- Blog category filter bar ---------- */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.cat-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 9px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cat-pill:hover {
  border-color: var(--purple);
  background: #ffffff;
  transform: translateY(-1px);
}
.cat-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #eef2f7;
}


/* ============================================================
   WordPress / Gutenberg additions
   (classless h/p/span/ul/li inside class-carrying divs)
   ============================================================ */
.page-head h1 em { font-style: normal; color: var(--purple); }
.section-title h2 { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.tz-note { color: var(--ink-faint); font-size: 12px; margin-top: 14px; }
.page-end { padding-bottom: 90px; }
.tz-writeups template { display: none; }
.center .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.center .page-numbers { min-width: 38px; padding: 9px 14px; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--ink-dim); font-size: 12px; text-decoration: none; }
.center .page-numbers.current { background: var(--purple-dp); border-color: var(--purple-dp); color: #eef2f7; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
/* request note sits where a direct <p> child used to (matches .request-box > p spacing) */
.request-box .request-note { margin-bottom: 22px; }
/* post date was an inline span: keep the parent line box, style the span */
.post-body > .post-date { font-size: inherit; letter-spacing: normal; }
.post-body > .post-date span { font-size: 10px; letter-spacing: 1.8px; }