/* sections.mfahadiqbal.com: one stylesheet, system fonts, no JS. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #5d5a53;
  --line: #e4e0d8;
  --accent: #0b6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e5f2ec;
  --code-bg: #f1eee8;
  --warn-soft: #fbf1dc;
  --focus: #1a57d6;
  --radius: 6px;
  --measure: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151513;
    --surface: #1d1d1a;
    --ink: #ecebe6;
    --muted: #a9a69d;
    --line: #34332e;
    --accent: #5cc79f;
    --accent-ink: #0d1f18;
    --accent-soft: #1b2e26;
    --code-bg: #26251f;
    --warn-soft: #2e2818;
    --focus: #8fb3ff;
  }
}

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

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--surface); color: var(--ink); padding: .5rem .75rem; border-radius: 4px;
}
.skip:focus { top: .75rem; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: 1rem; }

.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 3.5rem; padding-block: .5rem; }
.brand { white-space: nowrap; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.site-nav { display: flex; gap: 1rem; font-size: .9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; display: inline-block; padding-block: .5rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding-block: 1.5rem 3rem; }

.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 .75rem; padding-top: .5rem; }
h3 { font-size: 1.125rem; margin: 1.75rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
.lede { font-size: 1.1875rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

code {
  font-family: var(--mono); font-size: .875em;
  background: var(--code-bg); padding: .1em .35em; border-radius: 4px;
  overflow-wrap: break-word;
}
pre {
  font-family: var(--mono); font-size: .875rem; line-height: 1.5;
  background: var(--code-bg); padding: .875rem 1rem; border-radius: var(--radius);
  overflow-x: auto; margin: 0 0 1rem;
}
pre code { background: none; padding: 0; font-size: inherit; }

.facts {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.125rem; margin: 1.5rem 0;
}
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }

.note { background: var(--warn-soft); border-radius: var(--radius); padding: .875rem 1rem; margin: 1rem 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
caption { text-align: left; padding: .75rem .875rem 0; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: .6rem .875rem; border-bottom: 1px solid var(--line); }
thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.ours th, tr.ours td { background: var(--accent-soft); font-weight: 600; }
td code { white-space: nowrap; }
@media (max-width: 47.99rem) {
  .stack table, .stack tbody, .stack tr, .stack th, .stack td { display: block; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stack tr { padding: .75rem .875rem; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack th, .stack td { padding: 0; border: 0; }
  .stack th { margin-bottom: .2rem; }
  .stack td.num { text-align: left; }
  .stack caption { display: block; padding: .75rem .875rem .25rem; }
  .stack tr.ours { background: var(--accent-soft); }
  .stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

ol.steps { padding-left: 1.4rem; }
ol.steps > li { margin-bottom: 1rem; padding-left: .25rem; }
ol.steps > li::marker { font-weight: 700; color: var(--accent); }

/* Screenshot slot. Keeps its space before the image exists, so nothing moves. */
figure { margin: 1.5rem 0; }
.shot {
  aspect-ratio: 16 / 10; width: 100%;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(45deg, var(--code-bg), var(--code-bg) 12px, var(--surface) 12px, var(--surface) 24px);
  border: 1px dashed var(--muted); border-radius: var(--radius);
  color: var(--muted); font: .875rem/1.4 var(--mono);
}
.shot.tall { aspect-ratio: 9 / 16; max-width: 20rem; margin-inline: auto; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }

.buy {
  background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius);
  padding: 1.25rem; margin: 2rem 0;
}
.buy h2 { margin-top: 0; padding-top: 0; font-size: 1.25rem; }
.buy p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; padding: .75rem 1.25rem; border-radius: 4px;
  min-height: 44px;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.price { font-size: 1.5rem; font-weight: 800; margin-right: .5rem; }

details { border-bottom: 1px solid var(--line); padding: .25rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: .6rem 0; min-height: 44px; display: flex; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; width: 1.25rem; flex: none; color: var(--accent); font-weight: 800; }
details[open] > summary::before { content: "\2212"; }
details > div { padding: 0 0 .75rem 1.25rem; }

.cards { display: grid; gap: 1rem; padding: 0; list-style: none; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.125rem; }
.card h2, .card h3 { margin: 0 0 .5rem; padding: 0; font-size: 1.1875rem; }
.card p:last-child { margin-bottom: 0; }

.toc { font-size: .9375rem; border-left: 3px solid var(--line); padding-left: 1rem; margin: 1.5rem 0; }
.toc ol { margin: 0; padding-left: 1.1rem; }

.site-foot { border-top: 1px solid var(--line); padding-block: 1.5rem 2.5rem; font-size: .875rem; color: var(--muted); }
.site-foot a { color: var(--muted); }

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  main { padding-block: 2.5rem 4rem; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 47.99rem) { .btn { display: block; text-align: center; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .buy .btn { display: none; } }

img.shot-img { display: block; height: auto; aspect-ratio: auto; padding: 0; background: none; border: 1px solid var(--code-bg); }
img.shot-img.tall { max-width: 20rem; margin-inline: auto; }
