/*
Theme Name: JoeCanWrite 2026
Theme URI: https://joecanwrite.com
Description: Custom block theme — Dakar palette × Ollie structure
Version: 1.0.5
Requires at least: 6.5
Requires PHP: 8.0
Author: Joe Fylan
License: GPL-2.0-or-later
Text Domain: joecanwrite-2026
*/

/* Self-hosted Hanken Grotesk (latin subset) — removes the render-blocking Google Fonts request */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/hanken-grotesk-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/hanken-grotesk-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/hanken-grotesk-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/hanken-grotesk-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/hanken-grotesk-800.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:900;font-display:swap;src:url('fonts/hanken-grotesk-900.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ===============================
   DESIGN TOKENS
   =============================== */
:root {
  --ink: #15141a;
  --soft: #4c4a55;
  --faint: #8a8792;
  --accent: #df3b78;
  --accent2: #0d9488;
  --line: rgba(21,20,26,.12);
  --font: 'Hanken Grotesk', system-ui, sans-serif;
  --max: 1140px;
}

/* ===============================
   BASE RESETS / WP OVERRIDES
   =============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(158deg, #e2eeee 0%, #e8ebf2 40%, #ebe7f1 70%, #eee6ed 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Neutralise WP block-theme layout injection */
.wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wp-site-blocks,
.wp-block-template-part {
  background: transparent;
}

a { color: inherit; text-decoration: none; }

/* ===============================
   LAYOUT UTILITY
   =============================== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===============================
   NAV
   =============================== */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233,237,242,.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.admin-bar nav.site-nav { top: 32px; }

.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.logo a { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a { font-size: 15px; font-weight: 500; color: var(--soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .cta { color: var(--accent); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===============================
   BUTTONS
   =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 7px;
  padding: 14px 26px;
  transition: .15s;
}

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); }

.link-arrow {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent); }

/* ===============================
   HERO
   =============================== */
.hero { padding: 56px 0 48px; }

/* Two-column hero layout */
.hero-cols {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(42px,6.2vw,78px);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}

.hero h1 .hl { color: var(--accent); }

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--soft);
  font-weight: 400;
  margin-bottom: 18px;
}

.hero-positioning {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 24px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.trust { font-size: 14.5px; color: var(--faint); }
.trust b { color: var(--soft); font-weight: 600; }

/* Hero right column: credentials card */
.hero-right { padding-top: 8px; }

.hero-cred {
  background: rgba(255,255,255,.60);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 28px 28px 24px;
}

.hero-cred-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--soft);
  margin-bottom: 14px;
}

.hero-cred-who {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}

.hero-cred-org {
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
  margin-top: 2px;
}

.hero-cred-stats {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-cred-stat .n {
  display: block;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.hero-cred-stat .l {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

/* ===============================
   TICKER (trust strip)
   =============================== */
.ticker-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}

.ticker-label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.ticker-list {
  display: flex;
  align-items: center;
  animation: ticker 50s linear infinite;
  white-space: nowrap;
}

.ticker-list:hover { animation-play-state: paused; }

.ticker-item {
  font-weight: 700;
  font-size: 15px;
  color: var(--soft);
  padding: 0 4px;
}

.ticker-sep {
  color: var(--accent);
  font-size: 10px;
  padding: 0 14px;
  opacity: .5;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===============================
   TWO-COLUMN SECTIONS (Dakar)
   =============================== */
.two {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.two .head {
  position: sticky;
  top: 100px;
  align-self: start;
}

.kick {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.two h2 {
  font-weight: 800;
  font-size: clamp(28px,3vw,36px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.two .head p {
  margin-top: 14px;
  color: var(--soft);
  font-size: 16px;
  font-weight: 400;
}

/* Item rows */
.item { padding: 24px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: none; padding-top: 0; }

.item h3 {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.item h3 .n { color: var(--accent); font-weight: 900; margin-right: 12px; }
.item p { color: var(--soft); font-size: 16px; line-height: 1.6; font-weight: 400; }

/* ===============================
   WORK LIST
   =============================== */
.witem {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.witem:first-child { border-top: none; padding-top: 0; }
.witem .c { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.witem h4 { font-weight: 700; font-size: 18.5px; letter-spacing: -.01em; transition: .15s; }
.witem:hover h4 { color: var(--accent); }
.witem .t { font-size: 13.5px; color: var(--faint); margin-top: 4px; font-weight: 500; }

/* ===============================
   TESTIMONIALS
   =============================== */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.tcard {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 26px;
}

.tcard p { font-size: 15.5px; line-height: 1.55; margin-bottom: 16px; }
.tcard .who { font-weight: 800; font-size: 14.5px; }
.tcard .org { font-size: 13px; color: var(--faint); font-weight: 500; }

/* ===============================
   FAQ (visible — no accordion)
   =============================== */
.faq { padding: 22px 0; border-top: 1px solid var(--line); }
.faq:first-child { border-top: none; padding-top: 0; }

.faq h3 {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.faq p { color: var(--soft); font-size: 16px; line-height: 1.6; font-weight: 400; }

/* ===============================
   CONTACT
   =============================== */
.contact { padding: 90px 0; }

.contact h2 {
  font-weight: 900;
  font-size: clamp(34px,5vw,56px);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  max-width: 16ch;
}

.contact p {
  font-size: 18px;
  color: var(--soft);
  max-width: 560px;
  margin-bottom: 0;
}

/* Two-column contact: copy left, form right */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-copy h2 { max-width: 14ch; }

.contact-alt {
  margin-top: 22px;
  font-size: 15px;
  color: var(--faint);
}

.contact-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

/* Contact Form 7 — restyled to match the design */
.contact-form .wpcf7 { margin: 0; }
.contact-form .cf-field { margin-bottom: 16px; }

.contact-form .cf-field input,
.contact-form .cf-field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .15s;
}

.contact-form .cf-field textarea { height: 120px; min-height: 120px; resize: vertical; line-height: 1.5; }

.contact-form .cf-field input:focus,
.contact-form .cf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.contact-form .cf-field input::placeholder,
.contact-form .cf-field textarea::placeholder { color: var(--faint); }

.contact-form .cf-submit { margin-top: 4px; }

.contact-form input.wpcf7-submit {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 7px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .15s;
}

.contact-form input.wpcf7-submit:hover { background: var(--accent); }

/* CF7 validation + response messages */
.contact-form .wpcf7-not-valid-tip { color: var(--accent); font-size: 13px; margin-top: 5px; }
.contact-form .wpcf7-form-control.wpcf7-not-valid { border-color: var(--accent) !important; }

.contact-form .wpcf7-response-output {
  border-radius: 8px !important;
  border-width: 1px !important;
  padding: 12px 16px !important;
  font-size: 14.5px;
  margin: 18px 0 0 !important;
}

.contact-form .wpcf7-spinner { margin: 0 0 0 12px; }

@media (max-width: 780px) {
  .contact-cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ===============================
   FOOTER
   =============================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.foot small { color: var(--faint); font-size: 13.5px; font-weight: 500; }
.foot a { color: var(--soft); font-size: 14px; font-weight: 500; margin-left: 22px; }
.foot a:hover { color: var(--ink); }
.foot small a { margin-left: 0; color: var(--soft); text-decoration: none; }
.foot small a:hover { color: var(--accent); }

/* ===============================
   BLOG INDEX
   =============================== */
.blog-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 32px;
}

.blog-wrap.wp-block-group {
  max-width: 780px;
  padding: 80px 32px;
}

/* Blog index — two-column with sidebar */
.blog-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.blog-main { min-width: 0; }

.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}

.blog-sidebar .wp-block-latest-posts { list-style: none; margin: 0; padding: 0; }
.blog-sidebar .wp-block-latest-posts li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.blog-sidebar .wp-block-latest-posts li:last-child { border-bottom: none; }
.blog-sidebar .wp-block-latest-posts a { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.blog-sidebar .wp-block-latest-posts a:hover { color: var(--accent); }
.blog-sidebar .wp-block-latest-posts__post-date { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(223,59,120,.09), rgba(13,148,136,.06));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.sidebar-cta-head { font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); margin: 0 0 8px; }
.sidebar-cta p { font-size: 14px; color: var(--soft); line-height: 1.5; margin: 0 0 16px; }
.sidebar-btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 7px; text-decoration: none; transition: background .15s; }
.sidebar-btn:hover { background: var(--accent); }

@media (max-width: 880px) {
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar { position: static; }
}

.blog-index-title {
  font-weight: 900;
  font-size: clamp(36px,5vw,52px);
  letter-spacing: -.03em;
  line-height: 1.05;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.archive-title {
  font-weight: 900;
  font-size: clamp(36px,5vw,52px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.archive-title:has(+ .archive-description:not(:empty)) {
  border-bottom: none;
  padding-bottom: 14px;
}
.archive-description {
  margin: 0;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}
.archive-description:empty { display: none; }

.blog-main .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-main .wp-block-post-template > li {
  margin: 0;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.blog-main .wp-block-post-template > li:first-child { padding-top: 40px; }

.blog-main .wp-block-post-template > li .wp-block-post-featured-image {
  margin: 0 0 30px;
}

.blog-main .wp-block-post-template > li .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(21,20,26,.08);
  box-shadow: 0 10px 30px -14px rgba(21,20,26,.20);
}

.blog-main .wp-block-post-template > li .wp-block-post-date {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.blog-main .wp-block-post-template > li .wp-block-post-title {
  font-weight: 800;
  font-size: clamp(19px,2vw,22px);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.blog-main .wp-block-post-template > li .wp-block-post-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-main .wp-block-post-template > li .wp-block-post-title a:hover { color: var(--accent); }

.blog-main .wp-block-post-template > li .wp-block-post-excerpt {
  font-size: 15px;
  color: var(--soft);
  margin-top: 8px;
  line-height: 1.5;
}

/* Pagination */
.wp-block-query-pagination {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  font-size: 15px;
  font-weight: 700;
}

.wp-block-query-pagination a { color: var(--soft); }
.wp-block-query-pagination a:hover { color: var(--accent); }

/* ===============================
   SINGLE POST
   =============================== */
.single-post-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 32px 44px;
}

.single-post-wrap.wp-block-group {
  max-width: 780px;
  padding: 80px 32px;
}

.single-post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.single-post-header .wp-block-post-date {
  font-size: 13px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.single-post-header .wp-block-post-title {
  font-weight: 900;
  font-size: clamp(32px,5vw,52px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.single-post-content,
.single-post-wrap .wp-block-post-content {
  font-size: 17px;
  line-height: 1.75;
}

.single-post-content h2,
.single-post-wrap .wp-block-post-content h2 {
  font-weight: 800;
  font-size: clamp(22px,2.5vw,28px);
  margin: 48px 0 16px;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.single-post-content h3,
.single-post-wrap .wp-block-post-content h3 {
  font-weight: 700;
  font-size: 20px;
  margin: 36px 0 12px;
  letter-spacing: -.01em;
}

.single-post-content p,
.single-post-wrap .wp-block-post-content p {
  margin-bottom: 22px;
}

.single-post-content a,
.single-post-wrap .wp-block-post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content ul,
.single-post-content ol,
.single-post-wrap .wp-block-post-content ul,
.single-post-wrap .wp-block-post-content ol {
  padding-left: 24px;
  margin-bottom: 22px;
}

.single-post-content li,
.single-post-wrap .wp-block-post-content li {
  margin-bottom: 8px;
}

.single-post-content blockquote,
.single-post-wrap .wp-block-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--soft);
  font-size: 18px;
}

/* Pullquote — tighten the default oversized spacing */
.single-post-content .wp-block-pullquote,
.single-post-wrap .wp-block-pullquote {
  margin: 32px 0;
  padding: 6px 0 6px 24px;
  border: none;
  border-left: 3px solid var(--accent);
  text-align: left;
}

.single-post-content .wp-block-pullquote blockquote,
.single-post-wrap .wp-block-pullquote blockquote {
  margin: 0;
  border: none;
  padding: 0;
}

.single-post-content .wp-block-pullquote p,
.single-post-wrap .wp-block-pullquote p {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.single-post-content img,
.single-post-wrap .wp-block-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 44px 0;
  border: 1px solid rgba(21,20,26,.08);
  box-shadow: 0 10px 34px -12px rgba(21,20,26,.22);
}

/* Hire-me CTA box */
.single-post-content .hire-cta,
.single-post-wrap .hire-cta {
  background: linear-gradient(135deg, rgba(223,59,120,.08), rgba(255,255,255,.5));
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 30px 34px;
  margin: 48px 0;
}

.single-post-content .hire-cta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft);
}

.single-post-content .hire-cta strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.single-post-content .hire-cta a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content code,
.single-post-wrap .wp-block-post-content code {
  background: rgba(21,20,26,.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font);
}

.single-post-content pre,
.single-post-wrap .wp-block-post-content pre {
  background: var(--ink);
  color: #fff;
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.post-nav-group {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  gap: 24px;
}

.wp-block-post-navigation-link a {
  font-weight: 700;
  font-size: 15px;
  color: var(--soft);
}

.wp-block-post-navigation-link a:hover { color: var(--accent); }

/* Category pills (end of post) + sidebar topics */
.post-cats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 44px;
}
.post-cats-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.post-cats a,
.sidebar-cats a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
  background: rgba(255,255,255,.5);
  transition: background .15s, color .15s, border-color .15s;
}
.post-cats a:hover,
.sidebar-cats a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.sidebar-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-cats li { margin: 0; }

/* ===============================
   AUTHOR BOX
   =============================== */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 40px 0 0;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.5);
}

.author-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.author-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 4px;
}

.author-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 8px;
}

.author-bio {
  font-size: 15.5px;
  color: var(--soft);
  line-height: 1.55;
  margin: 0 0 12px;
}

.author-links { margin: 0; }

.author-links a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent);
  margin-right: 20px;
  text-decoration: none;
}

.author-links a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .author-box { flex-direction: column; gap: 16px; }
}

/* ===============================
   PORTFOLIO PAGE
   =============================== */
.portfolio-wrap { padding: 64px 0 90px; }
.portfolio-title { font-weight: 900; font-size: clamp(36px,5vw,56px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; }
.portfolio-lead { font-size: 19px; color: var(--soft); max-width: 660px; margin: 0 0 36px; line-height: 1.55; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pf-btn { font-family: var(--font); font-weight: 700; font-size: 14px; color: var(--soft); background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: .15s; }
.pf-btn:hover { border-color: var(--accent); color: var(--ink); }
.pf-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pf-item { display: block; padding: 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.5); transition: transform .15s, border-color .15s; }
.pf-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.pf-pub { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pf-title-t { display: block; font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }

/* "See full portfolio" item in the homepage work list */
.witem-more h4 { color: var(--accent); }

/* "Read more testimonials" link under homepage cards */
.t-more { grid-column: 2; margin: 26px 0 0; }
.t-more a { font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.t-more a:hover { color: var(--ink); }

/* ===============================
   TESTIMONIALS PAGE
   =============================== */
.testimonials-wrap { padding: 64px 0 90px; }
.testimonials-wrap .ttitle { font-weight: 900; font-size: clamp(36px,5vw,56px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; }
.testimonials-wrap .tlead { font-size: 19px; color: var(--soft); max-width: 640px; margin: 0 0 40px; line-height: 1.55; }
.tpage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 820px) {
  .pf-grid { grid-template-columns: 1fr; }
  .tpage-grid { grid-template-columns: 1fr; }
}

/* ===============================
   STATIC PAGES
   =============================== */
.page-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 32px;
}

.page-content-wrap.wp-block-group {
  max-width: 780px;
  padding: 80px 32px;
}

.page-title {
  font-weight: 900;
  font-size: clamp(32px,5vw,48px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* ===============================
   RESPONSIVE
   =============================== */
/* Stack two-column sections on tablets + large phones */
@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; gap: 30px; padding: 50px 32px; }
  .two .head { position: static; }
  .tgrid { grid-template-columns: 1fr; }
  .t-more { grid-column: 1; margin-top: 18px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(233,237,242,.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 6px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: none; }

  .hero-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-right { display: none; }

  .hero h1 { font-size: clamp(36px,10vw,56px); }

  .blog-wrap,
  .single-post-wrap,
  .page-content-wrap {
    padding: 48px 20px;
  }
}

@media (max-width: 480px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-in { padding: 0 20px; }
}
