:root {
  --cork: #c9a36a;
  --ink: #2a2218;
  --paper: #f6f0e4;
  --sticky: #f3e27a;
  --blueprint: #dfe7ea;
  --env: #efe4c8;
  --red: #c23b2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: #3a2a1a;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: .4rem; z-index: 50; }

.shop-wall {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(40,28,16,.18), rgba(40,28,16,.08)),
    url("images/cork.jpg") center / 420px repeat;
  padding: 1.4rem 1rem 3rem;
}

.plaque {
  width: min(520px, 100%);
  margin: 0 auto 0.6rem;
  background: linear-gradient(#8a6a32, #6d5226);
  color: #f3e6c4;
  text-align: center;
  padding: 0.85rem 1rem 1rem;
  border-radius: 4px;
  box-shadow: 0 8px 0 #3d2c12, 0 14px 24px rgba(0,0,0,.28);
  border: 2px solid #c4a056;
}
.plaque h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.plaque-small, .plaque-sub {
  font-family: "Special Elite", serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  opacity: 0.85;
}
.plaque-sub { margin-top: 0.15rem; letter-spacing: 0.28em; }

.hint {
  text-align: center;
  font-family: Caveat, cursive;
  font-size: 1.35rem;
  color: #3a2a18;
  margin: 0.7rem 0 1.1rem;
}

.board {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem 0.9rem;
  align-items: start;
}

.pin {
  position: relative;
  border: 0;
  cursor: pointer;
  text-align: left;
  transform: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 2px 6px 14px rgba(40, 24, 8, .28);
}
.pin:hover, .pin:focus-visible {
  transform: translateY(-2px);
  z-index: 3;
  outline: none;
}

.tack {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b5b, var(--red) 60%, #7a1c14);
  box-shadow: 0 2px 0 #4a120c, 1px 3px 4px rgba(0,0,0,.35);
  z-index: 2;
}
.tack-black { background: radial-gradient(circle at 35% 30%, #666, #1a1a1a 62%); box-shadow: 0 2px 0 #000, 1px 3px 4px rgba(0,0,0,.35); }
.tack-blue { background: radial-gradient(circle at 35% 30%, #7eb3e0, #2b5f8a 62%); }
.tack-green { background: radial-gradient(circle at 35% 30%, #8fce7a, #2f6b28 62%); }

.polaroid, .polaroid-sm {
  background: #f7f3ea;
  padding: 8px 8px 22px;
  grid-column: span 3;
}
.polaroid img, .polaroid-sm img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  object-position: center;
  background: #ebe4d6;
}
.polaroid-sm { grid-column: span 2; }
.polaroid-sm img { height: 120px; }
.polaroid.lead {
  grid-column: span 3;
}
.polaroid.lead img {
  height: 168px;
  object-fit: contain;
}
.hand {
  display: block;
  font-family: Caveat, cursive;
  font-size: 1.25rem;
  padding-top: 0.35rem;
  color: #3b2e1c;
}
.tiny { font-size: 1.05rem; opacity: .8; }

.sticky {
  background: var(--sticky);
  grid-column: span 3;
  padding: 1.4rem 1rem 1rem;
  min-height: 220px;
  box-shadow: 2px 7px 0 rgba(160, 130, 20, .18), 2px 6px 14px rgba(40,24,8,.25);
}
.sticky-title {
  font-family: "Special Elite", serif;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.sticky ul { list-style: none; font-size: 0.92rem; line-height: 1.55; }
.sticky li::before { content: "– "; }

.note, .index {
  background: var(--paper);
  grid-column: span 4;
  padding: 1.3rem 1.1rem 1.1rem;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(180, 150, 90, .28) 28px
  );
  background-position: 0 42px;
}
.typed {
  font-family: "Special Elite", serif;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}
.note p + p, .index p + p { font-size: 0.95rem; line-height: 1.45; }

.blueprint {
  background: var(--blueprint);
  grid-column: span 5;
  padding: 1.3rem 1.15rem 1rem;
  border: 1px dashed #7a93a3;
  background-image:
    linear-gradient(rgba(90,120,140,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,120,140,.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bp-label {
  font-family: "Special Elite", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #355066;
}
.bp-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  margin: 0.25rem 0 0.4rem;
}

.envelope {
  background: var(--env);
  grid-column: span 3;
  padding: 1.3rem 1rem 1rem;
  border: 1px solid #d7c49a;
}
.env-stamp {
  display: inline-block;
  border: 2px solid #8a2a22;
  color: #8a2a22;
  font-family: "Special Elite", serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.35rem;
  transform: rotate(-8deg);
}
.env-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  margin: 0.5rem 0 0.3rem;
}

.tape-photo {
  background: #f3eee3;
  grid-column: span 4;
  padding: 14px 10px 26px;
}
.tape-photo video {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #111;
}
.tape {
  position: absolute;
  top: -8px;
  left: 18%;
  width: 64px;
  height: 18px;
  background: rgba(255, 244, 180, .55);
  transform: rotate(-8deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 10, .55);
  z-index: 20;
}
.sheet {
  position: fixed;
  z-index: 21;
  inset: 3vh 4vw auto;
  max-height: 94vh;
  overflow: auto;
  width: min(980px, 92vw);
  margin: 0 auto;
  left: 0; right: 0;
  background: #f7f1e6;
  padding: 1.6rem 1.4rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border: 1px solid #e2d4ba;
}
.sheet h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.sheet-kicker {
  font-family: "Special Elite", serif;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #8a5a28;
  margin-bottom: 0.3rem;
}
.sheet-lead, .sheet p { line-height: 1.55; margin-bottom: 0.8rem; }
.sheet-close {
  position: sticky;
  top: 0;
  float: right;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #cbb896;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.mosaic figure { background: #fff; padding: 6px 6px 8px; }
.mosaic img { width: 100%; height: 160px; object-fit: contain; background: #ebe4d6; }
.mosaic figcaption {
  font-family: Caveat, cursive;
  font-size: 1.1rem;
  padding-top: 0.25rem;
}
.mosaic.tight img { height: 140px; object-fit: contain; }
.svc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.svc div { background: #fff; padding: 0.9rem 1rem; border: 1px solid #e6d8bf; }
.svc h3 { font-family: "Source Serif 4", Georgia, serif; margin-bottom: 0.3rem; }
.fine { font-size: 0.9rem; color: #5a4c38; }
.plain { margin: 1rem 0 0 1rem; line-height: 1.7; }
.sheet-video { width: 100%; max-height: 360px; background: #111; margin: 0.6rem 0 1rem; }

.sheet-form label, .pay-form label {
  display: block;
  font-size: 0.88rem;
  margin: 0.7rem 0;
}
.sheet-form input, .sheet-form textarea, .sheet-form select,
.pay-form input, .pay-form select {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #cbb896;
  background: #fffdf7;
  font: inherit;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
fieldset {
  border: 1px dashed #cbb896;
  padding: 0.7rem 0.8rem;
  margin: 0.8rem 0;
}
legend { font-family: "Special Elite", serif; font-size: 0.78rem; padding: 0 0.3rem; }
.chk { display: flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0; font-size: 0.92rem; }
.chk input { width: auto; }
.paper-btn {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--ink);
  color: #f6f0e4;
  border: 0;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}
.paper-btn:hover { opacity: .92; }
a.paper-btn { text-decoration: none; }

.pay-box {
  background: #fff;
  border: 1px solid #e0d2b8;
  padding: 1rem 1.1rem;
  margin: 0.8rem 0 1.2rem;
}
.pay-to {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  margin: 0.3rem 0 0.6rem;
}
.pay-to a { color: inherit; }
.pay-box ul { margin-left: 1.1rem; line-height: 1.6; }

@media (max-width: 900px) {
  .board { grid-template-columns: repeat(6, 1fr); }
  .polaroid, .note, .index, .blueprint, .tape-photo { grid-column: span 6; }
  .sticky, .envelope { grid-column: span 3; }
  .polaroid, .polaroid-sm { grid-column: span 3; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: 1fr; }
  .polaroid, .polaroid-sm, .sticky, .note, .index, .blueprint, .envelope, .tape-photo {
    grid-column: span 1;
  }
  .sheet { inset: 0; width: 100%; max-height: 100vh; border: 0; }
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sister-card {
  background: var(--paper);
  grid-column: span 3;
  padding: 1.2rem 1rem 1rem;
  pointer-events: auto;
}
.sister-card .sister-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.sister-card a {
  color: var(--ink);
  font-family: Caveat, cursive;
  font-size: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sister-card a:hover { opacity: .85; }

.board-foot {
  width: min(1180px, 100%);
  margin: 1.8rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3a2a18;
  opacity: 0.88;
}
.board-foot a { color: inherit; }
.foot-sisters { margin-top: 0.25rem; font-family: "Special Elite", serif; letter-spacing: 0.04em; font-size: 0.72rem; }

.thanks {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: #f7f1e6;
  border: 1px solid #e2d4ba;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-family: Caveat, cursive;
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .sister-card { grid-column: span 3; }
}
@media (max-width: 560px) {
  .sister-card { grid-column: span 1; }
}
