/*
Theme Name: MarketInspection
Theme URI: https://marketinspection.com/
Author: MarketInspection
Description: The presentation site for the MarketInspection Chrome extension. A classic theme carrying the extension's own dark palette, with a blog and the legal pages a Web Store listing has to link to.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketinspection
*/

/*
 * Dark only, and standalone.
 *
 * The tokens, the header, the hero, the halo, the buttons and the pricing
 * cards are lifted from the extension's welcome page (client-side/src/ui/
 * welcome.css) so that the page someone installs from and the page they land
 * on afterwards are recognisably the same product. Everything below the hero
 * is new: a sliding capability strip and alternating feature rows, which is
 * the right density for a stranger. Six equal cards is the right density for
 * someone who already has the thing installed.
 *
 * The restraint is inherited too. Hairline borders rather than heavy ones,
 * one accent used sparingly, two surface levels, no drop shadows except
 * under what is genuinely raised, and no emoji anywhere — every icon is an
 * inline stroke SVG at the weight of the text beside it.
 */

:root {
  /* Ink */
  --ink:       #f2f4f7;
  --ink-soft:  #9aa3af;
  --ink-dim:   #697080;
  --ink-faint: #4b515d;

  /* Ground */
  --bg:        #08090c;
  --bg-raise:  #0d0f14;
  --bg-high:   #12151b;

  /* Lines: hairlines over the ground, never a solid grey */
  --line:      rgba(255, 255, 255, .07);
  --line-mid:  rgba(255, 255, 255, .11);
  --line-hi:   rgba(255, 255, 255, .18);

  /* Accent */
  --accent:    #4f7dff;
  --accent-lo: #2f5de0;
  --accent-ink:#9db6ff;
  --accent-wash: rgba(79, 125, 255, .10);

  --good:      #34c08a;
  --good-lo:   #22916a;
  --bad:       #f0695e;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--head);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/*
 * The one rule the whole layout rests on.
 *
 * body is a column flex container with align-items: center, so its children
 * are NOT stretched: each sizes to its own max-content. The sliding strip's
 * track is 3572px wide, and although the strip clips it, a clipped box still
 * contributes its content width — so <main> became 3572px wide and every
 * `width: 100%` section inside it sized against that instead of the
 * viewport. The page scrolled sideways by about 1150px.
 *
 * Pinning main and the footer to 100% is the fix. Hiding the overflow on
 * body is not: that makes body a scroll container, which breaks the sticky
 * header inside it.
 */
#main,
.site-foot { width: 100%; min-width: 0; }

::selection { background: rgba(79, 125, 255, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { display: block; flex-shrink: 0; }
img { max-width: 100%; height: auto; }

/* The browser hides [hidden] on its own, but only while nothing sets display
   on the element. Several classes here do; this keeps the attribute winning. */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1320px; padding: 0 40px; margin: 0 auto; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 16px; background: var(--bg-high); color: var(--ink);
  border: 1px solid var(--line-mid); border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Scroll progress ─────────────────────────────────────────────── */

#progress {
  position: fixed; top: 0; left: 0; z-index: 90;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent));
  transition: width .08s linear;
}

/* ── Header ──────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 80;
  width: 100%;
  display: flex; align-items: center; gap: 28px;
  padding: 0 32px;
  height: 64px;
  background: rgba(8, 9, 12, .72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: rgba(8, 9, 12, .88); }

.head-brand {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  text-decoration: none;
}
.head-logo { height: 26px; width: auto; display: block; }
.head-rule { width: 1px; height: 20px; background: var(--line-mid); }
.head-tagline { font-size: 12.5px; color: var(--ink-dim); letter-spacing: .1px; white-space: nowrap; }

.head-nav { display: flex; align-items: center; margin-left: auto; }
.head-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.head-nav-list a {
  display: block;
  font-size: 13.5px; font-weight: 550; color: var(--ink-soft);
  text-decoration: none; padding: 7px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.head-nav-list a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.head-nav-list .current-menu-item > a { color: var(--ink); }

.head-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* The narrow-screen drawer. A drawer rather than the desktop nav unfolding in
   place: that nav lives in a 64px sticky bar, and growing the bar pushes the
   whole page down behind it. */
.head-burger {
  display: none; margin-left: auto;
  width: 38px; height: 38px; padding: 0;
  background: transparent; border: 1px solid var(--line-mid); border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.head-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink-soft); transition: transform .18s, opacity .18s; }
.head-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.head-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.head-drawer {
  position: sticky; top: 64px; z-index: 79;
  width: 100%; padding: 16px 20px 22px;
  background: rgba(8, 9, 12, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.head-drawer .head-nav-list { flex-direction: column; align-items: stretch; gap: 2px; margin-bottom: 14px; }
.head-drawer .head-nav-list a { padding: 11px 12px; font-size: 15px; }
.head-drawer .btn { width: 100%; }

@media (max-width: 1040px) { .head-rule, .head-tagline { display: none; } }
@media (max-width: 900px) {
  .head-nav { display: none; }
  .head-cta { display: none; }
  .head-burger { display: flex; }
  .site-head { gap: 16px; padding: 0 20px; }
}
@media (min-width: 901px) { .head-drawer { display: none !important; } }

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .1px;
  padding: 0 16px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, .02);
  color: var(--ink-soft);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: rgba(255, 255, 255, .055); color: var(--ink); border-color: var(--line-hi); }

/* The solid button. Its three colours are variables so a variant can restate
   those alone instead of copying the gradient, the inset highlight and the
   glow — which is how the two drift apart. --btn-glow is raw channels, since
   it is used at two different opacities. */
.btn-primary {
  --btn-top: #5b86ff;
  --btn-bottom: var(--accent-lo);
  --btn-glow: 47, 93, 224;
  background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-bottom) 100%);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset,
              0 4px 14px rgba(var(--btn-glow), .32);
}
.btn-primary:hover {
  color: #fff; border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset,
              0 6px 20px rgba(var(--btn-glow), .42);
}

.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 10px; }

/* The Chrome mark keeps its own colours, so it sits on the blue in a white
   disc rather than being tinted by the button's text colour. */
.btn-install .ico-chrome {
  border-radius: 50%;
  background: #fff;
  padding: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-ink); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  transition: gap .15s, color .15s;
}
.text-link:hover { color: #c3d3ff; gap: 11px; }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  padding: 84px 0 72px;
  overflow: hidden;
}
/* One soft wash behind the headline and a faint grid, both masked out before
   they reach the first section — enough to stop the page reading as a plain
   dark document, not enough to notice. */
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto; height: 760px;
  background: radial-gradient(ellipse 52% 50% at 72% 40%, rgba(79, 125, 255, .16) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 60% 26%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 65% at 60% 26%, #000 0%, transparent 74%);
}
.hero > * { position: relative; }

/* Copy left, product shot right. The two columns are close to even, with the
   text slightly wider so the headline keeps its own line breaks. */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 64px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px; margin-bottom: 26px;
  border: 1px solid var(--line-mid); border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  font-size: 12px; font-weight: 600; letter-spacing: .2px; color: var(--ink-soft);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(52, 192, 138, .18); }

.hero h1 {
  font-size: clamp(34px, 3.9vw, 54px);
  font-weight: 760; line-height: 1.08; letter-spacing: -1.8px;
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #a9c0ff 0%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: 17.5px; line-height: 1.68; color: var(--ink-soft);
  max-width: 56ch; margin: 0 0 14px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero-actions.center-actions { justify-content: center; }
.hero-note { font-size: 13.5px; color: var(--ink-dim); }

.hero-visual { position: relative; }
.hero-shot { margin: 0; }
.hero-shot img {
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05);
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 640px; }
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .wrap { padding: 0 20px; }
}

/* ── The sliding capability strip ────────────────────────────────── */

/*
 * Two identical tracks side by side, both translated left by exactly one
 * track width over the cycle. When the first has travelled its own width the
 * second is sitting precisely where it started, so the reset is invisible —
 * this is why the markup prints the list twice rather than relying on a
 * single track and a clever easing.
 *
 * The mask fades both ends into the page instead of letting a tag be sliced
 * off at the viewport edge.
 */
.marquee-band {
  width: 100%;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee { display: flex; width: max-content; animation: mi-slide 42s linear infinite; }
.marquee-band:hover .marquee { animation-play-state: paused; }

.marquee-track { display: flex; align-items: center; gap: 14px; padding-right: 14px; list-style: none; }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(79, 125, 255, .22);
  border-radius: 999px;
  background: var(--accent-wash);
  white-space: nowrap;
}
.tag svg { color: var(--accent-ink); }
.tag span { font-size: 13.5px; font-weight: 550; color: var(--ink-soft); }

@keyframes mi-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Someone who has asked the OS to stop animations has asked for this one
   too. The strip becomes a quiet, scrollable row of tags. */
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .marquee-track:last-child { display: none; }
}

/* ── Bands ───────────────────────────────────────────────────────── */

.band { width: 100%; padding: 88px 0; }
.band.alt { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.tight { padding: 56px 0; }

.band-head { max-width: 760px; margin: 0 0 48px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block; margin-bottom: 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent-ink);
}
.band-head h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 720;
  letter-spacing: -1.1px; line-height: 1.15; margin-bottom: 12px;
}
.band-head p { font-size: 16.5px; color: var(--ink-dim); line-height: 1.65; }
.band-foot { margin-top: 36px; text-align: center; }

/* ── Alternating feature rows ────────────────────────────────────── */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 68px; align-items: center;
}
/* The flipped row swaps the painted order, not the source order: the copy
   stays first in the document, so it is also first for a screen reader and
   first when the columns stack. */
.split.is-flipped .split-copy { order: 2; }
.split.is-flipped .split-visual { order: 1; }

.split-copy h2 {
  font-size: clamp(24px, 2.9vw, 33px); font-weight: 720;
  letter-spacing: -1px; line-height: 1.18; margin-bottom: 18px;
}
.split-copy p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 16px; }
.split-copy .text-link { margin-top: 8px; }

.shot { margin: 0; }
.shot img {
  display: block; width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Stands in for a screenshot that has not been added to the theme yet, and
   says which filename it is waiting for. A broken image icon says nothing. */
.shot-ph {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line-hi); border-radius: var(--r-lg);
  background: var(--bg-raise);
}
.shot-ph span { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.is-flipped .split-copy,
  .split.is-flipped .split-visual { order: initial; }
  .band { padding: 60px 0; }
}

/* ── The numbers strip ───────────────────────────────────────────── */

.specs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-raise), rgba(13, 15, 20, .4));
  overflow: hidden;
}
.spec { padding: 24px 18px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: 0; }
.spec b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.8px; color: var(--ink); line-height: 1.2; }
.spec span { display: block; font-size: 12px; color: var(--ink-dim); margin-top: 4px; letter-spacing: .2px; }

@media (max-width: 860px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec { border-bottom: 1px solid var(--line); }
  .spec:nth-child(odd) { border-right: 1px solid var(--line); }
  .spec:nth-child(even) { border-right: 0; }
  .spec:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ── Pricing ─────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-high);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
}
.plan.featured {
  border-color: rgba(79, 125, 255, .45);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(79, 125, 255, .1) 0%, transparent 70%),
    var(--bg-high);
  box-shadow: 0 20px 50px rgba(20, 40, 110, .3);
}
.plan-badge {
  position: absolute; top: -11px; left: 26px;
  background: linear-gradient(180deg, #5b86ff, var(--accent-lo));
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(47, 93, 224, .4);
}
.plan h3 {
  font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 16px;
}
.plan-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan-price .amount { font-size: 36px; font-weight: 730; letter-spacing: -2px; color: var(--ink); line-height: 1; }
.plan-price .period { font-size: 13.5px; color: var(--ink-dim); }
.plan-sub { font-size: 13px; color: var(--ink-dim); margin-top: 9px; min-height: 19px; }
.plan-feats { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.plan-feats .yes { color: var(--good); margin-top: 2px; }
.plan-feats .no  { color: var(--ink-faint); margin-top: 2px; transform: rotate(45deg); }
.plan-feats li.off { color: var(--ink-faint); }
/* In full ink, not the muted grey a footnote usually gets: it is the one
   line on the pricing card that tells a reader where the buying actually
   happens, and a reader who misses it goes looking for a Buy button that is
   not on this page. */
.plan-foot { margin-top: 32px; text-align: center; font-size: 14px; color: var(--ink); max-width: 70ch; margin-inline: auto; }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .plans { grid-template-columns: 1fr; } }

/* ── Post cards ──────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.band.alt .card { background: var(--bg-high); }
/* The whole card is the target: a title-only link in a card this size is a
   small tap on a phone. */
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-shot { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px 22px 26px; }
.card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-dim); margin-bottom: 12px;
}
.card-meta a { color: var(--ink-dim); text-decoration: none; }
.card-meta a:hover { color: var(--ink-soft); }
.card-title { font-size: 18px; font-weight: 660; letter-spacing: -.4px; line-height: 1.3; margin-bottom: 10px; }
.card-excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ── Page and post heads ─────────────────────────────────────────── */

.page-head {
  position: relative; width: 100%;
  padding: 72px 0 36px;
  overflow: hidden;
}
/* The same halo as the hero, smaller and centred, so an article does not
   open on a flat black field. */
.page-head::before {
  content: ""; position: absolute; inset: -60% 0 auto; height: 560px;
  background: radial-gradient(ellipse 46% 50% at 50% 46%, rgba(79, 125, 255, .13) 0%, transparent 70%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head h1 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 740;
  letter-spacing: -1.4px; line-height: 1.12; margin-bottom: 14px;
}
.page-lede { font-size: 17px; color: var(--ink-soft); line-height: 1.65; max-width: 62ch; }
.page-stamp { font-size: 13px; color: var(--ink-dim); }

.post-shot { margin: 16px 0 10px; }

/* ── Prose ───────────────────────────────────────────────────────── */

.prose { padding: 20px 0 56px; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: 24px; }
.prose h2 {
  color: var(--ink); font-size: 25px; font-weight: 700; letter-spacing: -.7px;
  line-height: 1.25; margin-top: 52px;
}
.prose h3 {
  color: var(--ink); font-size: 19.5px; font-weight: 660; letter-spacing: -.3px;
  margin-top: 40px;
}
.prose h4 { color: var(--ink); font-size: 17px; font-weight: 650; margin-top: 32px; }
.prose strong { color: var(--ink); font-weight: 620; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #c3d3ff; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-faint); }
.prose img, .prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-size: 13.5px; color: var(--ink-dim); margin-top: 10px; }
.prose blockquote {
  border-left: 2px solid var(--accent); padding: 2px 0 2px 20px;
  color: var(--ink); font-size: 18px;
}
.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-high); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 5px; color: var(--ink);
}
.prose pre {
  background: var(--bg-high); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-top: 44px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 650; }

.post-tags { padding-bottom: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a {
  font-size: 12.5px; color: var(--ink-soft); text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--line-mid); border-radius: 999px;
}
.post-tags a:hover { color: var(--ink); border-color: var(--line-hi); }

.post-nav {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 0 64px; border-top: 1px solid var(--line);
}
.post-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.post-nav a:hover { color: var(--ink); }
.post-nav-next { margin-left: auto; text-align: right; }

/* ── Pagination ──────────────────────────────────────────────────── */

.pagination { margin-top: 44px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 550;
}
.nav-links .page-numbers:hover { color: var(--ink); border-color: var(--line-hi); }
.nav-links .page-numbers.current { color: #fff; background: var(--accent-lo); border-color: transparent; }

.empty-note { color: var(--ink-dim); text-align: center; padding: 40px 0; }

/* ── The closing ask ─────────────────────────────────────────────── */

.cta-band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
}
.cta-band::before {
  content: ""; position: absolute; inset: auto 0 -70% ; height: 620px;
  background: radial-gradient(ellipse 44% 54% at 50% 50%, rgba(79, 125, 255, .17) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 730;
  letter-spacing: -1.2px; line-height: 1.15; margin-bottom: 14px;
}
.cta-band p { font-size: 17px; color: var(--ink-soft); margin-bottom: 30px; }
.cta-band .btn { margin-inline: auto; }

/* ── Footer ──────────────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); padding: 64px 0 0; background: var(--bg); }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 48px; padding-bottom: 48px;
}
.foot-blurb { margin-top: 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.65; max-width: 44ch; }
.foot-col h2 {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14.5px; color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
/* Only an editor ever sees this: a legal page that has not been written yet. */
.foot-col a.is-missing { color: var(--bad); }

.foot-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 0 36px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
.foot-disclaimer { max-width: 64ch; }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Comments ────────────────────────────────────────────────────── */

/* Off by default on this site; styled so that switching them on for one
   post does not produce a page in somebody else's design. */
.comments { padding: 8px 0 64px; border-top: 1px solid var(--line); }
.comments-title { font-size: 19px; font-weight: 660; margin: 32px 0 20px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.comment-list ol.children { list-style: none; margin: 18px 0 0 22px; padding-left: 16px; border-left: 1px solid var(--line); }
.comment-body { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12.5px; color: var(--ink-dim); margin: 4px 0 10px; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.comment-content p + p { margin-top: 12px; }
.comment-reply-link { font-size: 13px; color: var(--accent-ink); text-decoration: none; }

.comment-respond { margin-top: 36px; }
.comment-reply-title { font-size: 18px; font-weight: 660; margin-bottom: 16px; }
.comment-form label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; font: inherit; font-size: 15px;
  background: var(--bg-raise); color: var(--ink);
  border: 1px solid var(--line-mid); border-radius: var(--r-sm);
  padding: 10px 12px; margin-bottom: 16px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.comment-form .comment-form-cookies-consent label { margin: 0; }

/* --- Buttons inside post and page content --------------------------------- */

/*
 * .prose styles every link as underlined accent-coloured text, which is right
 * for a link in a sentence and wrong for a button. On the front page the
 * install buttons sit outside .prose and never met these rules; in a blog
 * post they do, and they arrived underlined, in the accent colour instead of
 * white, and sitting on the paragraph's baseline so the label looked dropped
 * to the bottom of the button.
 *
 * Specificity does the work: .prose .btn (two classes) outranks .prose a
 * (class plus element). The .btn-primary rule has to come after .btn, since
 * the two are equally specific and the later one wins.
 */
.prose .btn {
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1;
  /* inline-flex boxes align on their own baseline, which here is the bottom
     of the label, so the button hangs below the line it sits on. */
  vertical-align: middle;
}
.prose .btn:hover { text-decoration: none; }
.prose .btn-primary,
.prose .btn-primary:hover { color: #fff; }

/* A paragraph whose only content is a button does not want a text line-height
   around it. */
.prose p:has(> .btn:only-child) { line-height: 1; }

/* WordPress runs wpautop over post content, which turns a single newline into
   a <br>. Inside a flex container a <br> becomes its own flex item: it opens
   a gap after the icon and knocks the label off centre. The article markup
   keeps each button on one line so this cannot happen, and this rule is the
   belt to that pair of braces for anyone pasting their own button later. */
.prose .btn br { display: none; }
.prose .btn > span { display: inline-block; }

/* ── The walkthrough video ───────────────────────────────────────── */

/* The frame holds its 16:9 shape before the player loads, so a lazily
   fetched iframe cannot shift the rest of the page when it arrives. */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-high);
  border: 1px solid var(--line-mid); border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-dim); }
