/* qurashi.net — "paper & ink"
   Warm paper, dark green ink, a touch of gold. A hairline "ruler" under the masthead is the signature:
   a writer's rule and a chart axis in one. No inline styles anywhere (strict CSP). */

/* ---------- fonts (self-hosted, OFL): Zain for everything ---------- */
@font-face { font-family: 'Zain'; src: url(fonts/zain-ar-400.woff2) format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Zain'; src: url(fonts/zain-la-400.woff2) format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: 'Zain'; src: url(fonts/zain-ar-700.woff2) format('woff2'); font-weight: 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Zain'; src: url(fonts/zain-la-700.woff2) format('woff2'); font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }

/* ---------- tokens ---------- */
:root {
  --bg: #F6F1E7;
  --surface: #FBF8F1;
  --ink: #1F1A14;
  --muted: #6B6152;
  --line: #E3DACB;
  --rule: #CFC3AE;
  --field: #B9AC95;          /* form borders: >= 3:1 on the paper */
  --accent: #0E5A45;
  --accent-ink: #FBF8F1;
  --gold: #8A5E17;
  --tick: #B8862F;
  --tint: rgba(14, 90, 69, 0.07);
  --danger: #A23A2A;

  --f-body: 'Zain', Tahoma, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ui: 'Zain', Tahoma, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;   /* code blocks only; no download */

  --wrap: 44rem;
  --measure: 38rem;
  --gutter: 1rem;
  --r-sm: 4px;
  --r: 6px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15130F; --surface: #1D1A15; --ink: #ECE5D6; --muted: #A39886; --line: #2E2A22; --rule: #3D372C;
  --field: #5A5244; --accent: #5FC4A0; --accent-ink: #15130F; --gold: #D4A94F; --tick: #D4A94F;
  --tint: rgba(95, 196, 160, 0.09); --danger: #E2836F; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15130F; --surface: #1D1A15; --ink: #ECE5D6; --muted: #A39886; --line: #2E2A22; --rule: #3D372C;
    --field: #5A5244; --accent: #5FC4A0; --accent-ink: #15130F; --gold: #D4A94F; --tick: #D4A94F;
    --tint: rgba(95, 196, 160, 0.09); --danger: #E2836F; color-scheme: dark;
  }
}
@media (min-width: 720px) { :root { --gutter: 1.5rem; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.125rem; line-height: 2;
  min-height: 100vh; display: flex; flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main.wrap { flex: 1; padding-block: var(--s7) var(--s8); outline: none; }
a { color: var(--accent); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
img, video { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

.skip-link {
  position: absolute; inset-inline-start: var(--s3); top: -4rem; z-index: 50;
  background: var(--accent); color: var(--accent-ink); font-family: var(--f-ui);
  padding: var(--s2) var(--s4); border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: var(--s3); }

/* ---------- masthead + the ruler ---------- */
.site-header { position: relative; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s5) var(--s3); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; font-family: var(--f-ui); font-size: 1.0625rem; line-height: 1.3; }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm);
  font-family: var(--f-ui); font-size: 1.15rem; line-height: 1; padding-bottom: 2px;
}
.mark.small { width: 22px; height: 22px; font-size: 0.85rem; }
.nav { display: flex; gap: var(--s5); font-family: var(--f-ui); font-size: 1rem; line-height: 1.4; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; color: var(--muted); text-decoration: none; padding-block: var(--s2) var(--s3); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); }
/* the ruler: hairline + small ticks every 8px + taller ticks every 40px */
.site-header::after {
  content: ""; display: block; height: 9px;
  background:
    linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(to left, var(--rule) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat,
    repeating-linear-gradient(to left, var(--rule) 0 1px, transparent 1px 40px) left bottom / 100% 9px no-repeat;
}
/* the gold tick marks where you are */
.nav a[aria-current]::after {
  content: ""; position: absolute; inset-inline-start: 50%; bottom: -9px; width: 2px; height: 11px;
  background: var(--tick); border-radius: 1px; transform: translateX(50%);
}

.theme-toggle {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; padding: 0;
}
.theme-toggle:hover { border-color: var(--rule); background: var(--tint); }
.theme-toggle span {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor;
  background: linear-gradient(to right, currentColor 50%, transparent 50%);
}

/* ---------- section labels ---------- */
section { margin-top: var(--s8); }
section.first { margin-top: 0; }
.eyebrow, h2.section-title {
  font-family: var(--f-ui); font-size: 0.875rem; font-weight: 500; color: var(--muted);
  line-height: 1.4; margin-bottom: var(--s5); display: flex; align-items: center; gap: var(--s3);
}
.eyebrow { margin-bottom: var(--s2); }
.eyebrow::before, h2.section-title::before { content: ""; width: 14px; height: 2px; background: var(--tick); border-radius: 1px; flex: none; }
h2.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

h1, h2, h3, .page-title { font-family: var(--f-ui); font-weight: 700; }
h1.page-title { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.4; margin-bottom: var(--s5); }
.back { margin-bottom: var(--s5); font-family: var(--f-ui); font-size: 0.9375rem; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent); }
.empty { color: var(--muted); }

/* ---------- buttons ---------- */
button, .btn {
  font-family: var(--f-ui); font-size: 1rem; line-height: 1.4; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: var(--r-sm); padding: 0.7rem 1.35rem; text-decoration: none; display: inline-block;
  min-height: 44px;
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.more { font-family: var(--f-ui); font-size: 0.9375rem; text-decoration: none; display: inline-block; margin-top: var(--s4); }
.more:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero h1 { font-size: clamp(2.25rem, 8vw, 3.25rem); line-height: 1.25; margin-top: var(--s5); }
.avatar { width: 88px; height: 88px; object-fit: cover; display: block; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.role { font-family: var(--f-ui); font-size: 1.125rem; color: var(--accent); margin-top: var(--s3); line-height: 1.6; }
.tagline { color: var(--muted); font-size: 1.125rem; margin-top: var(--s2); line-height: 1.9; }
.about-head { display: flex; gap: var(--s5); align-items: center; margin-bottom: var(--s6); }
.about-head .page-title { margin-bottom: 0; }

/* ---------- reading ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; line-height: 1.5; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; line-height: 1.55; margin-top: 1.7em; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li + li { margin-top: 0.3em; }
.prose strong { font-weight: 600; }
.prose blockquote { border-inline-start: 2px solid var(--tick); padding-inline-start: var(--s4); color: var(--muted); }
.prose img, .prose video { border-radius: var(--r); display: block; margin-inline: auto; }
.prose hr { border: 0; height: 9px; margin-block: var(--s6);
  background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat,
              repeating-linear-gradient(to left, var(--rule) 0 1px, transparent 1px 8px) center / 100% 5px no-repeat; }
.prose code { font-family: var(--f-mono); font-size: 0.85em; background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: var(--r-sm); direction: ltr; unicode-bidi: embed; }
.prose pre { font-family: var(--f-mono); font-size: 0.9rem; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); padding: var(--s4); border-radius: var(--r); overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: start; }
.prose th { font-family: var(--f-ui); font-weight: 500; color: var(--muted); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose > .embed, .prose video { margin-block: var(--s5); }

/* ---------- post list: a quiet data table ---------- */
.post-list { list-style: none; padding: 0; }
.post-item { display: grid; grid-template-columns: 4.25rem 1fr; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line); }
.post-item:first-child { border-top: 0; padding-top: 0; }
.stamp { font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--muted); line-height: 2.2; direction: ltr; text-align: end; white-space: nowrap; }
.stamp span { color: var(--tick); padding-inline: 2px; }
.post-item h3 { font-size: 1.25rem; line-height: 1.6; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h3 a:hover { color: var(--accent); }
.post-item p { color: var(--muted); margin-top: var(--s1); font-size: 1.0625rem; line-height: 1.9; }
.post-item .meta-line { font-family: var(--f-ui); font-size: 0.8125rem; margin-top: var(--s2); }

/* ---------- single post ---------- */
.post-head { margin-bottom: var(--s6); }
.post-head h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.45; }
.meta { font-family: var(--f-ui); color: var(--muted); font-size: 0.9375rem; margin-top: var(--s3); display: flex; gap: var(--s2); flex-wrap: wrap; }
.cover { margin-block: var(--s5); border-radius: var(--r); width: 100%; height: auto; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); list-style: none; padding: 0; font-family: var(--f-ui); }
.tags a { font-size: 0.875rem; padding: 0.1rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.lead { color: var(--muted); font-size: 1.125rem; margin-top: var(--s3); }

/* ---------- comments / notes ---------- */
.comments { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); max-width: var(--measure); }
.comments h2 { font-size: 1.25rem; }
.comment { padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.comment > div { font-family: var(--f-ui); font-size: 0.9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.comment .who { font-weight: 600; }
.comment .when { color: var(--muted); font-size: 0.8125rem; }
.comment .badge { font-size: 0.75rem; background: var(--accent); color: var(--accent-ink); padding: 0 0.55rem; border-radius: 999px; }
.comment p { margin-top: var(--s1); overflow-wrap: anywhere; }
.comment.reply { margin-inline-start: var(--s5); padding-inline-start: var(--s4); border-inline-start: 2px solid var(--tick); border-bottom: 0; }

/* ---------- forms ---------- */
form.stack > * + * { margin-top: var(--s4); }
label { display: block; font-family: var(--f-ui); font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--s1); line-height: 1.6; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; line-height: 1.8; color: inherit; background: var(--surface);
  border: 1px solid var(--field); border-radius: var(--r-sm); padding: 0.6rem 0.85rem;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--tint); }
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: var(--r-sm); padding: var(--s3) var(--s4); font-size: 1rem; }
.notice.err { border-inline-start-color: var(--danger); }
.form-title { margin-top: var(--s6); font-size: 1.125rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s6); font-family: var(--f-ui); font-size: 0.9375rem; }
.pager a { text-decoration: none; }

/* ---------- home blocks ---------- */
.feature {
  display: block; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.feature:hover { border-color: var(--rule); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.feature-body { display: block; padding: var(--s5); }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-family: var(--f-ui); font-size: 0.8125rem; line-height: 1.6; }
.feature-meta .kind { color: var(--muted); }
.feature-title { display: block; font-family: var(--f-ui); font-size: 1.375rem; line-height: 1.5; margin-top: var(--s2); }
.feature-desc { display: block; color: var(--muted); margin-top: var(--s2); font-size: 1.0625rem; line-height: 1.9; }
.feature .more { margin-top: var(--s3); color: var(--accent); }
.feature:hover .more { text-decoration: underline; }
.now { list-style: none; padding: 0; }
.now li { position: relative; padding-inline-start: var(--s5); }
.now li + li { margin-top: var(--s2); }
.now li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.95em; width: 10px; height: 2px; background: var(--tick); }

/* status badges */
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: 0.8125rem; line-height: 1.6; padding: 0 0.6rem; border-radius: 999px; border: 1px solid currentColor; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-dev { color: var(--gold); }
.s-beta { color: var(--gold); }
.s-live { color: var(--accent); }
.s-paused { color: var(--muted); }

/* ---------- profile links ---------- */
.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); font-family: var(--f-ui); font-size: 1rem; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s4); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.link-list { list-style: none; padding: 0; font-family: var(--f-ui); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding-block: var(--s4); text-decoration: none; color: var(--ink); }
.link-list a::after { content: "←"; color: var(--muted); }
.link-list a:hover { color: var(--accent); }

/* ---------- projects ---------- */
.projects { display: grid; gap: var(--s5); }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.project > a, .project > img { display: block; }
.project img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.project-body { padding: var(--s5); }
.project-body h2 { font-size: 1.3125rem; line-height: 1.5; margin: var(--s2) 0 var(--s2); }
.project-body h2 a { color: inherit; text-decoration: none; }
.project-body h2 a:hover { color: var(--accent); }
.project-body p { color: var(--muted); font-size: 1.0625rem; line-height: 1.9; }
.project-body .more { margin-top: var(--s2); }
.project-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); font-family: var(--f-ui); font-size: 0.9375rem; }
.project-kind { font-family: var(--f-ui); font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 720px) { .projects { grid-template-columns: 1fr 1fr; } }

.facts { display: grid; gap: 0; margin-block: var(--s5); border-block: 1px solid var(--line); font-family: var(--f-ui); }
.facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s3); padding-block: var(--s3); align-items: baseline; }
.facts > div + div { border-top: 1px dashed var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { font-family: var(--f-ui); font-size: 0.8125rem; padding: 0 0.5rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.project-video { margin-top: var(--s5); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.gallery a { display: block; border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line); border-radius: var(--r); transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.02); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- empty / error ---------- */
.empty-state { padding-block: var(--s7); }
.empty-state .eyebrow { font-family: var(--f-ui); }
body.bare main { padding-block: var(--s8); }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; font-family: var(--f-ui); color: var(--muted); font-size: 0.9375rem; }
.site-footer::before {
  content: ""; display: block; height: 5px;
  background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat,
              repeating-linear-gradient(to left, var(--rule) 0 1px, transparent 1px 8px) left top / 100% 5px no-repeat;
}
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding-block: var(--s5) var(--s6); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s4); margin-inline-start: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  a, button, .btn, .feature, .socials a, .theme-toggle { transition: color .12s ease-out, background-color .12s ease-out, border-color .12s ease-out, filter .12s ease-out; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- dark-mode image comfort ---------- */
:root[data-theme="dark"] .prose img, :root[data-theme="dark"] .cover, :root[data-theme="dark"] .gallery img { filter: brightness(.92); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prose img, :root:not([data-theme="light"]) .cover, :root:not([data-theme="light"]) .gallery img { filter: brightness(.92); }
}

/* image viewer */
img.zoomable { cursor: zoom-in; }
html.lb-lock { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 12, 11, 0.96); display: flex; flex-direction: column;
      opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; touch-action: pan-y pinch-zoom; }
.lb.open { opacity: 1; visibility: visible; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; color: #eee; position: relative; z-index: 2; }
.lb-count { font-size: .9rem; opacity: .85; letter-spacing: .05em; }
.lb-close { background: rgba(255,255,255,.14); color: #fff; border: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.15rem; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 .5rem 1rem; position: relative; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; opacity: 0; transform: scale(.985); transition: opacity .22s ease, transform .22s ease; user-select: none; -webkit-user-drag: none; }
.lb-img.in { opacity: 1; transform: none; }
.lb-spin { position: absolute; width: 2rem; height: 2rem; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: lbspin .8s linear infinite; opacity: 0; }
.lb-loading .lb-spin { opacity: 1; }
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 2; padding-bottom: .2rem; }
.lb-prev { right: .6rem; } .lb-next { left: .6rem; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-img { transition: none; } .lb-spin { animation: none; } }

/* refinements */
article > h2.section-title, .prose + h2.section-title { margin-top: var(--s7); }
.prose table { font-family: var(--f-ui); }
