/* Line by Line holding page. One same-origin script (the chat dock), no web fonts, no third-party requests. */
:root {
  --paper: #fbfaf7;
  --ink: #111111;
  --muted: #5d5d58;
  --rule: #d9d7d0;
  --accent: #2456d6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1115; --ink: #ecebe6; --muted: #a3a29b; --rule: #2a2d33; --accent: #8fb0ff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
.top, main, footer { width: min(100% - 32px, 1040px); margin-inline: auto; }

.top { display: flex; align-items: center; gap: 18px; padding-block: 28px 8px; }
.mark { flex: none; width: 84px; height: 84px; color: var(--ink); }
.mark .nib { fill: var(--accent); }
.wordmark {
  margin: 0; font-size: 1.125rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; line-height: 1.3;
}
.wordmark span { display: block; margin-top: 4px; font-size: .6875rem; letter-spacing: .38em; color: var(--muted); }

h1 {
  margin: clamp(40px, 9vw, 96px) 0 20px; max-width: 16ch;
  font-size: clamp(2.25rem, 7vw, 4.25rem); font-weight: 300; line-height: 1.06; letter-spacing: -.01em;
}
h2 { margin: 0 0 20px; font-size: .8125rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.intro p { max-width: 58ch; margin: 0; font-size: 1.1875rem; }

.made { margin-top: clamp(48px, 9vw, 96px); }
.prints { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
figure { margin: 0; }
.prints img {
  display: block; width: 100%; height: auto; background: #fff;
  box-shadow: 0 1px 0 var(--rule), 0 14px 32px -18px rgba(0, 0, 0, .45);
}
figcaption { margin-top: 14px; font-size: .9375rem; }
figcaption strong { display: block; font-weight: 500; }
figcaption small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.45; }

.ask { margin-top: clamp(56px, 10vw, 112px); padding-top: 32px; border-top: 1px solid var(--rule); }
.ask p { max-width: 54ch; margin: 0 0 20px; }
.button {
  display: inline-block; padding: 14px 22px; border: 1px solid var(--ink); color: var(--ink);
  text-decoration: none; font-size: .9375rem; letter-spacing: .04em; min-height: 48px;
}
.button:hover { background: var(--ink); color: var(--paper); }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

footer { margin-block: clamp(56px, 10vw, 112px) 40px; font-size: .8125rem; color: var(--muted); }
footer p { margin: 0 0 4px; }

/* The mark is drawn line by line on load, as the plotter would, and the pen tip lands last. Left static if motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .mark .ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.3, .6, .2, 1) forwards; }
  .mark .ring:nth-child(1) { animation-delay: 0ms; } .mark .ring:nth-child(2) { animation-delay: 260ms; } .mark .ring:nth-child(3) { animation-delay: 520ms; animation-duration: 1.3s; }
  .mark .nib { opacity: 0; transform-box: fill-box; transform-origin: center; animation: land .35s ease-out 1.75s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes land { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
}

/* Chat dock (ST-15028). Hidden until the script runs, so a visitor without it sees a complete page. */
.js-only, .ask-print { display: none; }
.js .js-only { display: inline-block; }
.js .ask-print { display: inline-block; margin-top: 10px; padding: 8px 0; min-height: 44px; border: 0; background: none; color: var(--accent); font: inherit; font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
button.button { background: none; font-family: inherit; cursor: pointer; }
.note { font-size: .875rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.faq { margin-top: clamp(48px, 9vw, 96px); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 16px 0; min-height: 48px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: 0 0 18px; max-width: 62ch; color: var(--muted); }

.dock-open { position: fixed; right: 16px; bottom: 16px; z-index: 20; padding: 14px 22px; min-height: 48px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-size: .9375rem; letter-spacing: .04em; cursor: pointer; }
.dock-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dock { position: fixed; z-index: 30; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 18px 48px -20px rgba(0, 0, 0, .55); font-size: .9375rem; line-height: 1.5; }
.dock[hidden], .dock [hidden] { display: none !important; }
.dock-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--rule); }
.dock-title { margin: 0; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; }
.dock-close { width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 1.5rem; cursor: pointer; }
.dock-note { margin: 0; padding: 10px 16px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--rule); }
.log { flex: 1 1 auto; min-height: 140px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { margin: 0; max-width: 88%; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; border: 1px solid var(--rule); }
.msg.you { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg.wait { color: var(--muted); font-style: italic; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
#chat-faq { max-height: 7.5rem; overflow-y: auto; }
.quick button { padding: 6px 10px; min-height: 36px; border: 1px solid var(--rule); background: none; color: inherit; font: inherit; font-size: .8125rem; cursor: pointer; }
.quick button:hover { border-color: var(--ink); }
.dock .row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.dock input[type=text], .dock input[type=email], .dock input[type=tel], .dock select, .dock textarea { width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid var(--rule); background: var(--paper); color: inherit; font: inherit; border-radius: 0; }
.dock input:focus-visible, .dock select:focus-visible, .dock textarea:focus-visible, .dock button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.dock .row input[type=text] { flex: 1 1 auto; }
.send { flex: none; padding: 10px 18px; min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; cursor: pointer; }
.send:disabled { opacity: .6; cursor: wait; }
.back { padding: 10px 14px; min-height: 44px; border: 1px solid var(--rule); background: none; color: inherit; font: inherit; cursor: pointer; }
.intake { overflow-y: auto; padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.intake h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.intake p { margin: 0; font-size: .8125rem; color: var(--muted); }
.intake label { display: block; font-size: .8125rem; color: var(--muted); }
.intake label > input, .intake label > select, .intake label > textarea { display: block; margin-top: 4px; }
.intake label small { font-size: .75rem; margin-left: 6px; }
.intake label.check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.intake label.check > input { display: block; flex: none; margin: 2px 0 0; width: 22px; height: 22px; accent-color: var(--accent); }
.intake .row { padding: 8px 0 12px; border-top: 0; }
.intake fieldset.how { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.intake fieldset.how legend { padding: 0; margin-bottom: 4px; font-size: .8125rem; color: var(--muted); }
.intake fieldset.how label.check { align-items: center; color: var(--ink); }
.intake fieldset.how label.check > input { margin: 0; width: 20px; height: 20px; }
.intake .err { color: #b3261e; min-height: 1.2em; }
@media (prefers-color-scheme: dark) { .intake .err { color: #ff8a80; } }
@media (max-width: 480px) { .dock { right: 0; bottom: 0; width: 100vw; max-height: 100dvh; border-width: 1px 0 0; } .dock-open { right: 12px; bottom: 12px; } }

/* Ordering-led page (ST-15028, #74): the one filled button is the main action; steps, facts and the custom call. */
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: transparent; color: var(--ink); }
.intro .actions { margin-top: 28px; }
.big { max-width: 46ch; font-size: 1.1875rem; margin: 0 0 20px; }
.yours, .how, .get, .faq { margin-top: clamp(48px, 9vw, 96px); }
.yours { padding-top: 32px; border-top: 1px solid var(--rule); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: step; padding-top: 14px; border-top: 1px solid var(--ink); max-width: none; }
.steps li::before { content: "Step " counter(step); display: block; margin-bottom: 6px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.steps strong { display: block; font-weight: 500; margin-bottom: 4px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.facts li { max-width: none; }
.facts strong { display: block; font-weight: 500; }

/* The Instagram glyph, top right of the header: a 44 px target, the standard symbol, never redrawn. */
.top .ig { margin-left: auto; flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.top .ig:hover { color: var(--accent); }
.top .ig:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Ordering on the page itself (order.js). The forms are not shown without JavaScript: the noscript note says where to go instead. */
.js-block { display: none; }
.js .js-block { display: flex; }
.order, .yours { max-width: 40rem; }
.pageform { flex-direction: column; gap: 16px; margin-top: 24px; max-width: 34rem; }
.pageform label { display: block; font-size: .875rem; color: var(--muted); }
.pageform label > input, .pageform label > select, .pageform label > textarea { display: block; margin-top: 6px; }
.pageform fieldset.address { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 16px; }
.pageform fieldset.address legend { padding: 0; margin-bottom: 8px; font-size: .875rem; color: var(--ink); }
.pageform input[type=text], .pageform input[type=email], .pageform input[type=url], .pageform select, .pageform textarea { width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid var(--rule); background: var(--paper); color: inherit; font: inherit; border-radius: 0; }
.pageform input:focus-visible, .pageform select:focus-visible, .pageform textarea:focus-visible, .pageform button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.pageform label small { font-size: .75rem; margin-left: 6px; }
.pageform label.check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.pageform label.check > input { display: block; flex: none; margin: 2px 0 0; width: 22px; height: 22px; accent-color: var(--accent); }
.pageform .summary { margin: 0; font-size: .875rem; color: var(--muted); max-width: 52ch; }
.pageform .row { padding: 0; }
.pageform .err { margin: 0; min-height: 1.2em; color: #b3261e; font-size: .875rem; }
@media (prefers-color-scheme: dark) { .pageform .err { color: #ff8a80; } }
.done { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--ink); max-width: 34rem; }
.quick a { display: inline-flex; align-items: center; padding: 6px 10px; min-height: 36px; border: 1px solid var(--rule); color: inherit; font-size: .8125rem; text-decoration: none; }
.quick a:hover { border-color: var(--ink); }
.pageform [hidden], .done[hidden] { display: none; }

/* Route prints: the route group, and the illustrated how-to in the FAQ */
.route-group { display: flex; flex-direction: column; gap: 16px; }
.how-to { margin: 20px 0; max-width: 480px; }
.how-to img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.how-to figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.pageform select:disabled { opacity: .75; }

/* The wall preview (order.js): a print on a wall, in the paper, pen and frame the visitor has chosen. The print's lines are a
   mask over the paper colour; the frame and the wall are CSS. All of it is driven by data attributes on #wall, so the picture
   for each combination does not exist anywhere: nothing is fetched but the one line drawing. Colours on screen are approximate. */
.order-grid { display: grid; gap: 28px; }
.wall { margin: 0; container-type: inline-size; max-width: 34rem; }
.wall-scene { aspect-ratio: 1 / 1; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #f1ece3 0%, #ddd5c8 100%); border: 1px solid var(--rule); }
.wall .frame { padding: 0; box-shadow: 0 1.2cqw 2.4cqw rgba(30, 20, 10, .28), 0 .2cqw .5cqw rgba(30, 20, 10, .3); }
.wall .sheet { position: relative; aspect-ratio: 297 / 420; width: 42cqw; background: #fbfaf7; }
.wall[data-orient="landscape"] .sheet { aspect-ratio: 420 / 297; width: 60cqw; }
.wall .lines, .wall .route { position: absolute; inset: 0; background: #111; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.wall .route { display: none; }
.wall[data-route] .route { display: block; }
.wall figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
/* paper */
.wall[data-paper="white"] .sheet { background: #fbfaf7; }
.wall[data-paper="blue"] .sheet { background: #1d2a48; }
.wall[data-paper="black"] .sheet { background: #0f0f12; }
/* pen */
.wall[data-pen="black"] .lines { background: #111; }
.wall[data-pen="white"] .lines { background: #fafafa; }
.wall[data-pen="gold"] .lines { background: linear-gradient(135deg, #b8892b 0%, #f1d77a 40%, #c99a33 65%, #f7e5a0 100%); }
.wall[data-pen="silver"] .lines { background: linear-gradient(135deg, #a9abb4 0%, #f2f3f7 40%, #b9bbc4 65%, #eceef3 100%); }
/* the route, over black streets (the streets pen is read-only on a route print) */
.wall[data-route] .lines { background: #111; }
.wall[data-routecolour="red"] .route { background: #d62828; }
.wall[data-routecolour="blue"] .route { background: #1d4ed8; }
.wall[data-routecolour="dark-green"] .route { background: #14532d; }
/* frame: none, black, white or oak; A3 frames are slim, so the border is about 2.4% of the picture's width */
.wall[data-frame="black"] .frame { padding: 1.9cqw; background: #151515; }
.wall[data-frame="white"] .frame { padding: 1.9cqw; background: #f4f2ee; box-shadow: 0 1.2cqw 2.4cqw rgba(30, 20, 10, .28), 0 .2cqw .5cqw rgba(30, 20, 10, .3), inset 0 0 0 .15cqw rgba(0, 0, 0, .12); }
.wall[data-frame="oak"] .frame { padding: 1.9cqw; background: repeating-linear-gradient(92deg, rgba(120, 78, 36, .16) 0, rgba(120, 78, 36, .16) .3cqw, rgba(255, 235, 200, .10) .3cqw, rgba(255, 235, 200, .10) .8cqw), linear-gradient(90deg, #c99a5e, #dcb682 35%, #c5955a 65%, #d4ab73); }
/* each print's own line drawing (made by tools/site/wall_assets.py), and its route where it has one */
.wall[data-wall="belfast"] .lines { -webkit-mask-image: url(/img/wall/belfast.png); mask-image: url(/img/wall/belfast.png); }
.wall[data-wall="space-shuttle"] .lines { -webkit-mask-image: url(/img/wall/space-shuttle.png); mask-image: url(/img/wall/space-shuttle.png); }
.wall[data-wall="voyager-1"] .lines { -webkit-mask-image: url(/img/wall/voyager-1.png); mask-image: url(/img/wall/voyager-1.png); }
@media (min-width: 900px) {
  .order { max-width: 64rem; }
  .order-grid { grid-template-columns: minmax(0, 34rem) minmax(0, 26rem); align-items: start; }
  .order-grid .wall { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .order-grid .pageform { grid-column: 1; grid-row: 1; margin-top: 0; }
}
.js .wall.js-block { display: block; }
.wall[hidden] { display: none !important; }

/* Categories in the gallery */
.cats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; }
.cats a { color: inherit; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.category { margin-top: 36px; scroll-margin-top: 16px; }
.category h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 500; }
.category .blurb { margin: 0 0 20px; color: var(--muted); max-width: 54ch; }
.wall .sku { margin: 6px 0 0; font-size: .875rem; letter-spacing: .02em; }
.wall .sku strong { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Filtering the gallery by tag, with no script: a radio per tag, the gallery shows the prints that carry it. Needs :has(); without it every print stays shown. */
.tagfilter { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagfilter legend { padding: 0; margin-bottom: 8px; font-size: .8125rem; color: var(--muted); }
.tagfilter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tagfilter label { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--rule); font-size: .875rem; cursor: pointer; }
.tagfilter input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tagfilter input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.made:has(#tag-map:checked) .prints li:not(.t-map) { display: none; }
.made:has(#tag-map:checked) .category:not(:has(li.t-map)) { display: none; }
.made:has(#tag-blueprint:checked) .prints li:not(.t-blueprint) { display: none; }
.made:has(#tag-blueprint:checked) .category:not(:has(li.t-blueprint)) { display: none; }
.made:has(#tag-belfast:checked) .prints li:not(.t-belfast) { display: none; }
.made:has(#tag-belfast:checked) .category:not(:has(li.t-belfast)) { display: none; }
.made:has(#tag-space:checked) .prints li:not(.t-space) { display: none; }
.made:has(#tag-space:checked) .category:not(:has(li.t-space)) { display: none; }
.made:has(#tag-nasa:checked) .prints li:not(.t-nasa) { display: none; }
.made:has(#tag-nasa:checked) .category:not(:has(li.t-nasa)) { display: none; }
