/* =====================================================================
   msgbackup-extractor — workshop linocut broadside
   Seed: 8c512068 · challenger-linolschnitt (chosen over the assigned roll)

   One ink on cheap manila. Everything that looks carved IS carved at
   runtime: an SVG displacement filter roughens the display type and the
   rules, and the paper fibre is feTurbulence, not a photograph. No
   external asset, no network request, no analytics — the software
   promises offline operation and its website must not undercut that.

   The legal pages share this stylesheet. `.container` is their column;
   `.mail-at::before` carries the @ of the address, which is split across
   spans in the HTML so a harvester finds nothing whole. Both must survive
   any future edit.
   ===================================================================== */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/ArchivoBlack.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --ink: #15120e;         /* relief black, warmed by the paper */
  --ink-soft: #4a4033;    /* aged fibre, for the second rank */
  --ink-faint: #7a6e5a;   /* ink drag, for labels */
  --paper: #d6c4a3;       /* newsprint beige */
  --paper-worn: #b79f7a;  /* worn tan */
  --carved: #f2e8d6;      /* carved white, knocked out of the block */

  --rule: 3px;
  --frame: 4px;
  --col: 1180px;

  --display: "Archivo Black", "Haettenschweiler", "Impact", sans-serif;
  --text: "Archivo", ui-sans-serif, system-ui, "Helvetica Neue", sans-serif;
}

/* The press only ever ran one ink on one paper. No dark variant: a
   broadside is a physical object and this one is printed on manila. */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Paper fibre. One turbulence pass, multiplied over everything, pinned to
   the viewport so scrolling does not slide the grain across the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)' opacity='0.42'/%3E%3C/svg%3E");
}

/* --- Type ---------------------------------------------------------- */

h1, h2, .cut {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.9;
  margin: 0;
  filter: url(#carve);
}

/* The filter costs legibility below display size, so it stops there. */
h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

.no-carve { filter: none; }

p { margin: 0 0 0.85rem; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
strong { font-weight: 700; }

code, .cmd {
  font-family: var(--text);
  font-weight: 700;
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
}

.label {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hint {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* --- Sheet and panels ---------------------------------------------- */

.sheet {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.rule {
  border: 0;
  border-top: var(--rule) solid var(--ink);
  margin: 0;
  filter: url(#carve);
}

.panel {
  min-width: 0;
  border: var(--rule) solid var(--ink);
  padding: 1.5rem 1.4rem;
  background: transparent;
}

.panel--ink {
  background: var(--ink);
  color: var(--carved);
}
.panel--ink .label,
.panel--ink h2,
.panel--ink h3 { color: var(--carved); }
.panel--ink .hint { color: var(--paper-worn); }

.grid { display: grid; gap: var(--rule); }

/* Panels butt against each other so the shared rule reads as one cut
   line rather than two borders side by side. */
.grid--butt { gap: 0; }
.grid--butt > * + * { border-left: 0; }
@media (max-width: 700px) {
  .grid--butt > * + * { border-left: var(--rule) solid var(--ink); border-top: 0; }
}

/* --- Section heads -------------------------------------------------- */

.head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 3.25rem 0 1rem;
}
.head__no {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border: var(--rule) solid var(--ink);
  padding: 0.15rem 0.5rem 0.05rem;
  flex: none;
}
.head h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }

/* --- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.72rem 1.35rem 0.62rem;
  border: var(--rule) solid var(--ink);
  position: relative;
}
.btn--fill { background: var(--ink); color: var(--carved); }
.btn--out { background: transparent; color: var(--ink); }

/* The board's active state: chisel bursts struck at both ends. */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 32px;
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.12s steps(3, end);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.btn::before {
  right: 100%;
  transform-origin: right center;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2032%27%3E%3Cg%20fill%3D%27%2315120e%27%3E%3Cpath%20d%3D%22M27.0%2016.0L16.38%204.63L14.58%206.63Z%22%2F%3E%3Cpath%20d%3D%22M27.0%2016.0L8.50%207.07L7.49%209.57Z%22%2F%3E%3Cpath%20d%3D%22M27.0%2016.0L2.50%2014.65L2.50%2017.35Z%22%2F%3E%3Cpath%20d%3D%22M27.0%2016.0L7.49%2022.43L8.50%2024.93Z%22%2F%3E%3Cpath%20d%3D%22M27.0%2016.0L14.58%2025.37L16.38%2027.37Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
/* Gespiegelt wird das SVG selbst. Die CSS-Eigenschaft `scale` spiegelt um
   transform-origin und wuerde die Marke zurueck ueber den Knopf werfen. */
.btn::after {
  left: 100%;
  transform-origin: left center;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2028%2032%27%3E%3Cg%20fill%3D%27%2315120e%27%3E%3Cpath%20d%3D%22M1.0%2016.0L13.42%206.63L11.62%204.63Z%22%2F%3E%3Cpath%20d%3D%22M1.0%2016.0L20.51%209.57L19.50%207.07Z%22%2F%3E%3Cpath%20d%3D%22M1.0%2016.0L25.50%2017.35L25.50%2014.65Z%22%2F%3E%3Cpath%20d%3D%22M1.0%2016.0L19.50%2024.93L20.51%2022.43Z%22%2F%3E%3Cpath%20d%3D%22M1.0%2016.0L11.62%2027.37L13.42%2025.37Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after { transform: translateY(-50%) scaleX(1); }
.btn:focus-visible { outline: var(--rule) solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn::after { transition: none; }
}

/* --- Masthead ------------------------------------------------------- */

.masthead {
  border-bottom: var(--frame) solid var(--ink);
  filter: none;
}
.masthead__in {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-right: auto;
}
.wordmark svg { width: 34px; height: 34px; flex: none; }
.masthead nav {
  display: flex;
  gap: 1.1rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}
.masthead nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: var(--ink); }

/* --- Hero ----------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 0.91fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding: 2.25rem 0 2rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.05vw, 3.6rem);
  line-height: 0.87;
}
.hero h1 span { white-space: nowrap; }
/* Hand-set lines never sit perfectly square on the stone. */
.hero h1 span { display: block; }
.hero h1 span:nth-child(1) { transform: rotate(-0.7deg); }
.hero h1 span:nth-child(2) { transform: rotate(0.45deg) translateX(0.4vw); }
.hero h1 span:nth-child(3) { transform: rotate(-0.3deg); }
.hero > div:first-child { padding-right: 1.25rem; }
@media (max-width: 860px) {
  .hero > div:first-child { padding-right: 0; }
}
.hero__deck {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.4;
  max-width: 34ch;
  margin: 1.4rem 0 1.6rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; align-items: center; }
.hero__art { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 1.75rem; }
  .hero__art { max-width: 26rem; margin: 0 auto; }
}

/* --- Folder tree ---------------------------------------------------- */

.tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.tree li { padding: 0.24rem 0 0.24rem 0; }
/* Each level is stepped by a cut rule rather than a box-drawing character,
   which would need a monospaced face this world does not have. */
.tree__root { color: var(--carved); border-bottom: 2px solid var(--carved); padding-bottom: 0.4rem !important; margin-bottom: 0.3rem; }
.tree__1 { padding-left: 1rem !important; border-left: 2px solid var(--paper-worn); margin-left: 0.15rem; }
.tree__2 { padding-left: 2.25rem !important; border-left: 2px solid var(--paper-worn); margin-left: 0.15rem; position: relative; }
.tree__2::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 0.7rem;
  border-top: 2px solid var(--paper-worn);
}
.tree i { font-style: normal; color: var(--paper-worn); font-weight: 600; }

/* --- Contact-sheet stand-in ----------------------------------------- */

.sheetgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(88px, 100%), 1fr));
  gap: var(--rule);
  margin-top: 1rem;
}
.sheetgrid svg { width: 100%; height: auto; display: block; border: var(--rule) solid var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: var(--rule); margin-bottom: 1rem; }
.chip {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: var(--rule) solid var(--ink);
  padding: 0.32rem 0.6rem 0.24rem;
}
.chip--on { background: var(--ink); color: var(--carved); }

/* --- Verdict rows (messengers) -------------------------------------- */

.verdict { display: flex; align-items: flex-start; gap: 0.85rem; }
.verdict > div { min-width: 0; }
.verdict svg { width: 30px; height: 30px; flex: none; margin-top: 0.1rem; }
.verdict h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

/* --- Steps ---------------------------------------------------------- */

.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.1rem; align-items: start; }
.step + .step { margin-top: 1.6rem; }
.step__no {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--carved);
  filter: url(#carve);
}
.step h3 { font-size: 1.1875rem; margin-bottom: 0.3rem; }
.cmdbar {
  max-width: 100%;
  background: var(--ink);
  color: var(--carved);
  padding: 0.7rem 0.85rem;
  margin-top: 0.55rem;
  overflow-x: auto;
  white-space: pre;
  font-weight: 700;
  font-size: 0.875rem;
}
.cmdbar span { color: var(--paper-worn); }

/* --- Requirements cells --------------------------------------------- */

.reqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0;
  border: var(--rule) solid var(--ink);
}
.reqs > div { padding: 1.25rem 1.15rem; border-right: var(--rule) solid var(--ink); }
.reqs > div:last-child { border-right: 0; }
@media (max-width: 820px) {
  .reqs > div { border-right: 0; border-bottom: var(--rule) solid var(--ink); }
  .reqs > div:last-child { border-bottom: 0; }
}
.reqs svg { width: 38px; height: 38px; margin-bottom: 0.7rem; }
.reqs h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }

/* --- Footer --------------------------------------------------------- */

.colophon {
  margin-top: 3.5rem;
  padding-bottom: 0;
}
.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.8rem;
  border-top: var(--frame) solid var(--ink);
  padding-top: 1.5rem;
  padding-bottom: 1.3rem;
  border-bottom: var(--rule) solid var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}
.colophon nav a { text-decoration: none; border-bottom: 2px solid var(--ink); }

/* Two columns of small print, then the press mark. A broadside ends on the
   sheet's edge, not in the middle of empty paper. */
.colophon__small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0.4rem 2.5rem;
  padding: 1.3rem 0 1.5rem;
}
.colophon__small p { margin: 0; max-width: 58ch; }
.colophon__mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: var(--rule) solid var(--ink);
  padding: 1.1rem 0 0;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.colophon__mark svg { width: 26px; height: 26px; flex: none; }
.colophon__mark span:last-child { margin-left: auto; color: var(--ink-soft); }
@media (max-width: 620px) {
  .colophon__mark { flex-wrap: wrap; }
  .colophon__mark span:last-child { margin-left: 0; width: 100%; }
}

.tools { position: absolute; }

/* --- Layout variants used by the sheet ------------------------------ */

.grid--two        { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.grid--wide-left  { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.grid--thirds     { grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr)); }

@media (max-width: 860px) {
  .grid--two,
  .grid--wide-left { grid-template-columns: minmax(0, 1fr); gap: var(--rule); }
}

.label--spaced { margin-bottom: 0.9rem; }
.label--tight  { margin-bottom: 0.6rem; }
.hint--top     { margin-top: 1rem; margin-bottom: 0; }

.lede {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.lede--flush { margin: 0; max-width: 70ch; }

.panel--stacked {
  margin-top: var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: start;
}
@media (max-width: 700px) {
  .panel--stacked { grid-template-columns: minmax(0, 1fr); }
}
.panel__cta { margin: 1.25rem 0 0; }

/* On the ink panel an outlined button would vanish, so it takes the paper
   as its own ground and stays a struck block. */
.btn--on-ink {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cmdbar--invert {
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 1rem;
}
.cmdbar--invert span { color: var(--ink-faint); }

/* Three proofs sharing one block, divided by cut rules rather than boxes. */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: var(--rule) solid var(--ink);
}
.proof h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.proof > * + * { padding-left: 1.4rem; border-left: var(--rule) solid var(--ink); }
@media (max-width: 760px) {
  .proof > * + * { padding-left: 0; border-left: 0; padding-top: 1.1rem; border-top: var(--rule) solid var(--ink); }
}

/* Ein Panel ueber die ganze Bogenbreite, fuer Bloecke, die keine Nachbarn
   haben - der App-Hinweis und die Bitte um Rueckmeldung. */
.panel--wide { margin-top: var(--rule); }
.cmdbar--roomy { margin: 1rem 0 1.1rem; font-size: 1rem; }

/* --- Legal pages ---------------------------------------------------- */
/* Impressum and Datenschutz share the world: same paper, same ink, same
   faces, set as a single reading column. */

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
main.container { padding-top: clamp(2.5rem, 8vw, 4.5rem); padding-bottom: 3rem; }
main.container h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 0.4rem; }
main.container h2 {
  font-size: 1.0625rem;
  margin: 2.5rem 0 0.6rem;
  padding-top: 0.9rem;
  border-top: var(--rule) solid var(--ink);
  filter: none;
  letter-spacing: 0.04em;
}
main.container p { line-height: 1.6; }
main.container small { color: var(--ink-soft); font-size: 0.875rem; }
footer.container {
  border-top: var(--rule) solid var(--ink);
  padding-top: 1.2rem;
  padding-bottom: 3rem;
  font-size: 0.9375rem;
}
footer.container p { margin: 0; }

/* The @ lives only here. Without JavaScript the address stays fully
   readable, it is merely not clickable. */
.mail-at::before { content: "@"; }

/* --- Print ---------------------------------------------------------- */
/* It is a broadside. It should survive being printed. */
@media print {
  body::before { display: none; }
  .masthead nav, .hero__cta { display: none; }
  h1, h2, h3, .cut, .rule, .step__no { filter: none; }
}
