:root {
    --nm-accent: #6d5dfc;
    --nm-ink: #171a29;
    --nm-muted: #687084;
    --nm-line: #e5e7ee;
    --nm-surface: #ffffff;
    --nm-background: #f7f8fc;
    --nm-gutter: clamp(20px, 3.4vw, 68px);
    --nm-radius: 22px;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--nm-background); color: var(--nm-ink); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body, h1, h2, h3, p, a { overflow-wrap: anywhere; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { max-width: 100%; }
img { height: auto; }
iframe { max-width: 100%; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--nm-accent); outline-offset: 5px; border-radius: 5px; }
#main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100000; top: -100px; left: 20px; padding: 12px 18px; border-radius: 10px; background: #fff; color: #151725; box-shadow: 0 4px 24px #171a2920; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; z-index: 100; top: 0; display: flex; min-height: 80px; align-items: center; gap: 32px; padding: 16px var(--nm-gutter); border-bottom: 1px solid var(--nm-line); background: #ffffffef; backdrop-filter: blur(18px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 32px #171a2909; }
.brand { display: inline-flex; min-width: 0; flex-shrink: 0; max-width: 42%; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.04em; line-height: 1.2; }
.brand img { display: block; flex: 0 0 40px; object-fit: contain; }
.site-nav { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 26px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 13px; font-weight: 650; line-height: 1.4; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--nm-accent); }
.menu-toggle { display: none; min-height: 42px; align-items: center; gap: 10px; margin-left: auto; padding: 10px 13px; border: 1px solid var(--nm-line); border-radius: 10px; background: #fff; color: var(--nm-ink); cursor: pointer; font-size: 13px; font-weight: 700; }
.menu-toggle-lines { display: block; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.magazine-shell { width: 100%; padding: 50px var(--nm-gutter) 0; }
.listing-header { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 9px; color: var(--nm-accent); font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: .17em; text-transform: uppercase; }
.listing-header h1 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; }
.listing-intro { max-width: 440px; margin: 0 0 2px; color: var(--nm-muted); font-size: 14px; line-height: 1.6; }
.post-card { min-width: 0; border: 1px solid var(--nm-line); border-radius: var(--nm-radius); background: var(--nm-surface); }
.post-media { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: calc(var(--nm-radius) - 1px) calc(var(--nm-radius) - 1px) 0 0; background: #e9e6ff; aspect-ratio: 3 / 2; }
.post-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .45s; }
.post-media:hover img { transform: scale(1.035); }
.cover-placeholder { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #eeebff 0%, #e3e9ff 55%, #d1e9f1 100%); }
.cover-placeholder::before, .cover-placeholder::after { content: ''; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid #6d5dfc22; border-radius: 50%; transform: translate(-50%, 15%); }
.cover-placeholder::after { transform: translate(42%, -20%); }
.cover-placeholder > span { color: #6d5dfc50; font: 400 clamp(70px, 8vw, 140px)/1 Georgia, serif; }
.featured-post { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); margin-bottom: 52px; box-shadow: 0 16px 50px #252a4b07; }
.featured-media { height: 100%; min-height: 370px; border-radius: calc(var(--nm-radius) - 1px) 0 0 calc(var(--nm-radius) - 1px); aspect-ratio: auto; }
.featured-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 3.4vw, 66px); }
.post-labels { display: flex; max-width: 100%; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.latest-label, .category-label { display: inline-block; align-self: flex-start; max-width: 100%; padding: 6px 10px; border: 1px solid #6d5dfc18; border-radius: 7px; background: #6d5dfc0c; color: #5144c0; font-size: 10px; font-weight: 750; line-height: 1.3; letter-spacing: .025em; }
.latest-label { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
.post-meta { display: flex; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--nm-muted); font-size: 11px; line-height: 1.45; }
.meta-separator { color: #969db0; }
.featured-copy h2 { margin: 15px 0 18px; font-size: clamp(29px, 3.25vw, 54px); font-weight: 800; line-height: 1.075; letter-spacing: -.045em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--nm-accent); }
.post-excerpt { margin: 0; color: var(--nm-muted); font-size: 14px; line-height: 1.75; }
.featured-copy .post-excerpt { font-size: 15px; }
.read-more { display: inline-flex; max-width: 100%; align-items: center; justify-content: space-between; gap: 20px; align-self: flex-start; padding-top: 24px; color: var(--nm-ink); text-decoration: none; font-size: 12px; font-weight: 750; line-height: 1.35; }
.read-more > span[aria-hidden] { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--nm-line); border-radius: 50%; font-size: 17px; transition: background .2s, color .2s; }
.read-more:hover > span[aria-hidden] { background: var(--nm-accent); border-color: var(--nm-accent); color: #fff; }
.featured-read-more { margin-top: 4px; }
.section-heading { display: flex; align-items: center; gap: 22px; margin: 0 0 24px; }
.section-heading h2 { flex: 0 0 auto; margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.025em; }
.section-heading > span { width: 100%; height: 1px; background: var(--nm-line); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 36px); align-items: stretch; }
.grid-post { display: flex; flex-direction: column; }
.post-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: clamp(22px, 2vw, 32px); }
.post-copy > .category-label { margin-bottom: 14px; }
.post-copy h2 { margin: 13px 0 14px; font-size: clamp(22px, 1.85vw, 30px); font-weight: 760; line-height: 1.18; letter-spacing: -.035em; }
.post-copy .read-more { width: 100%; margin-top: auto; }
.pagination { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 48px 0 0; padding: 26px 0; border-top: 1px solid var(--nm-line); }
.pagination > div:last-child { text-align: right; }
.pagination a { display: inline-block; padding: 10px 14px; border: 1px solid var(--nm-line); border-radius: 9px; background: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.pagination a:hover { border-color: var(--nm-accent); color: var(--nm-accent); }
.pagination-info { color: var(--nm-muted); font-size: 11px; }
.empty-state { display: grid; min-height: 40vh; align-content: center; justify-items: center; text-align: center; }
.empty-state h2 { font-size: 25px; line-height: 1.25; }
.empty-state p { color: var(--nm-muted); }
.site-footer { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin: 56px var(--nm-gutter) 0; padding: 28px 0; border-top: 1px solid var(--nm-line); color: var(--nm-muted); font-size: 11px; }
.site-footer a { text-decoration: none; }
.footer-brand { color: var(--nm-ink); font-size: 14px; font-weight: 800; letter-spacing: -.03em; }
.footer-top { font-weight: 700; }
.is-article { background: #fff; }
.standard-page { width: 100%; max-width: none; }
.article-shell { width: 100%; max-width: none; margin: 0; padding: clamp(30px, 4.5vw, 74px) var(--nm-gutter) 0; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--nm-muted); text-decoration: none; font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--nm-accent); }
.article-header { width: 100%; margin: 0 0 36px; }
.article-header h1 { margin: 12px 0 20px; font-size: clamp(32px, 4vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.045em; }
.article-header .post-meta { font-size: 12px; }
.article-lead { margin: 25px 0 0; color: var(--nm-muted); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.65; }
.article-cover { margin: 0 0 40px; }
.article-cover img { display: block; width: 100%; max-height: 74vh; object-fit: cover; border-radius: var(--nm-radius); }
.standard-page .entry-content { width: 100%; max-width: none; color: #252c3d; font-size: 18px; line-height: 1.85; }
.standard-page .entry-content > :first-child { margin-top: 0; }
.standard-page .entry-content p { margin: 0 0 1.35em; }
.standard-page .entry-content h2, .standard-page .entry-content h3, .standard-page .entry-content h4 { color: var(--nm-ink); line-height: 1.22; letter-spacing: -.025em; }
.standard-page .entry-content h2 { margin: 1.8em 0 .7em; font-size: clamp(27px, 2.6vw, 40px); }
.standard-page .entry-content h3 { margin: 1.6em 0 .65em; font-size: clamp(23px, 2vw, 30px); }
.standard-page .entry-content a { color: #5144c0; text-underline-offset: 3px; }
.standard-page .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.standard-page .entry-content iframe { max-width: 100%; }
.standard-page .entry-content blockquote { margin: 1.8em 0; padding: 12px 24px; border-left: 4px solid var(--nm-accent); background: #f7f6ff; color: #3e3957; font-size: 1.12em; }
.standard-page .entry-content blockquote p:last-child { margin-bottom: 0; }
.standard-page .entry-content pre { max-width: 100%; overflow-x: auto; padding: 20px; border-radius: 12px; background: #151927; color: #e4e9f7; white-space: pre; font-size: 14px; }
.standard-page .entry-content :not(pre) > code { padding: .15em .35em; border-radius: 4px; background: #f0eef9; color: #5144c0; font-size: .9em; }
.standard-page .entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.standard-page .entry-content th, .standard-page .entry-content td { padding: 12px 16px; border: 1px solid var(--nm-line); text-align: left; }
.standard-page .entry-content th { background: #f7f8fc; }
.standard-page .entry-content figure { max-width: 100%; margin: 1.8em 0; }
.standard-page .entry-content figcaption { margin-top: 8px; color: var(--nm-muted); font-size: 13px; }
.builder-page, .builder-page .page-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.builder-page .nb-section { width: 100%; padding: 0; }
.builder-page .nb-container { width: 100%; max-width: var(--nb-width, 1200px); margin-inline: auto; }
.builder-page .nb-grid { display: grid; grid-template-columns: repeat(var(--nb-cols, 1), minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: center; }
.builder-page .nb-title { font-size: clamp(32px, 5vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
.builder-page .nb-text { color: inherit; opacity: .86; }
.builder-page .nb-button { display: inline-block; padding: 12px 20px; border-radius: 10px; background: var(--nm-accent); color: #fff; font-weight: 700; text-decoration: none; }
.nm-back-to-top { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #ffffff40; border-radius: 50%; background: var(--nm-ink); color: #fff; box-shadow: 0 8px 28px #171a2928; cursor: pointer; font-size: 24px; }
@media (max-width: 1023px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-post { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .featured-copy { padding: 28px; }
    .featured-copy h2 { font-size: 32px; }
    .featured-media { min-height: 390px; }
    .listing-intro { max-width: 320px; font-size: 13px; }
    .site-header { flex-wrap: wrap; gap: 16px; }
    .brand { max-width: calc(100% - 110px); }
    .menu-enabled .menu-toggle { display: inline-flex; }
    .site-nav { width: 100%; flex-basis: 100%; justify-content: flex-start; padding: 16px 0 2px; }
    .menu-enabled .site-nav:not(.open) { display: none; }
    .site-nav a { padding: 5px 0; }
}
@media (max-width: 680px) {
    :root { --nm-radius: 17px; }
    .site-header { min-height: 70px; padding-block: 12px; }
    .brand { font-size: 18px; }
    .brand img { width: 34px; height: 34px; flex-basis: 34px; }
    .magazine-shell { padding-top: 32px; }
    .listing-header { flex-direction: column; align-items: flex-start; gap: 13px; margin-bottom: 24px; }
    .listing-intro { max-width: none; }
    .featured-post { grid-template-columns: minmax(0, 1fr); margin-bottom: 34px; }
    .featured-media { min-height: 0; height: auto; aspect-ratio: 3 / 2; border-radius: calc(var(--nm-radius) - 1px) calc(var(--nm-radius) - 1px) 0 0; }
    .featured-copy { padding: 25px; }
    .featured-copy h2 { font-size: 31px; }
    .featured-copy .post-excerpt { font-size: 14px; }
    .post-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .post-copy { padding: 24px; }
    .post-copy h2 { font-size: 25px; }
    .section-heading h2 { font-size: 17px; }
    .pagination { gap: 8px; }
    .pagination a { padding: 10px; font-size: 10px; }
    .pagination-info { font-size: 10px; white-space: nowrap; }
    .site-footer { margin-top: 38px; font-size: 10px; }
    .site-footer > span { order: 3; width: 100%; }
    .article-shell { padding-top: 30px; }
    .back-link { margin-bottom: 22px; }
    .article-header { margin-bottom: 28px; }
    .article-header h1 { font-size: 33px; }
    .article-cover { margin-bottom: 28px; }
    .standard-page .entry-content { font-size: 17px; line-height: 1.8; }
    .builder-page .nb-grid { grid-template-columns: 1fr; }
    .nm-back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
@media print {
    body { background: #fff; color: #000; }
    .site-header, .site-footer, .nm-back-to-top, .back-link { display: none !important; }
    .article-shell { padding: 0; }
    .standard-page .entry-content { font-size: 12pt; }
}
