@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --crimson: #C6283D;
  --crimson-deep: #951B2E;
  --crimson-ink: #5E0F1C;
  --blush: #FCE8EB;
  --stock: #FFFFFF;
  --stock-2: #F7F4F3;
  --ink: #211A1B;
  --ink-2: #5A4E50;
  --rule: #211A1B;
  --hair: #D9CFD0;
  /* ISBT label colour coding by ABO group */
  --group-O: #2D63C8;
  --group-A: #F2C230;
  --group-B: #EE86AC;
  --group-AB: #FFFFFF;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--crimson-deep) var(--stock-2); }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--crimson); caret-color: var(--crimson); }
::selection { background: var(--ink); color: var(--stock); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-crimson :focus-visible { outline-color: var(--stock); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-stretch: 75%; line-height: 1; letter-spacing: -.02em; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--stock); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 18px 24px; color: var(--stock); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-stretch: 80%; font-size: 1.375rem; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: currentColor; }
.masthead nav { display: flex; align-items: center; gap: 22px; font-size: .9375rem; font-weight: 600; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 6px; font: 700 1rem/1 var(--sans); font-stretch: 90%; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary { background: var(--crimson); color: var(--stock); box-shadow: 0 8px 18px -8px rgba(94, 15, 28, .55); }
.btn-primary:hover { background: var(--crimson-deep); transform: translateY(-1px); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 8px -4px rgba(94, 15, 28, .55); }
.btn-ghost { border-color: currentColor; color: inherit; min-height: 40px; padding: 0 16px; }
.btn-ghost:hover { background: var(--stock); color: var(--crimson); text-decoration: none; }
.btn-light { background: var(--stock); color: var(--crimson-deep); box-shadow: 0 8px 18px -8px rgba(60, 6, 16, .6); }
.btn-light:hover { transform: translateY(-1px); text-decoration: none; }

/* The label */
.label-wrap { max-width: 1240px; margin: 0 auto; padding: 8px 24px 64px; }
.label {
  background: var(--stock); border-radius: 10px; overflow: hidden;
  border: 2px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 24px 48px -24px rgba(60, 6, 16, .6);
  display: grid; grid-template-columns: 1.3fr 1fr;
  grid-template-areas: "id group" "pitch read" "caution caution";
}
.label > * { padding: 28px 32px; }
.q-id { grid-area: id; border-right: 2px solid var(--rule); border-bottom: 2px solid var(--rule); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.q-group { grid-area: group; border-bottom: 2px solid var(--rule); background: var(--group-color, var(--group-O)); color: var(--group-text, var(--stock)); transition: background-color .45s var(--ease), color .45s var(--ease); display: flex; flex-direction: column; gap: 16px; }
.q-pitch { grid-area: pitch; border-right: 2px solid var(--rule); display: flex; flex-direction: column; gap: 22px; justify-content: flex-end; }
.q-read { grid-area: read; display: flex; flex-direction: column; gap: 18px; }
.q-caution { grid-area: caution; border-top: 2px solid var(--rule); padding-block: 14px; font-size: .8125rem; line-height: 1.45; color: var(--ink-2); display: flex; gap: 14px; align-items: baseline; }
.q-caution strong { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--ink); flex: none; }

.field-name { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; }
.wordmark { font-weight: 900; font-stretch: 62%; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .86; letter-spacing: -.035em; color: var(--crimson); }
.wordmark small { display: block; font-size: .9375rem; font-weight: 700; font-stretch: 100%; letter-spacing: .02em; color: var(--ink); margin-top: 10px; line-height: 1.2; }
.barcode { display: block; width: 100%; max-width: 360px; height: 56px; color: var(--ink); }
.barcode-text { font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; margin-top: 4px; }

.group-glyph { font-weight: 900; font-stretch: 62%; font-size: clamp(6.5rem, 15vw, 12rem); line-height: .8; letter-spacing: -.04em; margin-top: auto; }
.group-glyph.printing { animation: print .5s var(--ease); }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-6px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.picker button { font: 800 1rem/1 var(--sans); font-stretch: 80%; min-height: 40px; border-radius: 5px; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.picker button:hover { background: rgba(255,255,255,.25); }
.picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--stock); }

.q-pitch h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 850; font-stretch: 70%; line-height: .96; letter-spacing: -.025em; }
.q-pitch h1 em { font-style: normal; color: var(--crimson); }
.lede { max-width: 46ch; color: var(--ink-2); font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.status { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }

.readout h2 { font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; margin-bottom: 10px; display: flex; justify-content: space-between; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { display: grid; place-items: center; min-height: 40px; border-radius: 5px; font-weight: 850; font-stretch: 75%; font-size: 1.0625rem; border: 1.5px dashed var(--hair); color: #776B6D; text-decoration: line-through; text-decoration-thickness: 1.5px; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chips li.yes { text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: var(--chip, var(--stock)); }
.chips li.yes.dark { color: var(--stock); }
.footnote { font-size: .8125rem; color: var(--ink-2); line-height: 1.45; margin-top: auto; }

/* Sheet: the printed insert below the label */
.sheet { background: var(--stock); }
.sheet-inner { max-width: 1240px; margin: 0 auto; padding: 96px 24px; }
.sheet + .sheet .sheet-inner { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px 48px; align-items: end; padding-bottom: 28px; border-bottom: 2px solid var(--rule); }
.section-head h2 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 850; font-stretch: 68%; }
.section-head p { color: var(--ink-2); max-width: 52ch; }

.record { width: 100%; border-collapse: collapse; }
.record th, .record td { text-align: left; vertical-align: top; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--hair); }
.record thead th { font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-block: 14px; border-bottom: 1px solid var(--rule); }
.record tbody th { width: 22%; font-weight: 850; font-stretch: 72%; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.record .who { width: 16%; font-weight: 700; font-stretch: 90%; color: var(--crimson-deep); padding-top: 26px; }
.record td:last-child { max-width: 60ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--rule); border-radius: 10px; overflow: hidden; margin-top: 40px; }
.split > div { padding: 32px; }
.split h3 { font-size: 1.75rem; font-weight: 850; font-stretch: 72%; margin-bottom: 6px; }
.split .sub { color: var(--ink-2); font-size: .9375rem; margin-bottom: 18px; }
.sealed { background: var(--stock-2); border-left: 2px dashed var(--rule); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
.items li span { color: var(--ink-2); font-size: .9375rem; grid-column: 1 / -1; }
.items b { font-weight: 750; font-stretch: 90%; }
.items .tag { font-style: normal; font-size: .875rem; font-weight: 700; font-stretch: 90%; align-self: center; }
.sealed .tag { color: var(--crimson-deep); }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 12px; }
.spec div { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.spec dt { font-weight: 850; font-stretch: 72%; font-size: 1.5rem; line-height: 1.1; margin-bottom: 6px; }
.spec dd { margin: 0; color: var(--ink-2); max-width: 44ch; }

/* Closing band */
.band { max-width: 1240px; margin: 0 auto; padding: 88px 24px; color: var(--stock); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; align-items: end; }
.band h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; font-stretch: 62%; line-height: .9; }
.band p { color: var(--blush); max-width: 44ch; margin-bottom: 20px; }

.footer { background: var(--ink); color: #D8CDCE; font-size: .875rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--stock); }

/* Privacy document */
.doc-title { max-width: 1240px; margin: 0 auto; padding: 8px 24px 48px; }
.doc-title .label { grid-template-columns: 1.6fr 1fr; grid-template-areas: "title meta"; }
.doc-title h1 { grid-area: title; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; font-stretch: 62%; line-height: .86; letter-spacing: -.035em; color: var(--crimson); border-right: 2px solid var(--rule); }
.doc-meta { grid-area: meta; display: grid; gap: 14px; align-content: end; }
.doc-meta div { display: grid; gap: 2px; }
.doc-meta dd { margin: 0; font-weight: 700; font-stretch: 90%; overflow-wrap: anywhere; }
.doc { background: var(--stock); }
.doc-inner { max-width: 1240px; margin: 0 auto; padding: 72px 24px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: .9375rem; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--rule); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--hair); counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 9px 0; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--ink-2); padding-top: 3px; }
.toc a:hover { color: var(--crimson-deep); }
.prose { max-width: 68ch; }
.prose section { padding-top: 8px; margin-bottom: 48px; scroll-margin-top: 24px; }
.prose h2 { font-size: 2rem; font-weight: 850; font-stretch: 70%; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--rule); }
.prose h3 { font-size: 1.125rem; font-weight: 800; font-stretch: 90%; letter-spacing: 0; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--crimson); }
.prose .note { border: 2px solid var(--rule); border-radius: 8px; padding: 16px 18px; background: var(--blush); }

@media (max-width: 900px) {
  .label { grid-template-columns: 1fr; grid-template-areas: "id" "group" "pitch" "read" "caution"; }
  .spec { grid-template-columns: 1fr 1fr; }
  .q-id, .q-pitch { border-right: 0; }
  .q-id { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .q-pitch { border-bottom: 2px solid var(--rule); }
  .q-id { border-bottom: 2px solid var(--rule); }
  .q-group { border-bottom: 2px solid var(--rule); }
  .barcode { max-width: 220px; height: 40px; }
  .section-head, .band, .split { grid-template-columns: 1fr; }
  .sealed { border-left: 0; border-top: 2px dashed var(--rule); }
  .doc-inner { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .doc-title .label { grid-template-columns: 1fr; grid-template-areas: "title" "meta"; }
  .doc-title h1 { border-right: 0; border-bottom: 2px solid var(--rule); }
}
@media (max-width: 600px) {
  .masthead { padding: 14px 16px; }
  .masthead nav { gap: 14px; }
  .masthead .hide-sm { display: none; }
  .label-wrap, .doc-title { padding-inline: 12px; }
  .label > * { padding: 22px 18px; }
  .q-id { padding-block: 16px; }
  .q-id > [aria-hidden] { display: none; }
  .wordmark { font-size: 2.75rem; }
  .q-group { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding-block: 16px; }
  .q-group .field-name { width: 100%; }
  .group-glyph { font-size: 5rem; margin: 0; }
  .picker { flex: 1; min-width: 180px; }
  .picker button { min-height: 36px; }
  .spec { grid-template-columns: 1fr; }
  .sheet-inner { padding: 64px 16px; }
  .band { padding: 64px 16px; }
  .record thead { display: none; }
  .record, .record tbody, .record tr, .record th, .record td { display: block; width: auto; }
  .record tr { padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .record th, .record td { border: 0; padding: 0; }
  .record .who { padding: 6px 0 8px; }
  .split > div { padding: 24px 18px; }
  .q-caution { flex-direction: column; gap: 4px; }
  .doc-inner { padding: 48px 16px 72px; }
  .footer-inner { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
