/* bakustyle.az — the blog (SEO Agent articles). The site's own material: concrete greys + grain,
   Poppins, white as the only accent, hairline labels, 2px corners. Articles render on the server. */
:root {
  --bg: #222222;
  --bg-deep: #1a1a1a;
  --surface: #292929;
  --surface-hi: #303030;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #f0f0f0;
  --text-soft: #b6b6b6;
  --muted: #8d8d8d;
  --radius: 2px;
  --wrap: 1180px;
  --pad: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
/* no visible scrollbars (as on the home page): scrolling itself still works — wheel, touch, keys */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* concrete grain, as on the home page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: #fff; color: #1a1a1a; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: rgba(255, 255, 255, .55); flex: none; }
.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-soft); max-width: 62ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 400; letter-spacing: .03em; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.btn:hover { background: var(--surface-hi); border-color: #fff; }
.btn--accent { background: #fff; border-color: #fff; color: #1c1c1c; }
.btn--accent:hover { background: #e4e4e4; border-color: #e4e4e4; color: #1c1c1c; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(34, 34, 34, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-size: 20px; font-weight: 400; letter-spacing: .19em; white-space: nowrap; }
.logo__baku { background-image: linear-gradient(100deg, #2ee6d6 0%, #22d3ee 18%, #a855f7 38%, #f0b429 58%, #34d399 78%, #2ee6d6 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.top__nav { display: flex; align-items: center; gap: 18px; font-size: 14px; letter-spacing: .04em; }
.top__nav > a:not(.btn) { color: var(--text-soft); }
.top__nav > a:not(.btn):hover { color: #fff; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.lang { min-width: 40px; height: 34px; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .06em; border-right: 1px solid var(--line); }
.lang:last-child { border-right: 0; }
.lang[aria-current="true"] { background: #fff; color: #1c1c1c; }

/* list */
.list { padding-block: clamp(48px, 8vw, 96px); }
.list h1 { margin-top: 14px; font-size: clamp(30px, 4.6vw, 48px); font-weight: 600; max-width: 18ch; }
.list .lead { margin-top: 18px; }
.cards { display: grid; gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, #2a2a2a, #1f1f1f); transition: border-color .25s ease, background-color .25s ease; }
.card:hover { border-color: rgba(255, 255, 255, .45); }
.card__img { display: block; border-radius: var(--radius); background-color: #262626; background-size: cover; background-position: center; }
.card__img--tall { aspect-ratio: 9 / 16; }
.card__img--wide { aspect-ratio: 4 / 5; }
.card__body { display: flex; flex-direction: column; gap: 10px; align-self: center; min-width: 0; }
.card__body .eyebrow { gap: 0; font-size: 13px; }
.card__body .eyebrow::before { display: none; }
.card__title { font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; line-height: 1.25; }
.card__text { color: var(--text-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { margin-top: 32px; color: var(--muted); }

/* article */
.post__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); align-items: center; }
.post__intro { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.post__back { color: var(--muted); font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; }
.post__back:hover { color: #fff; }
.post__head h1 { font-size: clamp(30px, 4.8vw, 52px); font-weight: 600; letter-spacing: -.02em; }
.post__meta { color: var(--muted); font-size: 14px; letter-spacing: .03em; }
.post__cover { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #262626; }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__cover--tall { aspect-ratio: 4 / 5; }
.post__cover--wide { aspect-ratio: 16 / 10; }
.post__grid { display: grid; gap: 40px; padding-bottom: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }
.post__body { min-width: 0; max-width: 720px; }
.tldr { padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); margin-bottom: 36px; }
.tldr p { margin-top: 10px; color: var(--text); }
.prose { color: var(--text-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(22px, 2.6vw, 28px); color: var(--text); scroll-margin-top: 88px; }
.prose h3 { margin-top: 1.6em; font-size: clamp(18px, 2vw, 21px); color: var(--text); }
.prose h4 { margin-top: 1.4em; font-size: 17px; font-weight: 500; color: var(--text); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: #fff; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid #fff; color: var(--text); font-size: 19px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: var(--radius); background: var(--surface); color: var(--text); }
.prose pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.prose pre code { padding: 0; background: none; }
.post__table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.post__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post__table th, .post__table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.post__table th { color: var(--text); font-weight: 500; background: var(--surface); }
.post__table tr:last-child td { border-bottom: 0; }
.faq { margin-top: 56px; }
.faq h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 400; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--text-soft); }
.post__side { display: flex; flex-direction: column; gap: 20px; }
.toc { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc ol { margin: 12px 0 0; padding-left: 1.1em; font-size: 15px; color: var(--text-soft); }
.toc li + li { margin-top: 6px; }
.toc a:hover { color: #fff; }
.cta { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(150deg, #303030, #1e1e1e); }
.cta h2 { font-size: 21px; }
.cta p { color: var(--text-soft); font-size: 15px; margin-bottom: 6px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-deep); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 28px; color: var(--muted); font-size: 14px; }
.foot__links a:hover { color: #fff; }

@media (min-width: 760px) {
  .card { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  :root { --pad: 32px; }
  .post__head--tall { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
  .post__head--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .post__cover--tall { aspect-ratio: 9 / 16; }
  .post__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
  .post__side { position: sticky; top: 100px; }
}
@media (max-width: 620px) {
  .top__nav > a:not(.btn) { display: none; }
  .top__nav .btn { display: none; }
  .logo { font-size: 17px; }
  .card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
