
:root {
  --bg: #14110e; --bg-2: #1c1814; --card: #221c16; --ink: #f3eadc;
  --muted: #b7a894; --line: #3a3126; --brass: #d7b56d; --brass-2: #a9843e;
  --bad: #d58a6c; --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif; line-height: 1.5; min-height: 100vh; }
a { color: var(--brass); }
header, main, footer { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
header { padding: 28px 0 8px; display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.brand { font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin: 0; }
.tag { margin: 0; color: var(--muted); font-size: 14px; }
.notice, .warn { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; margin: 16px 0 8px; }
.warn { border-color: var(--bad); color: var(--ink); }
h2 { font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-2); margin: 28px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 63 / 50; object-fit: cover; background: #000; display: block; }
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; flex: 1; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.price { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; color: var(--brass); }
button, .btn { appearance: none; border: 0; border-radius: 999px; background: var(--brass); color: #1a140c; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 13px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
button.secondary, .btn.secondary { background: transparent; color: var(--brass); border: 1px solid var(--brass-2); }
footer { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; padding: 40px 0 48px; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); color: var(--ink); width: min(520px, 92vw); padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.65); }
.modal { padding: 20px; }
.modal h3 { margin: 0 0 8px; }
.modal label { display: block; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; margin: 12px 0 6px; }
.modal input { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 8px 10px; font-size: 14px; }
.ticket { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

nav { display: flex; flex-wrap: wrap; gap: 12px 16px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; padding-bottom: 8px; }
nav a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus { color: var(--brass); border-bottom-color: var(--brass-2); }
.lead { margin: 20px 0 8px; padding: 20px 22px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lead h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; }
.lead-text { margin: 0 0 16px; color: var(--ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 15px; max-width: 62ch; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.card .related { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.card .related a { text-decoration: underline; text-underline-offset: 2px; }
.card.lead-card { border-color: var(--brass-2); }
@media (max-width: 640px) {
  header { flex-direction: column; align-items: start; }
  .lead h1 { font-size: 22px; }
}
