:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #1f2126;
  --muted: #5f636b;
  --rule: #ddd6ca;
  --accent: #9f1f24;
  --accent-ink: #ffffff;
  --mast: #16181d;
  --mast-ink: #f3efe7;
  --them: #eef1f5;
  --us: #fbf3ea;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171b;
    --surface: #1d2025;
    --ink: #e7e3dc;
    --muted: #a3a7ae;
    --rule: #33373e;
    --accent: #ef6b6f;
    --accent-ink: #15171b;
    --mast: #0d0e11;
    --mast-ink: #f3efe7;
    --them: #20252d;
    --us: #2a241e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.7 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; font-family: var(--sans);
}
.skip:focus { left: 1rem; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Masthead */
.masthead { background: var(--mast); color: var(--mast-ink); border-bottom: 4px solid var(--accent); }
.masthead .wrap { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { color: inherit; text-decoration: none; display: inline-flex; flex-direction: column; gap: .15rem; }
.brand-title { font: 700 clamp(1.25rem, 3.2vw, 1.7rem)/1.2 var(--sans); letter-spacing: -0.01em; }
.brand-tag { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #ef8a8d; }

/* Layout */
.layout { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; }
  .sidebar { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
}

/* Sidebar nav */
.menu { font-family: var(--sans); font-size: .95rem; }
.nav-title { font: 800 1.2rem/1.2 var(--sans); margin: 0 0 .25rem; }
.masthead .wrap { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.jump {
  flex: none; font: 600 .85rem/1 var(--sans); color: var(--mast-ink); text-decoration: none;
  border: 1px solid rgba(243,239,231,.35); border-radius: 999px; padding: .5rem .85rem;
}
@media (max-width: 959px) {
  .sidebar { order: 2; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
}
@media (min-width: 960px) {
  .jump, .nav-title { display: none; }
}
.nav-h {
  font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 1.25rem 0 .4rem;
}
.menu ul, .menu ol { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: block; padding: .32rem .6rem; margin-left: -.6rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; line-height: 1.35;
}
.menu li a:hover { background: var(--surface); color: var(--accent); }
.menu li a[aria-current="page"] {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}

/* Article */
main { min-width: 0; }
.article-head { margin-bottom: 1.5rem; }
.kicker { font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
h1 { font: 800 clamp(1.8rem, 4.5vw, 2.6rem)/1.15 var(--sans); letter-spacing: -0.02em; margin: 0 0 .5rem; text-wrap: balance; }
.meta { font: .9rem/1.4 var(--sans); color: var(--muted); margin: 0; }

.prose { max-width: 70ch; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose h2 {
  font: 750 1.35rem/1.3 var(--sans); letter-spacing: -0.01em;
  margin: 2.4rem 0 .6rem; padding-top: .8rem; border-top: 1px solid var(--rule);
}
.prose > h2:first-child, .prose figure + h2 { border-top: 0; padding-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li ul { margin-top: .5em; }
.prose strong em, .prose em strong { color: var(--accent); }

figure { margin: 0 0 1.8rem; }
.banner img { width: 100%; border-radius: 8px; aspect-ratio: 800 / 190; object-fit: cover; }
.portrait img { max-width: 420px; width: 100%; border-radius: 8px; margin: .5rem auto; }
.screenshot img { border: 1px solid var(--rule); border-radius: 8px; background: #fff; width: 100%; max-width: 560px; }

blockquote {
  margin: 0 0 1.4rem; padding: 1rem 1.25rem; background: var(--surface);
  border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0;
}
blockquote p:last-child { margin-bottom: 0; }
.review-quote { margin-bottom: 1rem; }
.review-quote figcaption { font: 600 .85rem/1.3 var(--sans); color: var(--muted); margin-bottom: .35rem; }
.review-quote blockquote { margin: 0; font-style: italic; }

/* Email thread */
.lede { font: 1rem/1.5 var(--sans); color: var(--muted); border-left: 3px solid var(--rule); padding-left: .9rem; }
.email {
  border: 1px solid var(--rule); border-radius: 10px; padding: 1.4rem 1.5rem .4rem; margin-bottom: 1.6rem;
}
.email.from-them { background: var(--them); }
.email.from-us { background: var(--us); }
.email::before {
  display: block; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.email.from-them::before { content: "From Vidanta"; }
.email.from-us::before { content: "From us"; }
.editor { font-family: var(--sans); font-size: .92em; color: var(--accent); }
.editor-note { font-family: var(--sans); font-size: 1rem; border-left: 4px solid var(--accent); padding: .6rem 1rem; background: var(--surface); border-radius: 0 8px 8px 0; }

.pager {
  max-width: 70ch; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans);
}
.pager a {
  display: block; padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface); text-decoration: none; color: var(--ink); line-height: 1.35; font-weight: 600;
}
.pager a:hover { border-color: var(--accent); }
.pager a[rel="next"], .pager a:last-child { text-align: right; }
.pager span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } .pager a { text-align: left !important; } }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); color: var(--muted); font: .85rem/1.6 var(--sans); }
.site-foot .wrap { padding-top: 1.8rem; padding-bottom: 2.2rem; max-width: 1120px; }
.site-foot p { max-width: 90ch; }

@media print {
  .sidebar, .masthead, .pager, .skip { display: none; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
}

