:root {
  --bg: #ffffff;
  --soft: #f4f6fb;
  --ink: #0b1220;
  --ink-2: #333c4e;
  --muted: #6a7385;
  --line: #e4e8f0;
  --blue: #3355ff;
  --blue-dark: #2340d9;
  --blue-soft: #eef1ff;
  --lime: #d4ff4f;
  --lime-soft: #f6ffd9;
  --amber-soft: #fff4e0;
  --amber: #b26a00;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(11, 18, 32, .08);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.container { width: min(1180px, 92%); margin-inline: auto; }
section { padding: 72px 0; }
.soft { background: var(--soft); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 10px; transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn::after { content: "\2192"; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--ink); border-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* home */
.home-intro { padding: 56px 0 24px; }
.home-intro .eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.home-intro h1 { max-width: 820px; margin-top: 10px; }
.home-intro h1 mark { background: linear-gradient(transparent 58%, var(--lime) 58%); color: inherit; padding: 0 .1em; }
.home-intro .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-chips a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; background: #fff; transition: all .2s; }
.cat-chips a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; text-decoration: none; color: inherit; background: var(--soft); border-radius: 22px; padding: 22px; transition: box-shadow .25s; }
.featured:hover { box-shadow: var(--shadow); color: inherit; }
.featured img { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 12px; }
.featured p { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--mono); font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; scroll-margin-top: 90px; }
.section-title h2 { margin: 0; font-size: 1.6rem; }
.section-title span { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.post { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 14px; transition: transform .3s; }
.post:hover img { transform: translateY(-3px); }
.post h3 { font-size: 1.22rem; margin: 10px 0 6px; transition: color .2s; }
.post:hover h3 { color: var(--blue); }
.post p { color: var(--muted); font-size: .96rem; margin: 0 0 10px; }
.newsletter { background: var(--ink); color: #c9d1e0; border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter h2 mark { background: none; color: var(--lime); }
.newsletter p { margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span { font-family: var(--mono); font-size: .78rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 8px 12px; color: #fff; }

/* article */
.article-head { padding: 54px 0 30px; }
.article-head .wrap { max-width: 820px; margin-inline: auto; }
.crumbs { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.article-head .lead { font-size: 1.2rem; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.avatar svg { width: 22px; height: 22px; }
.byline strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.article-hero { max-width: 1100px; margin-inline: auto; }
.article-hero img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 20px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 60px; justify-content: center; padding: 50px 0 20px; }
.article-layout > * { min-width: 0; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .92rem; }
.toc .mono { color: var(--muted); display: block; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--blue); border-color: var(--blue); }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 92px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.takeaways { background: var(--lime-soft); border: 1px solid #e3f5a6; border-left: 5px solid #a8d600; border-radius: 12px; padding: 22px 26px; margin-bottom: 10px; }
.takeaways .mono { color: #5b7300; font-weight: 600; display: block; margin-bottom: 8px; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin-bottom: .35em; }
.callout { border-radius: 12px; padding: 18px 22px; margin: 26px 0; border: 1px solid; }
.callout .mono { display: block; font-weight: 600; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout.tip { background: var(--blue-soft); border-color: #d6ddff; }
.callout.tip .mono { color: var(--blue); }
.callout.warn { background: var(--amber-soft); border-color: #f6dcac; }
.callout.warn .mono { color: var(--amber); }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }
.faq { margin-top: 2em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.2rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; margin: 0; }
.author-box { display: flex; gap: 16px; background: var(--soft); border-radius: 14px; padding: 22px; margin-top: 40px; }
.author-box p { margin: 0; font-size: .95rem; }
.sources { font-size: .9rem; color: var(--muted); margin-top: 26px; }
.sources a { word-break: break-word; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value .num { font-family: var(--mono); color: var(--blue); font-size: .85rem; }
.value p { margin: 0; color: var(--muted); }

/* legal */
.legal { padding: 60px 0 96px; }
.legal .narrow { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal li { margin-bottom: .5em; }
.updated { color: var(--muted); }
.legal .toc { position: static; background: var(--soft); border-radius: var(--radius); padding: 22px 28px; margin: 26px 0; font-size: 1rem; }
.legal .toc ol { list-style: decimal; border: 0; padding-left: 1.2em; columns: 2; }
.legal .eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--blue); text-transform: uppercase; }

/* footer */
.site-footer { background: var(--ink); color: #a9b2c4; padding: 60px 0 26px; font-size: .94rem; }
.site-footer a { color: #e5e9f2; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-about { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .86rem; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav a { padding: 14px 4%; border-bottom: 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--blue); }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { position: static; background: var(--soft); border-radius: 12px; padding: 18px 22px; }
}
@media (max-width: 900px) {
  .featured, .newsletter, .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  section { padding: 52px 0; }
  .posts { grid-template-columns: 1fr; }
  .featured { padding: 14px; }
  .newsletter { padding: 34px 24px; }
  .article-hero img { aspect-ratio: 16 / 10; border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal .toc ol { columns: 1; }
  .section-title { flex-direction: column; gap: 4px; }
}
img[src*="windows10.jpg"] { object-position: center top; }
