:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #686868;
  --line: #ded8c7;
  --paper: #fffdf7;
  --band: #f5f0df;
  --gold: #ffc20e;
  --green: #176b4d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
}

button.secondary {
  background: var(--gold);
  color: var(--ink);
}

button.danger {
  background: #b42318;
  color: white;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  min-height: 44px;
  padding: 10px 12px;
}

.file-control {
  display: grid;
  gap: 8px;
}

.file-control span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.file-picker {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 44px;
  overflow: hidden;
  position: relative;
}

.file-picker input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.file-picker .file-picker-button {
  align-items: center;
  align-self: stretch;
  background: var(--ink);
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 900;
  padding: 0 14px;
}

.file-picker .file-picker-name {
  color: var(--muted);
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  padding-right: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.topbar {
  align-items: center;
  background: #0f0f0f;
  border-bottom: 4px solid var(--gold);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar p {
  margin: 2px 0 0;
  color: #f2f2f2;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 10px;
}

.brand {
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand::first-letter {
  color: white;
}

.brand-mark {
  aspect-ratio: 1;
  height: 42px;
  mix-blend-mode: screen;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  width: 42px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: white;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.chat-link {
  align-items: center;
  background: #25d366;
  border: 2px solid #0f0f0f;
  border-radius: 7px;
  color: #0f0f0f;
  display: inline-flex;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

main {
  min-height: 100vh;
}

.hero {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.96), rgba(15, 15, 15, 0.72)),
    linear-gradient(135deg, transparent 0 58%, rgba(255, 194, 14, 0.96) 58% 72%, transparent 72%),
    radial-gradient(circle at 82% 32%, rgba(255, 194, 14, 0.82), transparent 24%),
    #151515;
  color: white;
  min-height: 420px;
  padding: clamp(42px, 9vw, 110px) clamp(18px, 4vw, 56px);
}

.hero > div {
  max-width: 760px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 18px;
  max-width: 780px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.hero-copy {
  color: #f5f0df;
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  max-width: 720px;
}

.category-strip span {
  align-items: center;
  background: var(--gold);
  border: 2px solid #0f0f0f;
  border-radius: 7px;
  color: #0f0f0f;
  display: inline-flex;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 12px;
}

.band {
  padding: 48px clamp(18px, 4vw, 56px);
}

.band:nth-of-type(odd) {
  background: var(--band);
}

.section-title {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.item-card,
.queue-card,
.panel {
  background: white;
  border: 2px solid #141414;
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--gold);
}

.item-card,
.queue-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.item-photo {
  align-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(255, 194, 14, 0.9), rgba(255, 255, 255, 0.55)),
    #f4f4f4;
  border: 2px solid #141414;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.item-photo img {
  background: white;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.item-photo span {
  color: #141414;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.item-card strong {
  font-size: 18px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.price {
  color: #0f0f0f;
  font-size: 22px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 5vw, 58px);
}

.split > div:first-child p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
}

.panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-tools {
  display: none;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.admin-loaded .admin-tools {
  display: grid;
}

.admin-tool {
  min-width: 0;
}

.stack {
  display: grid;
  gap: 12px;
}

.request-board {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.request-card {
  background: white;
  border: 2px solid #141414;
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--gold);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.request-card strong {
  font-size: 17px;
}

.request-card button {
  justify-self: start;
}

.admin-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.admin-actions button {
  width: 100%;
}

.chat-card {
  gap: 14px;
}

.chat-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.chat-thread {
  background: #f5f0df;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
}

.chat-message {
  display: flex;
  margin: 0;
}

.chat-message span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-block;
  line-height: 1.35;
  max-width: 84%;
  padding: 9px 11px;
}

.chat-message.out {
  justify-content: flex-end;
}

.chat-message.out span {
  background: #dcf8c6;
}

.chat-reply {
  display: grid;
  gap: 8px;
}

.inventory-card .item-photo {
  aspect-ratio: 16 / 10;
}

.form-status {
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  min-height: 20px;
}

.form-status[data-kind="loading"] {
  color: #5c4500;
}

.form-status[data-kind="success"] {
  color: var(--green);
}

.form-status[data-kind="error"] {
  color: #b42318;
}

.token-form {
  display: grid;
  grid-template-columns: minmax(160px, 240px) auto;
  gap: 8px;
}

dialog {
  border: 0;
  border-radius: 8px;
  max-width: 460px;
  width: calc(100% - 28px);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

menu {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.site-footer {
  align-items: center;
  background: #0f0f0f;
  border-top: 4px solid var(--gold);
  color: white;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 18px;
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

#reserveForm {
  display: grid;
  gap: 12px;
}

#toast {
  background: var(--ink);
  border-radius: 7px;
  bottom: 18px;
  color: white;
  left: 50%;
  max-width: min(520px, calc(100% - 24px));
  opacity: 0;
  padding: 12px 16px;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .split,
  .admin-columns,
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .token-form {
    grid-template-columns: 1fr;
  }
}
