* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.035) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 3px, transparent 3px 7px),
    #c9a876;
  color: #2e2a26;
  font-family: "Shantell Sans", "Chalkboard SE", "Comic Sans MS", cursive;
  line-height: 1.55;
}

main { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

a:focus-visible, button:focus-visible {
  outline: 3px solid #c34a33;
  outline-offset: 3px;
}

/* ---------- Nav ---------- */
nav {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.6rem;
  padding: 1.2rem 1.5rem;
  max-width: 68rem; margin: 0 auto;
}
nav .logo {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-size: 1.6rem; color: #2e2a26; text-decoration: none;
  transform: rotate(-1.5deg); display: inline-block;
}
nav .links a {
  color: #4a4238; text-decoration: none;
  font-size: 0.98rem; margin-left: 1.3rem;
}
nav .links a:hover { color: #c34a33; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.hero h1 {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15; margin: 0 0 0.8rem;
  transform: rotate(-0.8deg);
  text-wrap: balance;
}
.hero h1 u {
  text-decoration-color: #c34a33;
  text-decoration-thickness: 4px;
  text-underline-offset: 7px;
}
.hero p { max-width: 34rem; margin: 0 auto; color: #5a4f42; font-size: 1.02rem; }
.hero .arrow {
  display: block; margin-top: 1.2rem; color: #c34a33;
  font-family: "Permanent Marker", cursive; font-size: 1.1rem;
  transform: rotate(-2deg);
}

/* ---------- Sections ---------- */
section { padding: 2.4rem 0; }
h2.scrawl {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-weight: 400; font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0 0 0.4rem; transform: rotate(-0.6deg);
}
.sub { color: #5a4f42; margin: 0 0 1.8rem; max-width: 38rem; }

/* ---------- The Wall ---------- */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2.4rem 1.8rem;
}
.polaroid {
  background: #fdfdf8; padding: 0.75rem 0.75rem 0.9rem;
  box-shadow: 0 4px 12px rgba(46,36,20,0.35);
  position: relative;
  transition: transform 0.15s ease;
}
.polaroid:nth-child(3n+1) { transform: rotate(-2deg); }
.polaroid:nth-child(3n+2) { transform: rotate(1.4deg); }
.polaroid:nth-child(3n)   { transform: rotate(-0.7deg); }
.polaroid:hover, .polaroid:focus-within { transform: rotate(0deg) scale(1.03); z-index: 2; }
.polaroid .tape {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 4.6rem; height: 1.25rem;
  background: rgba(250, 238, 170, 0.75);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.polaroid .photo-btn {
  display: block; width: 100%; padding: 0; margin: 0 0 0.6rem;
  border: none; background: none; cursor: zoom-in;
}
.polaroid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  display: block;
  background: #6b5a48;
}
.polaroid b {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-weight: 400; font-size: 1.05rem; display: block;
}
.polaroid .mat { font-size: 0.8rem; color: #8a7f6d; display: block; margin: 0.1rem 0 0.6rem; }
.polaroid .buy {
  display: inline-block; text-decoration: none; border: none; cursor: pointer;
  font-family: "Permanent Marker", "Marker Felt", cursive;
  background: #c34a33; color: #fdfdf8; font-size: 1rem;
  padding: 0.4rem 1.1rem;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transform: rotate(-1deg);
}
.polaroid .buy:hover { background: #a83b26; }
.polaroid .buy:disabled { background: #8a7f6d; cursor: wait; }
.polaroid.is-sold img { filter: grayscale(0.35) contrast(0.92); }
.polaroid .sold {
  position: absolute; top: 34%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-size: 1.7rem; color: #c34a33;
  border: 3px solid #c34a33; padding: 0.1rem 0.8rem;
  background: rgba(253,253,248,0.82);
  letter-spacing: 0.08em;
  pointer-events: none;
}
.polaroid .askme { font-size: 0.8rem; color: #8a7f6d; }
.polaroid .plus-note { display: block; font-size: 0.78rem; color: #5a4f42; margin-top: 0.35rem; }
.polaroid .askme a { color: #c34a33; }
.wall-status { grid-column: 1 / -1; text-align: center; color: #5a4f42; max-width: 34rem; margin: 1rem auto; }
.wall-status a { color: #c34a33; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(35, 28, 20, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-card {
  background: #fdfdf8; padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-width: min(34rem, 100%); max-height: 100%;
  overflow: auto; position: relative;
}
.lightbox-card img {
  display: block; width: 100%; height: auto;
  max-height: 65vh; object-fit: contain; background: #efece4;
}
.lightbox-info { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.8rem; }
.lightbox-info b { font-family: "Permanent Marker", "Marker Felt", cursive; font-weight: 400; font-size: 1.15rem; }
.lightbox-info > span { color: #8a7f6d; font-size: 0.85rem; }
.lightbox-buy-slot { margin-left: auto; }
.lightbox-buy-slot .buy {
  display: inline-block; border: none; cursor: pointer;
  font-family: "Permanent Marker", "Marker Felt", cursive;
  background: #c34a33; color: #fdfdf8; font-size: 1rem;
  padding: 0.4rem 1.1rem;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.lightbox-buy-slot .buy:hover { background: #a83b26; }
.lightbox-buy-slot .buy:disabled { background: #8a7f6d; cursor: wait; }
/* "Come back soon" note */
.soon-overlay {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(35, 28, 20, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.soon-overlay[hidden] { display: none; }
.soon-note {
  background: #fdfdf8; max-width: 22rem; text-align: center;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  transform: rotate(-1.5deg);
}
.soon-note h3 {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-weight: 400; font-size: 1.35rem; margin: 0 0 0.5rem;
}
.soon-note p { color: #5a4f42; font-size: 0.92rem; margin: 0 0 1.1rem; }
.soon-note .soon-close {
  border: none; cursor: pointer;
  font-family: "Permanent Marker", "Marker Felt", cursive;
  background: #c34a33; color: #fdfdf8; font-size: 1rem;
  padding: 0.45rem 1.4rem;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.soon-note .soon-close:hover { background: #a83b26; }

.lightbox-close {
  position: absolute; top: 0.4rem; right: 0.4rem;
  border: none; background: #2e2a26; color: #f3e9d2;
  width: 2rem; height: 2rem; border-radius: 50%;
  font-size: 0.9rem; cursor: pointer;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem; }
.step {
  background: #fdfdf8; padding: 1.1rem 1.3rem;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  border: 2px solid #2e2a26;
  box-shadow: 0 3px 8px rgba(46,36,20,0.2);
}
.step b {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-weight: 400; font-size: 1.05rem; display: block; margin-bottom: 0.25rem;
}
.step p { margin: 0; font-size: 0.87rem; color: #5a4f42; }
.stripe-note { text-align: center; margin-top: 1.5rem; font-size: 0.88rem; color: #5a4f42; }
.stripe-note b { color: #2e2a26; }

/* ---------- Custom jobs ---------- */
.custom {
  background: #fdfdf8;
  border: 2px solid #2e2a26;
  border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px;
  padding: 1.9rem 2rem 1.7rem;
  box-shadow: 0 4px 10px rgba(46,36,20,0.25);
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
}
.custom .txt { flex: 1 1 20rem; }
.custom h2 { margin-top: 0; }
.custom p { color: #5a4f42; font-size: 0.96rem; }
.custom .cta {
  display: inline-block; text-decoration: none;
  font-family: "Permanent Marker", "Marker Felt", cursive;
  background: #2e2a26; color: #f3e9d2; font-size: 1.05rem;
  padding: 0.6rem 1.5rem;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transform: rotate(-1deg);
}
.custom .cta:hover { background: #c34a33; color: #fdfdf8; }
.custom .doodle {
  flex: 0 1 13rem; text-align: center;
  font-family: "Shantell Sans", cursive;
  font-size: 0.9rem; color: #8a7f6d;
  border: 2px dashed #c34a33; padding: 1.6rem 1.1rem;
  transform: rotate(1.5deg);
}

/* ---------- About ---------- */
.about { display: flex; gap: 2.4rem; align-items: flex-start; flex-wrap: wrap; }
.about .pic {
  flex: 0 1 14rem;
  background: #fdfdf8; padding: 0.7rem 0.7rem 1.6rem;
  box-shadow: 0 4px 12px rgba(46,36,20,0.35);
  transform: rotate(-2.5deg); position: relative;
}
.about .pic .tape {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 4.6rem; height: 1.25rem;
  background: rgba(250,238,170,0.75);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.about .pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #5c5348; }
.about .pic .cap {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  text-align: center; font-size: 0.88rem; color: #5a4f42;
}
.about .txt { flex: 1 1 22rem; }
.about p { color: #4a4238; font-size: 0.98rem; max-width: 36rem; }
.about .sig {
  font-family: "Permanent Marker", "Bradley Hand", cursive;
  font-size: 1.5rem; color: #c34a33;
  transform: rotate(-2deg); display: inline-block; margin-top: 0.4rem;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 2.5rem;
  background: #2e2a26; color: #cfc4b0;
  padding: 2.2rem 1.5rem 2.6rem; text-align: center;
  font-size: 0.88rem;
}
footer p { margin: 0.25rem 0; }
footer .flogo {
  font-family: "Permanent Marker", "Marker Felt", cursive;
  font-size: 1.35rem; color: #f3e9d2; display: block; margin-bottom: 0.5rem;
}
footer a { color: #e8b64c; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .polaroid, .polaroid:hover, .polaroid:focus-within { transition: none; }
}
