/* ===== OutOfSpec Studio — styles ===== */
:root {
  --purple: #9b2fff;
  --purple-600: #7d1fe0;
  --ink: #16161c;
  --paper: #f6f4f1;        /* warm off-white, nods to the cream sticker backgrounds */
  --card: #ffffff;
  --muted: #6c6c77;
  --border: #e7e4df;
  --red: #ff3030;
  --gold: #d9a441;
  --venmo: #3d95ce;
  --shadow: 0 6px 24px rgba(20, 16, 30, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, .brand, .btn, .cart-toggle {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
}

a { color: var(--purple-600); }

/* ---- Announcement bar ---- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}
.announce strong { color: #c79bff; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: rgba(246, 244, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
}
.brand-badge img { height: 62px; width: auto; display: block; }

@media (max-width: 480px) {
  .brand-badge img { height: 46px; }
}

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--purple-600); }

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-toggle:hover { background: var(--purple-600); }
.cart-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  min-width: 1.4em;
  text-align: center;
  padding: 0 0.3em;
  font-size: 0.8rem;
}
@keyframes cart-bump { 0% { transform: scale(1); } 30% { transform: scale(1.4); } 100% { transform: scale(1); } }
.cart-count.bump { display: inline-block; animation: cart-bump 0.3s ease; }

/* ---- Hero ---- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.25rem 2.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
/* Red, not purple — in the nuclear world, anything out of spec gets logged/circled in red */
.hero .hl { color: var(--red); }
.hero .sub { font-size: 1.1rem; color: var(--muted); margin: 0 auto 1.75rem; max-width: 540px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-600); }
.btn-venmo { background: var(--venmo); color: #fff; }
.btn-venmo:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: #efece7; }
.btn-block { display: block; width: 100%; }

/* ---- Shop ---- */
.shop { max-width: 1080px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.shop-head { text-align: center; margin-bottom: 1.75rem; }
.shop-head h2 { font-size: 1.8rem; margin: 0 0 0.25rem; }
.price-note { color: var(--muted); margin: 0; }
.price-note strong { color: var(--ink); }
.spec-line { color: var(--muted); margin: 0.25rem 0 0; font-size: 0.85rem; letter-spacing: 0.01em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 1 / 1;
  background: #f0eee9;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
/* `contain` shows the whole design (no cropping), so wide stickers like
   "Absorb Responsibly" aren't cut off. Square ones still fill the card. */
.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.card-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-name { font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.card-desc { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card-price { font-weight: 700; font-family: 'Chakra Petch', sans-serif; }
.add-btn {
  background: var(--purple);
  color: #fff; border: none;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: 600; cursor: pointer;
}
.add-btn:hover { background: var(--purple-600); }
.add-btn.added { background: #1f8f3a; }

/* ---- About ---- */
.about { max-width: 680px; margin: 0 auto; padding: 1rem 1.25rem 3.5rem; text-align: center; }
.about h2 { font-size: 1.6rem; }
.about p { color: var(--muted); }

/* ---- Cart panel ---- */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 8, 16, 0.45);
  z-index: 40;
}
.cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 50;
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  padding: 1.1rem 1.1rem 1.4rem;
  overflow-y: auto;
}
.cart-header { display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-size: 1.3rem; margin: 0.2rem 0 0.6rem; }
.icon-btn { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }

.cart-empty { color: var(--muted); padding: 1.5rem 0; text-align: center; }

.cart-items { display: flex; flex-direction: column; gap: 0.7rem; margin: 0.4rem 0 0.8rem; }
.cart-item { display: flex; gap: 0.7rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem; }
.cart-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; background: #f0eee9; }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.qty { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; line-height: 1; }
.qty span { min-width: 1.4em; text-align: center; font-size: 0.9rem; }

.cart-summary { border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.8rem; }
.cart-summary .row { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 0.2rem 0; color: var(--muted); }
.cart-summary .row.discount { color: var(--purple-600); font-weight: 600; }
.cart-summary .row.total { color: var(--ink); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.6rem; }

/* ---- Checkout form ---- */
.checkout { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.checkout h3 { margin: 0.3rem 0 0.2rem; }
.checkout label { display: flex; flex-direction: column; font-size: 0.8rem; font-weight: 600; color: var(--muted); gap: 0.25rem; min-width: 0; }
.checkout input, .checkout textarea {
  font: inherit; width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.field-row { display: grid; grid-template-columns: 1fr 0.6fr 0.8fr; gap: 0.5rem; }
.fineprint { font-size: 0.78rem; color: var(--muted); margin: 0.4rem 0 0; }

/* ---- Pay step ---- */
.pay-step { margin-top: 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.7rem; }
.pay-step h3 { margin: 0; }
.pay-manual { font-size: 0.9rem; color: var(--muted); }
.pay-manual code { background: #fff; border: 1px dashed var(--purple); padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 1rem; color: var(--ink); }

/* ---- Footer ---- */
.site-footer { text-align: center; padding: 2rem 1rem 2.5rem; color: var(--muted); border-top: 1px solid var(--border); }
.site-footer p { margin: 0.2rem 0; font-size: 0.85rem; }

@media (max-width: 420px) {
  .nav { gap: 0.8rem; }
  .nav a { font-size: 0.88rem; }
}
