:root {
    --bg: #f7f7f4;
    --surface: #ffffff;
    --text: #111318;
    --muted: #667085;
    --line: #e5e7eb;
    --accent: #b56a2d;
    --container: 1240px;
    --content: 760px;
    --radius: 18px;
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.site-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-title { font-weight: 800; letter-spacing: -.03em; font-size: 1.25rem; }
.site-nav ul, .site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.6rem; }
.hero { padding-block: var(--space-5); }
.hero-card { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; min-height: 520px; border-radius: var(--radius); background: #0c1420; color: #fff; }
.hero-card__content { padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.hero-card h1, .author-intro h1, .tech-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6rem, 6vw, 5.6rem); letter-spacing: -.045em; line-height: .98; margin: .45em 0 .3em; }
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--accent); }
.post-meta { color: var(--muted); font-size: .875rem; }
.hero .post-meta { color: #c7d0db; }
.recent-posts { padding-block: var(--space-5) var(--space-6); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: var(--space-3); }
.section-heading h2 { font-size: 2rem; letter-spacing: -.03em; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card__media { aspect-ratio: 3/2; display: block; background: #e9ecef; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.35rem; }
.post-card h3 { margin: .5rem 0; line-height: 1.18; font-size: 1.3rem; letter-spacing: -.02em; }
.author-intro, .tech-hero { padding-block: clamp(5rem, 12vw, 10rem); }
.author-intro { max-width: 980px; }
.author-intro__lead { max-width: 760px; font-size: 1.35rem; color: var(--muted); }
.demo-data-tech { --bg: #09111b; --surface: #101a27; --text: #eef4fb; --muted: #98a7b8; --line: #203044; --accent: #36d399; }
.demo-data-tech .site-header { background: rgba(9,17,27,.88); }
.tech-hero { position: relative; }
.tech-hero::after { content: ''; position: absolute; inset: 15% 0 5% 45%; background: linear-gradient(135deg, transparent 25%, rgba(54,211,153,.08)); border: 1px solid rgba(54,211,153,.13); border-radius: var(--radius); pointer-events: none; }
.content-page { padding-block: var(--space-5) var(--space-6); }
.archive-header { margin-bottom: var(--space-4); }
.single-article { max-width: 1120px; padding-block: var(--space-5) var(--space-6); }
.single-article__header { max-width: 900px; margin-inline: auto; text-align: center; }
.single-article__header h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.045em; }
.single-article__dek { font-size: 1.3rem; color: var(--muted); }
.single-article__image { margin-block: var(--space-4); border-radius: var(--radius); overflow: hidden; }
.single-article__content { max-width: var(--content); margin-inline: auto; font-family: Georgia, 'Times New Roman', serif; font-size: 1.12rem; }
.single-article__content :is(h2,h3) { font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.15; margin-top: 2.2em; }
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-4) var(--space-2); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.site-footer__legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.error-404 { padding-block: 10vh 15vh; max-width: 800px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: 1rem; margin: 1rem; z-index: 9999; }
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; }
    .hero-card { grid-template-columns: 1fr; }
    .hero-card__media { min-height: 320px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .container { width: min(calc(100% - 1.25rem), var(--container)); }
    .post-grid { grid-template-columns: 1fr; }
    .hero { padding-block: 1rem 2.5rem; }
    .hero-card { min-height: 0; }
    .hero-card__content { padding: 1.5rem; }
    .hero-card__media { min-height: 240px; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer ul { flex-direction: column; }
}

/* Editorial home v0.2.0 */
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; margin-top: 1.25rem; padding: .78rem 1.05rem; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 750; text-decoration: none; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button--light { background: #fff; color: #0c1420; }
.text-link { font-weight: 700; font-size: .92rem; }
.section-kicker { display: block; margin-bottom: .35rem; color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.editorial-section { padding-block: var(--space-5); }
.editorial-section--soft { background: #efece5; border-block: 1px solid var(--line); }
.editorial-section--bottom { padding-block: var(--space-5) var(--space-6); }
.hero-card__dek { max-width: 54ch; color: #dce4ec; font-size: 1.08rem; }
.post-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid--four .post-card h3 { font-size: 1.12rem; }
.post-grid--four .post-card__body > p { color: var(--muted); font-size: .94rem; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.topic-card { position: relative; min-height: 235px; padding: 1.5rem; border: 1px solid #ddd8cd; border-radius: var(--radius); background: rgba(255,255,255,.56); transition: transform .18s ease, background .18s ease; }
.topic-card:hover { background: #fff; transform: translateY(-3px); text-decoration: none; }
.topic-card__count { position: absolute; top: 1.2rem; right: 1.2rem; color: var(--muted); font-size: .8rem; }
.topic-card h3 { margin: 2rem 0 .6rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; letter-spacing: -.025em; }
.topic-card p { color: var(--muted); font-size: .93rem; }
.topic-card__link { position: absolute; left: 1.5rem; bottom: 1.35rem; font-size: .85rem; font-weight: 750; }
.editor-picks { border-top: 1px solid var(--line); }
.editor-pick { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.editor-pick__index { color: var(--muted); font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; }
.editor-pick h3 { margin: .3rem 0 .45rem; max-width: 860px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.13; }
.home-bottom-grid { display: grid; grid-template-columns: .9fr 1.5fr; gap: 1.5rem; }
.newsletter-card, .author-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.5rem, 4vw, 2.5rem); }
.newsletter-card h2, .author-card h2 { margin: .35rem 0 .65rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.05; }
.newsletter-card p, .author-card p { color: var(--muted); }
.newsletter-card__hint { font-size: .82rem; }
.author-card { display: grid; grid-template-columns: 144px 1fr; gap: 2rem; align-items: center; }
.author-card__avatar img { border-radius: 50%; }
.author-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
@media (max-width: 1050px) {
    .post-grid--four, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .home-bottom-grid { grid-template-columns: 1fr; }
    .author-card { grid-template-columns: 96px 1fr; }
    .author-card__avatar img { width: 96px; height: 96px; }
    .section-heading { align-items: flex-start; gap: 1rem; }
}
@media (max-width: 620px) {
    .post-grid--four, .topic-grid { grid-template-columns: 1fr; }
    .editorial-section { padding-block: 2.75rem; }
    .topic-card { min-height: 210px; }
    .author-card { grid-template-columns: 1fr; }
}

/* Long-form article v0.3.0 */
.single-article { max-width: 1240px; }
.single-article__header { max-width: 940px; }
.single-article__header .eyebrow { display: inline-block; }
.single-article__dek { max-width: 760px; margin: 0 auto 1.7rem; line-height: 1.5; }
.single-article__byline { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 1.75rem; color: var(--muted); font-size: .88rem; }
.single-article__author { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 750; }
.single-article__author img { width: 44px; height: 44px; border-radius: 50%; }
.single-article__dates { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; }
.single-article__image { margin: var(--space-4) 0 var(--space-5); }
.single-article__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.single-article__image figcaption { padding-top: .65rem; color: var(--muted); font-size: .82rem; text-align: center; }
.single-article__layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.single-article__layout--without-toc { grid-template-columns: minmax(0, 760px); }
.single-article__layout--without-toc .single-article__main { width: 100%; }
.single-article__main { min-width: 0; }
.single-article__content { max-width: none; margin: 0; font-size: clamp(1.08rem, 1.5vw, 1.18rem); line-height: 1.78; }
.single-article__content > p { max-width: 72ch; }
.single-article__content > :is(figure,.wp-block-image,.wp-block-table,.wp-block-code,.wp-block-gallery,.wp-block-embed) { width: 100%; max-width: 100%; }
.single-article__content > :first-child { margin-top: 0; }
.single-article__content h2, .single-article__content h3 { scroll-margin-top: 100px; }
.single-article__content h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.single-article__content h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -.02em; }
.single-article__content a { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .16em; }
.single-article__content blockquote { margin: 2.2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--accent); font-size: 1.3em; line-height: 1.45; }
.single-article__content pre { overflow-x: auto; max-width: 100%; padding: 1.2rem; border-radius: 12px; background: #111821; color: #edf2f7; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .88rem; line-height: 1.55; }
.single-article__content code { overflow-wrap: anywhere; }
.single-article__content :not(pre) > code { padding: .12em .35em; border-radius: .3em; background: color-mix(in srgb, var(--text) 8%, transparent); font-size: .9em; }
.single-article__content figure, .single-article__content .wp-block-image { margin-block: 2rem; }
.single-article__content figcaption { color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .78rem; line-height: 1.5; }
.single-article__content table { width: 100%; border-collapse: collapse; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .9rem; }
.single-article__content th, .single-article__content td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.single-article__content .wp-block-table { overflow-x: auto; }
.article-toc { position: sticky; top: 96px; font-size: .83rem; }
.article-toc details { border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding-block: .9rem; }
.article-toc summary { cursor: pointer; list-style: none; font-weight: 850; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc ol { list-style: none; padding: .8rem 0 0; margin: 0; }
.article-toc__item { margin: .55rem 0; line-height: 1.35; }
.article-toc__item--h3 { padding-left: .8rem; color: var(--muted); }
.article-toc a { text-decoration: none; }
.article-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .82rem; }
.article-tags span { font-weight: 800; }
.article-tags a { padding: .28rem .58rem; border: 1px solid var(--line); border-radius: 999px; }
.article-share { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block: 1.5rem 3rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .82rem; }
.article-share__label { font-weight: 850; }
.article-share__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.article-share__links a, .article-share__copy { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; padding: .42rem .7rem; font: inherit; cursor: pointer; }
.article-author { display: grid; grid-template-columns: 112px 1fr; gap: 1.5rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.article-author__avatar img { width: 112px; height: 112px; border-radius: 50%; }
.article-author h2 { margin: .1rem 0 .45rem; font-size: 1.45rem; }
.article-author p { margin: 0; color: var(--muted); font-size: .93rem; }
.article-author__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; font-size: .82rem; font-weight: 750; }
.related-articles { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.editorial-callout, .editorial-sources, .editorial-cta { margin-block: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.editorial-callout { border-left: 4px solid var(--accent); }
.editorial-sources { background: color-mix(in srgb, var(--surface) 80%, var(--bg)); }
.editorial-sources ul { padding-left: 1.2rem; }
.editorial-pros-cons { margin-block: 2rem; gap: 1rem; }
.editorial-pros-cons > .wp-block-column { padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.editorial-cta { padding: clamp(1.5rem, 5vw, 2.5rem); text-align: center; }
@media (max-width: 980px) {
    .single-article__layout { grid-template-columns: minmax(0, 760px); }
    .article-toc { position: static; margin-bottom: 2rem; }
    .article-toc details { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--surface); }
}
@media (max-width: 620px) {
    .single-article { padding-top: 2.5rem; }
    .single-article__header h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
    .single-article__byline { align-items: flex-start; flex-direction: column; }
    .single-article__dates { justify-content: flex-start; }
    .single-article__image { margin-top: 2rem; }
    .article-share { align-items: flex-start; flex-direction: column; }
    .article-share__links { justify-content: flex-start; }
    .article-author { grid-template-columns: 72px 1fr; padding: 1.25rem; }
    .article-author__avatar img { width: 72px; height: 72px; }
}


/* SEO/authority author experience v0.4.0 */
.author-page { padding-block: var(--space-5) var(--space-6); }
.author-profile { display: grid; grid-template-columns: 192px minmax(0, 760px); gap: clamp(2rem, 6vw, 4rem); align-items: center; max-width: 1040px; margin: 0 auto var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.author-profile__avatar img { width: 192px; height: 192px; border-radius: 50%; object-fit: cover; }
.author-profile h1 { margin: .15rem 0 .35rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.author-profile__title { margin: 0 0 1rem; color: var(--accent); font-weight: 800; }
.author-profile__bio { color: var(--muted); font-size: 1.05rem; }
.author-profile__bio p { margin: 0; }
.author-profile__specialties { margin-top: 1rem; font-size: .92rem; }
.author-profile__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.author-profile__links a { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 750; }
.author-articles { padding-top: var(--space-2); }
.article-author__title { margin-bottom: .35rem !important; color: var(--accent) !important; font-weight: 750; }
.article-author__specialties { margin-top: .6rem !important; font-size: .82rem !important; }
@media (max-width: 720px) {
    .author-profile { grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start; }
    .author-profile__avatar img { width: 96px; height: 96px; }
    .author-profile h1 { font-size: clamp(2.25rem, 10vw, 3.4rem); }
}
@media (max-width: 480px) {
    .author-profile { grid-template-columns: 1fr; }
}

.breadcrumbs { margin-bottom: 1.5rem; color: var(--muted); font-size: .78rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: color-mix(in srgb, var(--muted) 55%, transparent); }
.breadcrumbs a { font-weight: 700; }
.single-article > .breadcrumbs { max-width: 940px; margin-inline: auto; }

/* =========================================================
   Demo system v0.5.0
   Five complete visual directions sharing the same content.
   ========================================================= */

/* AUTHOR */
.demo-author {
    --bg: #fbf8f2;
    --surface: #fffdfa;
    --text: #28231f;
    --muted: #746c64;
    --line: #ddd5cb;
    --accent: #9b4d2f;
    --container: 1180px;
}
.demo-author .site-header { position: relative; background: transparent; backdrop-filter: none; }
.demo-author .site-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.author-home-hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr); gap:clamp(2rem,8vw,7rem); align-items:center; min-height:72vh; padding-block:clamp(4rem,10vw,8rem); }
.author-home-hero__copy h1 { max-width:900px; margin:.15em 0 .18em; font-family:Georgia,'Times New Roman',serif; font-size:clamp(4rem,10vw,8.8rem); font-weight:500; line-height:.87; letter-spacing:-.065em; }
.author-home-hero__lead { max-width:650px; margin:0; color:var(--muted); font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.2rem,2vw,1.55rem); }
.author-home-hero__actions { display:flex; flex-wrap:wrap; gap:1.25rem; align-items:center; margin-top:2rem; }
.author-home-hero__portrait { justify-self:end; width:min(100%,340px); }
.author-home-hero__portrait img { width:100%; aspect-ratio:1/1; border-radius:50%; object-fit:cover; filter:grayscale(15%); }
.author-featured { padding-block:1rem var(--space-6); }
.author-featured__article { display:grid; grid-template-columns:minmax(0,.85fr) minmax(320px,1.15fr); gap:clamp(2rem,6vw,5rem); align-items:center; padding-block:2.5rem; border-block:1px solid var(--line); }
.author-featured__article h2 { margin:.4rem 0 .6rem; font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.4rem,5vw,4.8rem); font-weight:500; line-height:.98; letter-spacing:-.045em; }
.author-featured__article p { color:var(--muted); font-size:1.05rem; }
.author-featured__image { overflow:hidden; border-radius:2px; }
.author-featured__image img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.author-essays { padding-block:var(--space-5) var(--space-6); }
.author-essay-list { border-top:1px solid var(--text); }
.author-essay-row { display:grid; grid-template-columns:170px minmax(0,1.2fr) minmax(220px,.8fr) auto; gap:2rem; align-items:start; padding:2rem 0; border-bottom:1px solid var(--line); }
.author-essay-row__meta { display:grid; gap:.4rem; color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; }
.author-essay-row h3 { margin:0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.55rem,2.5vw,2.3rem); font-weight:500; line-height:1.05; letter-spacing:-.025em; }
.author-essay-row p { margin:0; color:var(--muted); }
.demo-author .editorial-section--soft { background:#f4eee5; }
.demo-author .newsletter-card,.demo-author .author-card { border-radius:2px; box-shadow:none; }

/* DATA / TECH */
.demo-data-tech {
    --bg:#071019;
    --surface:#0c1824;
    --text:#edf7ff;
    --muted:#8ca0b4;
    --line:#1b3042;
    --accent:#31d494;
    --container:1320px;
    font-family:Inter,ui-sans-serif,system-ui,sans-serif;
}
.demo-data-tech .site-header { background:rgba(7,16,25,.92); border-color:var(--line); }
.demo-data-tech .site-title { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-weight:800; }
.demo-data-tech .site-nav a { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.78rem; text-transform:uppercase; letter-spacing:.07em; }
.tech-dashboard { display:grid; grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr); gap:clamp(2rem,6vw,6rem); align-items:end; min-height:70vh; padding-block:clamp(4rem,10vw,8rem); }
.tech-dashboard__intro h1 { margin:.12em 0 .18em; max-width:800px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:clamp(3.4rem,8vw,7.5rem); line-height:.86; letter-spacing:-.07em; }
.tech-dashboard__intro > p { max-width:620px; color:var(--muted); font-size:1.08rem; }
.tech-label { color:var(--accent); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; }
.tech-topics { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:2rem; }
.tech-topics a { padding:.35rem .55rem; border:1px solid var(--line); color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.72rem; }
.tech-signal { position:relative; padding:clamp(1.5rem,4vw,3.5rem); border:1px solid #28506b; background:linear-gradient(145deg,#0b1925,#0b1520 65%); box-shadow:0 30px 80px rgba(0,0,0,.28); }
.tech-signal::before { content:''; position:absolute; inset:12px; pointer-events:none; border:1px solid rgba(49,212,148,.08); }
.tech-signal__status { display:flex; gap:.6rem; align-items:center; margin-bottom:2.5rem; color:#a9bdce; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.68rem; letter-spacing:.12em; }
.tech-signal__status span { width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 14px var(--accent); }
.tech-signal h2 { position:relative; margin:.45rem 0 .7rem; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:clamp(2rem,4vw,4.25rem); line-height:.98; letter-spacing:-.045em; }
.tech-signal p { position:relative; max-width:60ch; color:var(--muted); }
.tech-signal .post-meta { position:relative; }
.tech-arrow { position:absolute; right:1.5rem; bottom:1.25rem; color:var(--accent); font-size:2rem; }
.tech-stream { padding-block:var(--space-5) var(--space-6); }
.tech-section-head { display:grid; grid-template-columns:auto auto 1fr; gap:1rem; align-items:center; margin-bottom:1.5rem; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.tech-section-head span { color:var(--accent); }
.tech-section-head h2 { margin:0; font-size:1rem; letter-spacing:.08em; text-transform:uppercase; }
.tech-section-head i { height:1px; background:var(--line); }
.tech-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.tech-card { min-width:0; padding:1.35rem; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.012); }
.tech-card__top { display:flex; justify-content:space-between; margin-bottom:1rem; color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.66rem; }
.tech-card__top span:first-child { color:var(--accent); }
.tech-card__image { display:block; margin:-.2rem -.2rem 1.2rem; overflow:hidden; }
.tech-card__image img { width:100%; aspect-ratio:16/9; object-fit:cover; filter:saturate(.7) contrast(1.05); }
.tech-card h3 { margin:.2rem 0 .65rem; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:1.2rem; line-height:1.15; }
.tech-card p { color:var(--muted); font-size:.9rem; }
.demo-data-tech .editor-picks { border-color:var(--line); }
.demo-data-tech .newsletter-card,.demo-data-tech .author-card { background:#0a1722; }

/* JOURNAL */
.demo-journal {
    --bg:#f1ede4;
    --surface:#f7f3eb;
    --text:#171714;
    --muted:#666158;
    --line:#b8b0a5;
    --accent:#9a271f;
    --container:1320px;
}
.demo-journal .site-header { position:relative; min-height:48px; background:#171714; color:#f7f3eb; border:0; backdrop-filter:none; }
.demo-journal .site-header__inner { min-height:48px; }
.demo-journal .site-title { font-family:Georgia,'Times New Roman',serif; font-size:1rem; }
.demo-journal .site-nav a { font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; }
.journal-masthead { padding-top:2.2rem; text-align:center; }
.journal-masthead__date { padding-bottom:.65rem; border-bottom:1px solid var(--text); font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; }
.journal-masthead h1 { margin:.2rem 0 0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(4rem,10vw,9rem); font-weight:700; line-height:.92; letter-spacing:-.065em; }
.journal-masthead > p { margin:.5rem auto 1rem; max-width:700px; font-family:Georgia,'Times New Roman',serif; font-style:italic; }
.journal-sections { display:flex; justify-content:center; flex-wrap:wrap; gap:1.5rem; padding:.75rem 0; border-block:1px solid var(--text); }
.journal-sections a { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.journal-lead { display:grid; grid-template-columns:minmax(0,.8fr) minmax(460px,1.2fr); gap:2rem; padding-block:2.2rem; border-bottom:3px double var(--text); }
.journal-lead__main { align-self:center; padding-right:1rem; }
.journal-kicker { color:var(--accent); font-size:.72rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.journal-lead h2 { margin:.35rem 0 .65rem; font-family:Georgia,'Times New Roman',serif; font-size:clamp(2.8rem,5vw,5rem); line-height:.94; letter-spacing:-.045em; }
.journal-lead__main p { color:#49443d; font-family:Georgia,'Times New Roman',serif; font-size:1.18rem; }
.journal-lead__image img { width:100%; aspect-ratio:16/10; object-fit:cover; filter:saturate(.82); }
.journal-news { padding-block:2.5rem var(--space-6); }
.journal-rule-title { border-bottom:2px solid var(--text); margin-bottom:1rem; }
.journal-rule-title h2 { width:max-content; margin:0 0 -.1rem; padding:.3rem .8rem .3rem 0; background:var(--bg); font-family:Georgia,'Times New Roman',serif; font-size:1.15rem; text-transform:uppercase; letter-spacing:.05em; }
.journal-news-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.journal-story { padding:1.35rem; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.journal-story:nth-child(4n+1) { padding-left:0; }
.journal-story:nth-child(4n) { border-right:0; }
.journal-story--major { grid-column:span 2; }
.journal-story__image { display:block; margin-bottom:1rem; }
.journal-story__image img { width:100%; aspect-ratio:16/9; object-fit:cover; filter:saturate(.78); }
.journal-story h3 { margin:.35rem 0 .55rem; font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.35rem,2.3vw,2.2rem); line-height:1.03; letter-spacing:-.025em; }
.journal-story:not(.journal-story--major) h3 { font-size:1.35rem; }
.journal-story p { margin:.5rem 0; color:var(--muted); font-family:Georgia,'Times New Roman',serif; }
.demo-journal .newsletter-card,.demo-journal .author-card { border-radius:0; box-shadow:none; border-color:var(--text); }

/* MINIMAL */
.demo-minimal {
    --bg:#ffffff;
    --surface:#ffffff;
    --text:#141414;
    --muted:#747474;
    --line:#e1e1e1;
    --accent:#141414;
    --container:1040px;
}
.demo-minimal .site-header { position:relative; background:#fff; backdrop-filter:none; }
.demo-minimal .site-header__inner { min-height:62px; }
.demo-minimal .site-title { font-size:1rem; font-weight:650; }
.demo-minimal .site-nav a { font-size:.82rem; }
.minimal-intro { max-width:900px; padding-top:clamp(6rem,15vw,12rem); padding-bottom:clamp(5rem,10vw,8rem); }
.minimal-intro__small { display:block; margin-bottom:1.1rem; color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.13em; }
.minimal-intro h1 { margin:0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(4.5rem,12vw,10rem); font-weight:400; line-height:.8; letter-spacing:-.075em; }
.minimal-intro p { max-width:620px; margin:2rem 0 0; color:var(--muted); font-size:clamp(1.1rem,2vw,1.35rem); }
.minimal-feature { max-width:900px; padding-block:3rem 5rem; border-top:1px solid var(--text); }
.minimal-feature__meta { display:flex; justify-content:space-between; gap:1rem; color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.07em; }
.minimal-feature h2 { max-width:850px; margin:.7rem 0 1rem; font-family:Georgia,'Times New Roman',serif; font-size:clamp(3rem,7vw,6.5rem); font-weight:400; line-height:.93; letter-spacing:-.055em; }
.minimal-feature p { max-width:680px; color:var(--muted); font-size:1.08rem; }
.minimal-read { display:inline-block; margin-top:1rem; font-size:.85rem; font-weight:750; }
.minimal-list { max-width:900px; padding-bottom:7rem; }
.minimal-list > h2 { margin:0 0 1rem; padding-bottom:.75rem; border-bottom:1px solid var(--text); font-size:.76rem; text-transform:uppercase; letter-spacing:.12em; }
.minimal-row { display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:2rem; align-items:center; padding:1.6rem 0; border-bottom:1px solid var(--line); }
.minimal-row time,.minimal-row span { color:var(--muted); font-size:.72rem; }
.minimal-row h3 { margin:0 0 .2rem; font-family:Georgia,'Times New Roman',serif; font-size:clamp(1.45rem,2.5vw,2rem); font-weight:400; line-height:1.08; }
.minimal-row__arrow { font-size:1.2rem; }
.demo-minimal .editorial-section--bottom { border-top:1px solid var(--line); }
.demo-minimal .home-bottom-grid { max-width:900px; }
.demo-minimal .newsletter-card,.demo-minimal .author-card { border:0; border-radius:0; background:transparent; box-shadow:none; padding-left:0; padding-right:0; }

/* Demo-specific global article refinements */
.demo-data-tech .single-article__header h1,.demo-data-tech .single-article__content :is(h2,h3),.demo-data-tech .author-profile h1 { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.demo-data-tech .single-article__content { font-family:Inter,ui-sans-serif,system-ui,sans-serif; }
.demo-journal .single-article__header h1,.demo-journal .author-profile h1 { font-family:Georgia,'Times New Roman',serif; font-weight:700; }
.demo-journal .single-article__image { border-radius:0; }
.demo-minimal .single-article__header { text-align:left; }
.demo-minimal .single-article__header h1 { font-weight:400; }
.demo-minimal .single-article__byline,.demo-minimal .single-article__dates { justify-content:flex-start; }
.demo-minimal .single-article__image { border-radius:0; }

@media (max-width: 980px) {
    .author-home-hero { grid-template-columns:1fr 220px; min-height:auto; }
    .author-featured__article { grid-template-columns:1fr 1fr; }
    .author-essay-row { grid-template-columns:130px 1fr; }
    .author-essay-row p,.author-essay-row > .text-link { grid-column:2; }
    .tech-dashboard { grid-template-columns:1fr; min-height:auto; }
    .tech-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .journal-lead { grid-template-columns:1fr 1fr; }
    .journal-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .journal-story:nth-child(4n+1) { padding-left:1.35rem; }
    .journal-story:nth-child(4n) { border-right:1px solid var(--line); }
    .journal-story:nth-child(2n+1) { padding-left:0; }
    .journal-story:nth-child(2n) { border-right:0; }
}
@media (max-width: 720px) {
    .author-home-hero { grid-template-columns:1fr; padding-top:4rem; }
    .author-home-hero__portrait { justify-self:start; width:150px; order:-1; }
    .author-featured__article { grid-template-columns:1fr; }
    .author-featured__image { order:-1; }
    .author-essay-row { grid-template-columns:1fr; gap:.7rem; }
    .author-essay-row p,.author-essay-row > .text-link { grid-column:auto; }
    .tech-card-grid { grid-template-columns:1fr; }
    .journal-masthead h1 { font-size:clamp(3.6rem,17vw,6rem); }
    .journal-lead { grid-template-columns:1fr; }
    .journal-lead__image { order:-1; }
    .journal-news-grid { grid-template-columns:1fr; }
    .journal-story,.journal-story--major { grid-column:auto; padding:1.3rem 0; border-right:0; }
    .minimal-intro { padding-top:5rem; }
    .minimal-feature__meta { flex-direction:column; }
    .minimal-row { grid-template-columns:82px minmax(0,1fr) auto; gap:1rem; }
}
@media (max-width: 480px) {
    .minimal-row { grid-template-columns:1fr auto; }
    .minimal-row time { grid-column:1 / -1; }
}

/* v0.6.0 visual polish and complete internal pages */
html { overflow-x: clip; }
body { min-width: 320px; }
:is(h1,h2,h3,h4,p,a,span) { overflow-wrap: break-word; }
:is(.hero-card__content,.journal-lead__main,.post-card__body,.author-home-hero__content,.tech-dashboard__content) { min-width: 0; }
:is(.hero-card h1,.journal-lead h2,.single-article__header h1,.archive-header h1,.standard-page__header h1,.error-404 h1) {
    text-wrap: balance;
    overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, .button, .search-submit { cursor: pointer; }
.button { transition: transform .18s ease, opacity .18s ease, background .18s ease; }
.button:hover { opacity: .9; }

/* Header and navigation */
.site-header__inner { min-width: 0; }
.site-branding { min-width: 0; flex: 0 1 auto; }
.custom-logo { width: auto; max-height: 54px; }
.site-nav { min-width: 0; }
.site-nav a { font-size: .88rem; font-weight: 650; }
.header-search { position: relative; flex: 0 0 auto; }
.header-search summary { list-style: none; cursor: pointer; font-size: .8rem; font-weight: 750; }
.header-search summary::-webkit-details-marker { display: none; }
.header-search[open] > .header-search__panel { position: absolute; top: calc(100% + 1rem); right: 0; z-index: 30; width: min(390px, calc(100vw - 2rem)); padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 55px rgba(0,0,0,.12); }

/* Search forms */
.search-form { display: flex; width: 100%; gap: .55rem; }
.search-field { min-width: 0; flex: 1; min-height: 44px; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.search-field::placeholder { color: var(--muted); }
.search-submit { min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--text); border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 750; }

/* Cards */
.post-card { min-width: 0; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.07); }
.post-card h3 { overflow-wrap: anywhere; text-wrap: pretty; }
.post-card__body > p { color: var(--muted); }

/* Archive, blog and search */
.archive-page, .search-page { padding-top: clamp(2.5rem, 6vw, 5rem); }
.archive-header--editorial { max-width: 880px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.archive-header--editorial h1 { margin: .2rem 0 .65rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.05em; }
.archive-header--editorial p, .archive-description { max-width: 68ch; color: var(--muted); font-size: 1.08rem; }
.archive-grid { margin-bottom: 3.5rem; }
.navigation.pagination { margin: 1rem 0 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.search-page__header .search-form { max-width: 620px; margin-top: 1.5rem; }
.empty-state { max-width: 760px; padding: clamp(3rem, 8vw, 7rem) 0; }
.empty-state h2 { margin: .4rem 0 1rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.empty-state p { color: var(--muted); }

/* Standard pages */
.standard-page { padding-top: clamp(2.5rem, 6vw, 5rem); }
.standard-page__article { max-width: 980px; margin-inline: auto; }
.standard-page__header { max-width: 820px; margin-bottom: 2.5rem; }
.standard-page__header h1 { margin: .2rem 0 .8rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .92; letter-spacing: -.055em; }
.standard-page__header p { max-width: 64ch; color: var(--muted); font-size: 1.2rem; }
.standard-page__image { margin: 0 0 3rem; overflow: hidden; border-radius: var(--radius); }
.standard-page__image img { width: 100%; max-height: 620px; object-fit: cover; }
.standard-page__content { max-width: 760px; font-family: Georgia,'Times New Roman',serif; font-size: 1.1rem; }
.standard-page__content :is(h2,h3,h4) { font-family: Inter,ui-sans-serif,system-ui,sans-serif; line-height: 1.15; margin-top: 2em; }
.standard-page__content a { color: color-mix(in srgb, var(--accent) 80%, var(--text)); text-decoration: underline; text-underline-offset: .18em; }

/* 404 */
.error-404 { position: relative; min-height: 68vh; max-width: 900px; padding-block: clamp(4rem, 10vw, 9rem); }
.error-404__code { position: absolute; top: 1rem; right: 0; z-index: -1; color: color-mix(in srgb, var(--line) 55%, transparent); font-family: Georgia,'Times New Roman',serif; font-size: clamp(8rem, 25vw, 18rem); font-weight: 700; line-height: 1; }
.error-404 h1 { max-width: 760px; margin: .4rem 0 1rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; }
.error-404 > p { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.error-404 .search-form { max-width: 620px; margin-top: 1.5rem; }
.error-404__recent { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.error-404__recent h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.error-404__recent ul { padding-left: 1.2rem; }
.error-404__recent li { margin: .55rem 0; }

/* Comments */
.comments-area { max-width: var(--content); margin: 4rem auto 0; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .85rem; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.comment-content { margin-left: 3.5rem; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-form label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .85rem; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.comment-form .submit { min-height: 44px; padding: .75rem 1rem; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 750; }

/* Footer */
.site-footer { margin-top: clamp(3rem, 8vw, 7rem); padding-top: clamp(3rem, 6vw, 5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.35fr .7fr .8fr 1.15fr; gap: clamp(1.5rem, 4vw, 4rem); }
.site-footer__title { display: inline-block; font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
.site-footer__brand p, .site-footer__search p { max-width: 38ch; color: var(--muted); font-size: .9rem; }
.site-footer h2 { margin: 0 0 .85rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer ul { display: block; }
.site-footer li { margin: .45rem 0; }
.site-footer a { font-size: .9rem; }
.site-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-block: 1.2rem; }
.site-footer__legal a { color: var(--muted); font-size: .78rem; }
.site-footer .search-form { display: grid; grid-template-columns: 1fr auto; }

/* Journal: prevent oversized mastheads and headline collisions */
.demo-journal .journal-masthead { padding-top: clamp(1.4rem, 3vw, 2.3rem); }
.demo-journal .journal-masthead h1 {
    max-width: 100%;
    margin: .3rem auto 0;
    font-size: clamp(3.6rem, 8vw, 7.5rem);
    line-height: .88;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.demo-journal .journal-masthead > p { margin-top: .75rem; }
.demo-journal .journal-lead { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
.demo-journal .journal-lead__main { min-width: 0; padding-right: 0; }
.demo-journal .journal-lead h2 {
    max-width: 100%;
    font-size: clamp(2.45rem, 4.2vw, 4.4rem);
    line-height: .96;
    letter-spacing: -.038em;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.demo-journal .journal-lead__main p { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; }
.demo-journal .journal-lead__image { min-width: 0; }
.demo-journal .journal-lead__image img { aspect-ratio: 16/10; }
.demo-journal .journal-news { padding-top: 2rem; }
.demo-journal .journal-story { min-width: 0; }
.demo-journal .journal-story h3 { overflow-wrap: anywhere; }

/* Demo-specific footer coherence */
.demo-data-tech .site-footer { background: #071019; }
.demo-data-tech .search-field { background: #0d1b28; }
.demo-data-tech .search-submit { background: var(--accent); color: #06120d; border-color: var(--accent); }
.demo-journal .site-footer { border-top: 3px double var(--text); }
.demo-journal .site-footer__title { font-weight: 700; }
.demo-journal .search-field, .demo-journal .search-submit { border-radius: 0; }
.demo-minimal .site-footer { padding-top: 3rem; }
.demo-minimal .site-footer__title { font-weight: 400; }

@media (max-width: 1050px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .demo-journal .journal-lead { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
}

@media (max-width: 900px) {
    .site-header__inner { flex-wrap: wrap; gap: .75rem; }
    .header-search { margin-left: auto; }
    .site-nav { width: 100%; }
    .site-nav.is-open { max-height: calc(100vh - 72px); overflow-y: auto; }
    .site-nav ul { gap: 0; }
    .site-nav li + li { border-top: 1px solid var(--line); }
    .site-nav a { display: block; padding: .75rem 0; }
    .demo-journal .journal-lead { grid-template-columns: 1fr; }
    .demo-journal .journal-lead__image { order: -1; }
    .demo-journal .journal-lead__image img { max-height: 540px; }
}

@media (max-width: 720px) {
    .archive-header--editorial h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
    .standard-page__header h1 { font-size: clamp(2.8rem, 14vw, 5rem); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__legal { align-items: flex-start; flex-direction: column; }
    .demo-journal .journal-masthead h1 { font-size: clamp(3rem, 14vw, 5.5rem); }
    .demo-journal .journal-sections { justify-content: flex-start; gap: .65rem 1.1rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
    .demo-journal .journal-sections a { white-space: nowrap; }
    .demo-journal .journal-lead h2 { font-size: clamp(2.2rem, 10.5vw, 3.8rem); }
    .comment-content { margin-left: 0; }
}

@media (max-width: 520px) {
    .header-search { display: none; }
    .search-form { flex-direction: column; }
    .search-submit { width: 100%; }
    .site-footer .search-form { grid-template-columns: 1fr; }
    .error-404__code { opacity: .55; }
}

/* About, contact and legal page templates */
.about-page, .contact-page, .legal-page { padding-top: clamp(2.5rem, 6vw, 5rem); }
.about-page__layout { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-page__identity { position: sticky; top: 110px; min-width: 0; }
.about-page__avatar { width: min(280px, 80%); margin-bottom: 1.8rem; overflow: hidden; border-radius: 50%; }
.about-page__avatar img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-page__identity h1 { margin: .35rem 0 .7rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(3rem, 7vw, 6rem); line-height: .9; letter-spacing: -.05em; }
.about-page__role { color: var(--muted); font-size: 1.05rem; }
.about-page__content { max-width: 720px; padding-top: .5rem; }
.contact-page__grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(360px,1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-page__intro h1 { margin: .3rem 0 1rem; font-family: Georgia,'Times New Roman',serif; font-size: clamp(3.2rem, 8vw, 7rem); line-height: .9; letter-spacing: -.055em; }
.contact-panel { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-panel h2 { margin-top: 0; font-family: Georgia,'Times New Roman',serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.contact-form p { margin: 0 0 1rem; }
.contact-form label { display: block; margin-bottom: .35rem; font-size: .84rem; font-weight: 750; }
.contact-form :is(input,textarea) { width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 170px; }
.contact-form .button { border: 0; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { padding: .8rem 1rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: .9rem; }
.contact-notice--error, .contact-notice--missing, .contact-notice--invalid { border-left-color: #b42318; }
.legal-page__article { max-width: 820px; margin-inline: auto; }
.legal-page .standard-page__content { max-width: 760px; }
.demo-journal :is(.contact-panel,.contact-form input,.contact-form textarea) { border-radius: 0; }
.demo-data-tech .contact-form :is(input,textarea) { background: #0b1824; }
.demo-minimal .contact-panel { border-radius: 0; border-inline: 0; padding-inline: 0; }

@media (max-width: 900px) {
    .about-page__layout, .contact-page__grid { grid-template-columns: 1fr; }
    .about-page__identity { position: static; }
    .about-page__avatar { width: 180px; }
}

.editorial-chart { margin-block: 2rem; padding-block: 1.25rem; border-block: 1px solid var(--line); font-family: Inter,ui-sans-serif,system-ui,sans-serif; }
.editorial-chart .wp-block-image { margin-bottom: .5rem; }
.editorial-chart figcaption { color: var(--muted); font-size: .78rem; text-align: left; }
.editorial-newsletter-inline { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }

/* Feature-complete editorial layer v0.7.0 */
body { font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); }
.hero-card h1,
.single-article__header h1,
.author-profile h1,
.topic-card h3,
.editor-pick h3,
.newsletter-card h2,
.author-card h2,
.archive-header h1,
.error-404 h1 { font-family: var(--font-display, Georgia, "Times New Roman", serif); }

.site-header__actions { display:flex; align-items:center; gap:.75rem; margin-left:auto; }
.site-header__cta { margin:0; white-space:nowrap; padding:.58rem .9rem; font-size:.84rem; }
.social-links { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1rem; font-size:.82rem; font-weight:750; }
.social-links a { text-decoration:underline; text-underline-offset:.2em; }
.home-bottom-grid--single { grid-template-columns:minmax(0, 760px); justify-content:center; }

.newsletter-form { margin-top:1.25rem; }
.newsletter-form__row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.6rem; }
.newsletter-form input[type="email"] { min-width:0; border:1px solid var(--line); border-radius:999px; background:var(--bg); color:var(--text); padding:.78rem 1rem; font:inherit; }
.newsletter-form .button { margin:0; border:0; cursor:pointer; }
.newsletter-form__privacy { display:block; margin-top:.65rem; color:var(--muted); font-size:.72rem; line-height:1.45; }

.popular-posts__list { list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.popular-posts__item { display:grid; grid-template-columns:72px minmax(0,1fr); gap:1rem; padding:1.25rem 0; border-bottom:1px solid var(--line); }
.popular-posts__rank { font-family:var(--font-display, Georgia, serif); color:var(--muted); font-size:2rem; line-height:1; }
.popular-posts__body h3 { margin:.25rem 0 .4rem; font-family:var(--font-display, Georgia, serif); font-size:clamp(1.25rem,2.2vw,1.75rem); line-height:1.15; overflow-wrap:anywhere; }

.editorial-context { margin:3rem 0 2rem; padding:1.5rem; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:14px; background:color-mix(in srgb, var(--surface) 88%, var(--bg)); font-family:var(--font-body); }
.editorial-context__header { margin-bottom:1rem; }
.editorial-context h2 { margin:.15rem 0; font-size:1.35rem; }
.editorial-context h3 { margin:1rem 0 .35rem; font-size:1rem; }
.editorial-context p { margin:.35rem 0; color:var(--muted); font-size:.9rem; line-height:1.6; }
.editorial-context__sources ol { margin:.5rem 0 0; padding-left:1.2rem; }
.editorial-context__sources li { margin:.35rem 0; font-size:.88rem; overflow-wrap:anywhere; }
.editorial-context__sources a { text-decoration:underline; text-underline-offset:.18em; }
.editorial-context__disclaimer { margin-top:1.2rem !important; padding-top:1rem; border-top:1px solid var(--line); }

.market-thesis, .scenario-block { margin-block:2.25rem; padding:clamp(1.25rem,4vw,2rem); border:1px solid var(--line); border-radius:16px; background:var(--surface); font-family:var(--font-body); }
.market-thesis > h2:first-child, .scenario-block > h2:first-child { margin-top:0; }
.scenario-grid { gap:.8rem; }
.scenario-card, .metric-card { padding:1.15rem; border:1px solid var(--line); border-radius:12px; background:color-mix(in srgb, var(--surface) 90%, var(--bg)); }
.metric-grid { margin-block:2rem; gap:.8rem; }
.metric-card__label { margin:0; color:var(--muted); font-family:var(--font-body); font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.metric-card__value { margin:.25rem 0 .4rem !important; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; font-size:clamp(1.5rem,3vw,2.3rem) !important; }
.terminal-block { margin-block:2rem; overflow:hidden; border:1px solid #2b3542; border-radius:14px; background:#0d131b; color:#eef4fa; }
.terminal-block__title { margin:0 !important; padding:.55rem .9rem; border-bottom:1px solid #2b3542; color:#9aa8b8; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.terminal-block pre { margin:0 !important; border-radius:0 !important; }

.code-block-shell { position:relative; margin-block:2rem; overflow:hidden; border:1px solid #263240; border-radius:14px; background:#111821; }
.code-block-shell pre { margin:0 !important; border-radius:0 !important; border:0 !important; }
.code-block-toolbar { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.55rem .8rem; border-bottom:1px solid #263240; color:#9aa8b8; background:#0c1219; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:.7rem; letter-spacing:.06em; }
.code-copy-button { border:1px solid #38485a; border-radius:7px; background:transparent; color:#dfe7ef; padding:.35rem .55rem; cursor:pointer; font:inherit; }
.code-token--keyword { color:#8fc7ff; font-weight:700; }

.search-form--live { position:relative; }
.live-search-results { position:absolute; z-index:80; top:calc(100% + .4rem); left:0; right:0; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 18px 50px rgba(0,0,0,.14); }
.live-search-results__item { display:block; padding:.72rem .85rem; border-bottom:1px solid var(--line); font-size:.88rem; line-height:1.35; }
.live-search-results__item:last-child { border-bottom:0; }
.live-search-results__item:hover, .live-search-results__item:focus { background:color-mix(in srgb, var(--accent) 10%, var(--surface)); text-decoration:none; }
.search-topic-filter { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; margin-top:1rem; color:var(--muted); font-size:.85rem; }
.search-topic-filter select { border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--text); padding:.5rem .75rem; font:inherit; }
.search-page__count { margin-bottom:1.25rem; color:var(--muted); font-size:.85rem; }

/* Data / Tech keeps a technical sans voice regardless of the global display preset. */
.demo-data-tech :is(.tech-dashboard h1,.tech-signal h2,.tech-card h3,.single-article__header h1,.single-article__content h2,.single-article__content h3) { font-family:var(--font-body); }

/* Strong long-title protection across every layout. */
:is(.hero-card,.author-featured,.tech-signal,.journal-lead,.minimal-feature,.post-card,.single-article__header,.archive-header) :is(h1,h2,h3) { overflow-wrap:anywhere; text-wrap:balance; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior:auto; }
    *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

@media (max-width: 900px) {
    .site-header__actions { margin-left:0; }
    .site-header__cta { display:none; }
    .header-search { margin-left:auto; }
}

@media (max-width: 620px) {
    .popular-posts__item { grid-template-columns:48px minmax(0,1fr); }
    .popular-posts__rank { font-size:1.45rem; }
    .newsletter-form__row { grid-template-columns:1fr; }
    .newsletter-form .button { width:100%; }
    .editorial-context { padding:1.15rem; }
    .metric-grid, .scenario-grid { gap:.7rem; }
    .search-topic-filter { align-items:stretch; flex-direction:column; }
    .search-topic-filter select { width:100%; }
}
.single-article__content { font-family: var(--font-reader, Georgia, "Times New Roman", serif); }
.single-article__labels { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.55rem; }
.content-type-badge { display:inline-flex; align-items:center; padding:.18rem .5rem; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-family:var(--font-body); font-size:.68rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.site-nav__mobile-search { display:none; }
@media (max-width:900px) {
    .site-nav__mobile-search { display:block; padding-top:1rem; border-top:1px solid var(--line); }
}
.site-nav__mobile-cta { display:none; }
@media (max-width:900px) { .site-nav__mobile-cta { display:flex; width:100%; margin-top:.75rem; } }
