/* Stolen Bikes TLV — the front door.
 *
 * The conceit: a cork noticeboard on a Tel Aviv street pole. Everything is a
 * piece of paper someone taped up. Paper is light, ink is dark, and nothing
 * sits perfectly straight.
 */

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

.defs { position: absolute; width: 0; height: 0; }

body {
  margin: 0;
  color: var(--on-cork);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* cork */
  background-color: var(--cork);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(90, 64, 42, .55) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(60, 42, 26, .55) 0 2.5px, transparent 3px),
    radial-gradient(circle at 45% 85%, rgba(98, 72, 46, .4) 0 2px, transparent 3px),
    radial-gradient(140% 100% at 50% 0%, #443021 0%, #2a1d13 70%);
  background-size: 90px 90px, 130px 130px, 70px 70px, 100% 100%;
}

.board { max-width: 760px; margin: 0 auto; padding: 34px 18px 10px; }

/* ------------------------------------------------------------------ paper */

.flyer, .card, .sheet {
  position: relative;
  background: #f0e3c9;
  color: #3a2a1c;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 14px 30px rgba(12, 6, 2, .45),
    0 2px 5px rgba(12, 6, 2, .3);
  /* paper grain */
  background-image:
    repeating-linear-gradient(101deg, rgba(120, 90, 50, .035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(11deg, rgba(120, 90, 50, .03) 0 1px, transparent 1px 7px);
}

.ink { filter: url(#rough); display: block; }

/* ------------------------------------------------------------------ flyer */

.flyer {
  padding: 34px 30px 0;
  text-align: center;
  transform: rotate(-.7deg);
  margin-block-end: 54px;
}

.tape {
  position: absolute;
  inset-block-start: -13px;
  width: 92px;
  height: 27px;
  background: rgba(238, 226, 190, .55);
  border-inline: 1px dashed rgba(150, 125, 80, .3);
  box-shadow: 0 1px 3px rgba(12, 6, 2, .25);
}
.tape-l { inset-inline-start: 22px; transform: rotate(-6deg); }
.tape-r { inset-inline-end: 22px; transform: rotate(5deg); }

.stamp {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 16px 5px;
  font-family: var(--display);
  font-size: clamp(15px, 3vw, 20px);
  letter-spacing: .3em;
  color: #a6301a;
  border: 3px solid #a6301a;
  border-radius: 3px;
  transform: rotate(-3.5deg);
  opacity: .82;
}

.flyer-art { display: flex; justify-content: center; color: #3a2a1c; margin: 2px 0 6px; }
.flyer-art svg { width: min(74%, 330px); height: auto; }

.flyer h1 {
  margin: 4px 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.04;
  color: #2c1e12;
}

.scrawl {
  margin: 0 0 14px;
  font-family: "Caveat", var(--sans);
  font-size: clamp(19px, 3.4vw, 25px);
  line-height: 1.15;
  color: #7d5b34;
  transform: rotate(-1.1deg);
}
[dir="rtl"] .scrawl { font-family: "Amatic SC", var(--sans); font-weight: 700; font-size: clamp(25px, 4.6vw, 34px); }
.scrawl.small { font-size: clamp(16px, 2.6vw, 19px); margin-bottom: 16px; }

.flyer .body {
  max-width: 460px;
  margin: 0 auto 22px;
  font-size: 15px;
  color: #5b452e;
}

.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 13px 24px;
  font: 700 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #2c1e12;
  transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn.primary { background: #c2562a; color: #fff6e9; box-shadow: 3px 3px 0 #2c1e12; }
.btn.primary:hover { background: #ad4a22; }
.btn.ghost { background: transparent; color: #3a2a1c; box-shadow: 3px 3px 0 rgba(44, 30, 18, .35); }
.btn.ghost:hover { background: rgba(44, 30, 18, .07); }
.btn.big { padding: 16px 32px; font-size: 16px; }

.note {
  margin: 14px 0 0;
  font-family: "Caveat", var(--sans);
  font-size: 19px;
  color: #8a6a40;
}
[dir="rtl"] .note { font-family: "Amatic SC", var(--sans); font-weight: 700; font-size: 24px; }

.note-cta { display: inline-flex; align-items: center; gap: 6px; transform: rotate(-1.4deg); }
.arrow { display: block; width: 52px; color: #8a6a40; transform: rotate(8deg) scaleY(-1); }
[dir="rtl"] .arrow { transform: rotate(-8deg) scale(-1, -1); }
.arrow svg { width: 100%; height: auto; }

/* tear-off tabs */

.tabs { display: flex; gap: 5px; justify-content: center; margin-block-start: 26px; }
.tab {
  width: 34px;
  height: 46px;
  border: 1px dashed rgba(120, 92, 54, .45);
  border-block-end: 0;
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(0deg, rgba(120, 92, 54, .07) 0 6px, transparent 6px 12px);
}
.tab.gone { background: none; border-color: transparent; }
.tab.gone + .tab { border-inline-start-style: dashed; }

/* ------------------------------------------------------------ pinned cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-block-end: 18px;
}
.card { padding: 26px 16px 18px; text-align: center; }
.tilt-a { transform: rotate(1.6deg); }
.tilt-b { transform: rotate(-1.2deg); }
.tilt-c { transform: rotate(.8deg); }

.pushpin {
  position: absolute;
  inset-block-start: -11px;
  inset-inline-start: 50%;
  margin-inline-start: -14px;
  width: 28px;
  color: #a6301a;
  filter: drop-shadow(0 3px 3px rgba(12, 6, 2, .45));
}
.pushpin svg { width: 100%; height: auto; }

.card b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: #a6301a;
  font-variant-numeric: tabular-nums;
}
.card span {
  display: block;
  margin-block-start: 6px;
  font-family: "Caveat", var(--sans);
  font-size: 18px;
  color: #6d5334;
}
[dir="rtl"] .card span { font-family: "Amatic SC", var(--sans); font-weight: 700; font-size: 23px; }

.preview-note {
  margin: 0 0 40px;
  text-align: center;
  font-family: "Caveat", var(--sans);
  font-size: 18px;
  color: #c8a87a;
}

/* ----------------------------------------------------------------- sheets */

.sheet { padding: 30px 26px; margin-block-end: 46px; }
.sheet:nth-of-type(odd) { transform: rotate(.5deg); }
.sheet:nth-of-type(even) { transform: rotate(-.6deg); }

.sheet h2 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 31px);
  line-height: 1.12;
  color: #2c1e12;
}

/* notebook ruling behind the tally sheet */
.lined {
  background-image:
    repeating-linear-gradient(180deg, transparent 0 37px, rgba(90, 120, 150, .22) 37px 38px),
    repeating-linear-gradient(101deg, rgba(120, 90, 50, .035) 0 1px, transparent 1px 5px);
  background-position: 0 42px, 0 0;
}

.hoods { list-style: none; margin: 18px 0 0; padding: 0; }
.hoods li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 12px;
  height: 38px;
}
.hood-name { font-weight: 700; font-size: 15px; color: #3a2a1c; }
.hoods li:first-child .hood-name { color: #a6301a; }
.hood-tally { color: #3a2a1c; }
.hood-tally svg { height: 19px; width: auto; }
.hood-n {
  font-family: var(--display);
  font-size: 17px;
  color: #6d5334;
  font-variant-numeric: tabular-nums;
  min-width: 26px;
  text-align: end;
}
.hoods .empty { font-family: "Caveat", var(--sans); font-size: 19px; color: #8a6a40; }

.sheet .note { margin-block-start: 18px; font-size: 16px; }

/* locks */

.lockgrid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 18px;
}
.lockgrid li { text-align: center; }
.lockgrid .lock-empty {
  grid-column: 1 / -1;
  text-align: start;
  font-family: "Caveat", var(--sans);
  font-size: 19px;
  color: #8a6a40;
}
[dir="rtl"] .lockgrid .lock-empty { font-family: "Amatic SC", var(--sans); font-weight: 700; font-size: 23px; }
.lock-art { color: #3a2a1c; display: flex; justify-content: center; margin-block-end: 6px; }
.lock-art svg { width: 78px; height: auto; }
.lock-n { font-family: var(--display); font-size: 26px; color: #a6301a; line-height: 1; }
.lock-name { margin: 3px 0 2px; font-weight: 700; font-size: 14px; color: #3a2a1c; }
.lock-quip {
  margin: 0;
  font-family: "Caveat", var(--sans);
  font-size: 17px;
  line-height: 1.25;
  color: #7d5b34;
}
[dir="rtl"] .lock-quip { font-family: "Amatic SC", var(--sans); font-weight: 700; font-size: 21px; line-height: 1.1; }

/* napkin */

.napkin { background-color: #f4ece0; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps .n {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 2.5px solid #a6301a;
  border-radius: 50%;
  color: #a6301a;
  font-family: var(--display);
  font-size: 17px;
  transform: rotate(-4deg);
}
.steps h3 { margin: 6px 0 3px; font-family: var(--display); font-weight: 400; font-size: 18px; color: #2c1e12; }
.steps p { margin: 0; font-size: 14.5px; color: #5b452e; }

/* closer + footer sit on the cork, not on paper */

.closer { text-align: center; padding: 26px 10px 44px; }
.closer h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(23px, 4.2vw, 34px);
  color: var(--on-cork);
}
.closer p { max-width: 470px; margin: 0 auto 26px; color: var(--on-cork-dim); font-size: 15px; }
.closer .btn.primary { border-color: #120c06; box-shadow: 3px 3px 0 #120c06; }

.foot {
  padding: 8px 10px 46px;
  text-align: center;
  font-size: 12px;
  color: #a08a6c;
  line-height: 1.6;
}
.foot p { margin: 0 0 6px; }
.foot a { color: #a08a6c; }

.lang-float {
  position: fixed;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 50;
  background: #f0e3c9;
  border: 2px solid #2c1e12;
  color: #2c1e12;
  border-radius: 3px;
  padding: 7px 12px;
  font: 700 13px/1 var(--sans);
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(12, 6, 2, .5);
  transform: rotate(2deg);
}
.lang-float:active { transform: rotate(2deg) translateY(2px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

@media (max-width: 560px) {
  .board { padding: 24px 12px 6px; }
  .flyer { padding: 28px 18px 0; }
  .sheet { padding: 24px 18px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .tilt-c { grid-column: span 2; }
  .tabs { display: none; }
}
