/* tokens
   fabric (cubicle wall): #837e6e base, subtle diagonal weave
   laminate: #fbfaf4 to #ece9dc
   ink: #23271f   muted: #6b6656   accent (safety stripe): #b5651d
   lanyard: #1f2937
   type: Lexend (bundled) for labels/values, IBM Plex Mono (bundled) for barcode/ticker/CA
   corner radius: 14px on the badge (it is a real ID card, not a UI card)
   motion: the whole hang (strap + clip + badge) sways -3deg/3deg, 4.6s, like it caught a vent
*/

@font-face { font-family:"Lexend"; src:url("assets/fonts/lexend-latin-400-normal.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Lexend"; src:url("assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Lexend"; src:url("assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Lexend"; src:url("assets/fonts/lexend-latin-700-normal.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 9px),
    linear-gradient(180deg, #8d8874 0%, #736e5b 100%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3vh 4vw 4vh;
  font-family: "Lexend", "Helvetica Neue", Arial, sans-serif;
  color: #23271f;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hang {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0%;
  animation: sway 4.6s ease-in-out infinite;
}

@keyframes sway {
  0%   { transform: rotate(-3deg); }
  50%  { transform: rotate(3deg); }
  100% { transform: rotate(-3deg); }
}

.strap {
  width: 22px;
  height: 34px;
  background: repeating-linear-gradient(180deg, #263141 0px, #263141 6px, #1a212c 6px, #1a212c 8px);
  border-radius: 3px 3px 0 0;
}

.clip {
  width: 30px;
  height: 16px;
  margin-top: -3px;
  background: linear-gradient(180deg, #cfd3d8, #8b9096);
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.35);
}

.badge {
  position: relative;
  width: min(90vw, 380px);
  margin-top: -2px;
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: linear-gradient(155deg, #fbfaf4 0%, #f3f1e6 55%, #eae7d8 100%);
  box-shadow:
    0 22px 40px rgba(20, 18, 10, 0.35),
    inset 0 0 0 1px rgba(35,39,31,0.08);
}

.punch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  border-radius: 8px;
  background: #736e5b;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.4);
}

.badge__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #b5651d;
  color: #b5651d;
}

.knot { width: 20px; height: 20px; flex: none; }

.badge__bar-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.badge__bar-tag {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #6b6656;
  font-weight: 500;
}

.badge__body {
  display: flex;
  gap: 14px;
}

.photo {
  width: 104px;
  height: 128px;
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(35,39,31,0.15);
  background: #ddd8c4;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.field { display: flex; flex-direction: column; gap: 1px; }

.field dt {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #6b6656;
  font-weight: 500;
}

.field dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #23271f;
  overflow-wrap: anywhere;
}

.line {
  margin: 14px 0 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: #4a4737;
  line-height: 1.4;
}

.badge__strip {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(35,39,31,0.25);
}

.barcode {
  height: 26px;
  margin-bottom: 8px;
  background: repeating-linear-gradient(90deg, #23271f 0px, #23271f 1px, transparent 1px, transparent 2px, #23271f 3px, #23271f 4px, transparent 4px, transparent 7px);
  opacity: 0.85;
}

.strip-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ticker {
  font-size: 11px;
  font-weight: 600;
  color: #23271f;
}

.sep { color: #b0aa90; }

.ca {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #23271f;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-transform: none;
  border-bottom: 1px dotted #9c9576;
  word-break: break-all;
}

.credit {
  margin-top: 20px;
  display: flex;
  gap: 1.4em;
}

.credit a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #eae6d6;
  text-decoration: none;
  border-bottom: 1px solid rgba(234,230,214,0.4);
  padding-bottom: 1px;
}

.credit a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hang { animation: none; transform: rotate(-1.5deg); }
}

@media (max-width: 420px) {
  .badge__body { gap: 10px; }
  .photo { width: 88px; height: 108px; }
}
