/*
Theme Name: Kea Devs
Theme URI: https://keadevs.com
Author: Kea Devs
Author URI: https://keadevs.com
Description: A clean, modern theme for Kea Devs — a solo web developer offering WordPress, Webflow, and custom web development services. Features subtle scroll animations, a responsive header, and a minimal blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kea-devs
Tags: blog, portfolio, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --ink: #15171a;
  --ink-soft: #45494f;
  --muted: #7a7e85;
  --line: #e3dfd4;
  --accent: #ff5b1f;
  --accent-soft: #ffe9dc;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow-md: 0 12px 30px -12px rgba(20, 22, 26, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(20, 22, 26, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --container-reading: 760px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-reading {
  max-width: var(--container-reading);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: 180px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--ink);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links ul { list-style: none; padding-left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-stats div .num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats div .lbl {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}
.hero-badge .pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-badge .txt strong { display: block; font-size: 14px; font-weight: 600; }
.hero-badge .txt span { font-size: 12.5px; color: var(--muted); }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.logo-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.brand:hover { opacity: 1; }
.brand.sans {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 16px;
}

/* ---------- Section base ---------- */
section.block { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-head h2 em { font-style: italic; color: var(--ink-soft); }
.section-head p {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 580px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}
.service:hover .service-icon { background: var(--ink); color: var(--bg); }
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.service p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.service ul {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.service ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service ul li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- About me (solo developer) ---------- */
.about-me { background: var(--bg-alt); }
.about-me-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-tag {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}
.about-me h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.about-me h2 em { font-style: italic; color: var(--ink-soft); }
.about-me p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 560px;
}
.about-me .signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-top: 8px;
  margin-bottom: 32px;
}
.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
}
.credential {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.credential .num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.credential .lbl {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Process ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.process-list { list-style: none; margin-top: 36px; }
.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.process-list h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.process-list p { font-size: 15px; color: var(--ink-soft); }
.about-inner-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.about-inner-heading em { font-style: italic; color: var(--ink-soft); }
.about-inner-lead {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 520px;
}

/* ---------- Testimonial ---------- */
.testimonial { background: var(--ink); color: var(--bg); }
.testimonial-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.testimonial blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}
.testimonial blockquote em { color: #ff8a5b; font-style: italic; }
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.author-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info strong { display: block; font-weight: 500; font-size: 15px; }
.author-info span { font-size: 13px; color: rgba(247, 245, 240, 0.6); }

/* ---------- CTA ---------- */
.cta-inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  bottom: -150px; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-inner h2 em { font-style: italic; color: var(--ink-soft); }
.cta-inner p { color: var(--ink-soft); font-size: 17px; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Page header (for blog/single/page) ---------- */
.page-header {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; max-width: 760px; }
.page-header .section-tag { margin-bottom: 16px; }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.page-header h1 em { font-style: italic; color: var(--accent); }
.page-header p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 580px;
}

/* ---------- Blog archive ---------- */
.blog-list {
  padding: 80px 0 120px;
}
.post-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.post-card:first-child { padding-top: 0; }
.post-card-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.post-card-meta .cat { color: var(--accent); font-weight: 600; }
.post-card-meta .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.post-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.post-card h2 a { transition: color 0.25s ease; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .excerpt {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 580px;
}
.post-card .read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card .read-more .arrow { transition: transform 0.25s ease; }
.post-card:hover .read-more .arrow { transform: translateX(4px); }

/* Pagination */
.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination a, .pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--card);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Single post ---------- */
.single-hero {
  padding: 80px 0 0px;
}
.single-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.single-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.single-meta .cat { color: var(--accent); font-weight: 600; }
.single-meta .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.single-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.single-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.single-author .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
}
.single-author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.single-author-info strong { display: block; font-size: 14.5px; font-weight: 600; }
.single-author-info span { font-size: 13px; color: var(--muted); }

.featured-image {
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  padding-bottom: 80px;
}
.post-content > * { margin-bottom: 1.4em; }
.post-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.post-content h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.post-content p { color: var(--ink-soft); }
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content ul, .post-content ol { padding-left: 1.4em; color: var(--ink-soft); }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin: 1.6em 0;
}
.post-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-content pre {
  background: var(--ink);
  color: var(--bg);
  padding: 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content img {
  border-radius: var(--radius-md);
  margin: 1.6em 0;
}
.post-content figure { margin: 1.6em 0; }
.post-content figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.post-tags a {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.post-tags a:hover { background: var(--ink); color: var(--bg); }

.post-nav {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-nav a {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  display: block;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.post-nav a:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-nav .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.post-nav .title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.post-nav .next { text-align: right; }

/* ---------- Comments ---------- */
.comments-area {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.comments-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 32px; }
.comment-list .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-list .avatar { border-radius: 50%; }
.comment-list .fn { font-weight: 600; font-style: normal; font-size: 14.5px; }
.comment-list .comment-meta { font-size: 13px; color: var(--muted); }
.comment-list .comment-content { font-size: 15.5px; color: var(--ink-soft); }
.comment-respond { margin-top: 40px; }
.comment-respond .comment-reply-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 16px;
}
.comment-form p { margin-bottom: 16px; }
.comment-form label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.comment-form .submit {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}
.comment-form .submit:hover { background: var(--accent); }

/* ---------- 404 / no results ---------- */
.no-results {
  padding: 120px 24px;
  text-align: center;
}
.no-results h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.no-results h2 em { font-style: italic; color: var(--accent); }
.no-results p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 320px;
  margin-bottom: 24px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.socials a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--ink); }

/* ---------- WP Core required styles ---------- */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: -10vw; margin-right: -10vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery { display: grid; gap: 12px; margin: 1.5em 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-me-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .credentials { max-width: 100%; }
  .cta-inner { grid-template-columns: 1fr; padding: 48px 32px; text-align: center; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .logo-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .logo-strip-grid .brand:nth-child(4),
  .logo-strip-grid .brand:nth-child(5) { display: none; }
  section.block { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .post-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .page-header { padding: 64px 0 40px; }

  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta-wrap { display: none; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .cta-inner { padding: 40px 24px; }
  .credentials { grid-template-columns: 1fr; }
  .post-content { font-size: 17px; }
}
