/* Glenda $GLENDA: village craft-fair bulletin. Tokens locked off the approved art. */
:root {
  --cream: #FBF0D8;
  --cream-deep: #F3E2B8;
  --gold: #EEB72A;
  --gold-deep: #C48A20;
  --rose: #C48A85;
  --rose-deep: #7A4A47;
  --rose-dark: #5C3634;
  --ink: #3B2A1D;
  --paper-shadow: rgba(59, 42, 29, 0.22);
  --radius-tag: 3px;
}

@font-face {
  font-family: 'Amatic SC';
  src: url('/assets/fonts/amatic-sc-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Amatic SC';
  src: url('/assets/fonts/amatic-sc-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('/assets/fonts/cabin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('/assets/fonts/cabin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('/assets/fonts/cabin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  color: var(--ink);
  font-family: 'Cabin', 'Trebuchet MS', sans-serif;
  background-color: var(--rose);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 3px, transparent 3px 9px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, var(--rose) 0%, var(--rose-dark) 100%);
  min-height: 100vh;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

/* ---- masthead ---- */
.masthead {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.15);
  box-shadow: 8px 8px 0 var(--paper-shadow);
  padding: 30px 26px 26px;
  position: relative;
  text-align: center;
}

.ribbon {
  display: inline-block;
  background: var(--gold);
  color: var(--rose-dark);
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1;
  padding: 6px 34px 10px;
  position: relative;
  transform: rotate(-1.4deg);
  margin-bottom: 6px;
}
.ribbon::before, .ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  border-top: 20px solid var(--gold-deep);
  width: 0; height: 0;
}
.ribbon::before { left: -18px; border-left: 18px solid transparent; }
.ribbon::after { right: -18px; border-right: 18px solid transparent; }

.subhead {
  font-family: 'Amatic SC', cursive;
  font-weight: 400;
  font-size: clamp(20px, 4vw, 26px);
  color: var(--rose-dark);
  margin: 4px 0 18px;
}

.photo-pin {
  position: relative;
  display: inline-block;
  margin: 6px 0 18px;
}
.photo-pin img {
  width: 200px;
  height: 200px;
  display: block;
  border: 6px solid #fff;
  box-shadow: 0 6px 14px rgba(59,42,29,0.28);
  transform: rotate(-3deg);
}
.pin-dot {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8f7c, #b8362a 70%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}

.tagline {
  max-width: 480px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.5;
}
.tagline strong { color: var(--rose-dark); }

/* ---- clip-art dividers ---- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px 0;
  color: var(--gold-deep);
}
.divider svg { width: 22px; height: 22px; }
.divider .rule {
  flex: 1;
  max-width: 90px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 6px, transparent 6px 10px);
}

/* ---- price list ---- */
.board-panel {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.15);
  box-shadow: 8px 8px 0 var(--paper-shadow);
  margin-top: 26px;
  padding: 24px 22px 26px;
}
.board-panel h2 {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(30px, 5vw, 40px);
  color: var(--rose-dark);
  margin: 0 0 4px;
  text-align: center;
}
.board-sub {
  text-align: center;
  font-size: 14px;
  color: #6b5a4a;
  margin: 0 0 18px;
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.price-table tr {
  border-bottom: 1px dashed rgba(59,42,29,0.3);
}
table.price-table tr:last-child { border-bottom: none; }
table.price-table td {
  padding: 11px 4px;
  vertical-align: top;
}
table.price-table td.item { text-align: left; }
table.price-table td.item .item-note {
  display: block;
  font-size: 12.5px;
  color: #7a6a58;
  font-style: italic;
}
table.price-table td.price {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--rose-dark);
  font-variant-numeric: tabular-nums;
}

/* ---- compliment board ---- */
.corkboard {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.10) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.08) 0, transparent 2px),
    #b9926a;
  border: 10px solid #8a6a45;
  min-height: 150px;
  padding: 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  justify-content: center;
  position: relative;
}
.corkboard .empty-msg {
  color: #fff4e0;
  font-style: italic;
  font-size: 14px;
  margin: auto;
  text-align: center;
}
.note {
  background: #fff9e6;
  color: #3b2a1d;
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  padding: 12px 10px 10px;
  width: 130px;
  min-height: 90px;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.35);
  position: relative;
  animation: pin-drop 0.32s ease-out;
}
.note::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9d9d9, #7a7a7a 75%);
  box-shadow: 0 2px 2px rgba(0,0,0,0.4);
}
@keyframes pin-drop {
  from { transform: translateY(-14px) rotate(0deg); opacity: 0; }
  to { transform: translateY(0) rotate(var(--r, -2deg)); opacity: 1; }
}
.note.n0 { --r: -6deg; } .note.n1 { --r: 4deg; } .note.n2 { --r: -3deg; }
.note.n3 { --r: 6deg; } .note.n4 { --r: -2deg; } .note.n5 { --r: 3deg; }
.note.n6 { --r: -5deg; } .note.n7 { --r: 2deg; }

.mechanic-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pin-btn {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: var(--gold);
  color: var(--rose-dark);
  border: 2px solid var(--gold-deep);
  padding: 11px 22px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--gold-deep);
}
.pin-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gold-deep); }
.counter {
  font-family: 'Cabin', sans-serif;
  font-size: 13px;
  color: #5a4a3a;
}
.counter b { color: var(--rose-dark); font-size: 16px; }

.six-clock {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #6b5a4a;
}
.six-clock span {
  font-weight: 700;
  color: var(--rose-dark);
  font-variant-numeric: tabular-nums;
}

/* ---- stall details / footer ---- */
.stall-details {
  background: var(--cream);
  border: 1px solid rgba(59,42,29,0.15);
  box-shadow: 8px 8px 0 var(--paper-shadow);
  margin-top: 26px;
  padding: 24px 22px 28px;
  text-align: center;
}
.call-line {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(22px, 4.4vw, 28px);
  color: var(--rose-dark);
  margin: 0 0 18px;
}
.stall-no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-deep);
  border: 1px dashed var(--gold-deep);
  padding: 10px 16px;
  font-family: 'Cabin', monospace;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--rose-dark);
  word-break: break-all;
}
.stall-no:hover { background: #ecd9a5; }
.stall-no.copied::after { content: ' \2713'; }

.links-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.link-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 600;
}
.link-tag svg { width: 34px; height: 34px; }
.link-tag:hover { color: var(--gold-deep); }

footer.credit {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  margin-top: 22px;
}

@media (max-width: 480px) {
  .wrap { padding: 18px 10px 40px; }
  .masthead, .board-panel, .stall-details { padding: 20px 14px 22px; }
  .photo-pin img { width: 160px; height: 160px; }
  .note { width: 110px; min-height: 80px; font-size: 12px; }
}

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


/* the stall number is the contract and it belongs on the first screen, per 03_SITES:
   monospace with real case, click to copy (2026-08-31) */
.stall-no-top { margin: 10px 0 0; text-align: center; font-size: 13px; color: #6b5238; }
.ca-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
  font-size: 12px; color: #6b5238; background: none; border: 0;
  border-bottom: 1px dotted currentColor; cursor: pointer; padding: 0;
  word-break: break-all;
}
