
:root {
  --bg: #0a0a0a;
  --fg: #eaeaea;
  --muted: #b5b5b5;
  --accent: #d8b36b;
  --maxw: 960px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
header { border-bottom: 1px solid #222; background: #0e0e0e; position: sticky; top: 0; z-index: 10; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem; }
.site-title { font-weight: 700; letter-spacing: 0.06em; font-size: 1.25rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .75rem 1rem; padding: 0; margin: .75rem 0 0 0; list-style: none; }
nav a { padding: .35rem .55rem; border-radius: .5rem; }
nav a[aria-current="page"] { background: #1b1b1b; }
main { padding: 2rem 0 3rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin: 0 0 .75rem; }
h2 { margin-top: 2rem; }
p { margin: .8rem 0; }
.lead { color: var(--muted); font-size: 1.05rem; }
figure { margin: 2rem 0; background: #101010; border: 1px solid #1d1d1d; border-radius: .75rem; overflow: hidden; }
figure .placeholder { aspect-ratio: 5/3; width: 100%; background: #121212; display: grid; place-items: center; color: #777; font-size: .95rem; }
figcaption { padding: .75rem 1rem; color: var(--muted); font-size: .95rem; }
footer { border-top: 1px solid #222; background: #0e0e0e; color: var(--muted); }
.footer-inner { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
small { color: var(--muted); }
hr { border: none; border-top: 1px solid #1e1e1e; margin: 2rem 0; }
.list { padding-left: 1rem; }
.external::after { content: "↗"; font-size: .85em; margin-left: .25rem; }
kbd { background: #1b1b1b; border: 1px solid #333; border-bottom-width: 2px; padding: .1rem .35rem; border-radius: .35rem; font-size: .85rem; }


/* --- Image/layout utilities --- */
figure img {
  display: block;
  width: 100%;
  height: auto; /* keep natural aspect ratio */
}

:root {
  --gutter: 1.25rem;
}

/* Wider container option */
.container.wide { max-width: min(1400px, 92vw); }

/* Full-bleed: break out of container and span the viewport width */
.full-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

body { overflow-x: hidden; } /* avoid horizontal scroll with full-bleed */

/* Optional: make *all* figures span the container's full width even inside text columns */
figure.full { margin-left: 0; margin-right: 0; }
