/* Panzerotto P08 theme, shared by the public menu and the admin page.
   Retro-digital brutalism: sharp corners, thick ink borders, hard offset
   shadows, Anybody headlines, Hanken Grotesk body, Space Mono labels. */

:root {
  --paper: #fef7ff;
  --paper-2: #f3ebf8;
  --lav: #eee1ff;
  --dot: #e7e0ed;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #4a4454;
  --purple: #5617be;      /* overridden by the "accent colour" shop setting */
  --purple-deep: #3d0091;
  --gold: #fec64f;
  --gold-ink: #261900;
  --blue: #00adef;
  --red: #ba1a1a;
  --green: #1d7a46;

  --f-head: "Anybody", "Arial Black", Arial, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bw: 3px;              /* default border width */
  --press: 2px;           /* how far buttons move when pressed */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Type ---------- */
.headline {
  font-family: var(--f-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.mono, .kicker {
  font-family: var(--f-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker { font-size: 12px; color: var(--purple); }

/* Dot "dither" texture used behind content areas */
.dither {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 2px, transparent 2px);
  background-size: 10px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  --btn-fg: #fff;
  --btn-shadow: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  font: 700 14px/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(var(--press), var(--press)); box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-shadow); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--btn-shadow); }
.btn-gold  { --btn-bg: var(--gold);  --btn-fg: var(--ink); }
.btn-blue  { --btn-bg: var(--blue);  --btn-fg: var(--ink); }
.btn-white { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-shadow: var(--blue); }
.btn-ghost { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn-danger { --btn-bg: var(--white); --btn-fg: var(--red); --btn-shadow: var(--red); border-color: var(--red); }
.btn-sm { min-height: 38px; padding: 8px 12px; font-size: 12px; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn-sm:hover { box-shadow: 1px 1px 0 var(--btn-shadow); }

/* ---------- Chips ---------- */
.chip {
  display: inline-block;
  padding: 4px 8px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  font: 700 11px/1.1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-blue { background: var(--blue); }
.chip-red { background: var(--red); color: #fff; }
.chip-purple { background: var(--purple); color: #fff; }
.chip-ink { background: var(--ink); color: var(--gold); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ---------- Form fields ---------- */
.field-label {
  display: block;
  margin: 16px 0 6px;
  font: 700 12px/1.3 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.input,
input[type=text], input[type=number], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  font: 400 16px/1.4 var(--f-body);  /* 16px stops iOS zooming on focus */
  appearance: none;
  -webkit-appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 3px 3px 0 var(--blue); }
::placeholder { color: #675f71; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; }

/* Square "pixel" switch built on a checkbox */
.toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 52px;
  height: 28px;
  margin: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--ink);
  transition: transform 0.15s ease;
}
.toggle:checked { background: var(--blue); }
.toggle:checked::after { transform: translateX(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
