/* Panelz — shared tokens, masthead, indicia footer, inner pages.
   The site is built like a comic art board: bright Bristol white, India ink,
   non-repro blue for layout lines, process magenta for the one action,
   process yellow only inside printed halftone. */

:root {
  --board: #f3f5f4;
  --board-2: #e8ecea;
  --ink: #16141c;
  --ink-2: #3d3a46;
  --ink-3: #5e5a68;
  --blueline: #8fcbea;
  --blueline-ink: #1f6a96;
  --magenta: #d4126f;
  --magenta-deep: #a80c57;
  --yellow: #ffd51e;

  --f-mast: "Bowlby One", "Arial Black", Impact, sans-serif;
  --f-letter: "Shantell Sans", "Comic Neue", "Marker Felt", sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Courier Prime", "Courier New", Courier, monospace;

  --edge: clamp(18px, 4.5vw, 56px);
  --rule: 2.5px solid var(--ink);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--board);
  padding: 10px 14px; font: 700 14px/1 var(--f-script); text-decoration: none;
  border-radius: 4px;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- masthead ---------- */
.mast {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--edge);
}
.mast__logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.mast__logo svg { width: 34px; height: 34px; }
.mast__word {
  font: 400 26px/1 var(--f-mast);
  letter-spacing: .01em;
  transform: skewX(-6deg);
}
.mast__nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 26px); }
.mast__nav a {
  font: 700 13px/1 var(--f-script);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 10px 2px;
}
.mast__nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mast__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- buttons ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  font: 700 16px/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  color: #fff; background: var(--magenta);
  border: var(--rule); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(var(--lift), var(--lift));
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s;
}
.btn:hover { --lift: -2px; box-shadow: 6px 6px 0 var(--ink); }
.btn:active { --lift: 3px; box-shadow: 1px 1px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--board); box-shadow: 4px 4px 0 var(--magenta); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--magenta); }
.btn--ghost { background: var(--board); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- board frame used by inner pages ---------- */
.board {
  position: relative;
  margin: 8px var(--edge) 0;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px);
  border: 1.5px solid var(--blueline);
  background:
    linear-gradient(var(--blueline), var(--blueline)) left 50% top 0 / 1px 14px no-repeat,
    linear-gradient(var(--blueline), var(--blueline)) left 50% bottom 0 / 1px 14px no-repeat;
}
/* printer's crop marks at the four corners */
.board::before, .board::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 0 solid var(--ink-3);
}
.board::before { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; }
.board::after { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; }

.slug {
  font: 700 12px/1.3 var(--f-script);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blueline-ink);
  margin: 0 0 14px;
}

.page-title {
  font: 400 clamp(40px, 7.5vw, 88px)/.95 var(--f-mast);
  letter-spacing: -.01em;
  margin: 0;
  transform: skewX(-4deg);
  transform-origin: left bottom;
}

/* ---------- legal pages ---------- */
.legal {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.legal__head { grid-column: 1 / -1; padding-bottom: clamp(18px, 3vw, 28px); border-bottom: var(--rule); }
.legal__date { font: 400 15px/1.4 var(--f-script); color: var(--ink-2); margin: 16px 0 0; }
.legal__summary {
  margin: 22px 0 0; max-width: 58ch;
  font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink);
}

.toc { position: sticky; top: 24px; }
.toc p { margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--blueline); }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1.5px;
  border-left: 3px solid transparent;
  font: 400 14px/1.35 var(--f-body); color: var(--ink-2); text-decoration: none;
}
.toc a:hover { color: var(--ink); border-left-color: var(--magenta); }

.prose { max-width: 62ch; }
.prose section { scroll-margin-top: 24px; }
.prose section + section { margin-top: 40px; }
.prose h2 {
  font: 700 clamp(21px, 2vw, 24px)/1.25 var(--f-body);
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.prose h3 { font: 700 17px/1.3 var(--f-body); margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--magenta); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--yellow); }
.prose dl { margin: 0 0 14px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.contact__lede { margin: 22px 0 0; max-width: 40ch; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); }
.contact__panel {
  position: relative;
  border: 3px solid var(--ink); border-radius: 4px;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(22,20,28,.16) 1.4px, transparent 1.6px) 0 0 / 9px 9px,
    var(--board-2);
  padding: clamp(24px, 4vw, 44px);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.balloon {
  position: relative; align-self: flex-start;
  max-width: 100%;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 28px;
  padding: 18px 24px;
  font: 600 clamp(19px, 2vw, 23px)/1.3 var(--f-letter);
}
.balloon::after {
  content: ""; position: absolute; left: 42px; bottom: -13px;
  width: 22px; height: 22px;
  background: #fff;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) skew(12deg, 12deg);
}
.contact__addr { margin: 0; }
.contact__addr a {
  display: inline-block;
  font: 700 clamp(17px, 1.75vw, 24px)/1.25 var(--f-script);
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: 3px solid var(--magenta);
}
.contact__addr a:hover { background: var(--yellow); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.copy-note { font: 400 14px/1 var(--f-script); color: var(--ink-2); min-height: 1em; }
.contact__topics { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46ch; }
.contact__topics li {
  padding-left: 26px; position: relative; color: var(--ink-2);
}
.contact__topics li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 9px;
  border: 1.5px solid var(--blueline-ink); border-radius: 1px;
}

/* ---------- indicia footer ---------- */
.indicia {
  margin: clamp(48px, 8vw, 96px) var(--edge) 0;
  padding: 26px 0 36px;
  border-top: var(--rule);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px;
  align-items: start;
}
.indicia__text {
  margin: 0; max-width: 78ch;
  font: 400 13.5px/1.6 var(--f-script);
  color: var(--ink-2);
}
.indicia__text b { color: var(--ink); }
.indicia__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.indicia__links a {
  font: 700 14px/1 var(--f-body);
  text-decoration: none; display: inline-block; padding: 8px 0;
}
.indicia__links a:hover { text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 18px; }
  .contact { grid-template-columns: 1fr; }
  .indicia { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .mast__word { font-size: 22px; }
  .mast__nav a.hide-sm { display: none; }
  .toc ol { columns: 1; }
  .board { margin-left: 12px; margin-right: 12px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
