/* Dotorbyte blog: same tokens and look as the homepage */
:root {
  --ink: #0E1116; --ink-2: #3A3F47; --muted: #6B7079; --faint: #9AA0A8; --line: #E4E6EA;
  --bg: #FFFFFF; --tint: #F5F6F8; --dark: #0B0D11; --on-dark-muted: #A4A9B2; --on-dark-line: rgba(255,255,255,.14);
  --accent: #E0301E; --accent-ink: #C42414;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; --wrap: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 1120px; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
.soft { color: var(--faint); }
.lede { font-size: 18px; color: var(--muted); font-weight: 300; max-width: 52ch; margin: 18px 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; font: 500 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn svg { width: 12px; height: 12px; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #262A31; }
.btn-red { background: var(--accent-ink); color: #fff; } .btn-red:hover { background: var(--accent); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 30px; width: auto; } .brand .word { height: 13px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); } .nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 12px 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 900px) { .nav .hide-sm { display: none; } }
@media (max-width: 420px) { .nav .btn { padding: 11px 12px; font-size: 13px; } .brand .word { height: 11px; } .brand .mark { height: 26px; } }

/* blog home */
.blog-hero { background: radial-gradient(90% 140% at 100% 100%, #3A1410 0%, rgba(58,20,16,0) 60%), linear-gradient(160deg, #0B0D11, #14171D 55%, #1E1416); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); }
.blog-hero .eyebrow { color: var(--on-dark-muted); }
.blog-hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -0.035em; }
.blog-hero .soft { color: #7D838D; }
.blog-hero .lede { color: var(--on-dark-muted); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cats span { font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--on-dark-line); color: #D7DAE0; }
.blog-list { padding: clamp(48px, 7vw, 88px) 0; background: var(--tint); }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); transition: border-color .2s; min-width: 0; }
.post-card:hover { border-color: var(--ink); }
.pc-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--dark); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .pc-img img { transform: scale(1.03); }
.pc-meta { padding: 18px 20px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-title { padding: 8px 20px 0; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.pc-desc { padding: 8px 20px 22px; font-size: 15px; color: var(--muted); font-weight: 300; }
.post-card.big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 28px; }
.post-card.big .pc-img { grid-row: span 3; aspect-ratio: auto; min-height: 100%; }
.post-card.big .pc-meta { padding: 32px 32px 0; }
.post-card.big .pc-title { padding: 10px 32px 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; }
.post-card.big .pc-desc { padding: 12px 32px 32px; font-size: 16px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card.big { grid-template-columns: 1fr; } .post-card.big .pc-img { aspect-ratio: 1200 / 630; } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }

/* article */
.post-head { background: radial-gradient(90% 140% at 100% 100%, #3A1410 0%, rgba(58,20,16,0) 60%), linear-gradient(160deg, #0B0D11, #14171D 55%, #1E1416); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(120px, 14vw, 180px); }
.post-head .eyebrow { color: var(--accent); }
.post-head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; font-weight: 300; max-width: 22ch; }
.crumbs { font-size: 13px; color: var(--on-dark-muted); margin-bottom: 28px; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; } .crumbs a:hover { color: #fff; }
.byline { margin: 22px 0 0; font-size: 14px; color: var(--on-dark-muted); }
.byline a { color: #fff; }
.hero-img { margin: calc(-1 * clamp(96px, 12vw, 150px)) 0 0; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.18); background: var(--dark); }
.post-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 0 72px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.toc ol { margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); list-style: none; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; } .toc a:hover { color: var(--accent-ink); }
.post-body { max-width: 72ch; }
.post-body .intro p { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 300; }
.post-body h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; font-weight: 400; margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-body h3 { font-size: 21px; line-height: 1.3; font-weight: 500; margin: 32px 0 8px; }
.post-body p, .post-body li { color: #2A2E35; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 6px 0; }
.post-body li::marker { color: var(--accent); }
.post-body a { color: var(--accent-ink); }
.post-body strong { font-weight: 600; color: var(--ink); }
.callout { margin: 24px 0; padding: 18px 22px; background: var(--tint); border-left: 3px solid var(--accent); font-size: 16px; }
.tbl { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--ink); color: #fff; font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.cta-box { margin: 48px 0; padding: 32px; background: var(--dark); color: #fff; }
.cta-box .eyebrow { color: var(--accent); margin-bottom: 8px; }
.cta-box h3 { margin: 0 0 8px; font-size: 26px; font-weight: 300; }
.cta-box p { color: var(--on-dark-muted) !important; margin: 0 0 20px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.author { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 20px; border: 1px solid var(--line); }
.author img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 25%; flex: none; }
.author b { display: block; font-weight: 600; }
.author span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.related { background: var(--tint); padding: 56px 0 72px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; } .toc { position: static; } }

/* footer */
.foot { background: var(--dark); color: var(--on-dark-muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 0 20px; border-bottom: 1px solid var(--on-dark-line); }
.foot a { text-decoration: none; } .foot a:hover { color: #fff; }
.foot-giant { color: #30333A; line-height: 0; padding-top: 12px; }
.foot-giant svg { display: block; width: 100%; height: auto; }
.foot-giant text { font-family: "Anton", "Impact", sans-serif; transition: fill .4s; }
.foot-giant:hover text { fill: #3A1A16; }

/* share bar */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; }
.share span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-right: 6px; }
.share a, .share button { font: 500 13.5px/1 var(--font); padding: 10px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.post-body .share a { color: var(--ink); }
