@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url(/assets/fonts/archivo-black.woff2) format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/libre-baskerville.woff2) format("woff2"); }

:root {
  --light: #F5F5F0; --dark: #2B2B2B; --surf: #E8E6D9; --bordeaux: #5D1C16; --negative: #9B2C2C;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--dark); font: 17px/1.6 var(--serif); }
main { max-width: 26rem; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
header { margin-bottom: 1.75rem; }
header img { display: block; height: 32px; width: auto; }

h1 { font: 1.75rem/1.15 var(--display); letter-spacing: -0.01em; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 3px; }
.aside { font-size: 0.9rem; color: color-mix(in srgb, var(--dark) 75%, var(--light)); margin-top: 1.25rem; }

/* Kortet: siden viser det kort, medarbejderen får. Grå kontur, indtil det er klar. */
.card {
  aspect-ratio: 1.586; border-radius: 14px; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; color: var(--dark);
  background: var(--surf); border: 1px dashed color-mix(in srgb, var(--dark) 35%, var(--surf));
  font-family: var(--sans); font-size: 0.9rem; line-height: 1.3;
}
.card p { margin: 0; }
.card-brand { font: 0.95rem/1 var(--display); margin-bottom: auto !important; }
.card-label { font-size: 0.7rem; opacity: 0.75; }
.card-name { font: 1.35rem/1.2 var(--display); margin-bottom: 0.6rem !important; min-height: 1.2em; overflow-wrap: anywhere; }
.card-row { display: flex; gap: 2rem; }
.card.ready { background: var(--bordeaux); color: var(--light); border: 1px solid var(--bordeaux); animation: arrive 600ms ease-out both; }
@keyframes arrive { from { background: var(--surf); color: var(--dark); transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .card.ready { animation: none; } }

form { margin: 1.5rem 0 0; }
label { display: block; font: 600 0.95rem/1.4 var(--sans); margin-bottom: 0.35rem; }
input {
  width: 100%; min-height: 52px; padding: 0 0.9rem; font: 1.2rem var(--sans); letter-spacing: 0.02em;
  color: var(--dark); background: #FFFFFF; border: 1.5px solid var(--dark); border-radius: 10px;
}
input#code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
input[aria-invalid="true"] { border-color: var(--negative); }
.error { color: var(--negative); font: 0.95rem/1.4 var(--sans); margin: 0.5rem 0 0; }

button, .wallet {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 1rem;
  font: 600 1.05rem var(--sans); color: var(--light); background: var(--dark); border: 0; border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.wallet { background: #000000; margin-top: 1.5rem; }
button.quiet { background: transparent; color: var(--dark); min-height: 44px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 2px; }
