/* ============================================================
   FORMA · The Autumn Craft Crawl
   A risograph-printed trail guide. Six stops, one October.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/fraunces-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/fraunces-900italic.woff2") format("woff2");
  font-weight: 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/fraunces-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/space-mono-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/artifacts/forma-frontend--v1--s4-whacky--glm-5.3-flash--ui-ux-pro-max--2026-09-18T23-16-41-367Z/assets/fonts/space-mono-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --paper: #f5efe1;
  --paper-hi: #fffdf4;
  --paper-lo: #efe6d2;
  --ink: #23201a;
  --muted: #5a5348;

  --ceramic: #9e3a12;  --ceramic-tint: #f3d9c8;
  --paint: #443a9e;    --paint-tint: #dcd9f2;
  --flor: #2f5b23;     --flor-tint: #dce8cf;
  --bake: #7a4a00;     --bake-tint: #f2e4c2;
  --stamp: #b3261e;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow: 6px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
}

/* Category ink pairs — every pair verified ≥ 4.5:1 on its tint/paper */
.cat-Ceramics { --ink2: var(--ceramic); --tint: var(--ceramic-tint); }
.cat-Painting { --ink2: var(--paint);   --tint: var(--paint-tint); }
.cat-Floristry{ --ink2: var(--flor);    --tint: var(--flor-tint); }
.cat-Baking   { --ink2: var(--bake);    --tint: var(--bake-tint); }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(35, 32, 26, 0.055) 1px, transparent 1.4px),
    radial-gradient(rgba(158, 58, 18, 0.05) 1px, transparent 1.4px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 11px 17px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 14px;
  padding: 12px 18px; text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: 16px; }

.sr-announcer {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---- printer's registration marks ---- */
.reg-mark { position: fixed; width: 18px; height: 18px; z-index: 5; opacity: .55; pointer-events: none; }
.reg-mark::before, .reg-mark::after { content: ""; position: absolute; background: var(--ink); }
.reg-mark::before { left: 8px; top: 0; width: 2px; height: 18px; }
.reg-mark::after { top: 8px; left: 0; height: 2px; width: 18px; }
.reg-tl { top: 10px; left: 10px; } .reg-tr { top: 10px; right: 10px; }
.reg-bl { bottom: 10px; left: 10px; } .reg-br { bottom: 10px; right: 10px; }

/* ============================== masthead ============================== */
.masthead { padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 48px) 20px; }
.masthead-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px; align-items: end;
}
.mast-kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  margin: 0 0 18px; color: var(--muted); text-transform: uppercase;
}
.mast-brand {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 3px 10px 2px; transform: rotate(-2deg);
  font-weight: 700; letter-spacing: .12em;
}
.mast-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(44px, 12vw, 118px);
  line-height: .92; letter-spacing: -0.015em;
  margin: 0 0 20px; transform: rotate(-1.4deg); transform-origin: left bottom;
  color: var(--ink);
  text-shadow: 5px 5px 0 rgba(158, 58, 18, 0.4); /* riso misregistration */
}
.mast-title em { font-style: italic; }
.mast-dek {
  font-size: clamp(17px, 1.6vw, 21px); max-width: 56ch; margin: 0 0 14px;
}
.mast-meta {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border-top: 2px solid var(--ink); display: inline-block; padding-top: 8px; margin: 0;
}
.mast-art { position: relative; padding: 8px 4px 24px 0; }
.compass { width: clamp(110px, 12vw, 170px); height: auto; color: var(--ceramic); transform: rotate(8deg); }
.mast-stamp {
  position: absolute; right: -6px; bottom: -2px;
  font-family: var(--mono); font-weight: 700; font-size: 14px; line-height: 1.2;
  color: var(--stamp); border: 3px solid var(--stamp); border-radius: 50%;
  width: 74px; height: 74px; display: grid; place-items: center; text-align: center;
  transform: rotate(12deg); background: rgba(245, 239, 225, .7);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px rgba(179, 38, 30, .4);
}

/* ============================== ticker ============================== */
.ticker {
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  background: var(--bake-tint); overflow: hidden; transform: rotate(-1.2deg) scale(1.02);
  margin: 26px -6px 8px;
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-track span {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding: 9px 0; white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================== page grid ============================== */
.page-grid {
  max-width: 1240px; margin: 26px auto 0; padding: 0 clamp(18px, 4vw, 48px) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "kit kit" "trail pack";
  gap: 8px 44px; align-items: start;
}

/* ============================== field kit ============================== */
.fieldkit {
  grid-area: kit;
  border: 2.5px solid var(--ink); background: var(--paper-hi);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px 14px; margin-bottom: 26px;
  transform: rotate(-.35deg);
}
.kit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.kit-field label, .kit-label {
  display: block; font-family: var(--mono); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px;
}
#site-search, #craft-filter {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font-family: var(--mono); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
}
#site-search::placeholder { color: var(--muted); opacity: 1; font-style: italic; }
#craft-filter { cursor: pointer; }

.btn {
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  color: var(--ink); background: var(--paper-hi);
  border: 2px solid var(--ink); border-radius: 0;
  padding: 11px 16px; min-height: 46px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.toggle-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kit-packtoggle .toggle-btn { width: 100%; white-space: nowrap; }

.kit-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; border-top: 2px dashed var(--ink); margin-top: 16px; padding-top: 12px; }
.kit-count { font-family: var(--mono); font-size: 13.5px; margin: 0; color: var(--muted); }
.kit-count strong { color: var(--ink); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  background: none; border: 2px solid transparent; padding: 9px 10px; cursor: pointer; min-height: 44px;
}
.legend-chip:hover { border-color: var(--ink); }
.legend-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-lo); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.sw-ceramics { background: var(--ceramic); } .sw-painting { background: var(--paint); }
.sw-floristry { background: var(--flor); } .sw-baking { background: var(--bake); }

/* ============================== trail ============================== */
.trail { grid-area: trail; min-width: 0; }
.trail:focus { outline: none; }
.trail-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stamp); margin: 0 0 6px; padding-left: 4px;
}
.trail-arrow { width: 34px; height: 34px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.trail-wrap { position: relative; }
.trail-path {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 110px; height: 100%; color: var(--ink); opacity: .8; z-index: 0;
  pointer-events: none;
}
.trail-path path { animation: dash-crawl 60s linear infinite; }
@keyframes dash-crawl { to { stroke-dashoffset: -260; } }

.trail-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }

/* Stops branch off the left-hand path; alternate indentation gives rhythm */
.stop {
  display: grid; grid-template-columns: 110px minmax(0, 1fr);
  margin: 36px 0;
}
.stop-flag { grid-column: 1; grid-row: 1; justify-self: center; align-self: start; margin-top: 30px; position: relative; z-index: 2; }
.ticket-holder { grid-column: 2; grid-row: 1; width: 100%; max-width: 640px; padding: 0 6px 0 2px; }
.stop:nth-child(4n + 3) .ticket-holder { margin-left: clamp(0px, 9vw, 120px); }

/* trail notes between stops */
.trail-note {
  font-family: var(--mono); font-style: italic; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; padding: 2px 0 2px 118px;
}

/* --- map-pin flag on the path --- */
.pin {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--paper-hi); border: 2.5px solid var(--ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.pin .pin-no { display: block; }
.stop-flag .flag-date {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .06em;
  background: var(--ink); color: var(--paper); padding: 3px 8px; white-space: nowrap;
}
.stop.is-saved .pin { background: var(--ink2, var(--ink)); color: var(--paper); transform: rotate(-6deg) scale(1.06); }
.stop.is-saved .pin::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 2px dashed rgba(245, 239, 225, .75);
}

/* --- the ticket card --- */
.ticket-holder { width: 100%; max-width: 640px; padding: 0 6px 0 2px; }
.ticket {
  background: var(--paper-hi); border: 2.5px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(var(--rot, -0.8deg));
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: grid; grid-template-columns: 58px minmax(0, 1fr);
}
.ticket:hover, .ticket:focus-within { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 8px 9px 0 var(--ink); }

.ticket-stub {
  border-right: 2.5px dashed var(--ink); background: var(--tint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 6px; color: var(--ink2);
}
.stub-no { font-family: var(--mono); font-weight: 700; font-size: 22px; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .18em; }
.stub-cat { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; writing-mode: vertical-rl; text-transform: uppercase; }

.ticket-main { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0; min-width: 0; }
.photo { position: relative; overflow: hidden; border-right: 2.5px solid var(--ink); min-height: 190px; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: contrast(1.06) saturate(.92); }
.photo-tint { position: absolute; inset: 0; background: var(--tint); mix-blend-mode: multiply; opacity: .45; pointer-events: none; }

.ticket-body { padding: 14px 16px 14px 14px; min-width: 0; }
.ticket-date { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink2); margin: 0 0 4px; text-transform: uppercase; }
.ticket-title { font-family: var(--serif); font-weight: 900; font-size: 24px; line-height: 1.08; margin: 0 0 6px; letter-spacing: -0.01em; }
.ticket-desc { font-size: 14.5px; line-height: 1.5; margin: 0 0 10px; color: var(--ink); }
.ticket-facts {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px;
  font-family: var(--mono); font-size: 12.5px;
  border-top: 2px dotted var(--ink); padding-top: 9px;
}
.ticket-facts div { display: flex; gap: 5px; }
.ticket-facts dt { color: var(--muted); }
.ticket-facts dt::after { content: ":"; }
.ticket-facts dd { margin: 0; font-weight: 700; }

.ticket-actions { display: flex; align-items: center; gap: 10px; }
.btn-open {
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  background: var(--ink2); color: var(--paper-hi);
  border: 2px solid var(--ink); padding: 10px 14px; min-height: 44px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-open:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-open:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-open .arrow { font-family: var(--serif); font-size: 16px; line-height: 1; }

/* round punch button on cards */
.punch-btn {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 2.5px dashed var(--ink2); background: var(--paper-hi); color: var(--ink2);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.punch-btn:hover { transform: rotate(-10deg) scale(1.08); }
.punch-btn svg { width: 22px; height: 22px; }
.punch-btn[aria-pressed="true"] { background: var(--ink2); color: var(--paper-hi); border-style: solid; }
.punch-btn[aria-pressed="true"]:hover { transform: rotate(10deg) scale(1.05); }

/* --- trail end --- */
.trail-end {
  position: relative; z-index: 1; text-align: center; padding: 26px 0 4px;
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--stamp);
}
.trail-end::before { content: "✳ ✳ ✳"; display: block; font-size: 18px; letter-spacing: .6em; margin-bottom: 8px; color: var(--ink); }

/* ============================== empty state ============================== */
.empty-state {
  border: 2.5px dashed var(--ink); background: var(--paper-hi);
  box-shadow: var(--shadow-sm); transform: rotate(.6deg);
  max-width: 480px; margin: 40px auto; padding: 30px 26px; text-align: center;
}
.empty-art { width: 64px; height: 64px; color: var(--stamp); margin: 0 auto 12px; }
.empty-state h2 { font-family: var(--serif); font-weight: 900; font-size: 26px; margin: 0 0 6px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); }

/* ============================== trail pack ============================== */
.pack { grid-area: pack; position: sticky; top: 20px; }
.pack-card {
  background: var(--paper-lo); border: 2.5px solid var(--ink); box-shadow: var(--shadow);
  transform: rotate(1deg); padding: 18px 18px 14px;
}
.pack-head { border-bottom: 2.5px dashed var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.pack-title { font-family: var(--mono); font-weight: 700; font-size: 19px; letter-spacing: .16em; margin: 0; text-transform: uppercase; }
.pack-sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }
.pack-slots { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack-slot {
  border: 2px dashed var(--ink); min-height: 62px; padding: 6px 8px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  background: transparent; transition: background-color 200ms ease, border-style 200ms ease;
}
.pack-slot .slot-no { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.pack-slot .slot-name { font-family: var(--mono); font-weight: 700; font-size: 12.5px; line-height: 1.25; color: var(--ink); }
.pack-slot.punched { border-style: solid; background: var(--tint, var(--paper-hi)); }
.pack-slot.punched .slot-name::before { content: "◉ "; color: var(--ink2, var(--ink)); }
.pack-foot { border-top: 2.5px dashed var(--ink); padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pack-count, .pack-fare { font-family: var(--mono); font-size: 12.5px; margin: 0; font-weight: 700; }
.pack-fare { color: var(--stamp); }

/* ============================== detail ticket (dialog) ============================== */
.dialog-root { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.dialog-scrim { position: absolute; inset: 0; background: rgba(35, 32, 26, 0.55); }
@keyframes ticket-in {
  from { opacity: 0; transform: rotate(-.5deg) translateY(14px); }
  to { opacity: 1; transform: rotate(-.5deg) translateY(0); }
}
.dialog-root:not([hidden]) .dialog { animation: ticket-in 220ms ease-out; }
.dialog {
  position: relative; width: min(860px, 100%); max-height: min(860px, 100%);
  overflow: auto; background: var(--paper-hi); border: 3px solid var(--ink);
  box-shadow: 10px 12px 0 var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  transform: rotate(-.5deg);
}
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--paper-hi); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 140ms ease;
}
.dialog-close:hover { transform: rotate(90deg); }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-photo { position: relative; min-height: 320px; border-right: 3px solid var(--ink); }
.dialog-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(.92); }
.dialog-photo .photo-tint { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .4; pointer-events: none; }
.dialog-stub {
  position: absolute; left: 0; top: 0; bottom: 0; width: 54px;
  background: var(--tint, var(--paper-lo)); border-right: 3px dashed var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 4px;
  color: var(--ink2, var(--ink));
}
.dialog-stub span:first-child { font-family: var(--mono); font-weight: 700; font-size: 18px; writing-mode: vertical-rl; }
.dialog-stub span:last-child { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .12em; writing-mode: vertical-rl; text-transform: uppercase; }
.dialog-body { padding: 26px 26px 22px; min-width: 0; }
.chip {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--tint, var(--paper-lo)); color: var(--ink2, var(--ink));
  border: 2px solid var(--ink2, var(--ink)); padding: 4px 10px; margin: 0 0 10px;
}
.dialog-title { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4vw, 42px); line-height: 1.02; margin: 0 0 12px; letter-spacing: -0.01em; }
.dialog-desc { font-size: 17px; line-height: 1.6; margin: 0 0 18px; }
.dialog-facts { margin: 0 0 20px; border-top: 2.5px dashed var(--ink); }
.dialog-facts div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 2px; border-bottom: 2px dotted var(--ink);
  font-family: var(--mono); font-size: 14px;
}
.dialog-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; padding-top: 2px; }
.dialog-facts dd { margin: 0; font-weight: 700; text-align: right; }
.save-btn { width: 100%; font-size: 15px; }
.save-btn[aria-pressed="true"] { background: var(--ink2, var(--ink)); color: var(--paper-hi); }
.dialog-hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ============================== colophon ============================== */
.colophon {
  max-width: 1240px; margin: 0 auto; padding: 26px clamp(18px, 4vw, 48px) 60px;
  border-top: 3px solid var(--ink);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.colophon p { margin: 0 0 6px; }
.colophon strong { color: var(--ink); }

/* ============================== responsive ============================== */
@media (max-width: 1020px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kit" "pack" "trail"; }
  .pack { position: static; transform: none; max-width: 560px; margin: 0 auto 30px; width: 100%; }
  .pack-card { transform: rotate(-.5deg); }
  .masthead-inner { grid-template-columns: 1fr; }
  .mast-art { display: flex; align-items: center; gap: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .kit-grid { grid-template-columns: 1fr; gap: 14px; }
  .kit-packtoggle .toggle-btn { width: 100%; }

  /* narrow trail: slim left-hand path band */
  .trail-path { width: 48px; }
  .stop { grid-template-columns: 48px minmax(0, 1fr); margin: 26px 0; }
  .stop:nth-child(4n + 3) .ticket-holder { margin-left: 0; }
  .stop-flag { margin-top: 10px; }
  .pin { width: 42px; height: 42px; font-size: 12.5px; box-shadow: 2px 2px 0 var(--ink); }
  .stop-flag .flag-date { top: -16px; font-size: 10px; }
  .trail-note { padding: 2px 0 2px 56px; }
  .ticket { grid-template-columns: 40px minmax(0, 1fr); transform: rotate(var(--rot-m, 0deg)); }
  .stub-no, .stub-cat { font-size: 15px; }
  .ticket-main { grid-template-columns: 1fr; }
  .photo { border-right: none; border-bottom: 2.5px solid var(--ink); height: 150px; min-height: 150px; }
  .ticket-body { padding: 12px 14px; }
  .ticket-title { font-size: 21px; }
  .trail-head-label { font-size: 11px; }
  .dialog-root { padding: 10px; }
  .dialog { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); transform: none; }
  .dialog-photo { min-height: 190px; height: 190px; border-right: none; border-bottom: 3px solid var(--ink); }
  .dialog-stub { width: 44px; }
  .reg-mark { display: none; }
  .mast-title { transform: rotate(-1deg); }
}

/* ============================== motion safety ============================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { transform: none; }
  .trail-arrow { animation: none; }
}
