
/* ---- Option B additions (preview only) ---- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 56px; border-bottom: 1.5px solid var(--ink); font-size: 14px; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.nav .brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.nav .brand b { font-weight: 500; }
.nav .brand span { color: var(--muted); font-size: 13px; }
.nav ul { list-style: none; padding: 0; display: flex; gap: 8px; align-items: center; }
.nav ul a { text-decoration: none; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border: 1.5px solid var(--ink); background: #FBFAF6; font-weight: 500; transition: transform .12s ease, box-shadow .12s ease; }
.nav ul a:hover, .nav ul a:focus-visible { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.nav ul a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav ul a[aria-current]:hover { box-shadow: inset 0 -3px 0 var(--accent), 3px 3px 0 var(--ink); }
.nav ul a.nav-cv { background: var(--ink); color: var(--paper); }
.nav ul a.nav-cv:hover { box-shadow: 3px 3px 0 var(--accent); }
.with-nav .home { min-height: calc(100vh - 56px); }
/* the blueprint stays in view while the long left column scrolls, so it never ends half way down */
@media (min-width: 1001px) and (min-height: 620px) {
  .with-nav .home .panel { align-items: flex-start; }
  .with-nav .home .panel .blueprint { position: sticky; top: 64px; height: calc(100dvh - 64px); }
}
.live { margin-top: 18px; }
.live a { font-family: var(--font-mono), monospace; font-size: 13px; }
.with-nav .home .name { margin-top: 32px; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; max-width: 62ch; }
.chips li { font-family: var(--font-mono), monospace; font-size: 12px; padding: 3px 8px; border: 1px solid var(--ink); background: #FBFAF6; line-height: 1.4; }

.cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; background: var(--paper); transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { box-shadow: 3px 3px 0 var(--accent); }
.btn.icon { width: 42px; padding: 0; justify-content: center; }
.btn svg { width: 18px; height: 18px; }
.cv { display: flex; flex-direction: column; gap: 4px; }
.cv small { font-family: var(--font-mono), monospace; font-size: 11px; color: var(--muted); }

.kicker { font-family: var(--font-mono), monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 48px; display: flex; justify-content: space-between; align-items: baseline; }
.kicker a { text-transform: none; letter-spacing: 0; font-family: var(--font-sans), sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); padding: 4px 0; transition: color .12s; }
.kicker a .arr { display: inline-block; transition: transform .12s ease; }
.kicker a:hover, .kicker a:focus-visible { color: var(--accent); }
.kicker a:hover .arr, .kicker a:focus-visible .arr { transform: translateX(4px); }
.cards { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 14px; }
.card { position: relative; display: grid; grid-template-columns: 220px 1fr; border: 1.5px solid var(--ink); background: var(--paper); transition: transform .14s ease, box-shadow .14s ease; }
.card:hover, .card:focus-within { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.card .thumb { border-right: 1.5px solid var(--ink); padding: 10px; display: flex; align-items: center; }
.card .thumb svg { width: 100%; height: auto; display: block; }
.card .body { padding: 14px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-family: var(--font-serif), serif; font-weight: 400; font-size: 24px; line-height: 1.1; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--accent); }
.card .meta { font-family: var(--font-mono), monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.card .meta .v { font-size: 12px; }
.card p { font-size: 15px; color: var(--body); }
.card .tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.card .tags li { font-family: var(--font-mono), monospace; font-size: 11px; padding: 1px 6px; border: 1px solid var(--rule); color: var(--body); }
.card .foot { display: flex; gap: 16px; font-size: 14px; margin-top: 2px; align-items: baseline; }
.card .foot .go { font-weight: 500; }
.card:hover .foot .go { color: var(--accent); }
.card .foot .ext { position: relative; z-index: 1; }
.card .pen { font-size: 22px; transform: rotate(-2deg); margin-left: auto; }

.log.hover { margin-top: 12px; }
.log.hover .row { position: relative; transition: background .12s; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.log.hover .row:has(a.stretch):hover { background: #E9E5DA; }
.log.hover .row a.stretch::after { content: ""; position: absolute; inset: 0; }

.diag .sub { font-family: var(--font-mono), monospace; font-size: 10.5px; fill: var(--muted); }
.diag .al { font-family: var(--font-mono), monospace; font-size: 10.5px; fill: var(--accent); }
.diag .frame { stroke: var(--muted); }
.diag .frame-l { font-family: var(--font-mono), monospace; font-size: 10.5px; fill: var(--muted); }
.diag.mini { pointer-events: none; }
.diag.mini text { font-size: 15px; fill: var(--ink); stroke: none; }
.id { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.with-nav .home .id .name { margin-top: 0; }
.me { width: 120px; height: 120px; flex: none; border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); object-fit: cover; display: block; }

@media (max-width: 1000px) {
  .nav { padding: 12px 16px; font-size: 13px; }
  .nav .brand span { display: none; }
  .nav ul { gap: 6px; }
  .nav ul a { height: 32px; padding: 0 9px; }
  .with-nav .home { min-height: 0; }
  .with-nav .home .name { margin-top: 20px; }
  .id { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 20px; }
  .me { width: 84px; height: 84px; box-shadow: 3px 3px 0 var(--ink); }
  .card { grid-template-columns: 1fr; }
  .card .thumb { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .card .thumb svg { max-width: 260px; margin: 0 auto; }
  .cta { gap: 8px; flex-wrap: nowrap; }
  .btn { padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .cv small { white-space: nowrap; }
  .btn.icon { width: 40px; flex: none; }
  .card .foot { flex-wrap: wrap; }
  .card .pen { white-space: nowrap; margin-left: 0; }
}
@media (max-width: 380px) { .nav .hide-xs { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .card, .nav ul a, .kicker a .arr { transition: none; } .btn:hover, .card:hover, .card:focus-within, .nav ul a:hover, .kicker a:hover .arr { transform: none; } }

/* preview chrome */
.pv-bar { font-family: var(--font-mono), monospace; font-size: 12px; background: var(--ink); color: var(--paper); padding: 6px 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.pv-bar a { color: var(--paper); }
.pv-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pv-compare > div { min-width: 0; } /* lets each drawing scroll inside its box instead of pushing the page wider */
.pv-compare h3 { font-family: var(--font-mono), monospace; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 1000px) { .pv-compare { grid-template-columns: 1fr; } }
