:root {
  --ink: #f7f1e3;          /* chalk */
  --dim: #c9bfa8;
  --bg: #15110e;           /* old bar wood, dark */
  --board: #1f2a24;        /* chalkboard green-black */
  --neon: #ffb347;         /* amber sign */
  --red: #d9482b;          /* bar-sign red */
  --tape: rgba(255, 224, 150, 0.45);
  --display: "Alfa Slab One", "Rockwell", "Georgia", serif;
  --type: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --marker: "Kalam", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; font-family: var(--type); font-size: 19px; line-height: 1.6; min-height: 100vh; position: relative; }
.grain { pointer-events: none; position: fixed; inset: 0; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: var(--neon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
main { max-width: 860px; margin: 0 auto; padding: 3rem 1.25rem 4rem; position: relative; }

/* the sign out front */
.sign { text-align: center; padding: 2.5rem 1rem 2rem; border: 3px double var(--dim); border-radius: 4px; position: relative; }
.sign:before, .sign:after { content: ""; position: absolute; top: -12px; width: 70px; height: 24px; background: var(--tape); transform: rotate(-6deg); }
.sign:before { left: 8%; } .sign:after { right: 8%; transform: rotate(5deg); }
.sign h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 5rem); margin: 0; letter-spacing: .01em; color: var(--neon);
  text-shadow: 0 0 6px rgba(255,179,71,.55), 0 0 24px rgba(255,179,71,.25); }
.sign .num { display: block; font-family: var(--display); font-size: clamp(1.5rem, 6vw, 3rem); color: var(--ink); margin: .6rem 0 .2rem; text-decoration: none; letter-spacing: .04em; }
.sign .num:hover { color: var(--neon); }
.sign p { margin: .4rem 0 0; color: var(--dim); }
.open { display: inline-block; margin-top: 1rem; font-family: var(--marker); color: var(--red); font-size: 1.1rem; transform: rotate(-2deg); border: 2px solid var(--red); padding: .1rem .6rem; border-radius: 3px; }

/* sections like boards on the wall */
section { margin-top: 3.2rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem;
  padding-bottom: .35rem; border-bottom: 1px dashed var(--dim); }
h2 small { font-family: var(--type); text-transform: none; letter-spacing: 0; color: var(--dim); font-size: .9rem; margin-left: .6rem; }
p { margin: .6rem 0; }
ul.rules { list-style: none; padding: 0; margin: 0; }
ul.rules li { padding: .55rem 0 .55rem 2rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.06); }
ul.rules li:before { content: "☞"; position: absolute; left: .2rem; color: var(--neon); }

/* chalkboard */
.board { background: var(--board); border: 8px solid #3a2a1c; border-radius: 6px; padding: 1rem 1.25rem; box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 8px 0 #24190f; font-family: var(--marker); }
.board h3 { margin: 0 0 .5rem; font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: .05em; }
.board table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.board td { padding: .4rem .3rem; vertical-align: top; border-top: 1px solid rgba(255,255,255,.08); color: #eef3ea; }
.board td:first-child { color: var(--neon); white-space: nowrap; }
.board .meta { color: rgba(255,255,255,.65); font-size: .9rem; margin: .6rem 0 0; font-family: var(--type); }
/* zip box: one bar with the button inside, like a search field */
.board form { display: flex; gap: .6rem; margin-top: 1rem; font-family: var(--type); flex-wrap: wrap; align-items: center; }
.board form label { color: rgba(255,255,255,.7); font-size: .95rem; }
.board .zipwrap { display: inline-flex; align-items: stretch; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(0,0,0,.25); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.board .zipwrap:focus-within { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255,179,71,.25); }
.board input { font: inherit; font-family: var(--type); font-size: 1.15rem; letter-spacing: .12em; padding: .55rem .8rem; width: 8rem; background: transparent; border: 0; color: #fff; outline: none; }
.board input::placeholder { color: rgba(255,255,255,.4); letter-spacing: .02em; }
.board input:invalid:not(:placeholder-shown) { color: #ffb4a3; }
.board button { font: inherit; font-family: var(--type); font-size: 1rem; padding: .55rem .95rem; background: var(--neon); color: #15110e; border: 0; cursor: pointer; font-weight: 700; }
.board button:hover { filter: brightness(1.08); }
.board button.ghost { background: transparent; color: var(--neon); border: 1px solid rgba(255,179,71,.6); border-radius: 6px; }
.board button.ghost:hover { border-color: var(--neon); }

/* the tab */
.tab { border: 1px solid var(--dim); padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; }
.tab .price { font-family: var(--display); font-size: 2.2rem; color: var(--neon); align-self: center; }
.tab .fine { grid-column: 1 / -1; color: var(--dim); font-size: .9rem; }

.fine, .foot { color: var(--dim); font-size: .95rem; }
.foot { max-width: 860px; margin: 0 auto; padding: 0 1.25rem 3rem; border-top: 1px dashed var(--dim); padding-top: 1rem; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: 2.2rem; color: var(--neon); margin: 0 0 .3rem; }
.doc h2 { font-size: 1.1rem; margin-top: 2rem; }
.doc .date { color: var(--dim); }
@media (max-width: 600px) { body { font-size: 17px; } .tab { grid-template-columns: 1fr; } }

/* petition */
.petition { display: grid; gap: .8rem; max-width: 520px; }
.petition label { display: grid; gap: .25rem; font-size: .95rem; color: var(--dim); }
.petition .opt { font-size: .85rem; }
.petition input { font: inherit; font-size: 1.05rem; padding: .6rem .75rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.28); color: var(--ink); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.petition input::placeholder { color: rgba(247,241,227,.35); }
.petition input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255,179,71,.22); }
.petition input:invalid:not(:placeholder-shown):not(:focus) { border-color: #d9482b; }
.petition button { font: inherit; font-size: 1.05rem; padding: .6rem 1rem; background: var(--neon); color: #15110e; border: 0; border-radius: 3px; cursor: pointer; font-weight: 700; justify-self: start; }
.petition button:disabled { opacity: .6; cursor: default; }
[hidden] { display: none !important; }
