/*
Theme Name: Polka
Theme URI: https://polka.studio
Author: Polka Studio
Author URI: https://polka.studio
Description: A polka-dot inspired WordPress theme with bold typography, asymmetric dot clusters, and a generative dot-field engine. Built for studios, agencies, and editorial sites that want a strong visual signature.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polka
Tags: blog, portfolio, custom-colors, custom-menu, featured-images, full-width-template, threaded-comments
*/

/* =========================================================
   POLKA — WORDPRESS-STYLE THEME
   Shared styles for home / blog / page templates
   ========================================================= */

:root {
  --red: #E63946;
  --orange: #F2802C;
  --green: #1A5D3A;
  --yellow: #E8B82A;
  --cream: #F7F1E6;
  --paper: #FBF7EE;
  --ink: #141414;
  --line: #ddd2b6;
  --line-soft: #ece4d0;
  --muted: #6b6354;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Containers */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Helpers */
.mono {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red);
}
.eyebrow.green::before { background: var(--green); }
.eyebrow.orange::before { background: var(--orange); }
.eyebrow.yellow::before { background: var(--yellow); }

.display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
  margin: 0;
}

/* Dot field container */
.dots-area {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.dots-area svg { width: 100%; height: 100%; display: block; }

/* =========================================================
   HEADER / MASTHEAD
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 28px;
  letter-spacing: -0.03em;
}
.brand .mark {
  position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red);
  transform: translateY(4px);
}
.brand .mark::after {
  content: "";
  position: absolute; right: -10px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--cream);
}
.brand .brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand .brand-logo .custom-logo-link { display: inline-block; line-height: 0; }
.brand .brand-logo img,
.brand .brand-logo .custom-logo { max-height: 44px; width: auto; display: block; }
.site-footer .brand .brand-logo img,
.site-footer .brand .brand-logo .custom-logo { max-height: 56px; }
nav.primary {
  display: flex; gap: 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
}
nav.primary a {
  position: relative; padding: 8px 0;
  transition: color .15s;
}
nav.primary a:hover { color: var(--red); }
nav.primary a.active { color: var(--red); }
nav.primary a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  display: inline-block; width: 18px; height: 18px;
  position: relative;
}
.btn .arrow::before {
  content: "→"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  font-size: 18px;
  transition: transform .2s;
}
.btn:hover .arrow::before { transform: translateX(3px); }

.btn-cta {
  background: var(--red); color: var(--cream);
}
.btn-cta:hover { background: #C8273B; }
.btn-primary {
  background: var(--ink); color: var(--cream);
  padding: 18px 30px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em; text-transform: none;
}
.btn-primary:hover { background: #2a2a2a; }
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  transition: gap .15s;
}
.btn-link:hover { gap: 14px; }

/* =========================================================
   HERO (home page)
   ========================================================= */
.hero {
  position: relative;
  background: var(--cream);
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 820px; }
.hero h1 {
  font-size: 104px;
  margin: 28px 0 0;
}
.hero .lede {
  font-size: 24px;
  margin: 32px 0 0;
  max-width: 620px;
  line-height: 1.45;
  color: #2a2620;
}
.hero .actions {
  margin-top: 48px;
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}

/* Trust strip below hero */
.trust {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
}
.trust .row {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap;
}
.trust .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.trust .logos {
  display: flex; gap: 56px;
  flex-wrap: wrap;
  flex: 1;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: #4a4438;
  opacity: 0.8;
}
.trust .logos .logo {
  display: inline-flex; align-items: center; gap: 8px;
}
.trust .logos .logo::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); opacity: 0.55;
}
.trust .logos .logo.r::before { background: var(--red); }
.trust .logos .logo.o::before { background: var(--orange); }
.trust .logos .logo.g::before { background: var(--green); }
.trust .logos .logo.y::before { background: var(--yellow); }

/* =========================================================
   SECTION HEADS
   ========================================================= */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: end; margin-bottom: 64px;
}
.section-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 64px;
  letter-spacing: -0.035em; line-height: 0.95;
  margin: 20px 0 0;
  font-variation-settings: "opsz" 96;
  max-width: 900px;
  text-wrap: balance;
}
.section-head .right .btn-link { white-space: nowrap; }

/* =========================================================
   WORK GRID
   ========================================================= */
.work-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.work-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(20,20,20,0.18); }
.work-card .cover {
  aspect-ratio: 4 / 3;
  background: var(--green);
  position: relative; overflow: hidden;
  color: var(--cream);
}
.work-card.r .cover { background: var(--red); }
.work-card.o .cover { background: var(--orange); color: var(--ink); }
.work-card.y .cover { background: var(--yellow); color: var(--ink); }
.work-card .cover .placeholder {
  position: absolute; inset: 24px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
}
.work-card .cover .dots-area { z-index: 1; }
.work-card .cover .tag {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--cream); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-weight: 500;
}
.work-card .meta {
  padding: 24px 28px 28px;
}
.work-card .meta h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; margin: 0;
  line-height: 1.1;
}
.work-card .meta .sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
  display: flex; justify-content: space-between;
}
.work-card.large { grid-row: span 1; }
.work-card.large .cover { aspect-ratio: 16 / 11; }

/* =========================================================
   PROCESS STEPS (4 columns)
   ========================================================= */
.process {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.process .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.process .step {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px 24px 28px;
  border-radius: 4px;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.process .step .dot {
  width: 44px; height: 44px; border-radius: 50%;
  margin-bottom: 20px;
}
.process .step:nth-child(1) .dot { background: var(--red); }
.process .step:nth-child(2) .dot { background: var(--orange); }
.process .step:nth-child(3) .dot { background: var(--green); }
.process .step:nth-child(4) .dot { background: var(--yellow); }
.process .step .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.process .step h4 {
  font-size: 22px; margin: 6px 0 12px;
  letter-spacing: -0.01em; font-weight: 700;
}
.process .step p { font-size: 16px; line-height: 1.5; margin: 0; }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats {
  background: var(--orange); color: var(--ink);
  padding: 100px 0;
}
.stats .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.stats .stat .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 144px;
  letter-spacing: -0.04em; line-height: 0.85;
  font-variation-settings: "opsz" 96;
  display: flex; align-items: flex-end; gap: 6px;
}
.stats .stat .num .unit { font-size: 60px; line-height: 1; color: var(--red); }
.stats .stat .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-top: 16px;
}
.stats .stat .body { font-size: 17px; margin-top: 8px; max-width: 320px; line-height: 1.5; }

/* =========================================================
   JOURNAL / BLOG GRID
   ========================================================= */
.journal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.post-card {
  background: var(--cream);
  border-top: 2px solid var(--ink);
  padding: 24px 0 0;
  display: flex; flex-direction: column;
}
.post-card .cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 10px;
}
.post-card .cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.post-card:nth-child(2) .cat { color: var(--red); }
.post-card:nth-child(2) .cat::before { background: var(--red); }
.post-card:nth-child(3) .cat { color: var(--orange); }
.post-card:nth-child(3) .cat::before { background: var(--orange); }
.post-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 30px;
  letter-spacing: -0.025em; margin: 16px 0 12px;
  line-height: 1.1;
}
.post-card p { font-size: 16px; line-height: 1.55; margin: 0 0 20px; color: #2a2620; }
.post-card .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

/* =========================================================
   CTA (footer-adjacent)
   ========================================================= */
.cta {
  background: var(--green); color: var(--cream);
  position: relative; overflow: hidden;
  padding: 140px 0 160px;
}
.cta .container { position: relative; z-index: 2; }
.cta h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 112px;
  letter-spacing: -0.04em; line-height: 0.92;
  font-variation-settings: "opsz" 96;
  margin: 0; max-width: 1100px;
  text-wrap: balance;
}
.cta .lede { font-size: 22px; margin: 36px 0 0; max-width: 640px; opacity: 0.9; }
.cta .actions { margin-top: 48px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.cta .btn-primary { background: var(--cream); color: var(--ink); }
.cta .btn-primary:hover { background: var(--yellow); }
.cta .btn-link { color: var(--cream); border-color: var(--cream); }

/* =========================================================
   FOOTER (with swarm dots)
   ========================================================= */
.site-footer {
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
  padding: 96px 0 32px;
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid #2a2a2a;
}
.site-footer .brand-block .brand { color: var(--cream); font-size: 36px; }
.site-footer .brand-block .brand .mark { background: var(--cream); width: 34px; height: 34px; }
.site-footer .brand-block .brand .mark::after { background: var(--red); border-color: var(--ink); }
.site-footer .brand-block p { font-size: 16px; line-height: 1.55; opacity: 0.7; margin: 20px 0 24px; max-width: 360px; }
.site-footer .col h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 18px; opacity: 0.5; font-weight: 500;
}
.site-footer .col ul { list-style: none; padding: 0; margin: 0; }
.site-footer .col li { padding: 6px 0; }
.site-footer .col a { font-size: 16px; opacity: 0.85; }
.site-footer .col a:hover { color: var(--orange); opacity: 1; }
.site-footer .newsletter p { font-size: 15px; opacity: 0.7; margin: 0 0 18px; line-height: 1.5; }
.site-footer .newsletter form {
  display: flex; gap: 0;
  background: #232323; border-radius: 999px; padding: 4px; align-items: center;
}
.site-footer .newsletter input {
  flex: 1; background: transparent; border: 0; color: var(--cream);
  padding: 10px 14px; font-size: 15px; outline: none;
  font-family: inherit;
}
.site-footer .newsletter input::placeholder { color: rgba(247,241,230,0.5); }
.site-footer .newsletter button {
  background: var(--orange); color: var(--ink);
  border: 0; padding: 10px 18px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; font-weight: 600;
}
.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.55;
}

/* =========================================================
   BLOG POST / ARTICLE
   ========================================================= */
.article-header {
  position: relative; overflow: hidden;
  background: var(--cream);
  padding: 96px 0 64px;
  text-align: center;
}
.article-header .container--narrow { position: relative; z-index: 2; }
.article-header .cat {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.article-header .cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.article-header h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 88px;
  letter-spacing: -0.035em; line-height: 0.95;
  font-variation-settings: "opsz" 96;
  margin: 0 0 36px;
  text-wrap: balance;
}
.article-header .byline {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.article-header .byline .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--ink);
}
.article-header .byline .name { color: var(--ink); font-weight: 600; }
.article-header .byline .sep {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
}

/* Feature visual */
.feature-visual {
  position: relative;
  height: 480px;
  background: var(--green);
  overflow: hidden;
}
.feature-visual .container { position: relative; z-index: 2; height: 100%;
  display: flex; align-items: flex-end; padding-bottom: 24px;
}
.feature-visual .caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); opacity: 0.85;
}

/* Body prose */
.article-body {
  background: var(--cream);
  padding: 80px 0 120px;
}
.prose { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.prose p { font-size: 19px; line-height: 1.7; margin: 0 0 24px; color: #1d1a14; }
.prose p.lead {
  font-size: 26px; line-height: 1.45; font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 36px;
}
.prose p.lead::first-letter {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 96px;
  float: left; line-height: 0.85; padding-right: 14px; padding-top: 8px;
  color: var(--red);
  font-variation-settings: "opsz" 96;
}
.prose h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 42px;
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 56px 0 20px;
  font-variation-settings: "opsz" 96;
}
.prose h3 {
  font-size: 26px; letter-spacing: -0.02em;
  font-weight: 700; margin: 40px 0 14px;
}
.prose ul, .prose ol { padding-left: 0; margin: 0 0 28px; list-style: none; }
.prose ul li, .prose ol li {
  position: relative; padding-left: 36px; font-size: 19px;
  line-height: 1.6; margin: 10px 0;
}
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
}
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em;
  color: var(--cream); background: var(--ink);
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.prose a {
  border-bottom: 1.5px solid var(--red);
  color: var(--ink); padding-bottom: 1px;
}
.prose a:hover { color: var(--red); }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 56px 0;
  padding: 8px 0 8px 36px;
  border-left: 4px solid var(--orange);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px; line-height: 1.25; font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.prose blockquote cite {
  display: block; margin-top: 16px;
  font-style: normal; font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.prose figure {
  margin: 56px -80px;
  background: var(--paper);
}
.prose figure .placeholder {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, #e8dfc8 0 12px, #ddd2b6 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.prose figure .placeholder span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); background: var(--cream);
  padding: 8px 14px; border-radius: 999px;
}
.prose figcaption {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 16px 24px; text-align: center;
}
.prose hr {
  border: 0; height: 28px;
  background-image: radial-gradient(circle, var(--ink) 4px, transparent 5px);
  background-size: 28px 28px;
  background-position: center;
  margin: 56px 0;
  opacity: 0.8;
}

/* Author bio */
.author-bio {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: flex; gap: 24px; align-items: flex-start;
  margin: 64px auto 0;
  max-width: 720px;
}
.author-bio .av {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--ink);
  flex-shrink: 0; position: relative;
}
.author-bio .av::after {
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--paper);
}
.author-bio h4 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.author-bio .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.author-bio p { font-size: 15px; line-height: 1.55; margin: 0; }

/* =========================================================
   GENERIC PAGE
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--cream);
  padding: 100px 0 100px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .lede {
  font-size: 26px; line-height: 1.4; max-width: 640px;
  margin: 32px 0 0; color: #2a2620;
}
.page-hero h1 {
  font-size: 112px;
  margin: 28px 0 0;
}

/* Two-col content */
.two-col {
  padding: 100px 0;
}
.two-col .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.two-col h3 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.025em;
  margin: 16px 0 24px; line-height: 1.05;
}
.two-col p { font-size: 18px; line-height: 1.6; margin: 0 0 18px; max-width: 540px; }

/* Team grid */
.team {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  padding: 100px 0;
}
.team .grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
}
.team .person { text-align: left; }
.team .person .av {
  aspect-ratio: 1; border-radius: 50%;
  position: relative; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); opacity: 0.85;
}
.team .person:nth-child(1) .av { background: var(--red); }
.team .person:nth-child(2) .av { background: var(--orange); color: var(--ink); }
.team .person:nth-child(3) .av { background: var(--green); }
.team .person:nth-child(4) .av { background: var(--yellow); color: var(--ink); }
.team .person:nth-child(5) .av { background: var(--ink); }
.team .person .av::after {
  content: ""; position: absolute; bottom: 8%; right: 8%;
  width: 18%; height: 18%; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--ink);
}
.team .person h4 { font-size: 20px; margin: 0 0 4px; font-weight: 700; }
.team .person .role {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* Services list */
.services {
  padding: 100px 0;
}
.services .list { display: grid; grid-template-columns: 1fr; gap: 0; }
.services .row {
  display: grid; grid-template-columns: 60px 1fr 2fr auto;
  gap: 32px; align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}
.services .row:last-child { border-bottom: 1px solid var(--ink); }
.services .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.14em;
  color: var(--muted);
}
.services .name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 32px;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 20px;
}
.services .name .dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
}
.services .row:nth-child(1) .dot { background: var(--red); }
.services .row:nth-child(2) .dot { background: var(--orange); }
.services .row:nth-child(3) .dot { background: var(--green); }
.services .row:nth-child(4) .dot { background: var(--yellow); }
.services .row:nth-child(5) .dot { background: var(--ink); }
.services .desc { font-size: 17px; line-height: 1.55; color: #2a2620; }
.services .price {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* Related posts */
.related {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 100px;
}
.related h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 32px;
  letter-spacing: -0.025em; margin: 0 0 36px;
}

/* Page sections background variants */
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-green { background: var(--green); color: var(--cream); }
.bg-ink   { background: var(--ink);   color: var(--cream); }

/* Selection */
::selection { background: var(--yellow); color: var(--ink); }
