/* blog.vozly.app — follows the vozly.app brand system (vozly-web/style.css): dark #080810, purple #8B62FF, Syne + DM Sans. */

/* Self-hosted fonts: static/fonts/ (sources and licence in static/fonts/README.md). Syne and upright DM Sans are variable fonts that cover every weight
   the site uses, one file per subset; italic DM Sans is a static 400; font-display: swap shows the fallback text until the file arrives. */
/* Syne latin-ext */
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/syne-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Syne latin */
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/syne-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* DM Sans latin-ext */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/dm-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* DM Sans latin */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* DM Sans italic latin-ext */
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* DM Sans italic latin */
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #080810;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --purple: #8B62FF;
  --purple-btn: #7C52F5;
  --purple-light: #A882FF;
  --purple-glow: rgba(139, 98, 255, 0.2);
  --purple-dim: rgba(139, 98, 255, 0.12);
  --purple-border: rgba(139, 98, 255, 0.3);
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.88);
  --text-soft: rgba(255, 255, 255, 0.68);
  --gray: #8a8a9a;
  --gray-dim: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; padding-top: var(--nav-h); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; } /* <picture> (WebP source) adds no box: the <img> keeps its place in flex and figure layouts */
a { color: var(--purple-light); }
:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--purple-btn); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 0.75rem; }

/* ---------- navigation ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(8, 8, 16, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav { max-width: 1100px; margin: 0 auto; height: var(--nav-h); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--white); letter-spacing: -0.02em; }
.nav-logo-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-light); background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.15rem 0.55rem; border-radius: 20px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a.nav-cta { background: var(--purple-btn); color: #fff; padding: 0.5rem 1.15rem; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav-links a.nav-cta:hover { background: var(--purple); }

/* ---------- shared pieces ---------- */
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-light); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 10px; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.btn-primary { background: var(--purple-btn); color: #fff; }
.btn-primary:hover { background: var(--purple); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(139, 98, 255, 0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--gray-dim); }

/* ---------- home ---------- */
.home-hero { position: relative; padding: 4.5rem 1.5rem 2.5rem; text-align: center; }
.home-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(900px, 100%); height: 420px; background: radial-gradient(ellipse at center top, rgba(139, 98, 255, 0.12) 0%, transparent 70%); pointer-events: none; }
.home-hero > * { position: relative; }
.home-hero .eyebrow { display: inline-block; background: var(--purple-dim); border: 1px solid var(--purple-border); padding: 0.35rem 0.9rem; border-radius: 20px; margin-bottom: 1.4rem; }
.home-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--white); max-width: 18ch; margin: 0 auto 1.2rem; }
.home-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--purple-light), #c4a8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; color: var(--text-soft); line-height: 1.75; }

.post-list { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.5rem 5rem; }
.post-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.post-list-head h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.post-list-head span { font-size: 0.82rem; color: var(--gray); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.card:hover, .card:focus-within { border-color: var(--purple-border); background: var(--bg3); transform: translateY(-3px); }
.card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--bg3); }
.card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.15rem 1.25rem 1.4rem; flex: 1; }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.card h3 a { color: var(--white); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card-meta { font-size: 0.78rem; color: var(--gray); }
.card-excerpt { font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card.featured { grid-column: 1 / -1; flex-direction: row; }
.card.featured .card-img { width: 56%; aspect-ratio: auto; min-height: 320px; }
.card.featured .card-body { justify-content: center; padding: 2rem 2.25rem; gap: 0.8rem; }
.card.featured h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.card.featured .card-excerpt { font-size: 1rem; -webkit-line-clamp: 5; }

/* ---------- post ---------- */
.post { padding: 2.25rem 1.5rem 4rem; }
.post-wrap { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.82rem; color: var(--gray); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.post-header h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4.2vw, 2.5rem); font-weight: 700; line-height: 1.16; letter-spacing: -0.025em; color: var(--white); margin: 0.6rem 0 1rem; overflow-wrap: break-word; }
.post-meta { font-size: 0.86rem; color: var(--gray); display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.post-hero { margin: 1.75rem 0 2.25rem; }
.post-hero img { width: 100%; border-radius: 16px; border: 1px solid var(--border); background: var(--bg2); }

.prose { font-size: 1.0625rem; line-height: 1.78; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; color: var(--white); margin-top: 3rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--white); margin-top: 2.2rem; }
.prose h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--purple-light); margin-top: 2rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.8rem; }
.prose strong { color: var(--white); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #c4a8ff; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.55rem; }
.prose li::marker { color: var(--purple-light); }
.prose blockquote { border-left: 3px solid var(--purple); background: var(--purple-dim); border-radius: 0 12px 12px 0; padding: 1rem 1.4rem; color: var(--white); font-size: 1.05rem; }
.prose blockquote > * + * { margin-top: 0.8rem; }
.prose figure { margin-top: 2rem; margin-bottom: 2rem; }
.prose figure img { border-radius: 14px; border: 1px solid var(--border); margin: 0 auto; }
.prose figcaption { font-size: 0.85rem; color: var(--gray); text-align: center; margin-top: 0.7rem; }
.prose p > img, .prose p > picture > img { border-radius: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 440px; }
.prose th, .prose td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); background: var(--bg2); }
.prose tr:last-child td { border-bottom: 0; }

.cta-box { margin: 3.5rem 0 0; padding: 2rem; border: 1px solid var(--purple); border-radius: 18px; background: linear-gradient(135deg, rgba(139, 98, 255, 0.14), rgba(139, 98, 255, 0.04)); }
.cta-box .eyebrow { margin-bottom: 0.5rem; }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(1.25rem, 3.4vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--white); line-height: 1.2; margin-bottom: 0.7rem; }
.cta-box p { color: var(--text-soft); font-size: 0.98rem; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 1.1rem; }
.cta-box .cta-note { font-size: 0.8rem; color: var(--gray); margin: 0; line-height: 1.6; }
.cta-box .cta-note a { color: var(--gray); }

.related { margin-top: 3.5rem; }
.related h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 1.2rem; letter-spacing: -0.02em; }
.related .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related .card-img { aspect-ratio: 16 / 10; }
.related .card-body { padding: 0.95rem 1rem 1.15rem; }
.related .card h3 { font-size: 0.98rem; }

/* ---------- 404 ---------- */
.nf { max-width: 560px; margin: 0 auto; padding: 5rem 1.5rem 6rem; text-align: center; }
.nf-code { font-family: var(--font-display); font-size: clamp(4.5rem, 16vw, 7.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--purple-light), #c4a8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf h1 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 700; color: var(--white); margin: 0.6rem 0 0.8rem; }
.nf p { color: var(--text-soft); margin-bottom: 2rem; }
.nf .cta-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 1.5rem 2rem; background: var(--bg); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .nav-logo { margin-bottom: 0.9rem; display: inline-flex; }
.footer-brand p { font-size: 0.875rem; color: var(--gray); line-height: 1.7; max-width: 280px; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.45); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .linklike { font-size: 0.875rem; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover, .linklike:hover { color: var(--white); }
.linklike { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--gray); line-height: 1.7; }
.footer-bottom a { color: var(--gray); }

/* ---------- consent bar (static/consent.js) ---------- */
.consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--bg2); border: 1px solid var(--purple-border); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.consent-bar[hidden] { display: none; }
.consent-text { flex: 1 1 280px; font-size: 0.9rem; line-height: 1.55; color: var(--text); margin: 0; }
.consent-actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.consent-actions button { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; padding: 0.6rem 1.2rem; border-radius: 9px; cursor: pointer; border: 1px solid transparent; min-height: 40px; }
.consent-accept { background: var(--purple-btn); color: #fff; }
.consent-accept:hover { background: var(--purple); }
.consent-decline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.25) !important; }
.consent-decline:hover { background: var(--gray-dim); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .post-grid, .related .post-grid { grid-template-columns: repeat(2, 1fr); }
  .card.featured { flex-direction: column; }
  .card.featured .card-img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .card.featured .card-body { padding: 1.4rem 1.5rem 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 1rem; gap: 0.5rem; }
  .nav-logo-tag { display: none; }
  .nav-links { gap: 0.9rem; }
  .nav-links .nav-home { display: none; }
  .nav-links a { font-size: 0.82rem; }
  .nav-links a.nav-cta { padding: 0.45rem 0.85rem; }
  .home-hero { padding: 3rem 1rem 1.5rem; }
  .post-list { padding: 1rem 1rem 4rem; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .post { padding: 1.5rem 1rem 3rem; }
  .prose { font-size: 1.02rem; }
  .cta-box { padding: 1.5rem 1.25rem; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .consent-bar { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.9rem 1rem; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1; }
}
