/*
Theme Name: Touheed
Theme URI: https://touheedhossain.com
Author: Khandaker Touheed Hossain
Author URI: https://touheedhossain.com
Description: Premium dark WordPress theme matching the touheedhossain.com portfolio. Built for editorial blog posts with a typographic single-post layout, premium card grid index, and a header/footer that mirrors the main site.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: touheed
Tags: blog, dark-mode, one-column, custom-menu, featured-images, threaded-comments
*/

/* ============== Tokens ============== */
:root {
  --bg: #0B0F19;
  --bg-2: #0e1322;
  --card: #121826;
  --card-2: #161d2e;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --primary: #1A5CFF;
  --primary-2: #3b82f6;
  --accent: #06B6D4;
  --gold: #F0A500;
  --success: #22C55E;
  --text: #FFFFFF;
  --muted: #94A3B8;
  --muted-2: #64748B;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 60px -20px rgba(0,0,0,.6);

  --container: 1240px;
  --container-narrow: 760px;
  --gutter: 28px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif Pro", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============== Reset / Base ============== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; }
li { list-style: none; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 12px 18px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============== Aurora background ============== */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(26,92,255,0.16), transparent 60%),
    radial-gradient(900px 700px at 10% 30%, rgba(6,182,212,0.08), transparent 60%),
    var(--bg);
}
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32;
  mix-blend-mode: screen;
  animation: float 22s ease-in-out infinite;
}
.aurora__blob--a { width: 520px; height: 520px; background: #1A5CFF; top: -120px; right: -120px; }
.aurora__blob--b { width: 420px; height: 420px; background: #06B6D4; top: 40%; left: -120px; animation-delay: -7s; }
.aurora__blob--c { width: 360px; height: 360px; background: #1d4ed8; bottom: -120px; right: 20%; animation-delay: -14s; }
@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-30px,0) scale(1.05); }
}

/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  padding: 6px 12px; border: 1px solid rgba(6,182,212,0.25);
  border-radius: 999px; background: rgba(6,182,212,0.06);
}

.grad {
  background: linear-gradient(120deg, #ffffff 0%, #93c5fd 40%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 16px 24px; font-size: 16px; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(180deg, #3b82f6, #1A5CFF);
  color: #fff; border-color: rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -10px rgba(26,92,255,.7);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 40px -8px rgba(26,92,255,.9);
}
.btn--ghost {
  background: rgba(255,255,255,0.03); color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 25, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.nav__mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #1e3a8a, #1A5CFF);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white; position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 18px -6px rgba(26,92,255,.7);
}
.nav__mark-dot {
  position: absolute; right: 4px; bottom: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav__name { font-size: 14px; }
.nav__links { margin-left: auto; display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .15s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__cta { display: flex; }
.nav__menu { display: none; background: none; border: none; padding: 8px; }
.nav__menu span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }
.nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: block; margin-left: auto; }
  .nav__mobile {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px var(--gutter) 20px; border-top: 1px solid var(--line);
    background: rgba(11,15,25,0.95);
  }
  .nav__mobile.is-open { display: flex; }
  .nav__mobile a { padding: 12px 8px; color: var(--muted); }
  .nav__mobile a.btn { margin-top: 8px; }
}

/* ============== Blog index ============== */
.blog-hero {
  padding: 96px 0 56px;
  text-align: center;
}
.blog-hero .eyebrow { margin-bottom: 24px; }
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 900px;
}
.blog-hero p {
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  text-wrap: pretty;
}

.section { padding: 32px 0 80px; }
.section--posts { padding-top: 16px; }
@media (max-width: 720px) { .section { padding: 24px 0 56px; } }

/* Post grid — 3 even columns */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.posts-empty {
  text-align: center; padding: 60px 0 20px;
}
.posts-empty h2 { font-size: 28px; }
.posts-empty p { color: var(--muted); margin-top: 12px; }

.post-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--card-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: block;
}
.post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e3a8a, #1A5CFF 60%, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.post-card__placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 16px);
}

.post-card__body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0;
}
.post-card__cats {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--font);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.post-card__cats a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.4);
  text-underline-offset: 3px;
}
.post-card__cats .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.post-card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}
.post-card h2 a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.45);
  text-underline-offset: 4px;
}
.post-card h2 a:hover { color: #67E8F9; }
.post-card__excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============== About card (homepage only) ============== */
.about-card-section {
  padding: 40px 0 80px;
}
.about-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
  background: linear-gradient(135deg, rgba(18,24,38,0.4) 0%, rgba(26,92,255,0.08) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 100% 0%, rgba(26,92,255,0.15), transparent 60%);
}
.about-card > * { position: relative; }
.about-card__photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--card);
}
.about-card__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-card__body h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}
.about-card__role {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}
.about-card__body p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: #CBD5E1;
  max-width: 540px;
}
.about-card__social {
  margin-top: 28px;
  display: flex; gap: 12px;
}
.about-card__social a {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary-2);
  transition: all .15s ease;
  overflow: hidden;
}
.about-card__social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.about-card__social svg,
.about-card__social a svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex: none;
}

@media (max-width: 800px) {
  .about-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; text-align: center; }
  .about-card__photo { max-width: 320px; margin: 0 auto; }
  .about-card__body p { margin-left: auto; margin-right: auto; }
  .about-card__social { justify-content: center; }
}

/* ============== Pagination ============== */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--muted);
  background: var(--card);
  transition: all .15s ease;
}
.pagination a:hover { color: var(--text); border-color: var(--primary); }
.pagination .current {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
}

/* ============== Single post ============== */
.post-hero {
  padding: 80px 0 48px;
  text-align: center;
}
.post-hero__cats {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.post-hero__cats a {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.post-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 auto;
  max-width: 880px;
}
.post-hero__excerpt {
  margin: 24px auto 0;
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
  text-wrap: pretty;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
}
.post-hero__meta {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 32px;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
}
.post-hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.post-hero__meta time { font-family: var(--mono); }
.post-hero__author {
  display: inline-flex; align-items: center; gap: 8px;
}
.post-hero__author img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
}

.post-featured-image {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 var(--gutter);
}
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* ============== Article body (long-form) ============== */
.post-content {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: #E2E8F0;
}
.post-content > * + * { margin-top: 28px; }
.post-content h2 {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--text);
}
.post-content h3 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 8px;
  color: var(--text);
}
.post-content h4 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  color: var(--text);
}
.post-content p { margin: 0; }
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.4);
  text-underline-offset: 3px;
}
.post-content a:hover { color: #67E8F9; text-decoration-color: var(--accent); }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content ul, .post-content ol { padding-left: 24px; }
.post-content li { list-style: disc; margin-bottom: 8px; padding-left: 4px; }
.post-content ol > li { list-style: decimal; }
.post-content li::marker { color: var(--accent); }

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  color: #CBD5E1;
  font-size: 22px;
  line-height: 1.5;
}
.post-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
  font-family: var(--font);
}

.post-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  color: #CBD5E1;
}
.post-content pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}
.post-content pre code {
  background: none; border: none; padding: 0;
  font-size: inherit;
}

.post-content img,
.post-content figure {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 32px 0;
}
.post-content figure img { border-radius: var(--radius); margin: 0; }
.post-content figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-family: var(--font);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 15px;
  margin: 32px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-content th, .post-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.post-content th { background: var(--card); font-weight: 600; }
.post-content tr:last-child td { border-bottom: none; }

.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* WordPress alignment */
.post-content .alignleft { float: left; margin: 0 24px 16px 0; }
.post-content .alignright { float: right; margin: 0 0 16px 24px; }
.post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.post-content .alignwide { max-width: 1000px; margin-left: calc(50% - 500px); }
.post-content .alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}
@media (max-width: 1100px) {
  .post-content .alignwide { max-width: 100%; margin-left: 0; }
}

/* ============== Post footer (tags + author + share) ============== */
.post-footer {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 32px;
}
.post-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--font);
}
.post-tags a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--muted);
  transition: all .15s ease;
}
.post-tags a:hover { color: var(--text); border-color: var(--primary); }

.post-share {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font);
  font-size: 13px;
  color: var(--muted);
}
.post-share a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all .15s ease;
}
.post-share a:hover { background: var(--primary); border-color: var(--primary); }
.post-share svg { width: 16px; height: 16px; }

.post-author-card {
  display: flex; gap: 24px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--font);
}
.post-author-card img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; flex: none;
}
.post-author-card .author-meta { font-size: 11px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.post-author-card h4 { font-size: 20px; margin-top: 4px; }
.post-author-card p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }
@media (max-width: 600px) {
  .post-author-card { flex-direction: column; text-align: center; padding: 24px; }
}

/* ============== Related posts ============== */
.related {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.related h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

/* ============== Comments ============== */
.comments-section {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.comments-section h3 {
  font-size: 24px;
  margin-bottom: 32px;
}
.comment {
  display: flex; gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.comment .avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
}
.comment-body { flex: 1; }
.comment-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: var(--muted-2);
  margin-bottom: 8px;
}
.comment-meta strong { color: var(--text); font-weight: 600; }
.comment-content { color: #E2E8F0; line-height: 1.6; }
.comment-reply a {
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  display: inline-block;
}
.children { padding-left: 32px; }
.comment-form {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 16px;
}
.comment-form p { display: flex; flex-direction: column; gap: 6px; }
.comment-form label { font-size: 13px; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  width: 100%;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,255,0.15);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit input {
  background: linear-gradient(180deg, #3b82f6, #1A5CFF);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* ============== Sidebar/Widget areas (used in 404, search) ============== */
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ============== Search form ============== */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
}
.search-form input[type="search"] {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
}
.search-form button {
  background: linear-gradient(180deg, #3b82f6, #1A5CFF);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
}

/* ============== CTA card ============== */
.blog-cta {
  margin: 100px 0 60px;
  padding: 0 var(--gutter);
}
.blog-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26,92,255,0.3);
  padding: 64px 48px; text-align: center;
  background: linear-gradient(180deg, rgba(26,92,255,0.16), rgba(18,24,38,0.6));
}
.blog-cta__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(6,182,212,0.18), transparent 60%),
    radial-gradient(800px 400px at 50% 100%, rgba(26,92,255,0.2), transparent 60%);
}
.blog-cta__inner > * { position: relative; }
.blog-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.blog-cta p {
  margin: 14px auto 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
}

/* ============== Footer (mini) ============== */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 28px;
  margin-top: 40px;
  background: rgba(11,15,25,0.5);
  font-family: var(--font);
}
.footer--mini { padding: 20px 0; margin-top: 24px; }
.footer__base {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted-2);
  gap: 12px; flex-wrap: wrap;
  padding-top: 0; border: 0;
}
.footer__base a { color: var(--muted); }
.footer__base a:hover { color: var(--text); }

/* ============== 404 ============== */
.error-404 {
  padding: 120px 0;
  text-align: center;
}
.error-404 .num {
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 800;
  background: linear-gradient(180deg, #1A5CFF, rgba(26,92,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
}
.error-404 h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: -16px;
}
.error-404 p {
  color: var(--muted);
  margin: 16px auto 32px;
  max-width: 480px;
  font-size: 17px;
}
.error-404 .actions {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}

/* ============== Reveal animations ============== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
