/* The look follows prescottone80.com: white pages, black text, the blue from
   the One80° logo, and tall capital headlines (the site uses Impact; Anton is
   the same style and works on phones). The logo is white, so it always sits
   on a black band. */

/* Anton by Vernon Adams, SIL Open Font License 1.1. */
@font-face {
  font-family: "Anton";
  src: url("/vendor/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0099ff;
  --blue-dark: #007fd6;
  --blue-text: #0074c7; /* the logo blue is too pale for small text on white */
  --ink: #000000;
  --muted: #595959;
  --line: #dedede;
  --edge: #8c8c8c;
  --paper: #ffffff;
  --page: #ffffff;
  --good: #15803d;
  --bad: #c62828;
  --headline: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 16px;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.45 "Avenir Next", Avenir, "Century Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card.wide { max-width: 720px; }

/* the black band across the top of every card, holding the logo */
.brand {
  margin: -21px -21px 18px;
  padding: 14px 16px;
  border-radius: 10px 10px 0 0;
  background: #000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.brand img { display: block; width: 210px; max-width: 75%; height: auto; margin: 0 auto; }
.brand.small { padding: 8px 16px; }
.brand.small img { width: 130px; }

h1 {
  margin: 0 0 12px;
  font-family: var(--headline);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
p { margin: 0 0 12px; }
.lead { font-size: 1.1rem; }
.hint { color: var(--muted); font-size: 0.92rem; }
.error { color: var(--bad); font-weight: 600; min-height: 1.4em; }
a { color: var(--blue-text); }

/* forms */
label { display: block; margin: 14px 0 6px; font-weight: 600; }
input:not([type="checkbox"]):not([type="file"]) {
  width: 100%;
  padding: 13px 12px;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus-visible, button:focus-visible, .btn:focus-visible, a:focus-visible,
.btn:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* buttons: white with a black edge; the blue one is the next thing to do */
.btn {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 15px 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:active { background: #ececec; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #000; }
.btn.primary:active { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.big { padding: 21px 16px; font-size: 1.1rem; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.quiet {
  border-color: transparent;
  background: none;
  color: var(--blue-text);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
  text-transform: none;
}
.btn.small { display: inline-block; width: auto; margin: 0; padding: 9px 13px; border-width: 1.5px; font-size: 0.8rem; }
.btn:disabled, .btn.disabled { opacity: 0.5; pointer-events: none; }
button.link {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--blue-text);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}
button.link.danger { color: var(--bad); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* the guest's number */
.big-number {
  margin: 4px 0 16px;
  color: var(--blue);
  font-family: var(--headline);
  font-size: clamp(6rem, 38vw, 10rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#number-view { text-align: center; }

/* keypads */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.key {
  padding: 16px 0;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.key:active { background: var(--blue); border-color: var(--blue); }
.digits { display: flex; justify-content: center; gap: 10px; margin: 8px 0; }
.digits span {
  width: 64px;
  height: 78px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  font-family: var(--headline);
  font-size: 3rem;
  line-height: 74px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* PIN screen */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: auto;
  padding: 16px;
  background: var(--page);
}
.pin-card { max-width: 360px; text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 16px 0 10px; }
.pin-dots span { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; }
.pin-dots span.on { background: var(--ink); }

/* staff + send */
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.top strong {
  font-family: var(--headline);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.top a { font-size: 0.95rem; }
.guest-head { display: flex; align-items: center; gap: 12px; }
.badge {
  flex: none;
  min-width: 64px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--blue);
  color: #000;
  font-family: var(--headline);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.guest-name { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.sent { color: var(--good); font-size: 0.9rem; font-weight: 600; }
#shot { margin-top: 14px; text-align: center; }
#shot img { max-width: 100%; max-height: 46vh; border-radius: 6px; }
#status { margin: 8px 0 0; font-weight: 700; }
#status.ok { color: var(--good); }
#status.bad { color: var(--bad); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tab {
  padding: 9px 12px;
  border: 1.5px solid var(--edge);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.guest-list { list-style: none; margin: 12px 0 0; padding: 0; }
.guest { padding: 14px 0; border-top: 1px solid var(--line); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumb img { display: block; width: 96px; height: 96px; border-radius: 6px; object-fit: cover; background: #ececec; }
.thumb-actions { display: flex; justify-content: space-between; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.row-actions.footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* guest photo page */
.photo { margin: 0 0 18px; }
.photo img { display: block; width: 100%; border-radius: 6px; }

/* poster */
.poster { max-width: 640px; text-align: center; }
.poster .brand { padding: 22px 16px; }
.poster .brand img { width: 320px; }
.poster h1 { font-size: 2.8rem; }
.poster-lead { font-size: 1.6rem; font-weight: 700; }
.poster canvas { width: min(100%, 460px); height: auto; image-rendering: pixelated; }
.poster-url { font-size: 1.2rem; overflow-wrap: anywhere; }

@media print {
  body { padding: 0; }
  .card { max-width: none; border: 0; }
  .brand { margin: 0 0 28px; border-radius: 10px; }
  .no-print { display: none !important; }
}
