/* ==========================================================================
   Artificial Intelligence for Coding - stylesheet
   Zero dependencies. Light + dark theme via [data-theme] / .dark on <html>.
   Design language inspired by numeroscope: soft gradients, rounded cards,
   an elegant serif for headings, calm neutral palette with a soft indigo
   accent that reads as "AI / tech" without shouting.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Neutrals (light) */
  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --bg-softer:     #f1f5f9;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #e6eaf0;
  --border-strong: #d6dce6;

  /* Text */
  --text:          #0f172a;
  --text-soft:     #475569;
  --text-muted:    #64748b;
  --text-faint:    #94a3b8;

  /* Accent - soft indigo / violet */
  --accent:        #6366f1;
  --accent-hover:  #4f46e5;
  --accent-soft:   #eef2ff;
  --accent-softer: #e0e7ff;
  --accent-2:      #0ea5e9;   /* sky, secondary highlight */
  --accent-2-soft: #e0f2fe;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10), 0 6px 12px rgba(15, 23, 42, 0.05);
  --glow:      0 0 0 1px rgba(99, 102, 241, 0.15), 0 8px 30px rgba(99, 102, 241, 0.18);

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

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --header-h: 68px;
}

html.dark {
  --bg:            #0b0f19;
  --bg-soft:       #0e1424;
  --bg-softer:     #121a2e;
  --surface:       #111827;
  --surface-2:     #0e1424;
  --border:        #1f2937;
  --border-strong: #2a3648;

  --text:          #e8edf6;
  --text-soft:     #aab6c9;
  --text-muted:    #8a97ad;
  --text-faint:    #66738a;

  --accent:        #818cf8;
  --accent-hover:  #a5b4fc;
  --accent-soft:   #1c2541;
  --accent-softer: #232e52;
  --accent-2:      #38bdf8;
  --accent-2-soft: #10263a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.55);
  --glow:      0 0 0 1px rgba(129, 140, 248, 0.25), 0 10px 34px rgba(99, 102, 241, 0.28);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.5em;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent-softer); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--glow);
  transform: translateY(-1px);
}
html.dark .btn-primary { color: #0b0f19; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--accent);
}

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---- Header / Nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.brand-name .thin { color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.94rem;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .menu-toggle { display: inline-flex; }
}

/* ---- Hero (landing) ----------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 92px 84px;
  background:
    radial-gradient(1100px 520px at 78% -10%, var(--accent-2-soft) 0%, transparent 55%),
    radial-gradient(900px 480px at 8% 8%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 62%);
}
.hero::after {
  /* subtle dotted grid, evokes code / matrices */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 30px 30px;
  color: var(--border);
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.hero p.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: center;
  margin-top: 34px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.b { background: var(--accent-2); }
.dot.c { background: #34d399; }

/* the pill under-hero "chip" strip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 26px;
}
.chip .dot { width: 7px; height: 7px; }

/* ---- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); margin: 0; font-size: 0.98rem; }

.feature-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-ico svg { width: 24px; height: 24px; }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 1.06rem; margin: 0; }

/* banded / soft sections */
.band { background: var(--bg-soft); border-block: 1px solid var(--border); }
.band-accent {
  background:
    radial-gradient(800px 400px at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg-soft);
  border-block: 1px solid var(--border);
}

/* CTA */
.cta-box {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-box p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 26px; }
.cta-box .btn-primary { background: #fff; color: var(--accent-hover); }
.cta-box .btn-primary:hover { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  margin-top: 64px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: 52px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 320px; margin: 14px 0 0; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-soft); font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: 0.86rem;
}

/* ---- Page header (interior pages) -------------------------------------- */
.page-head {
  padding-block: 60px 40px;
  background:
    radial-gradient(700px 340px at 80% -20%, var(--accent-soft) 0%, transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.page-head p { color: var(--text-soft); max-width: 560px; margin: 0 auto; font-size: 1.06rem; }

/* ---- Prose (articles, about, legal) ------------------------------------ */
.prose { max-width: 720px; margin-inline: auto; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 1.7rem;
  margin: 2em 0 0.6em;
  padding-top: 0.2em;
}
.prose h3 { font-size: 1.32rem; margin: 1.6em 0 0.5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; font-family: var(--font-sans); font-weight: 700; }
.prose p { margin: 0 0 1.15em; color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent-softer); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--text); }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; color: var(--text); }
.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}
.prose blockquote p { margin: 0.6em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-softer);
  border: 1px solid var(--border);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  color: var(--accent-hover);
}
html.dark .prose code { color: var(--accent); }
.prose pre {
  background: #0d1424;
  border: 1px solid #1f2a40;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.prose pre code {
  background: none; border: none; padding: 0;
  color: #d6e0f5; font-size: 0.88rem; line-height: 1.6;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem;
}
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 600; }

/* ---- Blog list ---------------------------------------------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

.post-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: 26px;
}
.post-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-thumb {
  display: block;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  position: relative;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.gen { display: grid; place-items: center; }
.post-thumb.gen::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(99,102,241,0.25) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.post-thumb .glyph {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 2rem; font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
}
.post-tile-body { padding: 22px 24px 24px; }
.post-tile-title { font-size: 1.4rem; margin-bottom: 8px; }
.post-tile-title a { color: var(--text); }
.post-tile-title a:hover { color: var(--accent); }
.post-meta { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 12px; }
.post-meta .author { color: var(--text-soft); }
.post-preview { color: var(--text-soft); margin: 0 0 16px; font-size: 0.97rem; }
.read-more { font-weight: 600; font-size: 0.92rem; }
.read-more::after { content: " →"; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag {
  font-size: 0.76rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid transparent;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { margin-bottom: 9px; font-size: 0.94rem; }
.sidebar-list a { color: var(--text-soft); }
.sidebar-list a:hover { color: var(--accent); }
.sidebar-list .count { color: var(--text-faint); font-size: 0.82rem; }
.sidebar .tags { margin: 0; }
.archive-year strong { color: var(--text); }
.archive-months { list-style: none; margin: 6px 0 10px; padding-left: 14px; }

/* filter banner + pagination */
.filter-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-softer);
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 24px; font-size: 0.94rem;
}
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.page-link {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); font-weight: 600; font-size: 0.9rem;
  color: var(--text); background: var(--surface);
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.disabled { opacity: 0.4; pointer-events: none; }
.page-indicator { color: var(--text-muted); font-size: 0.88rem; }

/* ---- Single article ----------------------------------------------------- */
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; margin-bottom: 34px; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }
.article-head .post-meta { font-size: 0.92rem; margin-bottom: 16px; }
.article-head .tags { justify-content: center; }
.featured-image { border-radius: var(--radius); margin-bottom: 34px; box-shadow: var(--shadow-md); width: 100%; }
.back-link { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Author bio card (bottom of each article) */
.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 48px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 200px at 100% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  display: grid; place-items: center;
}
.author-avatar.mono {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.author-meta { min-width: 0; }
.author-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 3px;
}
.author-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.author-role { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.author-bio { color: var(--text-soft); font-size: 0.96rem; margin: 12px 0 0; line-height: 1.55; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.author-links a { font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.author-links a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block;
}
@media (max-width: 520px) {
  .author-card { flex-direction: column; gap: 16px; }
}

/* ---- Contact form ------------------------------------------------------- */
.form-card {
  max-width: 620px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---- Misc --------------------------------------------------------------- */
.contact-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 620px) { .contact-methods { grid-template-columns: 1fr; } .contact-methods { } }

.about-lead { font-size: 1.2rem; color: var(--text-soft); line-height: 1.6; }

.loading { color: var(--text-muted); padding: 40px 0; text-align: center; }

.legal-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }

/* fade-in on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
